/* General body styling */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #5c5959;
    /* Grey background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    /* Default text color */
}

.bImages {
    gap: 60px;
    width: 900px;
}


img {
    width: 200px;
    height: 200px;
    border-radius: 9px;
}



.back-button {
    position: absolute;
    top: 50px;
    width: 130px;
    left: 40px;
    padding: 8px 12px;
    background-color: #388e3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.back-button:hover {
    background-color: white;
    color: black;
}

/* Header styling */
header {
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent background */
    color: white;
    padding: 1.5em 0;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;

    top: 0;
    left: 0;
    text-align: center;
    z-index: 10;
}

/* Header text styling */
header h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    /* White text for heading */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    /* Subtle shadow for contrast */
}

/* Main section styling */
main {
    padding: 60px 20px 20px;
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

/* Question container styling */
.question-container {
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    /* Slightly translucent background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    animation: slideIn 1s ease-out;
}

/* Question styling */
.question {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: #333;
}

/* Styling for answer choices */
.choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    justify-items: center;
    animation: fadeIn 1s ease-out;
}

/* Individual choice button styling */
.choice {
    padding: 15px 25px;
    background: #4caf50;
    /* Green background */
    color: white;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 1.2em;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for choices */
.choice:hover {
    /*background: #388e3c;
    /* Darker green on hover */
    background-color: #5c5959;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Active state for choices */
.choice:active {
    background: #2c6b31;
    /* Darkest green on click */
    transform: translateY(2px);
}

/* Timer and score styling */
#timer,
#score {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 0;
    color: #fff;
    /* White color for timer and score */
    transition: color 0.3s ease;
}

#timer {
    color: white;
    /* Orange timer */
}

#score {
    color: white;
    /* Green score */
}

/* Timer and score animation */
@keyframes gradientBG {
    0% {
        background: linear-gradient(135deg, #ff7f00, #4caf50);
    }

    50% {
        background: linear-gradient(135deg, #4caf50, #ff9800);
    }

    100% {
        background: linear-gradient(135deg, #ff7f00, #4caf50);
    }
}

/* Header text glow animation */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

/* Slide-in animation for question container */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in animation for choices */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Small device responsiveness */
@media (max-width: 600px) {
    .question-container {
        padding: 15px;
    }

    .question {
        font-size: 1.3em;
    }

    .choice {
        font-size: 1.1em;
        padding: 12px 18px;
    }

    header h1 {
        font-size: 1.8em;
    }
}

#feedback {
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}

#feedback i {
    font-size: 30px;
    margin-right: 10px;
}