body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2c3e50;
    font-family: 'Press Start 2P', cursive;
}

.game-container {
    background: #34495e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #ecf0f1;
}

#gameCanvas {
    background: #2c3e50;
    border: 4px solid #95a5a6;
}

.game-controls {
    margin-top: 20px;
    text-align: center;
}

#startBtn {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    font-family: inherit;
}

#startBtn:hover {
    background: #c0392b;
}

.game-info {
    margin-top: 15px;
    color: #bdc3c7;
    font-size: 12px;
    line-height: 1.5;
}

.level-info {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
}

.score-info {
    color: #2ecc71;
    font-size: 14px;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-in;
    border: 2px solid #e74c3c;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#restartBtn {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    font-family: inherit;
    margin-top: 15px;
    transition: background 0.3s;
}

#restartBtn:hover {
    background: #c0392b;
}

.game-over p {
    margin: 10px 0;
    font-size: 14px;
}

.game-over #finalScore {
    color: #e74c3c;
    font-size: 1.2em;
}

.level-up-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: fadeInOut 2s ease-in-out;
    z-index: 1000;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
} 