* {
    position: relative;
    box-sizing: border-box;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

:root {
    margin: 0;
    padding: 0;
}

body{
    background-color: grey;
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-size: 17px;
}

.container{
    top: 0;
    left: 0;
    height : 100vh;
    width : 100%;
    position: absolute;
    background-image: url("chesspaper1.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(5px);
}
#preGame-overlay{
    display: flex;
    align-items: center;
    text-align: center;
    justify-items: center;
    flex-direction: column;
}
.light-sqr{
    background-color: #FFFDD0;
    border: 1px solid #FFFDD0;
}
.dark-sqr{
    background-color: #573a2e;
    border : 1px solid #573a2e;
}

.board-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    max-height: 100vh;
    overflow: hidden auto;
}

table{
    text-align: center;
    margin: auto;
    box-shadow: 0px 0px 10px 10px #130a07;
    border-collapse: collapse;
}

td{
    padding: 0px;
    font-size: 0;
    aspect-ratio: 1/1;
    table-layout: fixed;
    transition: .2s ease-in-out;

    > img {
        width: 100%;
        object-fit: contain;
    }
}

#end-overlay,
#promote-overlay{
    
    display : none; 
    top : 10px;
    width : 100%;
    height : 650px;
    text-align: center;
    align-items: center;
    margin-right : auto;
    margin-left : auto;
    position: absolute;
    flex-direction: column;
    z-index : 10;

}
.captureable{
    background-color: red;
}
.promotable{
    background-color: purple;
}
.playable{
    background-color: lightblue;
}
.activated{
    background-color: green;
}
.check{
    background-color: yellow;
}
/* .threattowhite{
    background-color: #222;
}
.threattoblack{
    background-color: #888;
} */
span,
h2,
h1{
    color: #573a2e;
    text-shadow: 3px 3px 4px #FFFDD0;
    text-transform: uppercase;
    font-weight: bolder;
    font-size: 40px;    
}
h1{
    margin-bottom: 10px;
}
h2{
    font-size: 25px;
}
#side,
#winner{
    font-size: 50px;
    text-shadow: 5px 5px 20px #FFFDD0;
}

#promotion{
    display : flex;
    flex-direction: row;
    justify-content: space-between;
    height: 300px;
    width: 500px;
    align-items: center;
}

button{
    background-color: green;
    padding: 5px 10px;
    color : white;
    font-size: 25px;
    font-weight: bold;
    border: none;
    box-shadow: 0px 0px 10px 5px #130a07;
    border-radius: 99px;
    transform: scale(1);
    transition: .25 ease-in-out;
    cursor: pointer;
}
button:hover{
    background-color: #00dd00;
    transform: scale(1.2);
}

#noSabi {
    color: inherit;
    text-decoration: none;
    text-shadow: 0px 0px 10px 5px #130a07;
    transform: scale(1);
    transition: .25 ease-in-out;

    &:hover {
        transform: scale(1.2);
    }
}

#effects,
#intro-head{
    color : white;
    margin-bottom: 30px;
}
.creatorbut{
    font-size: 30px;
}

#intro,
#creator,
#startGame{
    display: flex;
    flex-direction: column;
    gap: 20px;
    top: 20vh;
    position: relative;
    color : white;
}

.hide {
    display : none !important;
}

h3{
    font-weight: bold;
}

.err-msg:not(:empty) {
    background-color: pink;
    color: red;
    border: 1px solid salmon;
    padding: 10px;
    border-radius: .5em;
}
.bloody{
    color : red;
    text-shadow : 0px 10px 10px #AA0000;
    margin-top: 5%;
    margin-bottom: 10px;

}
#mateImg{
    width: 400px; 
    height : 300px; 
    border-radius: 20px;
    margin-bottom: 10px;
}
#winner{
    margin-top: 20px;
}
/* #end-overlay{
    background-image: url("whiteCheckmate.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    z-index : 25;
} */
i{
    font-size: 20px;
    font-weight: bold;
    color : white;
    position : fixed;
    right : 50px;
}
#mini{
    text-align: center;
    font-size: 10px;
    color: white;
    text-shadow: 3px 3px 4px #FFFDD0;
    text-transform: none;
    font-weight: normal;
}
#notify{
    position: absolute;
    bottom: 20px;
    transform: translateX(-105%);
    left: 0;
    width: min(400px, 70%);
    background-color: white;
    border-radius: 1em;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
}

@keyframes slideInOut{
    0% {transform: translateX(-105%)}
    20% {transform: translateX(10px)}
    80% {transform: translateX(10px)}
    100% {transform: translateX(-105%)}
}

#note-theme{
    height : 15px;
}
#note{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    height: fit-content;
    border-radius: 10px;
    margin-left: 20px;
    margin-bottom: 10px;
}

.history-rev {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #573a2e;
    aspect-ratio: 1/1;
    border-radius: 50%;
    gap: 10px;
    align-items: center;
    justify-content: center;
/* 
    &.hide {
        display: flex;
    } */
}

.rank{
    height: 70px;
    width : 25px;
}
.file{
    height : 25px;
    width : 70px;
}
.rank,
.file{
    font-size: 15px;
    font-weight: bold;
    background-color: #573a2e;
    color: #FFFDD0;
}
.edge{
    width : 25px;
    height : 25px;
}

@media screen and (max-width: 800px){

    table{
        width: 100%;
        box-shadow: 0px 0px 10px 10px #130a07;
        border-collapse: collapse;
    }
    /* td{
        padding: 0px;
        font-size: 35px;
        height: auto;
        width: auto;
    } */
    
}
