* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #e8f5e9;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.instructions {
    font-size: 1.5em;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 15px auto;
    width: fit-content;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-button {
    display: inline-block;
    margin: 10px;
    padding: 8px 16px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #388e3c;
}

#game-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #f1f8e9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

#start-screen, #game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

#insect-display {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.insect-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.insect-image:hover {
    transform: scale(1.05);
}

#options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.option-button {
    padding: 12px 20px;
    background-color: #4caf50;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 150px;
}

.option-button:hover {
    background-color: #388e3c;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.option-button.correct {
    background-color: #2ecc71;
    animation: pulse 0.5s;
}

.option-button.incorrect {
    background-color: #e74c3c;
    animation: shake 0.5s;
}

.option-button:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#fact-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    width: 90%;
    min-height: 80px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#fact-container.visible {
    opacity: 1;
}

#next-button {
    padding: 12px 25px;
    background-color: #2e7d32;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 15px 0;
}

#next-button:hover {
    background-color: #388e3c;
}

button {
    padding: 12px 25px;
    margin: 15px 0;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #388e3c;
}

.hidden {
    display: none !important;
}

.feedback-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.5em;
    font-weight: bold;
    animation: fadeInOut 2s forwards;
    z-index: 5;
}

.feedback-message.correct {
    background-color: #a5d6a7;
    color: #2e7d32;
}

.feedback-message.wrong {
    background-color: #ef9a9a;
    color: #c62828;
}

.bonus-time {
    position: fixed;
    top: 120px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeInOut 2s forwards;
    z-index: 9999;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Responsive design */
@media (max-width: 768px) {
    .instructions {
        font-size: 1.2em;
        min-width: auto;
        width: 90%;
    }
    
    #game-container {
        height: 700px;
    }
    
    #insect-display {
        height: 250px;
    }
    
    .option-button {
        font-size: 1em;
        padding: 10px 15px;
        min-width: 120px;
    }
} 