/* General Styling */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arial:wght@700&display=swap');

body {
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Landing Page Styles */
#landing-container {
    margin-top: 50px;
}

.quiz-link {
    display: block;
    margin: 10px auto;
    padding: 15px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 10px;
    width: fit-content;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.quiz-link:hover {
    background-color: #0056b3;
}

/* Quiz Page Styles */
#quiz-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

#title {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Comic Neue', cursive;
}

#question {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

#quiz-finished {
    font-size: 1.5rem;
    font-family: 'Pacifico', cursive;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    background-color: #e0e0e0;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.option-btn:hover {
    background-color: #d6d6d6;
}

/* Quiz Page Styles */
.option-btn.correct {
    background-color: rgba(40, 167, 69, 0.6) !important; /* Green with 60% opacity */
    color: white;
}

.option-btn.incorrect {
    background-color: rgba(220, 53, 69, 0.6) !important; /* Red with 60% opacity */
    color: white;
}


#next-btn, .restart-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#next-btn:hover, .restart-btn:hover {
    background-color: #0056b3;
}

#feedback {
    font-size: 1.5rem;
    font-weight: bold;
}

#feedback.correct {
    color: #28a745;
}

#feedback.incorrect {
    color: #dc3545;
}

/* Center Logout Button */
#logout-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#logout-btn:hover {
    background-color: #cc0000;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Timer Styling */
.timer-card {
    text-align: center;
    background-color: black;
    color: greenyellow;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    width: 24rem;
}

/* Progress Bar Styling */
#progress-bar {
    max-width: 100%;  /* Ensure the progress bar doesn't exceed the screen width */
    padding: 0 10px;  /* Add spacing on either side */
    box-sizing: border-box; /* Ensure padding doesn't affect width calculation */
    width: 100%;
}

.fruit {
    font-size: 24px;
    margin: 0 5px;  /* Add margin between fruits */
    transition: background-color 0.3s ease;
}

/* Add spacing between quiz cards */
.quiz-card {
    margin: 10px;  /* Add spacing between quiz cards */
    border: 1px solid #ddd;  /* Make sure the border is visible */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Optional: add a subtle shadow for better visibility */
}



/* Mobile-specific adjustments */
@media (max-width: 700px) {

    .quiz-card {
        margin: 5px;  /* Reduce the spacing a bit on small screens */
    }

    /* Restrict progress bar width to screen width with spacing */
    #progress-bar {
        max-width: 100%;  /* Ensure the progress bar doesn't exceed the screen width */
        padding: 0 10px;  /* Add spacing on either side */
        box-sizing: border-box; /* Ensure padding doesn't affect width calculation */
    }

}
