body {
    background-color: #5145BA;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.quiz-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 800px;
}

#progress {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

h2 {
    margin-top: 0;
    color: #333;
    line-height: 1.4;
    font-size: 1.2rem;
}

/* Added more space after multiple choice options */
.options-container {
    margin: 25px 0 35px 0; 
}

.option {
    display: block;
    margin: 12px 0;
    cursor: pointer;
    font-size: 1.05rem;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 35px; /* Space after the text box */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Centering the buttons and making them less wide */
.controls {
    display: flex;
    justify-content: center;
}

button {
    background-color: #5145BA;
    color: white;
    border: none;
    padding: 12px 40px; /* Wider padding for a nice button shape */
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    width: auto; /* Changed from 100% to auto */
    min-width: 120px;
}

button:hover {
    opacity: 0.9;
}

.hidden {
    display: none;
}

#feedback {
    margin: 20px 0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.correct { color: #2ecc71; }
.incorrect { color: #e74c3c; }