﻿/*Redirect IE11 users*/
@supports(display:grid) {
    #old-browser {
        display: none;
    }
}


/*Typography*/
h1, h2, h3, h4, h5, p, span {
    font-family: 'Open Sans', sans-serif;
}

.bold {
    font-weight: 800;
}

.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}

.purple1 {
    color: #8A1B61;
}

.steel {
    color: #425563;
}

.green1 {
    color: #949300;
}

.blue1 {
    color: #236192;
}

.blue3 {
    color: #00AEC7;
}

.yellow1 {
    color: #FFA300;
}

.orange {
    color: #F06400;
}


#mobileCTA {
    background-color: #00aec7;
    color: #fff !important;
    transition: background .5s,color .5s,border .5s;
    cursor: pointer;
    border-radius: 0;
    font-weight: 700;
    width: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 15px;
    padding-bottom: 15px;
}

@media (min-width: 768px) {
    #mobileCTA{
        bottom:20px;
        left:auto;
        right:20px;
    }
}

/*Containers*/
.section {
    height: 100vh;
    /*border:1px dashed grey;*/
    visibility: hidden;
}

@media only screen and (min-device-width : 375px) and (max-device-width : 736px) and (orientation : landscape) {
    .section {
        height: auto;
        border: 2px dashed grey;
        visibility: hidden;
    }
}

/*Some sections can't fit all info on 100vh on mobile. This is what we use for those cases*/
.section-flexible {
    height: auto;
}

@media (min-width: 992px) {
    .section-flexible {
        height: 100vh;
    }
}

.auto-height{
    height:auto !important;
}

.container-outter {
    background: #236192;
    overflow: hidden;
}

#covid-background {
    position: fixed;
    right: 0;
    height: 37%;
}

@media (min-width: 992px) {
    #covid-background {
        height: 80%;
    }
}

#clock-background {
    position: fixed;
    right: 25px;
    height: 37%;
}

@media (min-width: 992px) {
    #clock-background {
        height: 80%;
    }
}


/*Space between section 3 and 4 because section 3 has so much content*/
@media (min-width: 992px) {
    #space-maker {
        height: 200px;
    }
}

/*intro*/
#intro-logo {
    max-width: 175px;
    width: 100%;
}

.yellow-card {
    background: #FFA300;
    height: 100px;
    width: 75%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.18);
}

@media (min-width: 992px) {
    .yellow-card {
        height: 115px;
        max-width: 400px;
    }

    .intro > .yellow-card:nth-child(even) {
        margin-left: 175px;
    }

    .intro > .yellow-card:nth-child(odd) {
        margin-right: 175px;
    }

    .yellow-card-triangle-left {
        width: 0;
        height: 0;
        border-top: 25px solid transparent;
        border-bottom: 25px solid transparent;
        border-right: 25px solid #FFA300;
        position: absolute;
        left: 0;
        top: 31px;
        transform: translateX(-100%);
    }

    .yellow-card-triangle-right {
        width: 0;
        height: 0;
        border-top: 25px solid transparent;
        border-bottom: 25px solid transparent;
        border-left: 25px solid #FFA300;
        position: absolute;
        right: 0;
        top: 31px;
        transform: translateX(100%);
    }
}


/*Finding 1*/
#chart-container {
    position: relative;
    width: 100%;
}

    #chart-container > div {
        height: 65px;
        background: #8A1B61;
        position: relative;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.18);
    }

#chart-2011 {
    width: 85%;
}

#chart-2014 {
    width: 65%;
}

#chart-2017 {
    width: 55%;
}

#chart-2020 {
    width: 35%;
}

#chart-tooltip {
    position: absolute;
    height: 85px;
    width: 175px;
    right: 0;
    background: #FFA300;
    transform: translateX(108%);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.18);
}

#chart-tooltip-triangle {
}

@media (min-width: 992px) {
    #chart-tooltip {
        height: 75px;
        width: 215px;
        transform: translateX(115%)
    }

    #chart-tooltip-triangle {
        width: 0;
        height: 0;
        border-top: 25px solid transparent;
        border-bottom: 25px solid transparent;
        border-right: 25px solid #FFA300;
        position: absolute;
        left: 10px;
        top: 15px;
        transform: translateX(-100%);
    }
}

#finding1-takeaway-img {
    width: 100%;
    max-width: 85px;
}

@media (min-width: 992px) {
    #finding1-takeaway-text {
        width: 50%;
    }
}

/*finding 2*/
.finding2-stats {
    height: 75px;
    width: 75px;
}

#finding2-takeaway-img {
    width: 100%;
    max-width: 200px;
}

@media (min-width: 992px) {
    #finding2-takeaway-text {
        width: 50%;
    }
}

/*Finding 3*/

.finding3-label-container {
    width: 20%
}

@media (min-width: 992px) {
    .finding3-label-container {
        width: 10%
    }
}

#chart-precovid {
    background: #949300;
    height: 65px;
    width: 28%;
}

#chart-during-crisis {
    background: #8A1B61;
    height: 65px;
    width: 36%;
}

#chart-new-normal {
    background: #F06400;
    height: 65px;
    width: 40%;
}

#finding3-takeaway-img {
    width: 100%;
    max-width: 200px;
}

@media (min-width: 992px) {
    #finding3-takeaway-text {
        width: 50%;
    }
}

/*Finding 4*/
#stepping-up-chart {
    width: 100%;
    max-width: 450px;
}

#finding4-takeaway-img {
    width: 100%;
    max-width: 120px;
}

@media (min-width: 992px) {
    #finding4-takeaway-text {
        width: 50%;
    }
}

#finding4-tooltip {
    background: #FFA300;
    height: 100px;
    width: 320px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.18);
    position: relative;
}

#finding4-tooltip-triangle {
    width: 0;
    height: 0;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    border-right: 35px solid #FFA300;
    position: absolute;
    left: 10px;
    top: 15px;
    transform: translateX(-100%);
}

/*Finding 5*/
#thumbs-down {
    max-height: 200px;
}

#badge-check {
    max-height: 200px;
}

/*Outtro*/
.outtro {
    position: relative;
}

#copy-right {

}

@media (min-width: 992px) {
    #copy-right {
        position: absolute;
        bottom: 10px;
        left: 10px;
    }
}

#svg-globe {
    display: none;
}

@media (min-width: 992px) {
    #svg-globe {
        display: block;
        position: absolute;
        height: 800px;
        bottom: -299px;
        opacity: .35;
        z-index: 1;
    }
}


.two-z {
    z-index: 2;
}
