@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
    font-family: "Poppins", sans-serif;
    background-color: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

section {
    text-align: center;
    border-radius: 10px;
    width: 400px; /* Reduced width for better spacing */
    padding: 20px; /* Added padding to fit content properly */
    background-color: #292929;
    box-shadow: 0px 10px 36px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game--title {
    width: 100%; /* Adjust width to fit */
    max-width: 200px; /* Limit the max width */
    display: block;
    margin: 10px auto; /* Center the image */
}


.game--container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 310px; /* Adjusted to match the grid */
    margin: 20px auto;
}

.cell {
    width: 100px;
    height: 100px;
    box-shadow: 0 0 0 1px #fff;
    border: 1px solid #fff;
    cursor: pointer;
    line-height: 100px;
    font-size: 24px;
    text-align: center;
    color: #fff;
}

.game--status {
    color: #fff;
    margin: 10px 0;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    background-color: #ff0000;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    transition: 0.25s;
    background-color: #ff3838;
}
.cell img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
