.attacked {
    box-shadow: inset 0 0 0 2px red;
}

.defended {
    box-shadow: inset 0 0 0 3px green;
}

.hanging {
    position: relative;
    animation: pulse 1.5s infinite;
}

.tension {
    position: absolute;
    top: -10%;
    right: -8%;      
    z-index: 10;
    width: 40px;
    height: 40px;
    animation: flicker 2s infinite;
}

.sweat {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40px;
    height: 40px;
    z-index: 10;
    transform: rotate(35deg) scale(0.6);
    animation: drop 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.6);
    }
    50% {
        box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.9);
    }
    100% {
        box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.6);
    }
}

@keyframes flicker {
    0% {
        transform: rotate(20deg) scale(0.8);
    }
    50% {
        transform: rotate(-20deg) scale(1);
    }
    100% {
        transform: rotate(20deg) scale(0.8);
    }
}

@keyframes drop {
    0% {
        top: -10%;
    }
    50% {
        top: 10%;
    }
    100% {
        top: 10%;
        opacity: 0;
    }
}

:root {
    --bg-color: #233d4d;
    --surface-color: #fe7f2d;

}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: "Fuzzy Bubbles", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.navbar {
    position: sticky;
    width: 94%;
    left: 3%;
    border-radius: 15px;
    list-style-type: none;

    margin: 10;
    padding: 0;
    overflow: hidden;
    background-color: var(--surface-color);
    color: var(--bg-color);

    box-shadow: 1px 10px 30px 1px var(--bg-color), 2px 10px 20px 1px var(--surface-color);
}

.navbar li {
    float: left;
    font-size: 20px;
}

.navbar li p {
    font-size: larger;
    margin: 25px 30px;
}

.navbar li .credits {
    position: absolute;
    right: 10px;
}

.navbar li .credits a {
    color: aliceblue;
    text-decoration: none;
}

.inputBtn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 100%;
    top: 50%;
    right: 50%;
    transition: top 0.7s cubic-bezier(0.45,-0.01, 0.04, 1);
    transform: translate(50%, -50%);
}

.up {
    top: 20%;
}


.title {
    color: var(--surface-color);
    font-size: 30px;
}

#inputFEN {
    position: relative;
    width: 500px;
    height: 30px;

    background-color: var(--bg-color);
    border: none;

    border: 3px solid var(--surface-color);
    border-radius: 10px;
    color: var(--surface-color);
}

#generateBtn, #gimmeBtn {
    background-color: transparent;
    border: 1px solid var(--surface-color);
    position: relative;
    top: 40px;
    color: var(--surface-color);
    font-weight: 700;
    cursor: pointer;
    height: 40px;
    width: 100px;
    padding: 5px;
    margin: 5px 20px;
    overflow: hidden;
    transition: 0.75s;
    z-index: 2;
}

#generateBtn::after , #gimmeBtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    clip-path: circle(0% at 50% 50%);
    transition: 0.75s;
    z-index: -1;
}

#generateBtn:hover::after, #gimmeBtn:hover::after {
    clip-path: circle(100% at 50% 50%);
}

#generateBtn:hover, #gimmeBtn:hover {
    color: #233d4d;
}

.body-contents {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    right: 50%;
    
}

#text-loading {
    display: none;
    color: var(--surface-color);
    font-size: large;
    position: absolute;
    top: 60%;
    right: 50%;
}

#myBoard {
    position: absolute;
    top: 65%;
    right: 50%;
    display: none;
    transform: translate(50%, -50%);
}

.tutorial {
    position: absolute;
    right: 20px;
    bottom: 40px;
}

.cont {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.cont img {
    width: 60px;
    height: 60px;
    transform: scale(0.7);
}

.cont h2 {
    width: 400px;
    color: var(--surface-color);
    overflow-wrap: break-word;
    font-size: 18px;
    
}