@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:wght@400;500;700&family=Alegreya+Sans:wght@400;500;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    /* font-family: 'Alegreya Sans SC', sans-serif; */
}

body {
    background: #BDE5F8;
}

.quiz-container {
    display: none;
    
}
.quiz-container.active {
    display: flex;
    flex-direction: column;
    height: 110vh;
    /* top: 10px; */
    gap: 10px;
    padding-top: 10px;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 10px;
    background: linear-gradient(to bottom, #BDE5F8, #BCD2F7);
}

.challengeContainer {
    display: flex;
    height: 25vh;
    width: 0%;
}

.challenge {
    height: 25vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0px;
    background: #BCD2F7;
}

.challengeContent {
    max-width: 1000px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.challengeContent h1 {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Alegreya Sans SC', sans-serif;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.challengeContent p {
    font-size: 16px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.viewerContainer {
    /* max-width: 1500px; */
    width: 100%;
    /* margin: 0 auto;
    padding: 0 20px; */
}

.viewer {
    /* position: relative; */
    height: 100%;
    width: 100%;
    /* background: #BDE5F8;
    background-position: center;
    background-size: cover; */
    /* padding-bottom: 50px; */
    padding-top: 0px;
    /* margin-bottom: 50px; */
    /* top: 25vh; */
    opacity: 0;
}

.viewer.active {
    opacity: 1;
    /* top: -560px; */
    /* position: absolute; */
    /* top: 30%; */
    /* z-index: 200; */
}

.startButton {
    width: 150px;
    height: 55px;
    background: #E87531;
    border: 2px solid #E87531;
    outline: none;
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .3);
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
}

.challengeContent .startButton:hover {
    border: 2px solid #E87531;
    box-shadow: none;
}

.infoBox {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #444;
    border-radius: 6px;
    padding: 10px 25px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 200;
}

.infoBox.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.infoBox h2 {
    font-size: 24px;
    color: #fff;
}

.infoBox .infoList {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    border-top: 2px solid #BDE5F8;
}

.infoBox .infoList .info {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin: 4px 0;
}
.infoBox .infoList .info h3 {
    font-size: 16px;
    color: #fff;
}
.infoBox .infoList .info p {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    padding-left: 2px;
}

.infoBox .buttonGroup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #999;
    margin-top: 10px;
    padding: 15px 0 7px;
}

.infoBox .buttonGroup .infoButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 45px;
    background: #E87531;
    border: 2px solid #E87531;
    outline: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.5s;
}

.infoBox .buttonGroup .infoButton:nth-child(1) {
    background: transparent;
    border-color: #E87531;
    color: #fff;
}

.infoBox .buttonGroup .infoButton:nth-child(1):hover {
    background: #E87531;
    color: #333;
}

.infoBox .buttonGroup .infoButton:nth-child(2):hover {
    /* background: #91d7f8; */
    border-color: #91d7f8;
}

