@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inconsolata&family=Roboto+Condensed:wght@700&display=swap');

:root {
    background-color: #F5F5F5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 62.5%;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #fff;
}

h1 {
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #000;
    margin-bottom: 5rem;
}

h2 {
    font-size: 4.2rem;
    margin-bottom: 4rem;
}

p {
    color: #201e1e;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.summary {
    font-size: 2.4rem;
    color: #FCC451;
    margin-bottom: 5rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem;
}

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

.flex-center {
    justify-content: center;
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Button Styles */
.btn {
    font-size: 2.4rem;
    padding: 2rem 0;
    width: 30rem;
    text-align: center;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #fff;
    background: #e28636;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease-in-out;
}

.btn:hover {
    cursor: pointer;
    box-shadow: 0 0.4rem 1.4rem #FBCD73;
    transition: transform 150ms;
    transform: scale(1.02);
}

.btn[disabled]:hover {
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#highscore-btn {
    background: linear-gradient(90deg, rgb(255, 247, 9) 0%, rgb(240, 221, 6) 100%);
}

#highscore-btn:hover {
    box-shadow: 0 0.4rem 1.4rem 0 rgba(255,255,0,0.5);
}

.box-btn {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    padding: 14px 22px;
    border: none;
    background: #FCC451;
    border-radius: 6px;
    cursor: pointer;
}

.box-btn:hover {
    background-color: #FBCD73;
}

/* Choice Container Styles */
.choice-container {
    display: flex;
    margin-bottom: 0.8rem;
    width: 100%;
    border-radius: 4px;
    background: #FBAE1F;
    font-size: 3rem;
    min-width: 80rem;
    transition: transform 0.2s ease-in-out;
}

.choice-container:hover {
    cursor: pointer;
    box-shadow: 0 0.4rem 1.4rem 0 #FBCD73;
    transform: scale(1.02);
}

.choice-prefix {
    padding: 2rem 2.5rem;
    color: white;
}

.choice-text {
    padding: 2rem;
    width: 100%;
    color: #f5f5f5;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.correct {
    background: linear-gradient(32deg, rgba(11, 223, 36) 0%, rgb(41, 232, 111) 100%);
}

.incorrect {
    background: linear-gradient(32deg, rgba(230, 29, 29, 1) 0%, rgb(224, 11, 11, 1) 100%);
}

/* HUD Styles */
#hud {
    display: flex;
    justify-content: space-between;
}

.hud-prefix {
    text-align: center;
    font-size: 2rem;
}

.hud-main-text {
    text-align: center;
}

#progressBar {
    width: 20rem;
    height: 3rem;
    border: 0.2rem solid rgb(11, 223, 36);
    margin-top: 2rem;
    border-radius: 50px;
    overflow: hidden;
}

#progressBarFull {
    height: 100%;
    background: rgb(11, 223, 36);
    width: 0%;
}

/* End Page CSS */
.end-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 30rem;
}

input {
    margin-bottom: 1rem;
    width: 20rem;
    padding: 1.5rem;
    font-size: 1.8rem;
    border: none;
    box-shadow: 0 0.1rem 1.4rem 0 #FBCD73;
}

input::placeholder {
    color: #aaa;
}

#username {
    margin-bottom: 3rem;
    width: 100%;
    outline: none;
}

#end-text {
    font-size: 2.4rem;
    color: #000;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
}

#saveScoreBtn {
    border: none;
}

.fa-crown {
    font-size: 2.5rem;
    margin-left: 1rem;
}

.fa-home {
    margin-left: 1rem;
    font-size: 2rem;
    color: rgb(28, 26, 26);
}

.loose {
    color: #000;
    font-family: 'Poppins', sans-serif;
}

/* Modal Styles */
.box-btn.show-modal,
.modal-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

section.active .show-modal {
    display: none;
}

.overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

section.active .overlay {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    width: 100%;
    padding: 30px 20px;
    border-radius: 24px;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%) scale(1.2);
}

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

.modal-box {
    font-size: 70px;
    color: #FBAE1F;
}

.modal-box h2 {
    margin-top: 20px;
    font-size: 25px;
    font-weight: 500;
    color: #333;
}

.modal-box h3 {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    text-align: center;
    line-height: 25px;
}

.modal-box .buttons {
    margin-top: 25px;
}

.modal-box .box-btn {
    font-size: 14px;
    padding: 6px 12px;
    margin: 0 10px;
}

/* Explanation Container Styles */
.explanation-container {
    padding: 20px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.explanation-text {
    font-size: 16px;
    color: #333;
}

.retry-button {
    font-size: 16px;
    padding: 10px 20px;
    margin-top: 10px;
    margin-bottom: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.retry-button:hover {
    background-color: #0056b3;
}

img {
    width: 165px;
    height: 150px;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.0rem;
    }
    
    .choice-container {
        width: 100%;
        min-width: unset;
    }
    
    #progressBar {
        width: 16rem;
        height: 2rem;
    }
}