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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

#game {
    text-align: center;
}

#board {
    display: grid;
    grid-template-columns: repeat(7, 60px);
    gap: 5px;
    background-color: #0066cc;
    padding: 10px;
    border-radius: 10px;
    width: max-content;
    margin: 20px auto;
}

.container {
    display: flex;          /* Use flexbox for horizontal layout */
    align-items: center;    /* Center vertically if needed */
    gap: 20px;              /* Optional: spacing between the board and the button */
    justify-content: center; /* Center the container on the page */
    margin: 20px;           /* Optional: add some margin around the container */
}

.controls {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between buttons */
}

.field {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@keyframes drop {
    0% {
        transform: translateY(-1000%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

.piece {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    position: absolute;
    top: 10%;
    animation: drop 1s ease-out;
}

.piece.red {
    background-color: #ff4c4c;
}

.piece.blue {
    background-color: #4c6eff;
}

button {
    margin-top: 15px;
    padding: 10px 20px 10px 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #333;
    color: white;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #555;
}