.questionBox {
    /* position: absolute; */
    width: 100%;
    top: 15%;
    left: 50%;
    /* transform: translate(-50%, -50%) scale(0.9); */
    background: #444;
    border-radius: 6px;
    padding: 10px 25px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    transition-delay: .25s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.questionBox.active {
    opacity: 1;
    pointer-events: auto;
    /* transform: translate(-50%, -50%) scale(1); */
    z-index: 200;
}

.quizHeader {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #BDE5F8;
}

.quizHeader h2 {
    font-size: 24px;
    color: #fff;
}
.quizHeader h3 {
    font-size: 24px;
    color: #fff;
}

.quizScoreContainer {
    display: flex;
    flex-direction: row;
    width: 50%;
    justify-content: space-between;
}

.headerScore {
    background: #BDE5F8;
    border-radius: 3px;
    padding: 7px;
    margin: 5px;
}

.headerTime {
    background: #BDE5F8;
    border-radius: 3px;
    padding: 7px;
    margin: 5px;
    width: 130px;
    align-items: center;
}

.headerScoreAI {
    background: #E87531;
    border-radius: 3px;
    padding: 7px;
    margin: 5px;
}

.headerTimeAI {
    background: #E87531;
    border-radius: 3px;
    padding: 7px;
    margin: 5px;
    width: 130px;
    align-items: center;
}
/* 
.questionBox h2 {
    font-size: 24px;
    color: #333;
} */

.questionBox .questionText {
    padding-top: 10px;
    font-size: 24px;
    color: #fff;
}

.questionBox .optionList {
    display: flex;
    /* flex-wrap: wrap; */
    list-style-type: none;
    padding: 5px;
    justify-content: space-around;
    height: 7vh;
    width: 100%;
}

.optionList .option {
    width: 45%;
    padding: 4px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 18px;
    margin: 5px 10px;
    cursor: pointer;
    transition: .3s;
    color: #fff;
}

.optionList .option:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.optionList .option.incorrect {
    color: #721c24;
    border-color: #721c24;
    background: #f8d7da;
}

.optionList .option.correct {
    background: #fff;
    color: #00a63d;
    border-color: #00a63d;
}

.optionList .option.disabled {
    pointer-events: none;
}

.quizFooter {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    border-top: 1px solid #BDE5F8;
    color: #999;
    font-weight: 200;
}

.questionTotal {
    color: #999;
    font-weight: 200;
}

.helpBox {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #444;
    border-radius: 6px;
    padding: 10px 25px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 200;
}

.helpBox.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.helpBoxBG {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(to bottom, #BDE5F8, #BCD2F7);
    border-radius: 6px;
    padding: 50px 55px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 200;
    width: 100%;
    height: 120%;
}
.helpBoxBG.active {
    opacity: 0.85;
    /* filter: blur(15px); */
    transform: translate(-50%, -50%) scale(1);
}
.helpGap {
    height: 50px;
}
.helpBox .infoList {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    border-top: 2px solid #BDE5F8;
}
.helpBox .infoList .info {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin: 4px 0;
}
.helpBox .infoList .info h3 {
    font-size: 16px;
    color: #fff;
}
.helpBox .infoList .info p {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    padding-left: 2px;
}

.helpBox .buttonGroup {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #999;
    margin-top: 10px;
    padding: 15px 0 7px;
}
.helpBox .buttonGroup .infoButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 45px;
    background: #E87531;
    border: 2px solid #E87531;
    outline: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.5s;
}

.helpBox .buttonGroup .infoButton:nth-child(1):hover {
    /* background: #91d7f8; */
    border-color: #91d7f8;
}
.nextButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 45px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);
    outline: none;
    border-radius: 6px;
    font-size: 16px;
    color: rgba(255, 255, 255, .3);
    cursor: pointer;
    pointer-events: none;
    transition: .5s;
}

.nextButton.active {
    pointer-events: auto;
    background: #E87531;
    border-color: #E87531;
    color: #fff;
}

.nextButton.active:hover {
    border-color: #BDE5F8;
}

.finishButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 45px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.1);
    outline: none;
    border-radius: 6px;
    font-size: 16px;
    color: rgba(255, 255, 255, .3);
    cursor: pointer;
    pointer-events: none;
    transition: .5s;
}

.finishButton.active {
    pointer-events: auto;
    background: #31E8E7;
    border-color: #31E8E7;
    color: #fff;
}

.finishButton.active:hover {
    border-color: #BDE5F8;
}


.resultBox {
    background: #444;
    border-radius: 6px;
    padding: 10px 25px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    transition-delay: .25s;
    /* height: 50vh; */
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.resultBox.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    /* transform: translate(-50%, -50%) scale(1); */
    z-index: 200;
    width: 60%;
    position: absolute;
    top: 30px;
    left: 20%;
    /* height: 100%; */
}

.resultBox .resultTitle {
    padding-top: 10px;
    font-size: 24px;
    color: #fff;
}

.resultContainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 20px;
}

.resultBox .resultList {
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* list-style-type: none; */
    padding: 10px;
    justify-content: space-around;
    height: 100%;
    width: 100%;
}

.resultList .option {
    width: 100%;
    padding: 4px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 18px;
    margin: 5px 10px;
    cursor: pointer;
    transition: .3s;
    color: #fff;
}
.resultList .scoreBoardMain {
    width: 100%;
    height: 100px;
    padding: 15px;
    background: #BDE5F8;
    border-radius: 10px;
    /* margin: 5px 10px; */
    transition: .3s;
    color: #444;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.sbText {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.sbTextSmall {
    font-size: 18px;
    color: #444;
}
.sbTextBig {
    font-size: 36px;
    color: #444;
}

