
*:hover {
    transition-duration: 0.1s;
}
svg {
    /*fully antialias the svgs make sure theres no pixelation at any sizes*/
    shape-rendering: geometricPrecision;
    pointer-events: none;
}

:root {
    font-size: 16px;
    --font-color: white;
    --uipanel-color: rgba(255, 255, 255, 0.1);
    --table-odd-color: rgba(255, 255, 255, 0.1);
    --table-even-color: rgba(0, 0, 0, 0);
	--icon-color: rgba(255,255,255,0.7);
	--icon-hover-color: rgba(255,255,255,1.0);
    --kbd-color: rgb(50,50,50);
}

body {
    /* set universal styles */
    margin: 0;
    padding: 0;
    color: var(--font-color);
    user-select: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    background-color: #000000;
    transition-duration: 0s;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}



html,
body {
    scroll-behavior: smooth
}


#HUD {
    width: 100%;
    height: 100;
}


#HUDtop {
    display: flex;
    flex-direction: row;
    position: relative;
    /* align the items to the top */
    align-items: flex-start;
    justify-content: space-between;
    justify-items: center;
    font-size: 2.5rem;
    text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.25);
    padding: 1rem;
    width: 100%;
}


sup {
    font-size: 0.4em;
}

#healthBar {
    width: 10rem;
    height: 2rem;
    outline: 2px solid white;
    align-self: center;
    border-radius: 4px;
}

#healthBar::-webkit-progress-value {
    /* specifically the moving bar on the progress bar */
    background: rgb(255, 63, 63);
    border-radius: 2px;
}

#healthBar::-webkit-progress-bar {
    /* specifically the box which contains the moving bar */
    background: rgb(26, 25, 23);
    box-shadow: 0px 0px 11px -2px rgba(255, 255, 255, 1),
        inset 0px 0px 11px -3px rgba(255, 255, 255, 0.3);
}

#HP {
    position: relative;
    display: flex;
}

#HUDcharacter {
    align-self: center;
    width: 5rem;
    height: 5rem;
    border: solid 2px white;
    border-radius: 4px;
    margin-right: 1rem;
}

#ranking {
    align-self: center;
    font-size: 1.5rem;
}

#score {
    width: 20rem;
    text-align: right;
}

#coins {
    width: 20rem;
    text-align: center;
}

#waves {
    width: 20rem;
    text-align: center;
}

#fps {
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    position: absolute;
    top: 2px;
    right: 2px;
    text-shadow: none;
    font-weight: 300;
    color: rgb(215, 215, 215);
}

#prelimScoreTable {
    width: 100%;
    overflow-y: scroll;
}

#prelimScoreTable td {
    padding: 0.25rem !important;
}

.currentScore {
    background: var(--table-odd-color);
}


#prelimScoreContainer {
    width: 20rem;
    height: 7.5rem;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    bottom: 0;
    left: 0;
    position: absolute;
    font-family: 'JetBrains Mono', monospace !important;
    filter: brightness(0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

/* hide the scroll bar */
#prelimScoreContainer::-webkit-scrollbar {
    width: 0px;
}
#prelimScoreContainer::-webkit-scrollbar-track {
    background: transparent;
}
#prelimScoreContainer::-webkit-scrollbar-thumb {
    background: transparent;
}
#prelimScoreContainer::-webkit-scrollbar-thumb:hover {
    background: transparent;
}



#name {
    font-size: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
}


/* PAUSE MENU BELOW */

#paused {
    display: grid;
    grid-template-areas:
        "paused"
        "resume"
        "quit";
    align-items: center;
    justify-items: center;
    vertical-align: middle;
    height: 50vh;
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20vh;
    grid-template-rows: 12em 8em 8em;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}

#pausedText {
    position: relative;
    font-size: 100px;
    grid-area: paused;
    padding-left: 0.2em;
    padding-right: 0.2em;
}

#resume {
    grid-area: resume;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    font-size: 4em;
    width: min(calc(100% - 2em), 8em);
    height: calc(100% - 0.5em);
}

#quit {
    grid-area: quit;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    font-size: 4em;
    width: min(calc(100% - 2em), 8em);
    height: calc(100% - 0.5em);
}

/* SHOP UI BELOW */

#shop {
    display: flex;
    flex-direction: row;
    position: absolute;
    justify-content: space-evenly;
    width: 30rem;
    height: 30rem;
    align-items: center;
    justify-items: center;
    vertical-align: middle;
    top: 0;
    left: 0;
    z-index: 100;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.25);
    transition-duration: 0s;
}

