/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #d7aefb, #b9b9fc);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Start Page */
.start-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #d7aefb, #b9b9fc);
}

.start-container {
    background: #2d2d2d;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 350px;
    color: #ffffff;
    position: relative;
}

.start-container h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #f0f0f0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.player-input {
    margin-bottom: 20px;
}

.player-input input {
    padding: 12px;
    font-size: 1rem;
    width: calc(100% - 24px);
    border-radius: 10px;
    border: 2px solid #4caf50;
    margin-top: 10px;
    color: #333;
    background: #ffffff;
    transition: border-color 0.3s;
}

.player-input input:focus {
    border-color: #2196f3;
    outline: none;
}

button {
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 10px;
    background: #2196f3;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:hover {
    background: #0d47a1;
    transform: scale(1.05);
}

/* Game Page */
.game-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #d7aefb, #b9b9fc);
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00796b;
    font-weight: 700;
}

.game-container {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 10px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.game-container:hover {
    transform: scale(1.03);
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background: #fafafa;
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cell:hover {
    background: #e0e0e0;
    transform: scale(1.05);
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cell.X {
    color: #f44336;
}

.cell.O {
    color: #4caf50;
}

.reset-button {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 10px;
    background: #ff5722;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.reset-button:hover {
    background: #e64a19;
    transform: scale(1.05);
}
