@import url('https://fonts.googleapis.com/css2?family=Jaro:opsz@6..72&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0;
    height: 100vh;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    padding: 20px;
    height: 100%;
}

header {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 10px;
}

.player-section {
    grid-row: 2 / 3;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-section p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.player-section strong {
    font-size: 1.4rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.player-section input {
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    width: 80%;
}

.player-section input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#player1-status,
#player2-status {
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin-top: auto;
}

.player-one-section {
    grid-column: 1 / 2;
}

.player-two-section {
    grid-column: 3 / 4;
}

.game-section {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-section p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Enlarged Tic Tac Toe board */
.game-container {
    display: grid;
    grid-template-columns: repeat(3, 150px);
    grid-template-rows: repeat(3, 150px);
    gap: 5px;
    background-color: #fff;
    padding: 5px;
    border: 2px solid #333;
    border-radius: 8px;
}

.game-container div {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.game-container div:hover {
    background-color: #d0d0d0;
}

/* Bigger Restart button */
.action-buttons-area {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.action-buttons-area button {
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-buttons-area button:hover {
    background-color: #555;
}

/* Highlight winner */
.player-section.winner {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

/* Highlight Loser */
.player-section.loser {
    background-color: #edd4d4;
    border: 2px solid #a72828;
}

/* Tie condition styling */
.player-section.tie {
    background-color: #fff9c4;
    border: 2px solid #ffeb3b;
}