@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #0a0a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding-top: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(10, 10, 26, 0.8) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(0deg, rgba(10, 10, 26, 0.8) 1px, transparent 1px) 0 0 / 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background-color: rgba(20, 20, 40, 0.7);
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.game-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 2px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    z-index: 20;
    opacity: 0.3;
}

#game-logo {
    position: relative;
    width: 500px;
    margin: 0 auto 20px auto;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff,
        0 0 40px #ff00ff;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 30;
    padding: 5px 0;
    animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
    from {
        text-shadow: 
            0 0 10px #ff00ff,
            0 0 20px #ff00ff;
    }
    to {
        text-shadow: 
            0 0 15px #ff00ff,
            0 0 25px #ff00ff,
            0 0 35px #ff00ff;
    }
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 10;
}

.controls-info {
    margin: 20px auto 0 auto;
    background-color: rgba(20, 20, 40, 0.8);
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    text-align: center;
    width: 80%;
    max-width: 600px;
}

.controls-info p {
    margin: 5px 0;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}