/* Imports */
@font-face {
    font-family: 'Avenir Black';
    src: url('../fonts/Avenir Black.ttf');
}

@font-face {
    font-family: "comic sans";
    src: url('../fonts/comicsans.ttf');
}

 Google Font
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/materialSymbols.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined.muted i::before {
    content: "volume_off";
}

.material-symbols-outlined.unmuted i::before {
    content: "volume_up";
}



/* Root */
:root {
    /* ======= Style Guide Colors (PMS) ======= */
    --pms_282: #00214d;
    --pms_7672: #4c4084;
    --pms_301: #00599c;
    --pms_2905: #9ec9e3;
    --pms_7444: #b6b8dc;
    --pms_233: #c7007d;
    --pms_2995: rgba(0, 166, 222, 0.4);
    --pms_396: #e1e000;
    --pms_1495: rgba(255, 143, 28, 0.4);
    /* ======================================== */
    --background-main: var(--pms_282);
    --background-secondary: var(--pms_7672);
    --text-color: var(--pms_7444);
    --link-color: var(--pms_2905);
    --unselected-answer-color: var(--pms_7672);
    --correct-color: rgb(22, 103, 53);
    --incorrect-color: rgb(103, 22, 22);
    /* ======================================== */
    font-family: 'comic sans';
}

.text_233 {
    color: var(--pms_233);
}

.text_2995 {
    color: var(--pms_2995);
}

.text_396 {
    color: var(--pms_396);
}

.text_1495 {
    color: var(--pms_1495);
}

/* HTML Element Styles */
a {
    color: var(--link-color);
}

html {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: 'Avenir Black';
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: var(--text-color);
    background-color: var(--background-main);
}

body {
    margin: 0;
    padding: 0;
}

main {
    height: 100vh;
    width: 100vw;
    background-size: cover;
}

footer {
    justify-content: center;
    align-items: center;
}

quiz-logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

quiz-logo img {
    width: 20%;
}

quiz-audio-toggle {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
}

quiz-status {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    padding: 2vw;
    background-color: var(--background-secondary);
    border-radius: 0 0 5vh 0;
    font-size: 3vh;
}

quiz-start,
quiz-main,
quiz-info,
quiz-finish {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

quiz-start-button{
    position: relative; /* Ensure the element has a positioning context */
    z-index: 9999; /* Set a high z-index value */
    touch-action: manipulation; /* Optimize touch interactions */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

quiz-title {
    font-size: 10vh;
    margin-bottom: 0vh;
}

quiz-question {
    font-size: 4vh;
    margin-bottom: 1vh;
    width: 75%;
}

quiz-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1vh;
    width: auto;
    justify-content: center;
    align-items: center;
}

.button-row2{
    display: flex;
    flex-direction: column;
}

.new-material-symbols-outlined {
    font-size: 3vh; /* Match the font size of both buttons */
    padding: 0; /* Remove padding */
    display: inline-flex; /* Use inline-flex to allow dynamic sizing based on content */
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    border: 1px;
    border-radius: 1rem;
}

.quiz-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 4vh; /* Add margin to create space between quiz-answers and quiz-nav */
}

.button-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1vh;
    align-items: center;
    justify-items: center;
}

