body {
    text-align: center;
}

main {
    background-color: #0a1014; /* dark background color */
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

section > #title {
    position: relative;
    z-index: 5;
}

.content {
    background: transparent;
    text-align: center;
    padding: 0 4%;
}

h2, h3, text, p {
    color: #efedea;
}

img {
    border-radius: 50%;
    width: 6rem;
    border: 2px solid white;
}

.text-normal {
    padding-top: 1.2rem;
    padding-bottom: 0.6rem;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
}

.text-small > a, .text-small {
    font-size: 1.6rem;
    line-height: 1.5;
    color:#efedea;
}

.text-small > a:hover {
    color: rgb(186, 202, 212);
}

/* Containers */
.container-fluid {
    padding: 0 3%;
}

/* Sections */
.color-section {
    background-color: #0a1014;
}

.red-section {
    background-color: #FF6959;
    color: #fff;
}

/* Headings */
.big-heading {
    font-size: 20rem;
    line-height: 1.5;
    color: #FF6959;
    font-family: 'Shrikhand', cursive;
}

.small-heading {
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 1.5;
    color: #efedea;
}

.small-heading-dark {
    font-weight: bold;
    font-size: 1.8rem;
    line-height: 1.5;
    color: #283340;
}

.section-heading {
    font-size: 3.5rem;
    line-height: 1.5;
    color: #efedea;
}
@media (max-width: 1800px) {
    #title {
        text-align: center;
    }

    .title-image {
        position: static;
        transform: rotate(0);
        top: 70%;
    }

    .big-heading {
        font-size: 14rem;
        line-height: 1;
        color: #FF6959;
        font-family: 'Shrikhand', cursive;
    }
}

@media (max-width: 1600px) {
    #title {
        text-align: center;
    }

    .title-image {
        position: static;
        transform: rotate(0);
        top: 70%;
    }

    .big-heading {
        font-size: 13rem;
        line-height: 1;
        color: #FF6959;
        font-family: 'Shrikhand', cursive;
    }
}

@media (max-width: 1028px) {
    #title {
        text-align: left;
    }

    .title-image {
        position: static;
        transform: rotate(0);
        top: 60%;
    }

    .big-heading {
        font-size: 8rem;
        line-height: 1.5;
        color:  #FF6959;
        filter: brightness(1);
        font-family: 'Shrikhand', cursive;
    }
}

/* Responsive charts */
#my_barchart_horizontal svg {
    width: 100%;
    height: auto;
    max-width: 650px;
    display: block;
    margin: 0 auto;
}

#humans svg,
#europe svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

#zoom_treemap svg {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

#animation_neu svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

.title-background {
    background-color: #0a1014;
    opacity: 0.8;
    color: #e70101;
    font-size: 3rem;
    line-height: 1.5;
    font-style: italic;
    padding: .3em .7em .2em .4em;
    display: inline;
    text-align: right;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.section-heading-dark {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.5;
    color: #283340;
}

/*Animal Animation*/
/* This is the controls for Animal*/
.animal {
    width: 1000px;
    position: absolute;
    top: 15%;
    left: -75%;
    transform-origin: bottom left;
}

/*Animal icon*/
.animal-icon {
    margin-top: 20px;
    fill: white;
    width: 50px;
    height: 50px;
}

.human-icon {
    margin-top: 20px;
    fill: white;
    width: 60px;
    height: 60px;
}

#footer {
    color: #efedea;
}

#legend {
    font-size: 1.1rem;
}

/* Title Section */
#title {
    text-align: center;
    background-image: url("eye.jpg");
    background-color: #142229;
    height-min: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: right;
    height: 100vh;
    -webkit-transition: opacity 350ms linear;
    -moz-transition: opacity 350ms linear;
    -ms-transition: opacity 350ms linear;
    -o-transition: opacity 350ms linear;
    transition: opacity 350ms linear;
    filter: brightness(0.8);
}

/* Title Image */
.title-image {
    width: 20%;
    transform: rotate(3deg);
    position: absolute;
    right: 20%;
    top: 3%;
}

/*Buttons Bar Chart*/

.btn-custom {
    height: 40px;
    background: #efedea;
    border: none;
    outline: none;
    box-shadow: 0 0 0 3px #7C8A91;
    transition: box-shadow 0.3s;
    border-radius: 5px;
    color: black;
}

.margin-right{
    margin-right: 20px;
}

.btn-custom:hover, .btn-custom:focus {
    background: #efedea;
    box-shadow: 0 0 0 3px #FF6959, 0 0 0 2px transparent;
}


.btn-sm.btn-custom {
    height: 40px;
    font-size: 1.5rem;
    padding: 10px 10px 10px 10px;
    color: #0a1014;
}


/*Buttons in Accordion und Panel text and title*/

.btn-custom-small {
    height: 30px;
    background: #efedea;
    border: none;
    outline: none;
    box-shadow: 0 0 0 2px #7C8A91;
    transition: box-shadow 0.3s;
}

.btn-custom-small:hover, .btn-custom-small:focus {
    background: #efedea;
    box-shadow: 0 0 0 2px #FF6959, 0 0 0 2px transparent;
}

.btn-sm.btn-custom-small {
    height: 30px;
    font-size: 1.3rem;
    color: #0a1014;
}

.panel-body {
    padding: 0;
    color: #efedea;
    background: #0c161c;
}

.text-smallest {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #bacad4;
}

