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

:root {
    --box-bg-color: rgb(246, 219, 183);
}

body,
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    background-color: rgb(235, 231, 231);
    height: 100vh;
}

.main {
    width: 100vw;
    margin-top: 30px;
}

.status-box {
    display: none;
    font-size: 1.8rem;
    color: #3e2f1c;
    padding: 5px;
    width: 300px;
    border-radius: 20px;
    text-align: center;
}

.game-board {
    /* display: grid; */
    display: none;
    grid-template-columns: repeat(3, 1fr);
    /* background-color: navy; */
    background-color: rgb(235, 231, 231);
    box-shadow: gray 10px 10px 12px;
    gap: 5px;
    padding: 5px;
    border-radius: 10px;
    overflow: visible;
    /* ensures box-shadow be visible on the last column */
}

.cell {
    width: 100px;
    height: 100px;
    border: 1px solid gray;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4.0rem;
    border-radius: 5px;
    background-color: #bbb;
}

.game-board:hover .cell:not(.filled) {
    opacity: 0.3;
    border-width: 0.5px;
}

.game-board .cell:not(.filled):hover {
    opacity: 1 !important;
    border: none;
    box-shadow: 2px 2px 12px;
    border-radius: 5px;
}

.play-btn,
.start-btn,
.start-game-btn {
    width: 100px;
    height: 40px;
    border: #3e2f1c solid 1px;
    border-radius: 20px;
    text-align: center;
    padding: 4px 8px;
    color: #3e2f1c;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover,
.start-btn:hover,
.start-game-btn:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.play-btn,
.start-btn,
.status-box {
    background: var(--box-bg-color);
}

.header {
    /* display: flex; */
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 40px;
    font-size: 1.5rem;
}

.start-btn {
    font-size: 1.5rem;
}

[class^="player"] {
    display: flex;
    gap: 20px;
    align-items: center;
}

.symbol {
    background-color: aqua;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #bbb;
    font-weight: bold;
}

.player1 .symbol {
    color: black;
}

.player2 .symbol {
    color: white;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.players-names {
    display: none;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    padding: 25px 50px;
    font-size: 1.5rem;
    width: 480px;
    height: 300px;
    background-color: var(--box-bg-color);
    box-shadow: gray 10px 10px 12px;
    border-radius: 10px;
}

.players-names h2 {
    font-size: 1.8rem;
    flex: 1;
}

.players-names input {
    padding: 5px 10px;
    border-radius: 5px;
}

.players-names input::placeholder {
    font-style: italic;
    color: #888;
}

.players-names input:focus {
    outline: none;
    border: 2px solid brown;
    box-shadow: brown 1px 1px 12px;
}

.start-game-btn {
    background-color: rgb(154, 100, 100);
    color: white;
    font-weight: normal;
    width: 130px;
}

.players-names label>*,
.start-game-btn {
    font-size: 1.2rem;
}

.players-names label {
    margin-block-end: 10px;
}

h1 {
    text-decoration: underline;
}
footer {
    color: rgb(67, 67, 67);
    width: 100vw;
    padding-block: 10px;
    text-align: center;
}

.start-btn {
    margin-top: 50px;
}