/* styles/main.css */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    background-color: #72afed; /* Sky color */
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border: 4px solid #222;
    max-width: 100%;
    max-height: 100%;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

#stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#score {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#speedometer {
    color: #fffa65;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#reset-btn {
    pointer-events: auto;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s;
}

#reset-btn:active {
    transform: scale(0.95);
}

#mobile-controls {
    position: absolute;
    bottom: 100px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.pedal {
    pointer-events: auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0ff;
    background: rgba(0, 255, 255, 0.2);
    color: #0ff;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#gas-btn {
    border-color: #0ff;
    color: #0ff;
    background: rgba(0, 255, 255, 0.2);
}

#brake-btn {
    border-color: #f0f;
    color: #f0f;
    background: rgba(255, 0, 255, 0.2);
}

.pedal:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 800px) {
    #mobile-controls {
        display: none;
    }
}
