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

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
    overflow-x: hidden;
}

.navbar {
    background-color: #242424;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #333;
}

.game-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

.game-wrapper {
    position: relative;
    width: 1152px;
    height: 648px;
    background-color: #242424;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin: 0 auto;
    max-width: 100%;
}

#splash-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#splash-screen img {
    max-width: 100%;
    max-height: 100%;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

#canvas:focus {
    outline: none;
}

.content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .game-wrapper {
        width: 90%;
        height: calc(90vw * 0.5625); /* Maintain 16:9 aspect ratio */
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .game-container {
        margin: 1rem auto;
    }

    .game-wrapper {
        width: 95%;
        height: calc(95vw * 0.5625);
    }
}