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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
}

h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-info {
    color: white;
    margin-bottom: 20px;
}

.game-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

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

.stat-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-right: 8px;
}

.stat-value {
    font-size: 1.3em;
    font-weight: bold;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover:not(:disabled) {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#pauseBtn {
    background-color: #ff9800;
}

#pauseBtn:hover:not(:disabled) {
    background-color: #e68900;
}

.home-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#gameCanvas {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.game-over-message {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-over-message h2 {
    color: #e74c3c;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.game-over-message p {
    color: #333;
    font-size: 1.2em;
    margin: 5px 0;
}

.new-high-score {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.3em;
    margin-top: 10px;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    #gameCanvas {
        width: 300px;
        height: 300px;
    }

    h1 {
        font-size: 2em;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }
}
