body {
    margin: 0;
    background: linear-gradient(135deg, #1e1e1e, #353535);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

.game-container {
    position: relative;
    text-align: center;

    /* Flexbox properties to align items vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    border: 4px solid #666;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#gameStatus {
    margin-top: 10px;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#playerIndicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 10px;
    background-color: red; /* Default to 'X' player color */
}

#resetButton {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 18px;
    background: #444;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#resetButton:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.config-overlay {
    /* Center the config-overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; /* Spacing below the controls */

    background: rgba(50, 50, 50, 0.8);
    padding: 10px 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.config-overlay label {
    margin-right: 10px;
    font-weight: bold;
}

.config-overlay select {
    background: #222;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    margin-right: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.config-overlay select:hover {
    background: #333;
}

@media (max-width: 600px) {
    #gameStatus {
        font-size: 20px;
    }

    #resetButton {
        font-size: 16px;
        padding: 10px 25px;
    }

    .config-overlay label {
        font-size: 14px;
    }

    .config-overlay select {
        font-size: 14px;
    }
}
