body {
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#game-container {
    text-align: center;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #9c27b0;
    margin-bottom: 10px;
}

#stats-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-size: 18px;
}

canvas {
    background-color: #333;
    border-radius: 5px;
}

#restart-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

#restart-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.hidden {
    display: none;
}

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

#how-to-play p {
    margin: 0;
    line-height: 1.6;
}

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