body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    color: #333;
    text-align: center;
}

#game-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
}

#instruction {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 20px;
}

#fruit-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    min-height: 150px;
}

.fruit {
    width: 100px;
    height: 100px;
    margin: 10px;
}

#options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Slightly reduce gap */
    margin-top: 20px;
}

.option-button {
    flex: 1 1 auto; /* Allow to grow and shrink, with auto basis */
    min-width: 100px; /* Minimum width for buttons */
    max-width: 160px; /* Maximum width for buttons */
    padding: 15px 25px; /* Slightly reduced padding */
    font-size: 1.4em; /* Slightly reduced font size */
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option-button:hover {
    background-color: #218838;
}

#message {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.correct {
    color: #28a745;
}

.incorrect {
    color: #dc3545;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.back-button:hover {
    background-color: #5a6268;
}

#next-button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#next-button:hover {
    background-color: #0056b3;
}

#start-button {
    padding: 20px 40px;
    font-size: 1.8em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 30px;
}

#start-button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

#score-container, #level-container {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

#score, #level {
    font-weight: bold;
    color: #007bff;
}

.level-complete-message {
    color: #28a745;
    font-size: 1.8em;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.level-up-animation {
    animation: level-up 1s ease-out;
}

@keyframes level-up {
    0% { transform: scale(1); color: #007bff; }
    50% { transform: scale(1.2); color: #ffc107; }
    100% { transform: scale(1); color: #007bff; }
}