@font-face {
    font-family: "Trebuchet MS";
    src: url(../fonts/trebuchet_ms.ttf) format('truetype');
    font-weight : normal;
    font-style : normal;
}
body {
    color : white;
    margin: 0;
    padding: 0;
    background-color: #34495e;
    display : flex;
    justify-content: center;
    font-family: "Trebuchet MS", serif;
}
#game{
    box-sizing: border-box;
    margin:0;
    width: 500px;
    height:500px;
    position: relative;
}
#gamePieces{
    position: absolute;
    width: 100%;
    height: 100%;
}
.line{
    width: 100%;
    display: flex;
    justify-content: center;
    height: calc(100% / 8);
}
.case{
    height: 100%;
    width: calc(100% / 8);
    position: relative;
}
.backgroundWhite{
    background-color: #1abc9c;
}
.backgroundBlack{
    background-color: #16a085;
}
.piece{
    box-sizing: border-box;
    margin : 1%;
    width: calc(calc(100% /8) - 2%);
    height: calc(calc(100% /8) - 2%);
    position : absolute;
    z-index: 1;
    transition: 0.1s;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.rookWhite{
    background-image: url(../images/pieces/rookWhite.png);
}
.knightWhite{
    background-image: url(../images/pieces/knightWhite.png);
}
.bishopWhite{
    background-image: url(../images/pieces/bishopWhite.png);
}
.queenWhite{
    background-image: url(../images/pieces/queenWhite.png);
}
.kingWhite{
    background-image: url(../images/pieces/kingWhite.png);
}
.pawnWhite{
    background-image: url(../images/pieces/pawnWhite.png);
}
.rookBlack{
    background-image: url(../images/pieces/rookBlack.png);
}
.knightBlack{
    background-image: url(../images/pieces/knightBlack.png);
}
.bishopBlack{
    background-image: url(../images/pieces/bishopBlack.png);
}
.queenBlack{
    background-image: url(../images/pieces/queenBlack.png);
}
.kingBlack{
    background-image: url(../images/pieces/kingBlack.png);
}
.pawnBlack{
    background-image: url(../images/pieces/pawnBlack.png);
}
.cursorPointer{
    cursor: pointer;
}
.selectedPiece{
    cursor : default;
}
.selectedPiece::before{
    content : "";
    display : block;
    width: 20%;
    height: 20%;
    background-color: #d35400;
    border-radius: 50%;
    position: absolute;
    left : 50%;
    transform: translate(-50%, -50%);
    bottom : 10%;
}
.caseSelectable, .caseEatable{
    cursor: pointer;
}
.caseSelectable::before, .caseEatable::before{
    content : "";
    display : block;
    width: 20%;
    height: 20%;
    border-radius: 50%;
    position: absolute;
    left : 50%;
    top : 50%;
    transform: translate(-50%, -50%);
}
.caseSelectable::before{
    background-color: #f1c40f;
}
.caseEatable::before{
    width: 40%;
    height: 40%;
    z-index: 2;
    background-color: #e74c3c;
}
.animation-current-player{
    animation: moveContainerFromBottomToBottom 3s ease-out forwards;
    width : 300px;
    bottom : 3%;
    position : fixed;
    z-index : 3;
    left : 3%;
    text-align : center;
    transform-origin: 0 0;
    box-sizing: border-box;
    padding : 15px 20px;
    background-color: #2c3e50;
    color : rgba(255,255,255,1);
}
@keyframes moveContainerFromBottomToBottom{
    0%{
        opacity: 0;
        bottom : 0;
        transform: translate(0, 100%);
    }
    3%, 97%{
        opacity: 1;
        bottom : 3%;
        transform: translate(0, 0);
    }
    100%{
        opacity: 0;
        bottom : 0;
        transform: translate(0, 100%);
    }
}
#blackContainer{
    animation: fadeIn 0.3s linear;
    background-color: rgba(0,0,0,0.7);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 4;
}
@keyframes fadeIn {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 100%;
    }
}
#blackContainer p{
    font-size: 25pt;
    margin: 0;
    position: absolute;
    top: 50%;
    text-align: center;
    width: 100%;
    transform: translate(0, -50%);
}