.upgradePanel {
    display: grid;
    position: relative;
    grid-template-areas:
        "title"
        "icon"
        "cost";
    grid-template-rows: 1fr 3fr 1fr;
    grid-gap: 1em;
    align-items: center;
    justify-items: center;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    background-color: rgba(85, 85, 85, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition-duration: 0.1s;
    z-index: -1;
}



.upgradeHitbox {
    width: 6rem;
    height: 10rem;
    z-index: 100;
    transition-duration: 0.5s;
    border-radius: 8px;
}

.upgradeHitbox:hover {
    transition: 0.1s ease-out;
    background-color: rgba(95, 95, 95, 0.7);
    transform: translateY(-1rem);
}

.tooExpensive {
    filter: brightness(50%) saturate(50%) !important;
    text-shadow: none !important;
    background-color: rgba(85,85,85,0) !important;
    border-radius: 8px;
}

.tooExpensive:hover {
    filter: brightness(50%) saturate(50%) !important;
    text-shadow: none !important;
    background-color: rgba(85,85,85,0) !important;
    transform: translateY(0) !important;
    border-radius: 8px;
}

.upgradeTitle {
    grid-area: title;
    align-self: center;
    text-align: center;
    justify-self: center;
    vertical-align: middle;
    font-size: 1rem;
    border-radius: 16px 16px 0px 0px;
    position: relative;
    z-index: -1;
}

.upgradeIcon {
    grid-area: icon;
    width: calc(100% - 2rem);
    height: auto;
    align-self: center;
    justify-self: center;
    border-radius: 4px;
    position: relative;
    z-index: -1;
}

.upgradeCost {
    grid-area: cost;
    align-self: center;
    text-align: center;
    justify-self: center;
    font-size: 1rem;
    border-radius: 0px 0px 16px 16px;
    position: relative;
    z-index: -1;
}


/* TITLE SCREEN BELOW */




#desktopReminder {
    display: none;
}

#titleScreen {
    display: grid;
    grid-template-areas:
        /* title screen layout */
        "title title title title"
        "showcase play scoreboard side"
        "options name name side2";
    align-items: center;
    justify-items: center;
    vertical-align: middle;
    height: 100vh;
    grid-template-columns: 6rem 2fr 2fr 6rem;
    grid-template-rows: 1fr 4fr 1fr;
    /*box-shadow: 0px 0px 8px rgba(200, 200, 200, 0.8);*/
}

#sidebar {
    width: 6rem;
    height: 100vh;
    position: fixed;
    justify-self: start;
    background-color: var(--uipanel-color);
    transition-duration: 0.2s;
    overflow-y: scroll;
    scrollbar-width: none;
}

#sidebar::-webkit-scrollbar {
    width: 0px;
}


#sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.sidebar-item {
    z-index: 99;
    width: 100%;
    font-size: 73px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 6rem;
    width: 6rem;
    transition-duration: 0.2s;
}

.sidebar-item svg {
    /*center svg vertically */
    margin-top: auto;
    margin-bottom: auto;

}

.sidebar-item:hover {
    background-color: rgba(30, 30, 30, 0.5);
    transition-duration: 0.2s;
    /* outline: 1px solid rgb(55,55,55); */
    cursor: pointer;
}
.sidebar-item:hover .sidebutton {
    max-width: 55%;    
}
.sidebar-item svg path {
    fill: var(--icon-color);
}
.sidebar-item:hover svg path {
    fill: var(--icon-hover-color);
}
.sidebar-item:hover svg {
    filter: drop-shadow(0px 0px 18px rgba(255, 255, 255, 0.2));
}
.sidebar-item:last-child {
    margin-top: auto;
}

.sidebutton {
    min-width: 2rem;
    max-width: 50%;
    z-index: -1;
    transition-duration: 0.1s;
    pointer-events: none;
}

/* .sidebutton path {
    stroke-width: 0.75;
} */

#wiiButton {

    transform: translateX(-120%);

    transition: transform 0.17s ease-out;
}


#sidebar:hover #wiiButton {
    transform: translateX(0);
}

.button-text {
    font-size: 1.5rem;
}

#gameTitle {
    font-size: clamp(3em, 6vw, 8em);
    position: relative;
    padding-left: 8rem;
    padding-right: 8rem;
    text-decoration: none;
    text-align: middle;
    vertical-align: bottom;
    grid-area: title;
    animation: rotating 15.5s ease-in-out infinite;
}

