@font-face {
    font-family: "8bit";
    src: url("../Fonts/PixelPurl.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: black;
    color: rgba(226, 21, 178, 0.811);
    font-family: "8bit", sans-serif;
    margin: 0;
    overflow: hidden;
}

.hidden {
    display: none;
}

#all-screens {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* =========================
   START SCREEN QUIZZER
========================= */
#start-quizzer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#start-quizzer-container img {
    max-height: 750px;
    width: auto;
}

/* =========================
   START SCREEN
========================= */
#start-screen .speech-bubble {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 400px;
    padding: 40px;
    background-image: url("../Imgs/bubble.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    text-align: center;
}

#start-screen .speech-content {
    text-align: center;
}

/* Start button */
#start-btn {
    position: absolute;
    top: 260px;
    right: 120px;
    width: 250px;
    height: 150px;
    font-family: "8bit", sans-serif;
    font-size: 2rem;
    color: rgba(226, 21, 178, 0.811);
    background-image: url("../Imgs/bubble.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    outline: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    image-rendering: pixelated;
}

/* =========================
   QUESTION SCREEN QUIZZER
========================= */
#question-quizzer-container {
    position: fixed;
    bottom: 200px;
    right: 20px;
    max-height: 20px; 
    width: auto;
    z-index: 10;
}
#question-quizzer-container img {
    max-height: 200px; /* controls visible height */
    width: auto;       /* keep aspect ratio */
    display: block;    /* remove any extra spacing */
}


/* Question speech bubble */
#question-screen .speech-bubble {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    padding: 50px;
    background-image: url("../Imgs/bubble.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    text-align: center;
    z-index: 1;
}

#question-screen .speech-content h1,
#question-screen .speech-content h4,
#question-screen .speech-content h3 {
    font-size: 2rem;
    margin: 10px 0;
}

/* Answer buttons */
#question-screen #answers {
    display: flex;
    justify-content: space-evenly;
    width: 80%;
    max-width: 800px;
    position: absolute;
    top: calc(50% + 220px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

#question-screen #answers button {
    font-family: "8bit", sans-serif;
    color: rgba(226, 21, 178, 0.811);
    background-image: url("../Imgs/bubble.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    outline: none;
    background-color: transparent;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-size: 1.5rem;
    cursor: pointer;
    image-rendering: pixelated;
}

/* HUD */
#question-screen .hud {
    display: flex;
    justify-content: space-around;
    width: 80%;
    max-width: 800px;
    position: absolute;
    top: calc(50% + 350px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 1.5rem;
}

/* =========================
   END SCREEN QUIZZER
========================= */
#end-quizzer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#end-quizzer-container img {
    max-height: 750px;
    width: auto;
}

/* =========================
   END SCREEN
========================= */
#end-screen .speech-bubble {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 400px;
    padding: 40px;
    background-image: url("../Imgs/bubble.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    text-align: center;
}

#end-screen .speech-content {
    text-align: center;
}

/* Reset button */
#reset-btn {
    position: absolute;
    top: 260px;
    right: 120px;
    width: 250px;
    height: 150px;
    font-family: "8bit", sans-serif;
    font-size: 2rem;
    color: rgba(226, 21, 178, 0.811);
    background-image: url("../Imgs/bubble.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    outline: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    image-rendering: pixelated;
}
/* =========================
   MOBILE ADJUSTMENTS
========================= */
@media (max-width: 768px) {
   #start-quizzer-container, #question-quizzer-container, #end-quizzer-container {
        display: none;
    }
}
