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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#gameContainer {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    border: 3px solid #333;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.screen h1 {
    font-size: 3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFD700;
}

.screen h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FF6B6B;
}

.hidden {
    display: none !important;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.menu-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #FF8E53, #FF6B6B);
}

.menu-btn:active {
    transform: translateY(0);
}

#scoreDisplay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 1000;
}

#highScoresList {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    min-width: 300px;
}

.high-score-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 1.1em;
    text-align: center;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 300px;
}

.setting-item label {
    font-size: 1.1em;
    margin-right: 20px;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#finalScore {
    font-size: 1.5em;
    margin: 20px 0;
    color: #FFD700;
    font-weight: bold;
}

.name-input-section {
    margin: 20px 0;
    text-align: center;
}

.name-input-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #FFFFFF;
}

.name-input-section input {
    padding: 10px 15px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    width: 250px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.name-input-section input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive design */
@media (max-width: 850px) {
    #gameCanvas {
        width: 100vw;
        height: 100vh;
    }
    
    .screen h1 {
        font-size: 2em;
    }
    
    .screen h2 {
        font-size: 1.8em;
    }
    
    .menu-btn {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 180px;
    }
} 