body {
    height: 100%;
    background-color: white;
    margin: 0px;
    font-family: sans-serif;
    font-weight: 900;
    overflow: hidden;
}

html {
    height: 100%;
}

#body {
    height: 100%;
    display: flex;
    flex-direction: column
}

#middle {
    width: 100%;
    height: calc(100vh - 160px);
}

#board {
    width: 340px;
    height: 340px;
    background-color: sandybrown;
    display: flex;
    gap: 20px;
    flex-direction: column;
    border-style: solid;
    border-width: 20px;
    border-color: sienna;
    border-radius: 40px;
}

#board:hover {
    cursor: default;
}

#user {
    width: 100%;
    height: calc(100vh - 160px);
    background: linear-gradient(90deg, lightpink, lightpink 50%, lightgreen 50%, lightgreen 100%);
    display: flex;
    justify-content: center;
    flex-direction: column;
    animation-fill-mode: both;
    animation-duration: 2s;
    z-index: 0;
}

.twobox {
    min-height: 80px;
    width: 100%;
    gap: 40px;
    display: flex;
    justify-content: center;
}

@keyframes usershow {
    from {transform: translateY(calc(160px - 100vh));}
    to {transform: translateY(0px);}
}

@keyframes userhide {
    from {transform: translateY(0px);}
    to {transform: translateY(calc(160px - 100vh));}
}

#game {
    width: 100%;
    height: calc(100vh - 160px);
    background-color: lemonchiffon;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation-fill-mode: both;
    animation-duration: 2s;
    z-index: 0;
}

@keyframes gameshow {
    from {transform: translateY(0px);}
    to {transform: translateY(calc(160px - 100vh));}
}

@keyframes gamehide {
    from {transform: translateY(calc(160px - 100vh));}
    to {transform: translateY(0px);}
}

.filler {
    height: 100%;
    display: flex;
    align-items: center;
}

#inputs {
    gap: 20px;
    display: flex;
    font-weight: 900;
    justify-content: center;
}

#buttons {
    gap: 20px;
    display: flex;
    font-weight: 900;
    justify-content: center;
}

input {
    width: 200px;
    height: 40px;
    font-family: sans-serif;
    font-weight: 900;
    border: none;
    color: white;
    border-radius: 10px;
    text-align: center;
}

input::placeholder {
    color: white;
}

.button {
    background-color: deeppink;
    color: white;
    width: 100px;
    height: 40px;
    border-radius: 10px;
    border-style: none;
    font-family: sans-serif;
    font-weight: 900;
}

#top {
    background-color: deeppink;
    font-size: 60px;
    line-height: 80px;
    text-align: center;
    color: white;
    height: 80px;
    position: relative;
    z-index: 1;
    transition-duration: 0.3s;
}

#top:hover {
    background-color: white;
    color: deeppink;
    cursor: default;
}

#bottom {
    background-color: mediumseagreen;
    font-size: 60px;
    line-height: 80px;
    text-align: center;
    color: white;
    height: 80px;
    position: relative;
    z-index: 1;
    transition-duration: 0.3s;
}

#bottom:hover {
    background-color: white;
    color: mediumseagreen;
    cursor: default;
}

.gamebuttons {
    width: 100px;
    height: 40px;
    border-radius: 10px;
    color: white;
    background-color: orange;
    border-style: none;
    font-family: sans-serif;
    font-weight: 900;
}

.row {
    width: 340px;
    height: 100px;
    background-color: transparent;
    display: flex;
    gap: 20px
}

#overlay {
    position: absolute;
    width: 340px;
    height: 340px;
    background-color: transparent;
    z-index: 2;
    display: none;
    font-size: 50vw;
}

#overlay:hover {
    cursor: default;
}

line {
    stroke: purple;
    stroke-width: 40;
    display: none;
    opacity: 0.5;
}

.Xline {
    stroke: deeppink;
    display: block;
}

.Oline {
    stroke: mediumseagreen;
    display: block;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: floralwhite;
    color: floralwhite;
    font-family: sans-serif;
    text-align: center;
    line-height: 100px;
    font-weight: 900;
    font-size: 90px;
    border: none;
}

.cell:hover {
    cursor: default;
}

.X {
    color: deeppink;
}

.O {
    color: mediumseagreen;
}

._ {
    color: floralwhite;
}

.orange {
    color: orange;
}

button {
    transition-duration: 0.4s;
}

button:hover {
    transform: scale(1.3);
    cursor: pointer;
}

button:active {
    transform: scale(0.9)
}

button:disabled:hover {
    transform: scale(1);
    cursor: default;
}

button:disabled {
    opacity: 10%
}