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

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

#gameCanvas {
    display: none;
    margin: 0 auto;
    background: #000;
    border: 2px solid #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.game-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 600px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-header h1 {
    margin: 0;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.info-item span:first-child {
    font-weight: bold;
    color: #ffeb3b;
}

#score, #lives {
    font-size: 24px;
    color: #fff;
    min-width: 50px;
    text-align: center;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

.game-controls {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.key {
        display: inline-block;
        width: 50px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        font-size: 20px;
        font-weight: bold;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 10;
}

.start-screen h2 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.start-screen p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.start-btn {
    padding: 20px 60px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.start-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }

    .game-header h1 {
        font-size: 24px;
    }

    .game-info {
        gap: 20px;
    }

    .info-item {
        font-size: 14px;
    }

    #score, #lives {
        font-size: 18px;
        min-width: 40px;
    }

    .game-controls {
        gap: 10px;
        padding: 15px;
    }

    .key {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
}
