:root {
    --main-background: #19233C;
    --main-text: #EDEDFF;
    --border-color: #00FFCC;
    --win: #FF00F8;
    --main-button: #FFFF00;
    --turn: #00FFF8;
}

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

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

    background-color: var(--main-background);
    /* background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 0%); */

    color: var(--main-text);
    width: 75%;
    margin: 0px auto;
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);

    width: 50%;
    aspect-ratio: 1/1;
    margin: 50px auto;
}

h1,
p {
    text-align: center;
}

p {
    font-size: 1.1rem;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-family: Arial, Helvetica, sans-serif;

    color: white;
    cursor: pointer;
}


.cell-fill {
    pointer-events: none;
}

.row1,
.row2 {
    border-bottom: 5px solid var(--border-color);
}

.col1,
.col2 {
    border-right: 5px solid var(--border-color);
}


button {
    background-color: var(--main-button);
    color: black;
    padding: 10px;
    border: none;

    border-radius: 10px;
}

button:hover {
    outline: 2px solid var(--main-text);
}

.game-info {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 20px;
}

.btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 50%;
    margin: 20px auto;
}

dialog {
    background: #fff;
    /* background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 0%); */

    margin: auto;

    width: 500px;
    height: 200px;

    position: relative;

}

.dialog {
    padding: 15px;

    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 10px;
    margin: 10px auto;

    width: 100%;

    font-size: 1.1rem;
}

#btn-modal {
    flex: 0 0 auto;
    width: 100px;
}

input[type="text"] {
    font-size: 1.1rem;

    border: none;
    outline: none;

    border-bottom: 1px solid black;

    margin-left: 10px;
}

input[type="text"]::placeholder {
    opacity: 0.8;
}

.dialog>h2 {
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-modal {
    background-color: #fff;
    color: #000;
    font-weight: bold;
    font-size: 1.35rem;
    align-self: flex-end;
    padding: 0;

    position: absolute;
    right: 20px;
    top: 10px;
}

#close-modal:hover {
    outline: none;
    font-size: 1.5rem;
}

.cell-won {
    color: var(--win);
}

hr {
    border-color: var(--win);
    margin: 10px 100px;
}

.turn {
    color: var(--turn);
}

h1 {
    margin: 10px auto;
}

label {
    margin-left: 10px;
}