body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-image: url('assets/Levels/Summer_details\ \(16\ x\ 16\).png'); /* Replace with your background image URL */
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    transition: background-image 0.8s;
    pointer-events: none;
    filter: blur(6px);
}

#gameCanvas, #ui {
    position: relative;
    z-index: 1;
}

#ui {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0);
    padding: 20px;
}

#ui h1 {
    margin-bottom: 15px;
    font-size: 2em;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #06a50c;
    color: #06a50c;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
}

.stat-item {
    background: rgba(6, 165, 11, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
}

.car-info {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #06a50c;
    text-shadow: 0 0 5px rgba(74, 255, 89, 0.5);
}

.buttons {
    margin-top: 15px;
}

button {
    margin: 0 8px;
    padding: 12px 24px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 2px solid #06a50c;
    border-radius: 8px;
    background: linear-gradient(145deg, #2a5f32, #2c421e);
    color: #06a50c;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

button:hover {
    background: linear-gradient(145deg, #06a50c, #87bd35);
    color: #fff;
    box-shadow: 0 0 15px rgba(119, 255, 74, 0.5);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#gameCanvas {
    background: #0a0a0a;
    border: 4px solid #06a50c;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(137, 255, 74, 0.4);
    display: block;
    margin: 0 auto 30px auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.controls {
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #06a50c;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
}

.control-key {
    background: #06a50c;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin: 0 2px;
}
