/* font Akronim */
@import url('https://fonts.googleapis.com/css2?family=Akronim&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    height: clamp(100vh, 100vh, 100vh);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1%;
}

h2 {
    position: relative;
    text-transform: uppercase;
    font-family: "Akronim", system-ui;
    letter-spacing: 2px;
    font-size: 40px;
}

.turn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    height: 10%;
}

.turn p {
    position: absolute;
    top: 0;
    font-family: 'Aladin', cursive;
    font-weight: 900;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.turn span {
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 40px;
    width: 40px;
}

.turn span svg {
    position: relative;
    height: 35px;
}

.gameboard {
    position: relative;
    height: 340px;
    width: 340px;
    display: flex;
    flex-wrap: wrap;
    border: 10px solid #000;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 8px #ccc;
}

.gameboard .box {
    position: relative;
    height: 40px;
    width: 40px;
}

.box svg {
    position: relative;
    z-index: -9;
}

path {
    position: relative;
    z-index: -10;
}

.pieces {
    position: relative;
    z-index: 9;
}

.black {
    background-color: #444;
}

.black-piece {
    fill: rgb(28, 28, 28);
}

.white {
    background-color: #bbb;
}

.white-piece {
    fill: rgb(255, 255, 255);
}

.winnerboard {
    position: fixed;
    height: 30%;
    width: 100%;
    top: 35%;
    background: #99999973;
    border: none;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #99999973, -5px -5px 5px #99999973;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    z-index: 99;
    color: #ffffff;
    text-shadow: 0px 0px 10px #FFE5B4;
}

.winnerboard .winner {
    position: relative;
    font-size: 60px;
}

.winnerboard .btn {
    position: relative;
    font-size: 20px;
    height: 30px;
    width: 140px;
    border-radius: 10px;
    border: none;
    top: -20px;
}

.warning {
    position: relative;
    font-family: 'Aladin', cursive;
    letter-spacing: 1px;
    height: 20px;
    animation: blink .8s linear infinite;
    text-transform: capitalize;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* for mobile screen  */
@media screen and (max-width:550px) {
    body {
        justify-content: start;
        padding-block-start: 5%;
    }
}