body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1e3c72;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#modal-message {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffeb3b;
}

#modal-close {
    padding: 10px 20px;
    font-size: 1em;
    background: #ffeb3b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#modal-close:hover {
    background: #fdd835;
}
.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffeb3b;
}

.scoreboard {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.scoreboard p {
    margin: 5px 0;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    margin: 20px auto;
}

.cell {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
}

.cell:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.cell.X {
    color: #ff4d4d;
}

.cell.O {
    color: #4d94ff;
}

#reset {
    padding: 10px 20px;
    font-size: 1em;
    background: #ffeb3b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#reset:hover {
    background: #fdd835;
}