 * {
    box-sizing: border-box;
} 
body {
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
    background-color: #121629;
    color: #FFFFFF;
    position: relative;
    min-height: 100vh;
}
#logo-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('enso.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}
h1, h2 {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 2.2rem;
}
#score h2 {
    font-size: 1rem;
}
#question-counter {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.8rem; /* Slightly smaller than question text */
    text-align: center;
    margin-bottom: 10px; /* Space between counter and question */
}
input[type="text"] {
    padding: 12px;
    margin: 12px;
    width: 80%;
    background-color: #1E2235;
    color: #FFFFFF;
    border: 1px solid #8B5CF6;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    border-radius: 10px;
}
button {
    padding: 10px 20px;
    background-color: #00FF85;
    color: #121629;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}
button:hover {
    background-color: #8B5CF6;
    color: #FFFFFF;
}
button:disabled {
    background-color: #666;
    cursor: not-allowed;
} 
.result-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px auto;
    max-width: 400px;
}
.result-buttons button {
    flex: 1 1 40%;
    max-width: 160px;
    border-radius: 10px;
}
#options {
    text-align: left;
    margin: 30px auto;
    max-width: 600px;
    font-size: 1.2rem;
}
#options label {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    display: block;
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
}
#options label.selected {
    background-color: #00FF85;
    color: #121629;
}
#timer {
    font-weight: 600;
    color: #FF5555;
    margin: 15px;
    font-size: 1.2rem;
}
#quit-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FF5555;
    color: #FFFFFF;
}
#quit-button:hover {
    background-color: #B00020;
}
#next-button {
    display: none;
}
#quiz {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 10px;
    margin: 20px auto;
}
#result {
    background-color: #1E2235;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin: 20px auto; display: flex;
    flex-direction: column;
    align-items: center;
}
#score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
#score-card-icon {
    max-width: 30px;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
}
#result-image {
    max-width: 150px;
    height: auto;
    margin: 10px auto;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #8B5CF6;
    border-radius: 10px;
}
#high-score-emoji {
    font-size: 1.2rem;
    margin: 10px;
}
#results-detail {
    background-color: #1E2235;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    display: none;
    position: relative;
}
#results-detail .question {
    margin-bottom: 20px;
}
#results-detail .correct {
    color: #00FF85;
}
#results-detail .incorrect {
    color: #FF5555;
}
#close-results {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF5555;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
#close-results:hover {
    background-color: #B00020;
}
@media screen and (max-width: 600px) {
    body {
        padding: 15px;
    }
    #result {
        padding: 20px;
    }
    #score-card {
        width: 270px;
        height: auto;
        padding: 15px;
    }
    #result-image {
        max-width: 120px;
        max-height: 120px;
    }
    .result-buttons {
        gap: 8px;
        max-width: 300px;
    }
    .result-buttons button {
        flex: 1 1 40%;
        max-width: 120px;
        border-radius: 10px;
    }
}
