body {
    font-family: sans-serif;
    background-color: #f0f8ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 600px;
}

h1 {
    text-align: center;
    color: #333;
}

.quiz-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

#timer {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

#quiz-container {
    margin-top: 20px;
}

.question {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.question-label {
    min-width: 150px;
}

.question input {
    width: 80px;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 10px;
}

.feedback {
    margin-left: 10px;
    font-size: 0.9em;
    color: red;
}

.controls {
    text-align: center;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    margin: 0 10px;
}

button:hover {
    opacity: 0.9;
}

#result-container {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

#restart-btn {
    background-color: #f44336;
}

.hidden {
    display: none;
}