/* CSS Document */
html {
    height: 100%;
    font-size: 1rem;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

@media (min-width: 300px) {
    html {
        font-size: 0.7rem;
    }

    .right-wrapper {
        height: 75vh;
    }

    div .cover-page {
        background-image: linear-gradient(rgba(15, 160, 245, 0.25), rgba(15, 160, 245, 0.35), rgba(255, 255, 255, 1)), url("cover-image.jpg");
    }

    .cp-text-wrapper {
        width: 90%;
    }

    .right-wrapper {
        height: 50vh;
        padding: 0;
    }

    .left-wrapper {
        width: 100vw;
    }

    .row {
        width: 100vw;
    }

    .section, .section-last {
        display: flex;
        justify-content: flex-end;
        flex-direction: column;
        align-content: flex-end;
    }

    .section-content {
        background-color: rgba(255, 255, 255, 0.75);
    }

    #legend-wrap {
        height: 18%;
        margin: 0px;
    }

    #map-wrap {
        height: 82%;
        max-height: 82%;
        width: 100%;
        margin: 0;
    }

    #title {
        font-size: 10pt;
    }

    #zoom-wrap {
        display: none;
    }

}

@media (min-width: 768px) {
    html {
        font-size: 0.5rem;
    }

    div .cover-page {
        background-image: linear-gradient(rgba(255, 215, 71, 0.25), rgba(255, 215, 71, 0.35), rgba(255, 255, 255, 1)), url("cover-image.jpg");
    }

    .cp-text-wrapper {
        width: 600px;
    }

    .right-wrapper {
        height: 100vh;
    }

    .left-wrapper {
        width: auto;
    }

    .row {
        width: auto;
    }

    .section, .section-last {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-content: flex-start;
    }

    .right-wrapper {
        height: 100vh;
        padding: 0;
    }

    #legend-wrap {
        height: 12%;
        margin: 20px;
    }

    #map-wrap {
        background-color: white;
        height: 88%;
        width: 100%;
        max-height: 88%;
        padding: 0;
    }

    #title {
        font-size: 10pt;
    }

    #zoom-wrap {
        display: flex;
        position: absolute;
        height: 100px;
        width: 50px;
        margin-left: 25px;
        margin-top: 25px;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 0.8rem;
    }

    div .cover-page {
        background-image: linear-gradient(rgba(255, 215, 71, 0.25), rgba(255, 215, 71, 0.35), rgba(255, 255, 255, 1)), url("cover-image.jpg");
    }

    .cp-text-wrapper {
        width: 600px;
    }

    .right-wrapper {
        height: 100vh;
    }

    .left-wrapper {
        width: auto;
    }

    .row {
        width: auto;
    }

    .section, .section-last {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-content: flex-start;
    }

    .right-wrapper {
        height: 100vh;
        padding: 0;
    }

    #legend-wrap {
        height: 12%;
        margin: 20px;
    }

    #map-wrap {
        background-color: white;
        height: 88%;
        width: 100%;
        max-height: 88%;
        padding: 0;
    }

    #title {
        font-size: 20pt;
    }

    #zoom-wrap {
        display: block;
        position: absolute;
        height: 100px;
        width: 50px;
        margin-left: 25px;
        margin-top: 25px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 0.95rem;
    }

    div .cover-page {
        background-image: linear-gradient(rgba(235, 80, 40, 0.25), rgba(235, 80, 40, 0.35), rgba(255, 255, 255, 1)), url("cover-image.jpg");
    }

    .cp-text-wrapper {
        width: 800px;
    }

    .left-wrapper {
        width: auto;
    }

    .row {
        width: auto;
    }

    .section, .section-last {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-content: flex-start;
    }

    .right-wrapper {
        height: 100vh;
        padding: 0;
    }

    #legend-wrap {
        height: 12%;
        margin: 20px;
    }

    #map-wrap {
        background-color: white;
        height: 88%;
        width: 100%;
        max-height: 88%;
        padding: 0;
    }

    #title {
        font-size: 20pt;
    }

    #zoom-wrap {
        display: block;
        position: absolute;
        height: 100px;
        width: 50px;
        margin-left: 25px;
        margin-top: 25px;
    }
}

@media (min-width: 2000px) {
    html {
        font-size: 1.6rem;
    }

    div .cover-page {
        background-image: linear-gradient(rgba(235, 80, 40, 0.25), rgba(235, 80, 40, 0.35), rgba(255, 255, 255, 1)), url("cover-image.jpg");
    }

    .cp-text-wrapper {
        width: 1000px;
    }

    .left-wrapper {
        width: auto;
    }

    .row {
        width: auto;
    }

    .section, .section-last {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-content: flex-start;
    }

    .right-wrapper {
        height: 100vh;
        padding: 0;
    }

    #legend-wrap {
        height: 12%;
        margin: 20px;
    }

    #map-wrap {
        background-color: white;
        height: 88%;
        width: 100%;
        max-height: 88%;
        padding: 15px;
        margin: 0;
        position: relative;
    }

    #title {
        font-size: 20pt;
    }

    #zoom-wrap {
        display: block;
        position: absolute;
        height: 100px;
        width: 50px;
        margin-left: 25px;
        margin-top: 25px;
    }
}


body {
    min-width: 400px;
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Pragati Narrow', sans-serif;
    background-color: white;
}

h1 {
    font-family: "News Cycle", serif;
    font-weight: 700;
}

.row-fluid {
    height: inherit;
    width: 100vw;
}

.container {
    max-width: 100vw;
    height: 100%;
    min-height: 100%;
    padding: 0;
    margin: 0;
}

div .cover-page {
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    display: flex;
    align-content: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-clip: content-box;
    overflow: hidden;
}

.cp-text-wrapper {
    margin: auto;
    display: inline-block;
    text-align: center;
}

.cp-title {
    margin: auto;
    font-weight: 700;
    font-family: "News Cycle", serif;
    color: white;
    text-shadow: 5px 3px 5px rgba(0, 0, 0, 0.3);
}

.cp-explanation {
    color: white;
    text-align: justify;
    text-align-last: center;
}

#graph {
    position: sticky;
    top: 0px;
    float: right;
}


#zoom-wrap {
    position: absolute;
    height: 100px;
    width: 50px;
    margin-left: 25px;
    margin-top: 25px;
}

#zoom-wrap > button {
    font-size: 1.3rem;
    font-family: sans-serif;
    font-weight: 700;
    width: 40px;
    height: 40px;
}

.section {
    height: 100vh;
    min-width: 200px;
}

.section-last {
    height: 98vh;
}

.title-content-sep {
    height: 10%;
}

/*Adapted from: http://bl.ocks.org/d3noob/a22c42db65eb00d4e369*/
div.tooltip {
    position: absolute;
    text-align: center;
    /*    width: 60px;
        height: 28px;	*/
    padding: 5px;
    font-size: 12px;
    font-family: 'Pragati Narrow', sans-serif;
    background: #A8A8A8;
    border: 0px;
    border-radius: 15px;
    pointer-events: none;
}

.check {
    height: 30px;
    width: 30px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 0;
}

.source {
    text-align: right;
    position: absolute;
    right: 40px;
    bottom: 15px;
}

.credits {
}