* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
}

h1 {
    margin-bottom: 10px;
    color: #2c3e50;
}

p {
    margin-bottom: 30px;
    color: #34495e;
}

.carousel {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.bar {
    height: 250px;
    width: 80px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite alternate;
    position: relative;
    overflow: hidden;
}

.bar:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.bar.correct {
    animation: correct 0.5s;
    border: 3px solid #2ecc71;
}

.bar.wrong {
    animation: wrong 0.5s;
    border: 3px solid #e74c3c;
}

/* Default blue for all bars */
.bar {
    background-color: #3498db;
}

/* Different blue nuances will be set dynamically via JavaScript */

/* Result check marks */
.result-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.result-mark.correct {
    background-color: #2ecc71;
    animation: popIn 0.5s forwards;
}

.result-mark.wrong {
    background-color: #e74c3c;
    animation: popIn 0.5s forwards;
}

#result {
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
    min-height: 25px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#newGame, .button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

#newGame:hover, .button:hover {
    background-color: #2980b9;
}

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

@keyframes correct {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-7px);
    }
}

@keyframes wrong {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    50% {
        transform: translateX(10px);
    }
    75% {
        transform: translateX(-5px);
    }
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel {
        flex-wrap: wrap;
    }
    
    .bar {
        height: 180px;
        width: 60px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .bar {
        height: 150px;
        width: 40px;
    }
} 