body {
    margin: 0;
    padding: 0;
    background-color: #2E57A5;
    font-family: monospace;
    transition: 300ms;
    overflow: hidden;

    &.damage {
        background-color: rgba(255, 133, 133, 0.753);
    }

    &.rainbow {
        animation: rainbow 10s linear infinite;
    }
}


@keyframes rainbow {

    100%,
    0% {
        background-color: rgb(255, 0, 0);
    }

    8% {
        background-color: rgb(255, 127, 0);
    }

    16% {
        background-color: rgb(255, 255, 0);
    }

    25% {
        background-color: rgb(127, 255, 0);
    }

    33% {
        background-color: rgb(0, 255, 0);
    }

    41% {
        background-color: rgb(0, 255, 127);
    }

    50% {
        background-color: rgb(0, 255, 255);
    }

    58% {
        background-color: rgb(0, 127, 255);
    }

    66% {
        background-color: rgb(0, 0, 255);
    }

    75% {
        background-color: rgb(127, 0, 255);
    }

    83% {
        background-color: rgb(255, 0, 255);
    }

    91% {
        background-color: rgb(255, 0, 127);
    }
}

footer {
    background-color: #000;
    color: #FFF;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;

    >span>a {
        text-decoration: none;
        color: #FFF;
    }

}

#lose {
    position: absolute;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    text-align: center;
    padding-top: 10%;

    >span {
        display: block;
        font-size: 7em;
    }

    &.gameEnd {
        display: block;
    }
}

#mainWrapper {
    display: block;
    margin: auto;
    width: fit-content;
}

#infoWrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1%;
    border-bottom: solid black thin;
}

#fieldWrapper {
    font-size: 0;
    width: fit-content;
    height: fit-content;
    margin: 10em auto;
}

.field {
    width: 12em;
    height: 7em;
    display: inline-block;
    margin: 0;
    font-size: 1rem;
    overflow: hidden;
    background-color: #2E57A5;
    
    &.damage {
        background-color: rgba(255, 133, 133, 0.753);
    }
    
    &.rainbow {
        animation: rainbow 10s linear infinite;

    }
}

.firstRow {
    filter: brightness(1);
}

.secondRow {
    filter: brightness(0.9);
}

.thirdRow {
    filter: brightness(0.8);
}

.fourthRow {
    filter: brightness(0.7);
}

.fifthRow {
    filter: brightness(0.6);
}

.sixthRow {
    filter: brightness(0.5);
}

#cook {
    display: flex;
    margin: 2em auto;
    transform: scale(2);
    rotate: -20deg;
    z-index: 3;
    filter: brightness(1);
}

.throw {
    rotate: 30deg;
}

.food {
    display: flex;
    margin: 2em auto;
    transform: scale(1.5);
    filter: brightness(1);
    z-index: 2;

    &.displayNone {
        display: none;
    }
}

#points {
    font-weight: bold;
    font-size: 4em;
    display: inline-block;
    width: 30%;
    margin: 0;
    padding: 0;
}

#tickrate {
    font-weight: bold;
    font-size: 4em;
    display: inline-block;
    width: 30%;
    text-align: right;
    margin: 0;
    padding: 0;
}

#livesWrapper {
    width: 40%;
    height: 100%;
    display: inline-flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: 300ms;

    &.damage {
        transform: scale(1.3);
    }
}

#lives {
    display: inline-block;
    width: fit-content;
    height: 100%;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.life {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.displayNone {
    display: none;
}

#stopAudio {
    float: left;
    margin: 2em;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
}