@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #353839;
    font-family: "Roboto", sans-serif;
}

h1 {
    position: absolute;
    top: 50px;
    color: #e4e4e4;;
}

.container {
    width: 400px;
    height: 700px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text {
    width: auto;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    margin: 0 auto;
}

.users {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    text-align: center;
    width: 400px;
    height: 70px;
    text-overflow: ellipsis;
    overflow: hidden;
}

p {
    color: #e4e4e4;;
}

.mark {
    margin-top: 10px;
    font-size: 32px;
}

.player-1,
.player-2 {
    width: 50%;
}

.users > #player1 {
    padding-right: 10px;
}

.users > #player2 {
    width: 50%;
    padding-left: 10px;
}

#winner,
#draw {
    width: 100%;
    height: 30px;
    text-align: center;
    margin-top: 20px;
    font-size: 24px;
    color: #7df17d;
}

#draw {
    font-size: 26px;
    color: #fceb04;
}

.container-game {
    width: 400px;
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 2px solid #585858;
    background-color: #e4e4e4;
}

.row-1 > .col-1,
.row-1 > .col-2,
.row-2 > .col-1,
.row-2 > .col-2 {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

.row-1 > .col-3,
.row-2 > .col-3 {
    border-bottom: 1px solid black;
}

.row-3 > .col-2 {
    border-right: 1px solid black;
    border-left: 1px solid black;
}

.row {
    width: 100%;
    height: calc(100% / 3);
    display: flex;
    cursor: pointer;
}

.row > div {
    width: calc(100% / 3);
}

.col {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
}

.clicked {
    cursor: default;
}

.win {
    cursor: default;
    opacity: 0.7;
}

.buttons {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

button {
    width: auto;
    height: 40px;
    padding: 10px;
    opacity: 0.5;
    background-color: #87ceeb;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    border-radius: 5px;

    cursor: default;
}

.start,
.reset {
    cursor: pointer;
}

.reset:hover {
    background-color: #54b3d8;
}