#scoreBoardTitle {
    width: 100%;
    padding: 4px;
    background: #BDE5F8;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 16px;
    /* margin: 5px 10px; */
    cursor: pointer;
    transition: .3s;
    color: #333;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.resultList .scoreBoardTitle {
    width: 100%;
    padding: 4px;
    /* background: rgba(255, 255, 255, 0.2); */
    background: #444;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 16px;
    /* margin: 5px 10px; */
    cursor: pointer;
    transition: .3s;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.resultList .scoreBoardTitleAI {
    width: 100%;
    padding: 4px;
    background: #444;
    border: 2px solid #E87531;
    border-radius: 4px;
    font-size: 16px;
    /* margin: 5px 10px; */
    cursor: pointer;
    transition: .3s;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.resultList .scoreBoard {
    display: none;
    width: 100%;
    padding: 4px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 16px;
    margin: 5px 10px;
    cursor: pointer;
    transition: .3s;
    color: #fff;
    /* display: flex; */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.resultList .scoreBoard.correct {
    background: #fff;
    color: #00a63d;
    border-color: #00a63d;
}

.resultList .scoreBoard.incorrect {
    color: #721c24;
    border-color: #721c24;
    background: #f8d7da;
}

.rowScore {
    /* background: #BDE5F8; */
    /* border-radius: 3px; */
    padding: 1px;
    margin: 1px;
}

.rowTime {
    /* background: #BDE5F8; */
    /* border-radius: 3px; */
    padding: 1px;
    margin: 1px;
    width: 130px;
    align-items: center;
}

.optionList .option:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.optionList .option.incorrect {
    color: #721c24;
    border-color: #721c24;
    background: #f8d7da;
}

.optionList .option.correct {
    background: #fff;
    color: #00a63d;
    border-color: #00a63d;
}

.optionList .option.disabled {
    pointer-events: none;
}

.resultBox .inputList {
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* list-style-type: none; */
    padding: 10px;
    justify-content: space-around;
    height: 25vh;
    width: 100%;
}

.inputList .optionInput {
    width: 45%;
    padding: 4px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 18px;
    margin: 5px 10px;
    cursor: pointer;
    transition: .3s;
    color: #fff;
}

.formList {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding-bottom: 20px;
}

.formListTop {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
    /* height: 15vh; */
    width: 100%;
}

.formListBottom {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    justify-content: space-evenly;
    padding-left: 10px;
    padding-right: 10px;
    height: 25vh;
    width: 100%;
}

.labelText {
    font-size: 14px;
    margin-right: 20px;
    color: #fff;
}

.formInput {
    width: 18vw;
    padding: 4px;
    background: rgba(255, 255, 255, .7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 14px;
    margin: 5px 0px;
    cursor: pointer;
    transition: .3s;
    color: #fff;
}
.formInputLong {
    width: 55vw;
    padding: 4px;
    background: rgba(255, 255, 255, .7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 14px;
    margin: 5px 0px;
    cursor: pointer;
    transition: .3s;
    color: #fff;
}

.formInputShort {
    width: 6vw;
    padding: 4px;
    background: rgba(255, 255, 255, .7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 14px;
    margin: 5px 0px;
    cursor: pointer;
    transition: .3s;
    color: #fff;
}


.resultFooter {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    border-top: 1px solid #BDE5F8;
    color: #999;
    font-weight: 200;
}

.footerText {
    color: #999;
    font-weight: 200;
    font-size: 12px;
}

.submitButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 45px;
    background: #31E8E7;
    border: 2px solid #31E8E7;
    outline: none;
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: .5s;
}

.submitButton:hover {
    border-color: #BDE5F8;
}

.finishBox {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #444;
    border-radius: 6px;
    padding: 10px 25px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 200;
}

.finishBox.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.finishBox h2 {
    font-size: 24px;
    color: #fff;
}

.finishBox .infoList {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    border-top: 2px solid #BDE5F8;

}

.finishBox .infoList .info {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin: 4px 0;
}
.finishBox .infoList .info h3 {
    font-size: 16px;
    color: #fff;
}
.finishBox .infoList .info p {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    padding-left: 2px;
}

.finishBox .buttonGroup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #999;
    margin-top: 10px;
    padding: 15px 0 7px;
}

.finishBox .buttonGroup .infoButton {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 45px;
    background: #E87531;
    border: 2px solid #E87531;
    outline: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.5s;
}

.finishBox .buttonGroup .infoButton:nth-child(1) {
    background: transparent;
    border-color: #E87531;
    color: #fff;
}

.finishBox .buttonGroup .infoButton:nth-child(1):hover {
    background: #E87531;
    color: #333;
}

.finishBox .buttonGroup .infoButton:nth-child(2):hover {
    /* background: #91d7f8; */
    border-color: #91d7f8;
}


/* iPhone 15 Vertical */
@media (max-width: 786px) {
    .infoBox {
        top: 35%;
        width: 90vw;
    }
    .quiz-container.active {
        padding-top: 0px;
        padding-left: 0px;
        padding-right: 0px;
    }
    .questionBox {
        /* position: absolute; */
        width: 90vw;
        top: 0;
        margin-top: 0;
        align-items: flex-start;
        left: 0;
        transform: none;
        margin-left: 5%;
        margin-right: 5%;
        padding-top: 0;
    }
    .questionBox.active {
        transform: none;
    }
    .quizHeader {
        flex-direction: column-reverse;
        border-bottom: none;
    }
    .quizHeader h2 {
        font-size: 0px;
    }
    .quizHeader h3 {
        font-size: 20px;
    }
    .quizScoreContainer {
        justify-content: space-between;
        width: 90vw;
        font-size: 10px;
    }
    .headerScore {
        margin: 0;
        width: 25%;
        padding: 0px;
        border-radius: 0px;
    }
    .headerTime {
        margin: 0;
        width: 25%;
        padding: 0px;
        border-radius: 0px;
    }
    .headerScoreAI {
        margin: 0;
        width: 25%;
        padding: 0px;
        border-radius: 0px;
    }
    .headerTimeAI {
        margin: 0;
        width: 25%;
        padding: 0px;
        border-radius: 0px;
    }
    .questionBox {
        padding: 0px 10px;
    }
    .questionBox .questionText {
        font-size: 16px;
        padding-top: 0;
    }
    .questionBox .optionList {
        flex-wrap: wrap;
        height: 100%;
        
    }
    .optionList .option {
        font-size: 14px;
        width: 40%;
    }
    .quizFooter {
        border-top: none;
        font-size: 0;
    }
    .nextButton {
        height: 0px;
        width: 0px;
        border: none;
        font-size: 0px;
    }
    .nextButton.active {
        height: 45px;
        border: 2px solid #E87531;
        font-size: 16px;
        margin-bottom: 10px;
        width: 100%;
    }
    .finishButton {
        height: 0px;
        width: 0px;
        border: none;
        font-size: 0px;
    }
    .finishButton.active {
        height: 45px;
        font-size: 16px;
        margin-bottom: 10px;
        width: 100%;
    }
    .resultContainer {
        width: 100%;
        flex-direction: column;
        padding-bottom: 5px;
    }
    .resultBox.active {
        top: 0;
        left: 0;
        width: 95%;
        margin: 10px;
    }
    .resultList .scoreBoardTitle {
        font-size: 12px;
    }
    .resultList .scoreBoardTitleAI {
        font-size: 12px;
    }
    .labelText {
        font-size: 12px;
        margin-right: 10px;
    }
    .formList {
        padding-bottom: 5px;
    }
    .formInput {
        width: 50vw;
        font-size: 12px;
    }
    .formInputShort {
        width: 20vw;
    }
    .resultBox .resultTitle {
        padding-top: 0px;
    }
    .resultBox .resultList {
        padding: 5px;
    }
    .footerText {
        font-size: 10px;
        padding-bottom: 5px;
    }
    .submitButton {
        width: 250px;
    }
    .resultFooter {
        flex-direction: column;
    }
    .finishBox {
        top: 35%;
        width: 90vw;
    }
}



/* iPhone 15 Horizontal */
@media (max-height: 500px) {
    .infoBox {
        top: 55%;
        width: 90vw;
    }

    .finishBox {
        top: 35%;
        width: 90vw;
    }
}