body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(to bottom right, #ff7e5f, #feb47b); /* Gradient background */
}

.container {
    text-align: center;
    position: relative;
}

h1 {
    margin-bottom: 20px;
}

.player-turn {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    justify-content: center;
    margin-bottom: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid #333;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cell:hover {
    background-color: #e0e0e0;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

/* Modal styles */
.result-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: rgb(13, 177, 164);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#result-message {
    font-size: 2rem;
    margin-bottom: 20px;
}

#new-game-button {
    padding: 10px 20px;
    font-size: 1rem;
    background: rgb(253, 230, 84);
}

#restart-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background: rgb(19, 18, 18);
    color: #e2f3e6;
}
