/* style.css */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #87CEEB;
    /* 하늘색 */
    font-family: 'Malgun Gothic', sans-serif;
    color: white;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.hud-item {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    border: 2px solid #555;
    text-shadow: 1px 1px 2px #000;
}

#lap-counter {
    color: #81c784;
}

#position {
    color: #ffd54f;
}

#speedometer {
    color: #e57373;
}

#countdown {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: bold;
    color: #ff9800;
    text-shadow: 4px 4px 0 #000, 0 0 30px red;
    z-index: 15;
    opacity: 0;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
    pointer-events: auto;
}

.screen.active {
    display: flex;
}

.screen h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ffd54f;
    text-shadow: 2px 2px 5px #000;
}

.screen p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn {
    padding: 15px 30px;
    font-size: 24px;
    font-family: inherit;
    font-weight: bold;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.1s, background 0.2s;
}

.btn:hover {
    background: #0d47a1;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}