* {
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.background {
    background-color: #212532;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Title */
.title {
    color: white;
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

/* Improved input container */
.title label {
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin: 5px;
}

.title input {
    width: 60px;
    padding: 5px;
    font-size: 16px;
    border: 2px solid #498AFB;
    border-radius: 5px;
    text-align: center;
    outline: none;
    margin: 5px;
}

#updateGrid {
    background-color: #498AFB;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.hide {
    display: none;
}

#updateGrid:hover {
    background-color: #356ac3;
}

/* Player display */
.display {
    color: white;
    font-size: 32px;
    text-align: center;
    margin: 10px 0;
}

.display-player {
    font-weight: bold;
    /* transition: color 0.3s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.player1-turn {
    color: red;
}

.player2-turn {
    color: yellow;
}

/* Fixing the Grid */
.container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;  /* Space between tiles */
    padding: 10px;
    background-color: #1A1D27;
    border-radius: 10px;
    width: auto;
    min-width: 700px; /* Ensures grid is large */
    max-width: 90vw;  /* Makes it responsive */
}

/* Tile design */
.tile {
    border: 2px solid white;
    aspect-ratio: 1 / 1;  /* Keeps squares */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    border-radius: 50%;  /* Makes them circular */
    background-color: #2C2F3A;
    transition: 0.2s;
    min-width: 80px; /* Ensures proper size */
}

.tile:hover {
    transform: scale(1.1);
}

/* Player colors */
.player1 {
    background-color: red;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.player2 {
    background-color: yellow;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Controls section */
.controls {
    margin-top: 20px;
}

.button-74 {
    background-color: #fbeee0;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800 !important;
    cursor: pointer;
    font-size: 20px;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    transition: 0.3s;
}

.announcer {
    position: absolute;  /* Allows it to be placed over the board */
    top: 50%;            /* Move it to the middle vertically */
    left: 50%;           /* Move it to the middle horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: white;        /* Text color */
    font-size: 2rem;     /* Adjust text size */
    padding: 20px;       /* Add some spacing */
    border-radius: 10px; /* Rounded corners */
    text-align: center;  /* Center the text */
    z-index: 10;         /* Ensure it's above other elements */

}



.button-74:hover {
    background-color: #fff;
}

.button-74:active {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        min-width: 100%;
        max-width: 100%;
        gap: 5px;
    }

    .tile {
        min-width: 60px;
        font-size: 30px;
    }

    .title {
        font-size: 30px;
    }

    .display {
        font-size: 20px;
    }

    .button-74 {
        font-size: 18px;
        padding: 10px 20px;
    }
}


.scoreboard {
    display: flex;
    gap: 20px;
}

.score {
    font-size: 1.2rem;
    color: white;
}

.player1-score span {
    color: red;
}

.player2-score span {
    color: yellow;
}