body {
    font-family: 'Arial', sans-serif;
    background-color: #282c35;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    transition: background-color 0.3s;
}

.container {
    text-align: center;
    border-radius: 15px;
    background-color: #1e1e26;
    padding: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, box-shadow 0.3s;
}

h1 {
    color: #61dafb;
    margin-bottom: 20px;
}

#mode-selector {
    margin-bottom: 30px;
}

select {
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    background-color: #373a47;
    color: #fff;
    outline: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

select:hover,
select:focus {
    background-color: #474b58;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-gap: 20px;
    margin: 40px 0;
}

.cell {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background-color: #282c35;
    border: 3px solid #1e1e26;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, border-color 0.3s;
}

.cell.winner {
    background-color: #4caf50;
    border-color: #43a047;
}

.cell:hover {
    background-color: #1e1e26;
}

#info {
    margin-top: 40px;
}

#turn {
    font-size: 24px;
    margin-bottom: 20px;
    color: #61dafb;
}

#status {
    font-size: 20px;
    margin-bottom: 20px;
    color: #61dafb;
}

#score {
    font-size: 24px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-score {
    margin: 0 15px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e26;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#play-again {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #61dafb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#play-again:hover {
    background-color: #4fa3d1;
}

@media (max-width: 600px) {
    .board {
        grid-template-columns: repeat(3, 100px);
    }

    .cell {
        width: 100px;
        height: 100px;
        font-size: 20px;
    }
}
