body {
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

#gameCanvas {
    background-color: #253051;
    border: 2px solid #fff;
    box-shadow: 0 0 20px #0ff;
}
#instructions {
    margin-top: 20px;
    font-size: 1rem;
    color: #ccc;
}

.netflix-logo-text {
    color: #E50914; 
    font-family: 'Netflix Sans', 'Gotham A', 'Gotham B', Helvetica, Arial, sans-serif;
    font-weight: 700; 
    font-size: 3vw; 
    letter-spacing: -0.05em; 
    text-transform: uppercase; 
    
    display: inline-block; 
    transform: perspective(500px) rotateX(15deg);
    transform-origin: bottom center; 
    text-shadow: 
        2px 2px 0px rgba(0,0,0,0.5),
        -2px -2px 0px rgba(255,255,255,0.1), 
        0 0 50px rgba(229,9,20,0.7); 
    -webkit-transform: perspective(500px) rotateX(15deg);
    -moz-transform: perspective(500px) rotateX(15deg);
}

/* --- Mobile Controls Styling --- */
#controls {
    width: 90%;
    max-width: 600px;
    margin-top: 20px;
    padding: 15px;
    background-color: #333;
    border-radius: 10px;
    box-shadow: inset 0 0 10px #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    user-select: none; 
    -webkit-user-select: none;
}

#dpad {
    display: grid;
    grid-template-columns: 40px 40px 40px;
    grid-template-rows: 40px 40px 40px;
    gap: 5px;
}

.dpad-btn {
    background-color: #555;
    border-radius: 5px;
    border: 2px solid #444;
    box-shadow: 0 3px 0 #222;
    position: relative;
}

.dpad-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #222;
}

#btn-up { grid-column: 2; grid-row: 1; }
#btn-down { grid-column: 2; grid-row: 3; }
#btn-left { grid-column: 1; grid-row: 2; }
#btn-right { grid-column: 3; grid-row: 2; }

#action-button-container {
    display: flex;
    align-items: center;
}

#action-btn {
    width: 70px;
    height: 70px;
    background-color: #A02020;
    border: 2px solid #701010;
    border-radius: 50%;
    box-shadow: 0 5px 0 #400808;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}
#action-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #400808;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    body {
        height:fit-content;
    }

    .netflix-logo-text {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 6vw;
    }

    #gameCanvas {
        width: 90vw;
    }
}
