:root {
    --background: rgb(234, 234, 238);
    --text: rgb(41, 33, 77);
    --siteFont: roboto-light;
    --bold: roboto-bold
}

@font-face {
    font-family: roboto-light;
    font-display: swap;
    unicode-range: U+000-5FF;
    src: local(roboto-light), url(assets/fonts/Roboto/Roboto-Light.woff) format('woff');
}

@font-face {
    font-family: roboto-bold;
    font-display: swap;
    unicode-range: U+000-5FF;
    src: local(roboto-medium), url(assets/fonts/Roboto/Roboto-Medium.woff) format('woff');
}

html,
body {
    margin: 0;
    padding: 0
}

html {
    position: relative;
    min-height: 100%
}

body {
    background-color: var(--background);
    font-family: var(--siteFont);
    font-size: 1.8em;
    color: var(--text);
    font-weight: 300
}

main {
    margin-left: 5%;
    margin-right: 5%
}

img {
    max-width: 100%;
    height: auto;
}

h3 {
    font-weight: 300;
}

header,
footer {
    display: flex;
    width: 100%;
}

header {
    margin-bottom: 4%;
}

.language {
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--bold);
    font-size: 0.6em;
    text-align: center;
    background-color: rgba(234, 234, 238, 0.6);
    padding: 5px;
    border-bottom-left-radius: 28px;
}

.title-img {
    position: absolute;
    width: 80%;
    top: 0;
    left: 50%;
    transform: translatex(-50%)
}


.title-img,
.slideshow,
.auto {
    display: block;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5%
}


.slideshow {
    width: 75%
}

.auto {
    width: 40%
}

.slide-container {
    position: relative
}

.text-main {
    line-height: 1.2em
}

.display-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0%, -50%);
    -ms-transform: translate(-0%, -50%)
}

.display-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0%, -50%);
    -ms-transform: translate(0%, -50%)
}

.slide-button {
    border: none;
    display: inline-block;
    padding: 8px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    background-color: rgba(234, 234, 238, 0.5);
    text-align: center;
    font-size: 1.6em;
    cursor: pointer;
    white-space: nowrap
}

.audio-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 5%;
    margin-bottom: 2.5%
}

.audio-button {
    display: inline-flex;
    width: 80%;
    cursor: pointer;
    transform: translatex(10%);
}

.audio-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em
}

.video-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    padding-top: 25%
}

.vid-iframe {
    position: absolute;
    top: 0;
    width: 32%;
    height: 100%;
    border: 0
}

#vid-01 {
    left: 0
}

#vid-02 {
    left: 50%;
    transform: translate(-50%, 0%)
}

#vid-03 {
    right: 0
}

figure {
    width: 90%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%
}

figcaption {
    text-align: right;
    font-size: 0.8em;
    margin-bottom: 5%
}

.pdf-container {
    display: flex;
    justify-content: space-between;
    margin-top: 7.5%;
    width: 100%
}

.pdf-button {
    display: inline-flex;
    width: 90%
}


.button-text {
    font-size: 0.8em;
    margin-bottom: 7.5%;
    text-align: center
}

.small-text {
    font-size: 0.8em;
    font-weight: 300;
    width: 60%
}

.funders,
.contributors {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.7em;
    text-align: center
}

.funders {
    width: 20%
}

.contributors {
    width: 80%
}

b {
    font-family: var(--bold)
}

.quote {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    width: 90%;
    margin-bottom: 7.5%
}

.quote-source {
    font-size: 0.8em;
    font-style: normal;
    float: inline-end
}

.credits {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: white;
    padding-bottom: 15px;
    margin-bottom: 10px
}

.footer {
    flex-direction: column;
}


@media (max-width:768px) {
    body {
        font-size: 1em
    }

    .display-left {
        left: 0
    }

    .display-right {
        right: 0
    }

    .auto {
        width: 60%
    }

    .audio-button {
        width: 70%;
        transform: translatex(20%)
    }

    .audio-text {
        font-size: 0.7em;
        text-align: center
    }

    .vidWrapper {
        padding-top: 0;

    }

    .vid-iframe {
        width: 100%;
        margin-top: 5%
    }

    #vid-01,
    #vid-02,
    #vid-03 {
        left: 0;
        transform: translate(0%, 0%);
        position: relative
    }

    figcaption {
        font-size: 0.7em;
        text-align: center
    }

    .button-text {
        margin-left: 0;
        font-size: 0.7em;
        text-align: center
    }

    .pdf-container {
        margin-top: 15%
    }

    .quote-source {
        margin-bottom: 10%
    }

}