body {
    font-size: 20px;
    background: url("https://66.media.tumblr.com/3ada40dd6c90799628435be2ca463e32/tumblr_owzhyy71gX1uzwgsuo1_400.gifv");
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h4 {
    color: #EDF060;
    font-family: sans-serif;
    position: relative;
    bottom: 10px;
}

/* Game Login Style */
.gameLogin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type=text] {
    background-color: white;
    color: deeppink;
    border-radius: 20px;
    padding: 15px;
    font-size: 20px;
    border: 2px solid #87F1FF;
    cursor: pointer;
    font-family: fantasy;
    font-weight: bold;
    width: 90%;
    margin-bottom: 20px;
}

input[type=submit] {
    border: 2px solid #65BF7A;
    border-radius: 10px;
    text-align: center;
    color: #0ABFDB;
    padding: 10px;
    font-weight: bold;
    font-size: 1.5em;
    background-color: #EDF060;
    box-shadow: 0px 4px 4px 4px #30EA1C;
    width: 100%;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: white;
}

/* Game Settings Updated */

.header {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #87F1FF;
    text-align: center;
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header h3 {
    color: #C287E8;
}

.wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 90px 0 auto;
    display: flex;
    border: 1px solid grey;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.gameInfo {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-right: 1px solid grey;
}

#score, #reset, #start, #gameClock {
    margin-bottom: 20px;
    text-align: center;
}

#score h4, #gameClock h4 {
    margin-bottom: 10px;
}

#score p, #reset button, #start button, #gameClock div {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0;
}

#reset button, #start button {
    background-color: #FCACDF;
    color: #000;
    padding: 15px;
    border-radius: 50%;
    height: 80px;
    width: 80px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

#reset button:hover, #start button:hover {
    background-color: #fff;
    border: 2px solid #D35800;
    color: #D35800;
}

#gameClock {
    font-family: sans-serif;
    color: black;
    text-align: center;
    font-size: 30px;
}

#gameClock div {
    padding: 8px;
    border-radius: 3px;
    background-color: #87F1FF;
    display: inline-block;
}

#gameClock div span {
    padding: 15px;
    border-radius: 3px;
    background-color: beige;
    display: inline-block;
    font-weight: bold;
}

.smalltext {
    padding-top: 5px;
    font-size: 1em;
    color: #000;
    font-weight: bold;
}

.quiz_Container {
    width: 75%;
    padding: 20px;
}

#instruction {
    font-weight: bold;
    margin-bottom: 20px;
}

#wordName, #sentence, #choices {
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
}

#wordName {
    background-color: #FCACD7;
}

#sentence {
    background-color: #87F1FF;
    font-style: italic;
}

#choices {
    background-color: peachpuff;
    font-size: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.choice {
    display: inline-block;
    width: 45%;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    padding: 20px;
    border: 2px dashed palegreen;
    margin: 10px;
}

.choice:hover {
    background-color: yellow;
    border: 2px solid #87F1FF;
}

/* Responsive Styles */
@media screen and (max-width: 599px) {
    #score, #reset, #start {
        position: sticky; /* Reset the position to default */
        margin-bottom: 10px; /* Adjust margin for spacing */
        margin-top: auto;
    }

    .header {
        position: absolute; /* Reset the position to default */
    }
    .wrapper {
        flex-direction: column;
    }

    .gameInfo, .quiz_Container {
        width: 100%;
        padding: 10px;
    }

    .choice {
        width: 100%;
    }

    input[type=text], input[type=submit] {
        font-size: 18px;
        padding: 10px;
    }

    input[type=submit] {
        font-size: 1.2em;
    }
}

@media screen and (min-width: 600px) {
    .choice {
        width: 45%;
    }
}

@media screen and (min-width: 992px) {
    .header {
        width: 80%;
    }

    .wrapper {
        width: 80%;
        max-width: 1200px;
    }

    .choice {
        width: 22%;
    }
}
