html {
    width: 100%;
    height: 100%;
}

body {
    font-size: 13px;
    line-height: 19px;
    font-family: 'Rubik';
    background: #fff;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}


/* architecture */

#scroller {
    position: relative;
    width: 100%;
}


#story {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loaded #story, .loaded #infographic {
    opacity: 1;
}

.chapter {
    position: absolute;
    width: 200px;
    left: 60px;
}

.fixed-chapter {
    left: 60px;
    width: 200px;
}

#infographic {
    width: calc(100% - 200px);
    height: 100%;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(146,131,113,0.8);
}

.intro {
    position: fixed;
    left: 0;
    top: 180px;
}

#topbar {
    position: fixed;
    left: 0;
    top: 0;
    padding: 30px 60px;
    width: 100%;
    height: 150px;
    background: #fff;
    z-index: 10000;
    box-shadow: 0 3px 3px rgba(0,0,0,0.2);
    transition: all 0.5s ease;
}

h1 {
    font-size: 45px;
    line-height: 45px;
    margin: 0;
    font-weight: 400;
    transition: all 0.5s ease;
}

.branding {
    transition: all 0.5s ease;
    display: inline-block;
}

.active #topbar {
    height: 50px;
    padding: 10px 60px;
}

.active #topbar h1 {
    font-size: 15px;
    line-height: 15px;
}


/* content */

.content {
    padding: 200px 60px 60px 60px;
}

.content a {
    color: #000;
}

.content .content-footer {
    margin-top: 50px;
}

.col {
    width: 200px;
    display: inline-block;
    float: left;
    margin-right: 40px;
    padding-bottom: 60px;
}

.col p:first-child {
    margin-top: 0;
}

.col img {
    max-width: 100%;
    display: block;
    padding: 20px 0 10px 0;
}



/* menu */

#hamburger {
    display: none;
}

#topbar a h1 {
    color: #000;
}

#topbar a {
    text-decoration: none;
    color: #000;
}

.menu {
    float: right;
    display: inline-block;
    vertical-align: top;
    margin-top: 40px;
    transition: all 0.5s ease;
}

.active .menu {
    margin-top: 4px;
}

a.menu-button, .link {
    border: 0.5px solid #000;
    padding: 8px 16px;
    margin-right: 8px;
    text-decoration: none;
    transition: padding 0.5s ease;
}

a.menu-button:hover, a.menu-button.active-button, .link:hover {
    background: #000;
    color: #fff!important;
}

.active a.menu-button {
    padding: 3px 16px;
}


/* elements */

.continue-line {
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
    margin: 10px 0;
    position: relative;
}

.continue-line:after {
    position: absolute;
    left: calc(50% - 11px);
    bottom: -28px;
    width: 22px;
    height: 12px;
    background-image: url('../images/continue.svg');
    content: '';
}

.link-container {
    margin-top: 20px;
}

.link {
    margin-left: -6px;
    border-bottom: 0.5px solid #000;
    padding: 6px;
    display: inline-block;
    cursor: pointer;
}

.roll {
    display: none;
}


/* bouncer */

.scroll-trigger {
    margin-top: 60px;
    animation: bounce 3s infinite;
    transition: opacity 0.5s ease;
    position: relative;
    opacity: 1;
}

.active .scroll-trigger {
    opacity: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-12px);
    }
    60% {
        transform: translateY(-5px);
    }
}









/* canvas */

.label polyline {
    stroke: #333;
    stroke-width: 1px;
    fill: none;
}


.label {
    fill: #fff;
}

.lightlabel {
    fill: #999999;
}





/* graph */

.graph-axis-line,
.arrowhead,
.filter-label-box rect,
.filter-label-box line,
.filter-label-box polyline
{
    stroke: #aaa;
    stroke-width: 1px;
    fill: none;
}

.graph-label {
    fill: #000;
    stroke: none;
}

.graph-top-bar {
    stroke: #000;
    stroke-width: 6px;
}

.graph-header-text {
    font-size: 24px;
    line-height: 28px;
}

.checkbox {
    fill: #fff;
    stroke-width: 2px;
    cursor: pointer;
}

.checkbox-check {
    stroke: #000;
    stroke-width: 1px;
    cursor: pointer;
}

.sidestream-bar line {
    stroke: #000;
    stroke-width: 4px;
}

/* valorisations */


.valorisation {
    cursor: pointer;
    transition: all 0.5s ease;
}

.valorisation-sub-element {
    transition: all 0.5s ease;
}



/* legend */

.legend {
    margin: 20px 0;
}

.legend-header {
    border-bottom: 0.5px solid #333;
    padding: 0 4px 2px 4px;
    margin: 0 -4px 4px -4px;
}

.legend-set {
    margin-bottom: 10px;
}

.legend-button {
    cursor: pointer;
    margin: -2px 0 -2px -4px;
    padding: 2px 4px;
    color: #B9B9B9;
}

.legend-button rect {
    fill: transparent;
}






/* popup */

.valorisation-popup, .disclaimer {
    position: fixed;
    left: 120px;
    top: 80px;
    height: calc(100% - 160px);
    width: 740px;
    max-width: calc(100% - 240px);
    background: #fff;
    z-index: 10000;
    display: none;
    transition: top 0.35s ease;
}



