body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    font-family: 'Press Start 2P', monospace;
    color: white;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.controls-info {
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 10px;
    line-height: 1.5;
    color: #FFD700; /* Gold text */
}

/* Game UI styles */
.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFD700; /* Gold text */
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.game-over h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.btn {
    background-color: #DAA520; /* Darker gold */
    color: #000;
    border: 4px solid #000;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 #8B6914; /* Button shadow */
    transition: all 0.1s;
    display: inline-block;
}

.btn:hover {
    background-color: #FFD700; /* Brighter gold */
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #8B6914;
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #8B6914;
}

/* Pixel font setup */
@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/pressstart2p/v14/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Preload font to ensure it's available */
* {
    font-family: 'Press Start 2P', monospace;
}

/* Start screen specific styles */
.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-title {
    font-size: 48px;
    color: #FFD700; /* Gold */
    text-shadow: 4px 4px 0 #000;
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    color: #DAA520; /* Darker gold */
    margin-bottom: 50px;
}

.start-btn {
    background-color: #DAA520;
    color: #000;
    border: 4px solid #000;
    padding: 15px 30px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #8B6914;
    transition: all 0.1s;
}

.start-btn:hover {
    background-color: #FFD700;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #8B6914;
}

.instructions {
    margin-top: 50px;
    font-size: 12px;
    color: #FFD700;
    text-align: center;
}

/* Pixelated borders for UI elements */
.pixel-border {
    position: relative;
}

.pixel-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background-color: transparent;
    border: 4px solid #000;
    z-index: -1;
}
