:root {
    --primary-color: #2196f3;
    --hover-color: #1976d2;
    --text-color: white;
    --nav-height: 60px;
    --cell-size: 100px;
    --mark-size: calc(var(--cell-size) * 0.8);
}

body {
    font-family: 'Poppins', sans-serif;
}

.game-container {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.player-turn {
    font-size: 1.1rem;
    color: #333;
}

#currentPlayer {
    color: var(--primary-color);
    font-weight: 600;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px;
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
}

.board::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background-image: url('logo.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

.cell {
    width: var(--cell-size);
    height: var(--cell-size);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--mark-size) * 0.7);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.cell:hover {
    background-color: rgba(255, 255, 255, 1);
}

.cell.x, .cell.o {
    background-color: rgba(255, 255, 255, 0.95);
    cursor: not-allowed;
}

.cell.x {
    color: #e74c3c;
}

.cell.o {
    color: #3498db;
}

.cell.win {
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
}

.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;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.modal-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.reset-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.reset-button:hover {
    background-color: var(--hover-color);
}

@media (max-width: 768px) {
    :root {
        --cell-size: 80px;
    }

    .game-info {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    :root {
        --cell-size: 60px;
    }
} 