:root {
    --primary-color: #007bff; /* A nice blue */
    --secondary-color: #f8f9fa; /* Light gray background */
    --text-color: #343a40; /* Dark gray for text */
    --background-color: #ffffff; /* White background for container */
    --border-color: #ced4da; /* Light gray for borders */
    --error-color: #dc3545; /* Red for errors */
    --success-color: #28a745; /* Green for success */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color); /* Light gray body background */
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: var(--background-color); /* White container background */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Soft shadow */
    border: 1px solid var(--border-color); /* Light border */
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.hidden { display: none !important; }
input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color); /* Light border */
    background-color: var(--background-color); /* White background */
    color: var(--text-color); /* Dark text */
    border-radius: 5px;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); /* Focus glow */
}

button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white; /* White text on primary button */
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

button:hover { background-color: #0056b3; } /* Darker blue on hover */

.quiz-option {
    text-align: left;
    background: var(--secondary-color); /* Light gray for options */
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid var(--border-color); /* Light border */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.quiz-option:hover {
    background: #e9ecef; /* Slightly darker gray on hover */
    border-color: var(--primary-color);
}

.selected {
    background-color: var(--primary-color) !important;
    color: white !important; /* White text for selected option */
}

#result-area {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
}

.message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.message.success {
    background-color: #d4edda;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* Celebration Styles */
#celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.celebration-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
}

.trophy-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    top: -10px;
    border-radius: 2px;
    animation: fall linear forwards;
    pointer-events: none; /* Taake clicks block na hon */
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}