body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}
canvas {
    display: block;
}
#info {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    color: white;
    font-size: 24px;
    text-shadow: 1px 1px 2px black;
    pointer-events: none;
}

.score-info, .season-info {
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.season-info {
    position: relative;
}

.season-info:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
}

/* Season indicator colors */
body[data-season="summer"] .season-info:after {
    background-color: #FFC107; /* Golden yellow for summer */
}

body[data-season="autumn"] .season-info:after {
    background-color: #E67E22; /* Orange for autumn */
}

body[data-season="winter"] .season-info:after {
    background-color: #7FB3D5; /* Ice blue for winter */
}

body[data-season="spring"] .season-info:after {
    background-color: #AEEA00; /* Light green for spring */
}
#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: none;
    z-index: 100;
    width: 400px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
#gameOver button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}
#startScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
}
#startScreen h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #4CAF50;
}
#startScreen .author {
    font-size: 18px;
    font-style: italic;
    margin-top: 0;
    color: #cccccc;
}
#startScreen button {
    padding: 15px 30px;
    font-size: 24px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}
#controls {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
}

/* Mobile Controls */
#mobileControls {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 50;
}

#mobileControls button {
    width: 80px;
    height: 80px;
    font-size: 36px;
    background-color: rgba(76, 175, 80, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#mobileControls button:active {
    background-color: rgba(76, 175, 80, 1);
    transform: scale(0.95);
}

/* Media Query for Desktop */
@media (min-width: 768px) {
    #mobileControls {
        display: none;
    }
}

/* Media Query for Mobile */
@media (max-width: 767px) {
    #startScreen h1 {
        font-size: 36px;
    }
    
    #controls {
        font-size: 14px;
    }
    
    #startScreen button {
        font-size: 20px;
        padding: 12px 24px;
    }
}

/* Leaderboard Styles */
#leaderboardEntry {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 16px;
}

#submitScore {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}

#leaderboardDisplay {
    margin-top: 20px;
}

.leaderboard-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 5px;
}

#leaderboardTable {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-family: 'Courier New', monospace;
}

#leaderboardTable th, 
#leaderboardTable td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #444;
}

#leaderboardTable th {
    background-color: #222;
    color: #4CAF50;
}

#leaderboardTable tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

#leaderboardTable tr:hover {
    background-color: rgba(76, 175, 80, 0.2);
}

/* Highlight top 3 scores */
#leaderboardTable tr:nth-child(1) {
    background-color: rgba(255, 215, 0, 0.2); /* Gold */
}

#leaderboardTable tr:nth-child(2) {
    background-color: rgba(192, 192, 192, 0.2); /* Silver */
}

#leaderboardTable tr:nth-child(3) {
    background-color: rgba(205, 127, 50, 0.2); /* Bronze */
}

.consent-notice {
    font-size: 12px;
    color: #ffcc00;
    margin-top: 5px;
    font-style: italic;
    line-height: 1.4;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 3px;
    border-left: 3px solid #ffcc00;
} 