.restart-button,
.skip-button {
    border: solid var(--pms_7444); /* Adjust the border size as needed */
    border-radius: 1rem;
    padding: 1vh 2vw;
    font-size: 2.5vh;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    /*background-color: rgba(10, 10, 10, 40%);*/
    box-sizing: border-box;
    display: flex; /* Use flexbox */
    align-items: center; /* Center the content vertically */
    background-color: rgba(0, 0, 0, 1);
    touch-action: manipulation; /* Optimize touch interactions */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

.exit-button,
.startover-button,
.restart-button span,
.skip-button span {
    flex: 1; /* Take up remaining space */
    text-align: center; /* Center the text horizontally */
}

.startover-button,
.exit-button {
    border: solid var(--pms_7444); /* Adjust the border size as needed */
    border-radius: 1rem;
    padding: 1vh 3.75vw;
    font-size: 2.5vh;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    display: flex; /* Use flexbox */
    align-items: center; /* Center the content vertically */
    margin-top: 2vh;
    background-color: rgb(20, 10, 136);
    touch-action: manipulation; /* Optimize touch interactions */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

.exit-button {
    color: white;
    background-color: red;
}

quiz-hint {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
}

quiz-hint-toggle * {
    font-size: 5vh;
    margin: 1vh;
    width: 15vh;
    z-index: 1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--text-color);
    border-radius: 1vh;
}

quiz-hint-text {
    font-size: 3vh;
    margin: 1vh;
    padding: 1vh;
    border: 1px solid var(--text-color);
    border-radius: 1vh;
}

quiz-results {
    font-size: 4vh;
    margin-bottom: 2vh;
}

.button {
    border: solid var(--pms_7444);
    border-radius: 1rem;
    padding-top: 2vw;
    padding-bottom: 2vw;
    padding-left: 3vw;
    padding-right: 3vw;
    font-size: 3vh;
    width: auto;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: rgba(10, 10, 10, 40%);
    box-sizing: border-box;
}

.audio-button {
    border: solid var(--pms_7444);
    border-radius: 1rem;
    padding-top: 2vw;
    padding-bottom: 2vw;
    padding-left: 3vw;
    padding-right: 3vw;
    font-size: 3vh;
    width: auto;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: rgba(10, 10, 10, 40%);
    box-sizing: border-box;
}

.hidden {
    display: none;
}

.correct {
    background-color: var(--correct-color);
}

.incorrect {
    background-color: var(--incorrect-color);
}

.animate-button {
    animation: buttonIdle 2s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes buttonIdle {
    0% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(-5deg);
    }
}

.quiz-start-p {
    font-size: 5vh;
}

.quiz-info-p {
    font-size: 4vh;
}

.quiz-start-button:active,
.restart-button:active,
.skip-button:active,
.exit-button:active,
.startover-button:active {
    /* Additional styles for active state on touch devices */
    transform: scale(0.95); /* Scale down when pressed */
}

.quiz-hint-p {
    padding: 0;
    margin: 0;
}

/* Apply styles when the height is greater than the width */
@media (orientation: portrait) {
    /* Adjustments for portrait mode */
    .quiz-logo img {
        width: 40%; /* Adjust logo size */
    }

    .quiz-status {
        padding: 5vw; /* Increase padding */
    }

    .quiz-title {
        font-size: 7vh; /* Reduce title font size */
    }

    .quiz-question {
        font-size: 3vh; /* Reduce question font size */
        width: 90%; /* Adjust width */
    }

    .quiz-answers {
        grid-template-columns: 1fr; /* Single column for answers */
        grid-gap: 2vh; /* Increase gap between answers */
    }

    .new-material-symbols-outlined {
        font-size: 2.5vh; /* Reduce font size for symbols */
    }

    .quiz-nav {
        margin-top: 8vh; /* Increase margin */
    }

    .exit-button {
        background-color: red;
        color: white;
    }

    .restart-button,
    .skip-button,
    .exit-button,
    .startover-button {
        font-size: 2vh; /* Reduce button font size */
        padding: 1vh 2vw; /* Adjust button padding */
    }

    .quiz-hint-toggle * {
        font-size: 4vh; /* Increase hint toggle size */
        width: 10vh; /* Adjust width */
    }

    .quiz-hint-text {
        font-size: 2vh; /* Reduce hint text font size */
    }

    .quiz-results {
        font-size: 3vh; /* Reduce results font size */
    }

    .button {
        padding: 1.5vh 2vw; /* Adjust button padding */
        font-size: 2.5vh; /* Reduce button font size */
    }

    .audio-button {
        padding: 1.5vh 2vw; /* Adjust audio button padding */
        font-size: 2.5vh; /* Reduce audio button font size */
    }
}