@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;1,100;1,300;1,400;1,700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --hue-neutral: 200;
    --hue-wrong: 0;
    --hue-correct: 145;
}

body {
    --hue: var(--hue-neutral);
    padding: 0;
    margin: 0;
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: hsl(var(--hue), 100%, 20%);
    font-family: 'Lato', sans-serif;
}



.container {

    width: 800px;
    max-width: 80%;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px 2px;
    margin: 30px auto;
    margin-bottom: 20px;
    /* Add marging-bottom to create space */
    margin-top: 20px;
    /* Add marging-bottom to create space */

}

.sound-control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 20px; /* some space above */
}


.form-group {
    margin: 20px;

}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;


}

#username {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16;

}

.start-button {
    display: block;
    width: 50%;
    padding: 10px;
    margin: 0 auto;
    background-color: #4caf50;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex-basis: 45%;

}



.instruction-button {
    display: block;
    width: 50%;
    padding: 10px;
    margin: 0 auto;
    background-color: blue;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex-basis: 45%;


}


.start-button:hover {
    background-color: #45a049;
}

.quiz-container {
    width: 800px;
    max-width: 80%;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px 2px;
    margin: 30px auto;
    margin-bottom: 20px;
    /* Add marging-bottom to create space */
    margin-top: 20px;
    /* Add marging-bottom to create space */

}

.question-header h1 {
    text-align: center;
    color: #333;
    margin-bottom: 50px;


}


.question-header h2 {
    text-align: center;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.btn-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.btn {
    flex-basis: 48%;
    /* Adjust this value as needed to control the width of each button */
}

.btn {
    background: #fff;
    color: #333;
    font-size: 16px;
    width: fit-content;
    /* Change the width to fit the content */
    border: 1px solid #222;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition-duration: 0.4s;


}


#next-btn {
    background: blue;
    color: #fff;
    font-weight: 500;
    width: 150px;
    padding: 10px;
    margin: 30px 0 10px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
}


#start-btn {
    background: grey;
    color: #fff;
    font-weight: 500;
    width: 150px;
    padding: 10px;
    margin: 30px auto 10px;
    border-radius: 4px;
    cursor: pointer;
    display: none;

}


.true {
    background: yellow;

}

.false {
    background: red;

}

#score {
    color: gold;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
}

#play-again-btn {
    display: none;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: green;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

#play-again-btn:hover {
    background-color: yellow;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}


.status-bar {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 10px auto;
  padding: 5px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  background-color: #f9f9f9;
}

.score-holder, .time-holder {
  flex: 1;
  text-align: center;
}

@media screen and (max-width: 768px) {

    /* Styles for smaller screens */
    .container {
        max-width: 100%;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .quiz-container {
        width: 100%;
        margin: 20px;
    }
}