/* Use a stylish, light-weight font (Raleway) for all texts */
body, #cricket-quiz-container {
    font-family: 'Raleway', sans-serif;
}

/* Container styling for a dark theme with attractive accents */
#cricket-quiz-container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #222;
    color: #f1f1f1;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Make all headings use a lighter, stylish text */
.stylish-text {
    color: #f1f1f1;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* START SCREEN */
#quiz-start-screen {
    text-align: center;
}

/* 3D Button styling for "Start Now" and "Start Again" */
.start-3d-btn {
    background: linear-gradient(145deg, #ff5e62, #ff9966);
    border: none;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 0 rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 15px;
}

.start-3d-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(0,0,0,0.3);
}
.start-3d-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}

/* Quiz Question Screen */
.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
#question-number {
    font-weight: 600;
}

/* Timer styling with blink effect */
#question-timer {
    font-weight: 600;
    color: #ffcc00;
}
#timer-value.blink {
    animation: blink-animation 0.8s ease-in-out 1;
}
@keyframes blink-animation {
    0%, 100% { color: #ffcc00; }
    50% { color: #ffffff; }
}

/* Question Text */
#quiz-question-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Options Container */
#quiz-options-container {
    display: grid;
    gap: 12px;
}
.quiz-option-btn {
    background-color: #333;
    color: #f1f1f1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.quiz-option-btn:hover {
    background-color: #444;
    transform: scale(1.01);
}

/* Feedback for correct and wrong answers */
.correct-answer {
    background-color: #2ecc71 !important;
    color: #fff !important;
}
.wrong-answer {
    background-color: #e74c3c !important;
    color: #fff !important;
}
.highlight-correct {
    background-color: #2ecc71 !important;
    color: #fff !important;
}

/* Quiz Result Screen */
#quiz-result-screen {
    text-align: center;
}
#quiz-result-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
#quiz-result-message {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Confetti Celebration Animation */
#confetti-animation.confetti-hidden {
    display: none;
}
#confetti-animation.confetti-show {
    display: block;
    position: relative;
    width: 100%;
    height: 150px;
    margin: 20px auto;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fcee0c;
    top: 0;
    left: 50%;
    animation: confetti-fall 1.5s linear infinite;
}
.confetti-piece:nth-child(2) { background-color: #ff3b3b; left: 40%; }
.confetti-piece:nth-child(3) { background-color: #2ecc71; left: 60%; }
.confetti-piece:nth-child(4) { background-color: #3498db; left: 45%; }
.confetti-piece:nth-child(5) { background-color: #ff9966; left: 55%; }

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(200px) rotate(720deg); }
}

/* Responsive styling for mobile devices */
@media (max-width: 480px) {
    #cricket-quiz-container {
        padding: 15px;
    }
    .quiz-option-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    .start-3d-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
}