.panel-default>.panel-heading {
    background-color: #0a1014 !important;
}

.panel-heading {
    box-shadow: 0 0 0 2px #7C8A91;
    text-decoration: none;
}

.panel-heading:hover,
.panel-heading.open {
    box-shadow: 0 0 0 2px #FF6959;
    cursor: pointer;
    text-decoration: none;
}

.panel-heading:focus  {
    box-shadow: 0 0 0 2px #FF6959;
    cursor: pointer;
    text-decoration: none;
}

.panel-title > a {
    font-size: 1.5rem;
    color: #bacad4 !important;
    text-decoration: none;
}

.panel-title a:hover {
    text-decoration: none;
}

.panel-title a:hover {
    text-decoration: none;
}

.panel-title a:focus {
    text-decoration: none;
}

.accordion-container {
    margin-bottom: 20px;
}

.collapse {
    text-decoration: none;
}


/*sidebyside & custom border*/



.possibly-sidebyside .one {
    float: left;
}

.sidebyside {
    white-space: nowrap;
}

.sidebyside div, .sidebyside svg {
    display: inline;
}

.custom-border {
    margin-top: 20px;
    border-style: solid;
    border-radius: 10px;
    border-color: #ddddde;
}

button, #speciesButton {
    color: #090f11;
}

svg {
    border: none;
}

hr {
    margin: 2em 0;
}


/*MAP*/

#humans, #europe {
    background: #0a1014;
    color: white;
}

#chart-title {
    font-size: 24px;
    text-anchor: start;
}

.europe-boundary {
    fill: transparent;
    stroke: #0a1014;
    stroke-width: 0.12rem;
    stroke-linejoin: round;
    cursor: pointer;
}

.country-label {
    fill: #efedea;
    fill-opacity: .5;
    font-size: 10px;
    font-weight: 300;
    text-anchor: middle;
}

#context-label, #context-label-3, #context-label-4, #context-label-6 {
    font-size: 1.1rem;
    font-family: 'DM Sans', sans-serif;
}

#context-label-2, #context-label-5 {
    font-size: 2.50rem;
    font-family: 'DM Sans', sans-serif;
}

.stop-left-human {
    stop-color: #E8F2E8;
}

.stop-right-human {
    stop-color: #27374D;
}

.stop-left-species {
    stop-color: #27374D;
}

.stop-right-species {
    stop-color: #E8F2E8;
}


.filled-human {
    fill: url(#mainGradient);
}

.filled {
    fill: url(#mainGradientSpecies);
}

.red {
    color: #FF6959;
}


.animal-select-button {
    stroke: #E8F2E8;
    stroke-width: 2px;
    cursor: pointer;
    appearance: none;
    background-color: inherit;
    /*transition: transform 0.7s ease-in-out;*/
    opacity: 0.7;
}

.animal-select-button:hover {
    opacity: 1;
    stroke: #FF6959;
}

.selected {
    opacity: 1;
    stroke: #FF6959;
}

.animal-type {
}

/*Scrollama*/

#scrolly {
    position: relative;
}

article {
    position: relative;
    padding: 0 1rem;
    margin: 0 auto;
    width: 70%;
    background-color: #0a1014;
}

.step {
    margin: 0 auto 0.1rem auto;
    background-color: #3b3b3b;
    color: #fff;
    opacity: 0.0;
}

.step.is-active {
    background-color: transparent;
    color: #efedea;
    opacity: 1;
}

.step p, .step section {
    text-align: center;
    font-size: 1.5rem;
}


.tooltip {
    position: absolute;
    text-align: center;
    width: 100px;
    height: 28px;
    padding: 2px;
    font: 12px sans-serif;
    background: #efedea;
    border: 0;
    border-radius: 8px;
    pointer-events: none;
}

/*Treemap*/

.treemap-button {
    height: 120px;
    width: 120px;
    cursor: pointer;
    opacity: 75%;
    box-shadow: 0 0 0 4px #7C8A91;
    transition: box-shadow 0.3s;
    margin-left: 20px;
    margin-bottom: 30px;
}

.treemap-button:hover {
    opacity: 100%;
    border: none;
    box-shadow: 0 0 0 5px #FF6959;
    margin-bottom: 30px;
}

.treemap-button-active {
    height: 120px;
    width: 120px;
    cursor: pointer;
    opacity: 100%;
    border: none;
    margin-left: 20px;
    box-shadow: 0 0 0 5px #FF6959;
    margin-bottom: 30px;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #3C4B5E;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.treemap-legend {
    border-radius: 0;
    width: 350px;
    max-width: 100%;
    height: auto;
}

.word-spacing {
    word-spacing: 180px;
}

.zz {
fill: #ff653e;
}

.github-corner-link {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    font-size: 28px;
    color: #FF6959;
}

.github-corner-link:hover {
    color: #FF6959;
    opacity: 0.8;
}

/* Mobile overrides — kept last in the file so they win the cascade
   against same-specificity rules declared earlier (e.g. article,
   .treemap-button, .word-spacing), regardless of the @media condition. */
@media (max-width: 600px) {
    article {
        width: 97%;
        padding: 0 0.25rem;
    }

    .treemap-button,
    .treemap-button-active {
        width: 90px;
        height: 90px;
        margin-left: 8px;
    }

    .word-spacing {
        word-spacing: normal;
    }

    .big-heading {
        font-size: 4.5rem;
    }
}


