body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #E678F2, #339);
    background-size: cover;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
    font-size: 24px;
}
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
}
.cell {
    width: 100px;
    height: 100px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 10px;
    color: black;
}
.cell:hover {
    background-color: #D7BBDA;
    color: black;
}
.status {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}
.reset-button, .new-game-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}
.reset-button:hover, .new-game-button:hover {
    background-color: #88817F;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    color: #000; /* Set text color to black */
}
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #000; /* Add text color for the close button */
}
.modal-buttons {
    margin-top: 20px;
}
/* Hide the New Game button on the main screen */
.new-game-button {
    display: none;
}
.modal.active .new-game-button {
    display: block;
}