/* Global styles */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.container {
    background: #fff;
    color: #333;
    border-radius: 15px;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

/* Form and buttons */
#name-input input {
    width: 45%;
    padding: 15px;
    margin: 10px 5px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: border 0.3s ease-in-out;
}

#name-input input:focus {
    border-color: #ff7e5f;
    outline: none;
}

button {
    background-color: #ff7e5f;
    color: white;
    font-size: 1.2em;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #feb47b;
}

/* Game board */
#game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.cell {
    background-color: #f1f1f1;
    height: 100px;
    width: 100px;
    border: 3px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cell:hover {
    background-color: #ff7e5f;
    transform: scale(1.05);
}

#game-board .cell:empty {
    background-color: #f9f9f9;
}

.cell:active {
    background-color: #feb47b;
}

/* Results section */
#results {
    margin-top: 30px;
    font-size: 1.2em;
}

#results p {
    margin: 10px 0;
}

/* New game button */
#new-game {
    display: none;
    background-color: #ff7e5f;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

#new-game:hover {
    background-color: #feb47b;
}
