html,
body {
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
}

* {
    box-sizing: border-box;
}

.container {
    padding: 0;
    margin: 80px 0px 0px 0px;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
}

.progress {
    position: relative;
    flex: 0 0 auto;
    width: 100vw;
    height: 100px;
}

.progress .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100px;
    background: rgb(245, 240, 240);
    clip-path: url(#progress-clip);
    -webkit-clip-path: url(#progress-clip);
}

.progress .accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 0vw;
    height: 100px;
    clip-path: url(#progress-clip);
    -webkit-clip-path: url(#progress-clip);
    transition: width 0.5s ease-in-out;
}

.question-space {
    flex: 1 1 auto;
    width: 100%;
    /* overflow-x: hidden;
    overflow-y: scroll; */

    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
}

.question-space > * {
    flex: 0 1 auto;
    width: 28%;
    height: auto;
    object-fit: contain;
}

.mascot {
    height: 80vh;
}

.question {
    font-family: 'Kanit';
    height: 80vh;
    padding: 10px 0px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.question > .instruction {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.question > .instruction > * {
    text-decoration: none;
    color: inherit;
}

.question > .instruction > h2 {
    margin: 0px 0px;
}

.question > .task {
    width: 100%;
    min-height: 100px;
    border-width: 0px;
    border-radius: 10px;
    background-color: #f8f8f8;
    padding: 10px;

    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.question > .subtask {
}

.question > .mcq {
    padding: 0.5rem 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.question > hr {
    width: 100%;
    border-width: 0px;
    border-top: solid 1px #454545;
}

.question > #next-button {
    font-family: 'Kanit';
    margin-top: 20px;
    width: 80%;
    font-size: 30px;
    height: 50px;
    border-radius: 30px;
}

@media screen and (max-width: 650px) {
    .container {
        padding: 0;
        padding-top: 20px;
        margin: 0;
        height: calc(100vh - 100px);
    }
    .question-space {
        flex-flow: column nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .mascot {
        display: none;
    }

    .question-space > * {
        flex: 1 1 auto;
        width: 95%;
    }

    .question {
        padding: 10px 0px;
        justify-content: flex-start;
    }

    .progress {
        position: fixed;
        width: 100vw;
        height: 100px;
        bottom: 0;
        left: 0;
    }

    .question > #next-button {
        margin-top: 0px;
    }
}