.disclaimer {
    max-width: 400px;
    height: auto;
    padding: 40px;
}

.disclaimer a {
    color: #000;
}

.valorisation-container {
    overflow: auto;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.valorisation-head {
    padding-bottom: 20px;
    max-width: calc(100% - 40px);
    border-bottom: 0.5px solid #000;
}

h2 {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    margin: 0;
}

.valorisation-body {
}

.valorisation-text {
    width: 200px;
    margin-right: 40px;
    float: left;
    padding-top: 12px;
}

.external-link {
    padding: 36px 0;
}

.external-link a {
    color: #000;
}

.valorisation-image {
    width: 400px;
    float: left;
}

.valorisation-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.close-button {
    position:absolute;
    right: 20px;
    top: 16px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-align: center;
    padding-top: 2px;
    font-weight: 400;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
}

.close-button:hover {
    background: #ddd;
}

.valorisation-popup h2 {
    font-size: 28px;
}



@media (max-width: 1024px) {

    body {
        font-size: 11px;
        line-height: 16px;
    }

    .chapter {
        left: 30px;
        width: 130px;
    }

    .fixed-chapter {
        left: 30px;
        width: 130px;
    }

    #infographic {
        width: calc(100% - 100px);
    }

    #topbar {
        padding: 20px 30px;
        height: 140px;
    }

    /* 0.5px borders don't render on tablet */

    a.menu-button, .link {
        border: 1px solid #000;
    }

    .valorisation-head {
        border-bottom: 1px solid #000;
    }

}



@media (max-width: 768px) {

    /* topbar */

    h1 {
        font-size: 40px;
        line-height: 40px;
    }

    /* popup */

    .valorisation-image, .valorisation-text {
        width: 100%;
        float: none;
    }

}

@media (max-width: 700px) {

    #infographic {
        width: 100%;
    }



    /* menu */

    #hamburger {
        display: block;
        position: fixed;
        right: 20px;
        top: 28px;
        width: 30px;
        height: 24px;
        border: 1px solid #000;
        padding: 2px 4px;
        transition: all 0.5s ease;
        cursor: pointer;
    }

    .hamburger-open #hamburger, #hamburger:hover {
        background: #fff;
    }

    .active #hamburger {
        top: 8px;
    }

    .burger {
        height: 1px;
        border-bottom: 1px solid #000;
        margin: 4px 0;
    }

    .menu {
        position: fixed;
        right: 20px;
        top: 51px;
        background: #fff;
        border: 1px solid #000;
        padding: 0;
        z-index: 10000000;
        margin: 0;
        display: none;
    }

    .active .menu {
        top: 27px;
    }

    a.menu-button {
        display: block;
        margin: 0;
        border: 0;
        border-bottom: 1px solid #000;
    }

    a.menu-button:last-child {
        border-bottom: 0
    }



    /* elements */

    .scroll-trigger {
        margin-top: 10px;
        text-align: center;
    }

    .continue-line {
        margin: 0;
        padding-bottom: 4px;
        border: 0;
    }

    .continue-line::after {
        bottom: -16px;

    }



    /* story */

    #story {
        position: fixed;
        left: 0;
        top: 80px;
        width: 100%;
        height: 170px;
        overflow: hidden;
        background: #fff;
        z-index: 1000;
        border-bottom: 1px solid #000;
        transition: top 0.5s ease;
    }

    .active #story {
        top: 40px;
    }

    .chapter {
        left: 0;
        padding: 10px 20px;
        width: 100%;
        background: #fff;
        border-top: 1px solid #000;
        min-height: 100%;
    }


    /* infographic */

    .filter-sidestreams,
    .sidestream-label,
    .graph-header line
    {
        display: none;
    }

    .graph-header-text {
        font-size: 15px;
    }

    .graph-header-sub {
        font-size: 9px;
    }



    /* legend */

    .legend {
        margin: 0;
    }

    .legend-set {
        margin: 0;
    }

    .legend-header {
        display: none;
    }

    .legend-children, .legend-button {
        display: inline-block;
    }

    .legend-button {
        margin-right: 2px;
    }

    .disclaimer-link {
        border: 0;
        border-bottom: 1px solid #000;
    }



    /* topbar */

    #topbar {
        background: #eee;
    }

    #topbar {
        padding: 20px 20px;
        height: 80px;
    }

    h1 {
        font-size: 20px;
        line-height: 20px;
    }

    .branding {
        width: 200px;
    }

    .active #topbar {
        height: 40px;
        padding: 10px 20px;
    }

    .active #topbar h1 {
        font-size: 10px;
        line-height: 10px;
    }



    /* popup */

    .valorisation-popup, .disclaimer {
        position: fixed;
        left: 0;
        top: 210px;
        height: calc(100% - 210px);
        width: 100%;
        max-width: 100%;
        background: #eee;
        z-index: 10000;
        display: block;
        box-shadow: 0 -3px 3px rgba(0,0,0,0.2);
    }

    .disclaimer {
        padding: 20px;
    }

    .valorisation-container {
        padding: 20px;
    }

    .valorisation-popup.hidden, .disclaimer.hidden {
        top: 100%;
    }

    .close-button:hover {
        background: #fff;
    }



    /* pages */

    .content {
        padding: 100px 20px 20px;
    }

    .col {
        float: none;
        width: 100%;
        margin: 0;
    }

}