#gameSubtitle {
    grid-area: title;
    font-size: 2rem;
    position: relative;
    color: #ff6020;
    font-weight: 500;
    bottom: 10px;
    right: -300px;
    align-self: end;
}

#playArea {
    grid-area: play;
    height: 57%;
    position: relative;
    display: grid;
    align-items: center;
    justify-items: center;
    vertical-align: middle;
    grid-template-areas:
        "play"
        "name"
        "pictures";
    grid-gap: 2em;
    justify-self: center;
    align-self: center;
}

#pictureSelect {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    grid-area: pictures;
}

#pictureSelect img {
    width: 4rem;
    height: auto;
    border-radius: 4px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition-duration: 0s;
    image-rendering: -moz-crisp-edges; /* Firefox */
    image-rendering: -o-crisp-edges; /* Opera */
    image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming) */
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
    z-index: 100
}

#pictureSelect img:hover {
    backdrop-filter: brightness(1.5);
    outline: solid 2px rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.selected {
    transform: scale(1.1);
    transition-duration: 0s;
    outline: solid 2px rgba(255, 255, 255, 1);
    filter: drop-shadow(0px 0px 18px rgba(255, 255, 255, 0.2));
}

.selected:hover {
    outline: solid 2px rgba(255, 255, 255, 1) !important;
    backdrop-filter: brightness(1) !important;
}

#nameBox {
    grid-area: name;
    position: relative;
    width: min(85%, 15rem);
    height: min(2em, 8vh);
    background-color: var(--uipanel-color);
    opacity: 0.8;
}

#nameBox:hover {
    transition-duration: 0.1s;
    backdrop-filter: brightness(1.1);
    opacity: 1;
}

#playButton {
    font-size: 6.5rem;
    position: relative;
    padding-top: 0px;
    padding-right: 10px;
    padding-bottom: 0px;
    padding-left: 10px;
    text-decoration: none;
    text-align: middle;
    grid-area: play;
    text-shadow: 0px 0px 50px rgba(255, 255, 255, 0.7);
    background-color: var(--uipanel-color);
}

#playButton:hover {
    transition-duration: 0.3s;
}

.leaderboard {
    grid-area: scoreboard;
    justify-self: center;
    position: relative;
    font-weight: 300;
    font-family: 'JetBrains Mono', monospace;
    height: 100%;
    background-color: var(--uipanel-color);
    box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: grid;
    grid-template-areas:
        "title"
        "content";
    grid-template-rows: 0.1fr 2fr;
    overflow-y: hidden;
    overflow-x: hidden;
    text-shadow: none;
    transition-duration: 0s;
    image-rendering: smooth;
}

.scoreTable {
    width: 100%;
    overflow-y: scroll ;
    
    
}
tbody {
    scroll-snap-type: y proximity;
}

tr {
    scroll-snap-align: start;
}

.scoreProfile {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    transition-timing-function: ease-out;
}

.scoreProfilePicture {
    /* auto margin top and bottom but 0.5rem right, nothing left */
    margin: auto 1rem auto 0;
    height: 2rem;
    width: auto;
    transition-timing-function: ease-out;
    border-radius: 0.2em;
}

table {
    border: none;
    border-collapse: collapse;
}

th,
td {
    border: none;
    border-collapse: collapse;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0.55rem;
}


tr {
    border-collapse: collapse;
}

tr:hover {
    transform: scale(1.05) ease-out;
}

.scoreTable tr:nth-child(odd) {
    background: var(--table-odd-color);
}

.scoreTable tr:nth-child(even) {
    background: var(--table-even-color);
}

.scoreTable tr:first-child, #prelimScoreTable tr:first-child {
    color: gold;
}

.scoreTable  td:first-child, #prelimScoreTable td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding-right: 0;
    text-align: center;
    width: 2.5rem;
}

.scoreTable  td:last-child, #prelimScoreTable td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: center;
}


.leaderboardTitle {
    grid-area: title;
    position: relative;
    font-size: 4rem;
    text-align: center;
    padding-left: max(1rem, 2vw);
    padding-right: max(1rem, 2vw);
}

.leaderboardContent {
    grid-area: content;
    font-size: 1.2rem;
    position: relative;
    text-align: center;
    padding: 1em;
    padding-right: 0.5rem;
    padding-top: 0.15em;
    transition-duration: 0s;
    overflow-x: hidden;
    overflow-y: scroll;
}

#refreshScores {
    position: relative;
    align-self: start;
    justify-self: left;
    grid-area: title;
    transition-duration: 0.1s;
}

