*{
    margin:0;
    padding:0;
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-image: url(images/start-page.png);
}

.container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* start page info :) */

.start-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-size: cover;
    background-position: center;
}


.start-page img {
    margin-bottom: -50px; 
    max-width: 80%;
    height: auto;
}

/* !!!!!!!!buttons below */

#startButton {
    cursor: pointer;
    width: 50%; 
    max-width: 20%; 
    height: auto; 
    margin-top: -80px;
}

#startButton:hover {
    width: 150px;
    -webkit-filter: drop-shadow(5px 5px 5px #f0d351);
    filter: drop-shadow(5px 5px 5px #f0d351);

}

.optionButton {
    font-size: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 25px;
    border: 2px solid #0d0b1b;
    transition-duration: 0.4s;
    /* flex: 1 1 calc(100% - 50px); */
}

.optionButton.selected {
    background-color: #0d0b1b;
    color: white;
}
.optionButton:hover {
    background-color: #0d0b1b;
    color: white;
    cursor: pointer;
}

#nextButton {
    font-size: 20px;
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #0d0b1b;
    border-radius: 20px;
    cursor:pointer;
    transition-duration: 0.4s;
}


#nextButton:hover {
    background-color: #0d0b1b;
    color: white;
    cursor: pointer;
}

/* !!!!!!!!buttons above */



/* quiz stuff! */
#quiz-page {
    width: 50%;
}


.questionheader {
    background-color: white;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
}

#questionNumber {
    font-size: 4vh;
    max-width: 30%;
    padding: 10px;
}

#questionText {
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0;
    text-align: center;
}

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

#questionImage {
    width: 30%;
    padding: 20px;
}

/* answer grid here */

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: center;
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    padding: 0vh 0vh 3vh 0vh;
}

/* grid done */

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Ensure buttons stack vertically */
}

/* progress bar COMPLETED DO NOT TOUCH */
#myProgress {
    width: 80%;
    padding: 3px;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
}

#myBar {
    width: 1%;
    height: 30px;
    background-color: #0d0b1b;
    border-radius:20px;
  }

/* sound button */
.soundBar {
    position: absolute;
    top: 10px;
    right: 10px;
}

#soundButton {
    padding: 8px 10px;
    border-radius: 25px;
    font-size: 20px;
    background-color: #34366e;
    border: none;
}

#soundButton:hover {
    cursor: pointer;
    background-color: #434585;
}

#results-page {
    width: 50%;
    text-align: center;
    margin: 0 auto;
}

#resultImage {
    max-width: 100%; 
    display: block; 
    margin: 0 auto; 
}


#resultStats {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 100%;
    font-family: "VT323", monospace;
    font-weight: 400px;
    font-style: normal;
    margin-top: -20px;
}

.stat {
    background-color: white;
    border-radius: 25px;
    color: black;
    padding: 10px;
    text-align: center;
    margin-right: 10px;
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
}

@media (max-width: 600px) {
    .questionheader {
        border-radius: 15px;
        padding: 10px;
    }
    
    #questionNumber {
        font-size: 2.5vh;
        max-width: 30%;
        padding: 10px;
    }
    
    #questionText {
        font-size: 15px;
        padding: 10px;
        
    }

    #resultImage {
        max-height: 400px; 
    }
    
    .stat{
        font-size: 15px;
    }

    #resultStats {
        margin-top: -10px;
    }

    .optionButton {
        font-size: 15px;
        padding: 15px;
    }
    
    .start-page img {
        margin-bottom: -20px; 
 
    }
    
    #startButton {
        margin-top: -20px; 
    }
}

@media (min-width: 601px) and (max-width: 1200px) {
    #resultImage {
        max-height: 400px; 
    }

    .stat{
        font-size: 20px;
    }

    #resultStats {
        margin-top: -30px;
    }

    .start-page img {
        margin-bottom: -20px; 
 
    }
    
    #startButton {
        margin-top: -10px; 
    }
}

@media (min-width: 1201px) {
    #resultImage {
        max-height: 600px; 
    }
}

#restartBtn {
    font-size: 20px;
    margin: 30px;
    padding: 10px 15px;
    background-color: white;
    border-radius: 20px;
    cursor:pointer;
    border-width: 0;
    transition-duration: 0.4s;
}

#restartBtn:hover {
    background-color: #0d0b1b;
    color: white;
    cursor: pointer;
}
.sparkle {
    position: absolute;
    visibility: hidden;
    z-index: 1; /* Ensure sparkles are below buttons */
}
/* 
keep at the end  */
.hide {
    display: none;
}