body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #333; /* Darker background */
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    overflow: hidden; /* Hide scrollbars */
}

#game-container {
    text-align: center;
    position: relative;
    width: 480px; /* Match canvas width */
    height: 640px; /* Match canvas height */
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

#game-canvas {
    background-color: #70c5ce; /* Fallback color */
    border: 3px solid #fff;
    border-radius: 10px;
}

#character-selection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 10;
    border: 2px solid #ffc107;
    color: #fff;
}

#character-selection h2 {
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

#character-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 400px;
    overflow-y: auto;
}

.character-card {
    width: 90px;
    padding: 15px;
    border: 2px solid #555;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #444;
}

.character-card:hover, .character-card.selected {
    border-color: #ffc107;
    background-color: #555;
    transform: scale(1.05);
}

.character-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #666;
    padding: 5px;
}

.character-card p {
    margin: 10px 0 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #eee;
}

#score-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3em;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    z-index: 5;
}

#how-to-play {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

#how-to-play p {
    margin: 0;
    line-height: 1.6;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#how-to-play strong {
    color: #ffc107;
    font-weight: 700;
}