.refreshClick {
    animation: spin 0.5s ease-out 1;
    transition-duration: 0.1s;
}

#loginRegisterButton {
    position: relative;
    padding: 0.2em;
    grid-area: name;
    align-self: center;
}

#dev {
    position: relative;
    grid-area: showcase;
    top: 100px;
}

#loggedInAs {
    font-size: 0.8rem;
    color: var(--font-color);
    background-color: rgba(255, 255, 255, 0);
    position: absolute;
    align-self: right;
    vertical-align: bottom;
    bottom: 0.25em;
    right: 0.25em;
    box-sizing: border-box;
    text-shadow: none;
}



hr {
    width: calc(100% - 2em);
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    justify-self: center;
    align-self: center;
    border: none;
}



label {
    font-size: 2em;
}

input[type="color" i] {
    border: none;
}



.colorpicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: solid white, 0px;
    border-radius: 8px;
    width: 8em;
    height: 8em;
    background-color: white;
    cursor: pointer;
    padding: none;
}

.colorpicker::-webkit-color-swatch {
    border-radius: 8px;
    border: solid white, 0px;
    padding: none;
}

.colorpicker::-moz-color-swatch {
    border-radius: 8px;
    border: solid white, 0px;
    padding: none;
}

#profileCustomisationTitle {
    text-align: center;
    grid-area: title;
    font-size: 4rem;
}



.textinput {
    position: relative;
    width: 100%;
    height: 80%;
    color: var(--font-color);
    background-color: var(--uipanel-color);
    border-radius: 0.4rem;
    border: none;
    font-size: 1.5rem;
    padding-top: 0.1rem;
    padding-left: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
}

.textinput:hover {
    backdrop-filter: brightness(1.1);
}

.textinput:focus-visible {
    outline: none;
}

::placeholder {
    opacity: 1;
    color: rgb(185, 185, 185);
    font-family: 'JetBrains Mono', monospace;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.slider {
    /* slider class for both sliders */
    -webkit-appearance: none;
    /* remove default styling */
    appearance: none;
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background: whitesmoke;
    opacity: 0.5;
}

.slider:hover {
    opacity: 0.8;
}

.slider::-webkit-slider-thumb {
    /* slider draggable part */
    -webkit-appearance: none;
    /* remove default styling */
    appearance: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition-duration: 0.05s;
    background: rgb(110, 110, 110);
}

.slider::-webkit-slider-thumb:hover {
    background: rgb(120, 120, 120);
    transition-duration: 0.05s;
}


/* Death anim */
#fadeToBlack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(26, 25, 23);
    transition-duration: 0.05s;
}

/* GAME OVER SCREEN BELOW */

#gameOverScreen {
    display: grid;
    grid-template-areas:
        /* game over screen layout */
        "title"
        "scoreboard"
        "bottom";
    align-items: center;
    justify-items: center;
    vertical-align: middle;
    align-self: center;
    justify-self: center;
    margin: auto;
    height: 100vh;
    width: clamp(50rem, 0.5vw, 100rem);
    grid-template-rows: 1fr 4fr 1fr;
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
    /* GLOW */
}

#gameOver {
    position: relative;
    font-size: 80px;
    text-align: center;
    vertical-align: middle;
    grid-area: title;
}

#finishButton {
    font-size: 60px;
    position: relative;
    padding-top: 0px;
    padding-right: 10px;
    padding-bottom: 0px;
    padding-left: 10px;
    text-align: middle;
    vertical-align: middle;
    background-color: var(--uipanel-color);
    border-radius: 12px;
    grid-area: bottom;
}

/* CLASSES */

.bold {
    font-weight: bold;
}

.greyed {
    color: rgb(99, 99, 99);
    text-shadow: 0px 0px 8px rgba(99, 99, 99, 0.5);
}

.title {
    font-family: "Roboto Mono", monospace;
}

.red {
    color: red;
    text-shadow: 0px 0px 8px rgba(255, 0, 0, 0.5);
}

.green {
    color: rgb(89, 255, 47);
    text-shadow: 0px 0px 8px rgba(89, 255, 47, 0.5);
}

.orange {
    color: gold;
    text-shadow: 0px 0px 8px rgba(255, 165, 0, 0.5);
}

.flash {
    animation: flash 0.8s ease-in-out;
}

.button:hover {
    text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.4);
    transition-duration: 0.1s;
    transform: scale(1.05);
    cursor: pointer;
}

