/* Yellow Game - Main Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.game-title {
    font-size: 3rem;
    font-weight: 900;
    color: #FFA500;
    text-shadow: 3px 3px 0px #FFD700;
    margin-top: 20px;
    margin-bottom: 5px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: 25px auto;
}

.btn {
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Car logo styling */
.car-logo {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.car-svg {
    width: 150px;
    height: auto;
    filter: drop-shadow(3px 3px 6px rgba(255, 165, 0, 0.4));
    animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Score row styling for results page */
.score-row {
    background: #F5F5F5;
}

.score-row.first-place {
    background: #FFF9E6;
}

/* Player item styling for lobby page */
.player-item {
    padding: 10px;
    margin: 5px 0;
    background: #FFF9E6;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-name {
    font-weight: 600;
}

.host-badge {
    background: #FFD700;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .game-title {
        font-size: 2rem;
        margin-top: 10px;
        margin-bottom: 5px;
    }
    .game-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    form {
        margin: 10px auto !important;
        max-width: 100% !important;
        padding: 0 4vw;
    }
    .game-mode-option {
        margin-bottom: 10px !important;
        padding: 12px !important;
    }
    .game-mode-option label strong {
        font-size: 1rem !important;
    }
    .game-mode-option p {
        margin: 6px 0 6px 20px !important;
        font-size: 0.85rem !important;
    }
    #target_score_config,
    #timed_config {
        margin-left: 16px !important;
        margin-top: 8px !important;
    }
    .button-container {
        gap: 10px !important;
        margin: 20px auto !important;
        max-width: 300px;
    }
    .btn {
        padding: 12px 18px !important;
        font-size: 1rem !important;
    }
    .btn-secondary {
        margin-top: 8px !important;
    }
}