* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #6c5ce7;
    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: #6c5ce7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #5649c0;
}

#game-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #e9ecef;
    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%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.number-bubble {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: float 3s infinite ease-in-out;
    position: absolute;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.number-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.correct-click {
    animation: correctClick 0.5s forwards;
}

@keyframes correctClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

.incorrect-click {
    animation: incorrectClick 0.5s forwards;
}

@keyframes incorrectClick {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

button {
    padding: 12px 25px;
    margin: 15px 0;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #5649c0;
}

.hidden {
    display: none !important;
}

.level-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(108, 92, 231, 0.8);
    color: white;
    border-radius: 20px;
    font-weight: bold;
} 