.button {
    border-radius: 10px;
    background-color: var(--uipanel-color);
    transition-duration: 0.1s;
    transform: scale(1);
    /* make cursor a pointer */
    cursor: pointer;

}

.uipanel {
    background-color: var(--uipanel-color);
    border-radius: 10px;
    transition-duration: 0.2s;
}

.uipanel:hover {
    backdrop-filter: brightness(1.1); 
    transition-duration: 0.2s;
}


.important {
    animation: rotating 3.5s ease-in-out infinite;
}

.important:hover {
    animation: blink 2s infinite, rotating 3.5s ease-in-out infinite;
    transition-duration: 0.1s;
}

.blink {
    animation: blink 1.5s infinite;
}

.overlay {
    z-index: 9;
}

.scrollpad {
    scroll-margin-top: 60px;
}


/* ANIMS */

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

@keyframes flash {
    0% {
        opacity: 2;
        background-color: rgba(255, 255, 255, 0.2)
    }

    100% {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0)
    }
}

@keyframes rotating {
    0% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }

    100% {
        transform: rotate(-1deg);
    }
}

@keyframes startRotating {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-1deg);
    }
}

@keyframes hover {
    0% {
        transform: scale(1.05) rotate(-1deg);
    }

    50% {
        transform: scale(1.05) rotate(1deg);
    }

    100% {
        transform: scale(1.05) rotate(-1deg);
    }
}

@keyframes startRotatingHovered {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: scale(1.05) rotate(-1deg);
    }
}

@keyframes stopRotatingHovered {
    0% {
        transform: scale(1.05) rotate(-1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulsate {
    0% {
        transform: rotate(-10deg) scale(0.95);
    }

    50% {
        transform: rotate(-10deg) scale(1.05);
    }

    100% {
        transform: rotate(-10deg) scale(0.95);
    }
}

.upgradeUnhover {
    animation: stopRotatingHovered 0.2s ease-in-out 1;
}




@keyframes bulge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.85);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinbig {
    0% {
        transform: rotate(0deg) scale(1.3);
        background-color: rgba(0, 0, 0, 0)
    }

    100% {
        transform: rotate(360deg) scale(2);
        background-color: rgba(0, 0, 0, 0);
    }
}

@keyframes appearFromBottom {
    0% {
        transform: translateY(50vh);
        opacity: 0;
    }

    50% {
        transform: translateY(25vh);
        opacity: 0;
    }

    100% {
        transform: translateY(0vh);
        opacity: 1;
    }

}

@keyframes disappearToBottom {
    0% {
        transform: translateY(0vh);
        opacity: 1;
    }

    50% {
        transform: translateY(25vh);
        opacity: 0;
    }

    100% {
        transform: translateY(50vh);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 1s ease-in-out 1;
}

@keyframes shake {
    0% {
        transform: translate(-0.5vw, -0.5vh);
    }

    10% {
        transform: translate(-0.25vw, 1vh);
    }

    20% {
        transform: translate(0, -0.25vh);
    }

    30% {
        transform: translate(-0.5vw, 0.5vh);
    }

    40% {
        transform: translate(1vw, 0);
    }

    50% {
        transform: translate(0.25vw, -0.5vh);
    }

    60% {
        transform: translate(-0.5vw, -0.25vh);
    }

    70% {
        transform: translate(-0.25vw, 0.75vh);
    }

    80% {
        transform: translate(0.5vw, -0.5vh);
    }

    90% {
        transform: translate(-0.25vw, 0.25vh);
    }

    100% {
        transform: translate(-0.5vw, -0.5vh);
    }
}


.shake {
    animation: shake 0.1s ease-in-out;
}

.appearFromBottom {
    animation: 0.4s ease-in-out 0s 1 normal none running appearFromBottom
}

.disappearToBottom {
    animation: 0.4s ease-in-out 0s 1 normal none running disappearToBottom
}

.pulsate {
    animation: 1s ease-in-out infinite pulsate;
}

/* SCROLL BAR */

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition-duration: 0.3s;
    min-height: 1.8em;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    transition-duration: 0.3s;
}

/* achieve the same for firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0);
}

html:hover {
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(0, 0, 0, 0);
}


kbd {
    background-color: var(--kbd-color);
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 2px 0 0 rgba(255, 255, 255, 0.1) inset;
    display: inline-block;
    font-size: 1rem;
    font-weight: 200;
    font-family: "JetBrains Mono", monospace;
    line-height: 1;
    padding: 3px 6px;
    white-space: nowrap;
}

#controls {
    color: var(font-color);
    font-weight: 500;
}

