@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.woff2') format('woff2'),
    url('../fonts/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.woff2') format('woff2'),
    url('../fonts/Montserrat-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Black.woff2') format('woff2'),
    url('../fonts/Montserrat-Black.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    background: #fff;
    margin: 0;
    padding: 20px 0 0 0;
    font-family: 'Montserrat';
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    min-height: calc(100vh - 170px);
    position: relative;
}

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

h1 {
    font-family: 'Montserrat';
    font-size: 30px;
    line-height: 40px;
    text-align: left;
    margin: 0 0 16px 0;
    padding: 0;
    font-weight: 500;
}

p {
    margin: 0 0 24px 0;
}

button, a.button {
    background: #16697a;
    border: 1px solid #16697a;
    border-radius: 10px;
    padding: 8px 28px;
    margin: 0 auto 21px auto;
    color: #fff;
    font-family: 'Montserrat';
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
    display: inline-block;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
}

a.button.reversed {
    background: #fff;
    color: #16697a;
}

a.button:last-of-type {
    margin: 0 auto;
}

img#background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    opacity: 0.4;
}

.home img#background {
    opacity: 1;
}

input[type='text'] {
    border: 1px solid #16697a;
    border-radius: 5px;
    background: #fff;
    padding: 5px;
    width: 300px;
    font-size: 14px;
    line-height: 21px;
    font-family: 'Montserrat';
    font-weight: 300;
}

input[type='range'] {
    -webkit-appearance: none;
    margin-top: 10px;
    width: 312px;
    height: 15px;
    border-radius: 5px;
    background: #cecece;
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #16697a;
    cursor: pointer;
}

input[type='range']::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #16697a;
    cursor: pointer;
}

section#message, section#page, section#question {
    background: #ede7e3;
    width: 680px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 10px 20px 20px rgba(0, 0, 0, 0.7);
    margin: 0 auto 30px auto;
    position: relative;
}

section#message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 540px;
    text-align: center;
}

section#question img.question {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0 0 21px 0;
}

section#message h1 {
    font-size: 50px;
    line-height: 60px;
    text-align: center;
}

section#page div#text {
    width: 500px;
    float: left;
}

section#page div#image {
    width: 400px;
    float: right;
}

section#page::after {
    clear: both;
    display: block;
    content: " ";
    height: 0;
    overflow: hidden;
}

span.pause {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: url('../img/pause.png') no-repeat center center;
    background-size: 100%;
    cursor: pointer;
}

aside#language {
    background: #ede7e3;
    position: fixed;
    top: 0;
    right: 0;
    border-bottom-left-radius: 20px;
    padding: 10px;
    box-shadow: -10px 20px 20px rgba(0, 0, 0, 0.3);
}

aside#language img#active {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 20px;
}

aside#language ul {
    list-style-type: none;
    position: fixed;
    top: 20px;
    right: 25px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #16697a;
    display: none;
    margin: 0;
    line-height: 30px;
    z-index: 100;
}

aside#language ul.active {
    display: block;
}

aside#language ul li img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    vertical-align: middle;
    margin: 0 5px 0 0;
}

aside#language ul li a {
    text-decoration: none;
}

aside#menu {
    background: #ede7e3;
    position: fixed;
    top: 0;
    left: 0;
    border-bottom-right-radius: 20px;
    padding: 10px;
    box-shadow: -10px 20px 20px rgba(0, 0, 0, 0.3);
}

aside#menu img.icon {
    height: 20px;
    display: block;
    cursor: pointer;
}

aside#menu img.close {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 20px;
    z-index: 12;
    cursor: pointer;
}

aside#menu #menu_container {
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    padding: 60px 20px 20px 20px;
    margin: 0;
    display: none;
    z-index: 11;
    height: calc(100vh - 80px);
    max-width: 60vw;
    color: #fff;
}

aside#menu.active #menu_container {
    display: block;
}

aside#menu #menu_container ul {
    padding: 0;
    margin: 0;
    border-top: 1px solid #fff;
    list-style-type: none;
}

aside#menu.active ul {
    display: block;
}

aside#menu ul li {
    border-bottom: 1px solid #fff;
    padding: 3px 0;
    color: #fff;
    text-transform: uppercase;
}

aside#menu ul li a {
    color: #fff;
    text-decoration: none;
}

aside#menu #menu_container .info {
    text-align: center;
    position: absolute;
    bottom: 40px;
    width: calc(100% - 40px);
    font-size: 14px;
}

aside#menu #menu_container .info img{
    margin-top: 10px;
}

aside#overlay {
    background: rgba(0, 0, 0, 0.7);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 10;
}

aside#menu.active #overlay {
    display: block;
}

footer {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ede7e3;
    padding: 10px 20px;
    width: 280px;
    border-top-left-radius: 20px;
    text-align: center;
    font-weight: 300;
    box-shadow: -10px -20px 20px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

footer ul {
    list-style-type: none;
    margin: 0 0 10px 0;
    padding: 0;
}

section#question ul#answers {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

section#question ul#answers li {
    margin: 0 0 5px 0;
    display: table;
}

section#question ul#answers li button {
    background: transparent;
    color: #16697a;
    text-transform: uppercase;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #16697a;
    border-radius: 10px;
    display: table-cell;
    box-shadow: none;
    margin: 0 8px 0 0;
    cursor: pointer;
}

section#question ul#answers li label.answer {
    cursor: pointer;
    vertical-align: middle;
    display: table-cell;
}

section#question p.feedback {
    margin: 21px 0 0 0;
    font-weight: 500;
}

section#question p.buttons {
    margin: 21px 0 0 0;
    text-align: center;
}

section#question p.buttons a.button:nth-of-type(2n) {
    margin-left: 21px;
}

section#question p.feedback:empty, section#question p.buttons:empty {
    display: none;
}

section#question ul#answers li button:hover {
    background: #16697a;
    color: #ede7e3;
}

section#question ul#answers li span.answer {
    vertical-align: middle;
    line-height: 20px;
    display: table-cell;
}

footer img#logo_footer {
    margin: 6px 0 0 0;
}

.hidden {
    display: none;
}

@media only screen and (max-width: 1000px) {
    body {
        padding: 80px 0 0 0;
    }

    footer {
        position: relative;
        border-radius: 20px;
        margin: 40px auto 20px auto;
        box-shadow: 10px 20px 20px rgba(0, 0, 0, 0.7);
    }

    section#message, section#page, section#question {
        width: calc(100vw - 60px);
        padding: 20px;
    }

    section#message h1 {
        font-size: 30px;
        line-height: 40px;
    }

    section#question img.question {
        height: 150px;
    }

    aside#menu #menu_container .info {
        display: none;
    }

    span.pause {
        width: 40px;
        height: 40px;
    }
}
