body {
    font-family: Arial, sans-serif;
    background: #1c1c1c;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
}

.score-display {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #ff9800;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

.quiz-container {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 12px;
    width: 450px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.options {
    margin-bottom: 20px;
    text-align: left;
    font-size: 1.2em;
}

label {
    display: block;
    margin: 8px 0;
}

.buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

button {
    padding: 12px;
    flex: 1;
    background: #ff9800;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

button:hover {
    background: #e68900;
}

#feedback {
    font-size: 1.2em;
    margin-bottom: 15px;
    min-height: 25px;
}

.correct {
    color: #4caf50;
    animation: fadeIn 0.5s;
}

.wrong {
    color: #f44336;
    animation: fadeIn 0.5s;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.start-container, .loading-container, .end-container {
    text-align: center;
}

.start-container button, .end-container button {
    padding: 12px 20px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.start-container button:hover, .end-container button:hover {
    background: #e68900;
}
.loading-container {
    font-size: 1.5em;
    color: #ff9800;
}
.loading-container::before {
    content: "Loading...";
    display: block;
    margin-bottom: 20px;
}
.loading-container::after {
    content: "Please wait while we prepare your quiz.";
    display: block;
    font-size: 1.2em;
    color: #fff;
}
.end-container {
    font-size: 1.5em;
    color: #ff9800;
}
