* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
}

.game-title {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.status {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #555;
    font-weight: 600;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 10px; /* Space between cells */
    margin-bottom: 2rem;
}

.cell {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps cells square */
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.cell:hover {
    background-color: #f9f9f9;
    transform: scale(1.02);
    border-color: #bbb;
}

/* --- styling for X and O (to be added by JS) --- */
.cell.x {
    color: #e74c3c; /* Red for X */
    font-weight: bold;
}
.cell.x::before {
    content: "X";
}

.cell.o {
    color: #3498db; /* Blue for O */
    font-weight: bold;
}
.cell.o::before {
    content: "O";
}

/* --- restart button --- */
.restart-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.restart-btn:hover {
    background-color: #27ae60;
}

#current-page {
    color: #246daf;
}

.sidenav {
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 20px;
    left: 20px;
    background: #eee;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidenav a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 19px;
    color: #2196F3;
    display: block;
}

.sidenav a:hover {
    color: #064579;
}