:root{
    --cell-size: 10vh;
}
body{
    padding:20px;
    width:100%;
    display: inline-block;
    justify-content: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: rgb(118, 150, 86);
    font-size:larger;
    margin:0;
    background-color: rgb(46, 45, 45);
}
h1{
    margin-block-start:0px;
}
.board{
    margin: 20px;
    display: inline-grid;
    justify-content:center;
    align-content:center;
    grid-template-columns: repeat(8, auto);
}

.list{
    width: 30%;
    height: 100%;
    grid-template-columns: repeat(2, auto);
    background-color: rgb(48, 51, 51);
    border: solid rgb(0, 0, 0);
    display: inline-grid;
}
.list *{
    margin: 5px 30px 5px 30px;
    color:rgb(238, 238, 210);
}
div.cell{
    color:black;
    font-size: small;
    position:relative;
    display: grid;
    width: var(--cell-size);
    height: var(--cell-size);
    background-color: rgb(118, 150, 86);
    border:1px solid rgb(0, 0, 0);
    user-select:none;
}
div.cellalt{
    background-color:rgb(238, 238, 210);
}
div.cell.lastmove{
    background-color: rgb(201, 204, 123);
}
div.cell.selectedmove{
    background-color: rgb(176, 204, 123);
}

img{
    -webkit-user-drag: none;
}
.figure{
    -webkit-user-drag:element;
    cursor:grab;
    position:absolute;
    justify-self: center;
    align-self: center;
    width: var(--cell-size);
    height: var(--cell-size);
}
.pawn_promote_marker{
    position:relative;
    justify-self: center;
    align-self: center;
    width: calc(0.7*var(--cell-size));
    height: calc(0.7*var(--cell-size));
    z-index: 2;
    background-color: rgb(118, 150, 86); 
    border: solid black 2px;
}
.move_marker{
    position:absolute;
    justify-self: center;
    align-self: center;
    width: calc(1*var(--cell-size));
    height: calc(1*var(--cell-size));
    opacity: 0.7;
}
#menu{
    padding:20px;
    width:55%;
    background-color: rgb(48, 51, 51);
    border: solid rgb(0, 0, 0);
}
a {
    color:rgba(255, 255, 255, 0.514);
}



.popup{
    width: 40%;
    background-color: rgba(238, 238, 210, 0.96);
    border: solid black;
    color:black;
    border-radius: 7%;
    position:absolute;
    top: 10%;
    left: 30%;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-content:center;
}
.popup img{
    border-radius: 50%;
    border:solid black;
    width:15%;
}
.popup *{
    margin: 5%;
    align-self: center;
}
.popup div{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
button{
    color:black;
}





#loadingSpinner{
    display: inline-block;
    width: 50px;
    border: 3px solid rgba(144, 216, 71, 0.5);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}
