*, ::before, ::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body{
    padding: 1rem;
}

#main-holder{
    display: flex;
    flex-direction: row;
}

h2 {
    padding-bottom: .5rem;
    padding-top: 2rem;
}

#table-holder{
    width: fit-content;
    height: 30rem;
    border: 1px solid black;
    padding: .5rem;
    overflow-y: scroll;
}


#user-holder{
    border-collapse: collapse;
    padding: 10px;
    min-width: 300px;
}

.user{
    height: 2rem;
    line-height: 2rem;
}

.user:hover{
    background-color: lightseagreen;
}

.id{
    padding-right: 10px;
}

.first-name{
    padding-right: 10px;
}

.last-name{
    padding-right: 10px;
}

.user svg{
    fill: red;
    display: block;
    margin: auto;
    cursor: pointer;
}

#msg-holder{
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 20rem;
    display: flex;
    flex-direction: column-reverse;
}

.msg{
    margin-top: .5rem;
    width: auto;
    font-size: 1.5rem;
    background-color: lightseagreen;
    cursor: pointer;
}

.msg p{
    margin: .5rem;
}

.error{
    background-color: lightcoral;
}

.count-down{
    width:  100%;
    background-color: rgba(255, 255, 255, 0.5);
    height: .5rem;
    animation: roundtime 3s linear forwards;
    transform-origin: left center;
}




#tic-tac-toe{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

#field{
    /* width: 50%;
    height: 50%; */
    background-color: black; 
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(3, 3fr);
}

.row{
    display: flex;
    flex-direction: row;
}

.cell{
    background-color: white;
    cursor: pointer;
    /* padding: .1rem; */
    height: 150px;
    width: 150px;
}

.cell:hover{
    background-color: lightseagreen;
}

.loser{
    background-color: coral;
}

.winner{
    background-color: darkseagreen;
}

.draw{
    background-color: goldenrod;
}

#buffer-holder{
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; 
    background-color: rgba(0,0,0,0.3);
}

#buffer-holder img{
    height: 3rem;
}


@keyframes roundtime {
  to {
    /* More performant than `width` */
    transform: scaleX(0);
  }
}