*, ::after, ::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    background-color: #fdfbf9;
}

#logo {
    position: fixed;
    bottom: 0;
    right: 5px;
    width: 70px;
    z-index: 10;
    padding: 15px;
}

#language{
    color: #985B39;
    position: fixed;
    right:5px;
    top: 5px;
    font-size: 18px;
    z-index: 10;
}

#language a{
    text-decoration: none;
    color: #985B39;
}

#language a:hover{
    text-decoration:underline;
    cursor:pointer;
    transition: all 0.5s ease;
}

a{
    color:#837552;
    text-decoration: underline;
}

a:hover{
    transition: all 0.3s ease;
    cursor: pointer;
    color:#837552;
    font-weight: 700;
}

#wrapper{
    -webkit-transition: transform 1s ease-in-out;
    transition: transform 1s ease-in-out;
}

.scroller {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: flex-start;
}
.scroll-graphic {
    grid-column: 2;
    position: -webkit-sticky;
    position: sticky;
    height: 100vh;
    top: 0;
}
.scroll-graphic .chart {
    height: 100vh
}
.scroll-scenes {
    grid-row: 1;
    grid-column: 1;
    align-items: center;
    justify-content: center;
}
.scene{
    height: auto;
    padding: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    min-height: 100vh;
}

.scene img{
    max-width: 350px;
    margin: 20px auto;
    display: block;
    width: 100%;
}
.scene p{
    font-size: 18px;
    text-align: justify;
    line-height: 28px;
}

#headerImg{
    display: block;
    max-width:100%;
    margin-left: auto;
    margin-right: auto;
}

#title{
    font-weight: 700;
    text-align: center;
}

#byline{
    font-size: 16px;
    text-align: center;
    margin: 10px auto 20px auto;
    color: #837552;
}

.toggle{
    background-color: #f3ede6;
    border-radius: 15px;
}

.toggle p{
    padding:10px;
    line-height: 24px;
    text-align: left;
    color:#555350;
}

.instruction{
    margin-top: -30px;
    padding:10px;
    text-align: left;
    color:#555350;
    font-weight: 700;
}

.button{
    padding:5px;
    border: 2px solid #8f5d3f;
    font-size: 14px;
    font-weight: 700;
    width:50px;
    border-radius: 20px;
}

.isActive{
    background-color: #8f5d3f;
}

.isActive a{
    color: white;
}

.isOff{
    background-color: white;
}

.isOff a{
    color: #8f5d3f;
}

.button:hover{
    background-color: #8f5d3f;
    transition: background-color 0.5s ease;
}

.button:hover a{
    cursor: pointer;
    color:white;
    transition: color 0.5s ease;
}

.button a{
    text-decoration: none;
}

.inline{
    display: inline-block;
}

.xAxis path{
    display:none;
}

.tick text{
    font-size:16px;
    fill: gray;
    font-family: 'Source Sans Pro', sans-serif;
}

.tick line{
    stroke: gray;
}


@media only screen and (max-width: 900px) {

    .scroller {
        grid-template-columns: 1fr;
        grid-template-rows: 2fr;
    }
    .scroll-scenes{
        grid-row:1;
        z-index: 2;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        border:none;

    }
    .scroll-graphic {
        grid-column: 1;
        grid-row:1;
        width: 100%;
        position: -webkit-sticky;
        position: sticky;
        height: 70vh;
        top: 0;
        transition: 1s ease-out;
    }

    svg{
        padding:20px;
    }

    .scene{
        margin-bottom: 100vh;
        background-color: rgba(255,255,255,0.85);
        border-radius: 15px;
        height: auto;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        min-height: 300px;
    }
}