#modals-container {
    z-index: 89;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background-color: #6f6f6f9a;
    -webkit-box-shadow: inset 0px 0px 183px 0px rgba(255, 255, 255, 0.75);
    -moz-box-shadow: inset 0px 0px 183px 0px rgba(255, 255, 255, 0.75);
    box-shadow: inset 0px 0px 183px 0px rgba(255, 255, 255, 0.75);
}
#modals-container:not(:has(.modal:not(.hidden), #loader:not(.hidden))) {
    display: none;
}
.modal {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    box-sizing: border-box;
    background-color: white;
    border-radius: 25px;
    filter: drop-shadow(0 0 0.6rem rgba(51, 51, 51, 0.6));
    padding: 5rem;
    overflow-y: auto;
}
.modal:last-child {
    display: block;
}
.modal h1 {
    font-family: PixelGame;
    font-size: 5rem;
    text-align: center;
    margin: 0;
    font-weight: 100;
}
.modal *  {
    font-size: 1.5rem;
    font-family: BlockCraft;
}
.modal p, .modal h3  {
    text-align: center;
}
label {
    display: block;
    margin: 1.2rem auto .4rem auto;
    text-align: left;
}
input[type=text], input[type=password] {
    font-family: BlockCraft;
    border: none;
    background-color: #e6e6e6;
    padding: 1rem 1rem .6rem 1rem;
    border-radius: 10px;
    box-sizing: border-box;
    width: 100%;
}
.modal button {
    display: block;
    outline: none;
    border: none;
    font-family: BlockCraft;
    background-color: #9747ff;
    color: white;
    padding: .5rem 1rem;
    border-radius: 10px;
    margin: 1rem 0 auto auto;
    cursor: pointer;
}
.modal .close-modal-button {
    font-family: BlockCraft;
    font-size: 2rem;
    line-height: 2rem;
    position: absolute;
    padding: 1rem;
    right: 1rem;
    top: 1rem;
    margin: 0;
    cursor: pointer;
}
.modal .close-modal-button:hover {
    scale: 1.1;
}
#loader {
    background-color: white;
    padding: 1.2rem;
    border-radius: 15px;
    filter: drop-shadow(0 0 0.6rem rgba(51, 51, 51, 0.6));
    z-index: 99;
    position: absolute;
}
#loader > h2 {
    font-family: BlockCraft;
    font-weight: 100;
    font-size: 1.8rem;
    margin: 1rem 0 0 0;
}
:root {
    --corner-offset: -4px;
    --cut-corner-size: 4px;
}
.hidden {
    display: none !important;
}
.loader-bar {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: calc(var(--cut-corner-size)/2);
    padding: calc(var(--cut-corner-size)/2);
    border: var(--cut-corner-size) solid black;
    position: relative;
}
.loader-bar > div:not(.cut-corners) {
    background-color: black;
    width: calc(var(--cut-corner-size)*5);
    aspect-ratio: 1;
    opacity: 0;
    animation: appear 2s steps(1, start) infinite;
}
.loader-bar > .cut-corners {
    position: absolute;
    background-color: white;
    width: var(--cut-corner-size);
    aspect-ratio: 1;
}
.loader-bar > .cut-corners:nth-child(11) {
    left: var(--corner-offset);
    top: var(--corner-offset);
}
.loader-bar > .cut-corners:nth-child(12) {
    right: var(--corner-offset);
    top: var(--corner-offset);
}
.loader-bar > .cut-corners:nth-child(13) {
    left: var(--corner-offset);
    bottom: var(--corner-offset);
}
.loader-bar > .cut-corners:nth-child(14) {
    right: var(--corner-offset);
    bottom: var(--corner-offset);
}

.loader-bar > div:nth-child(1) { animation-delay: 0s; }
.loader-bar > div:nth-child(2) { animation-delay: .2s; }
.loader-bar > div:nth-child(3) { animation-delay: .4s; }
.loader-bar > div:nth-child(4) { animation-delay: .6s; }
.loader-bar > div:nth-child(5) { animation-delay: .8s; }
.loader-bar > div:nth-child(6) { animation-delay: 1s; }
.loader-bar > div:nth-child(7) { animation-delay: 1.2s; }
.loader-bar > div:nth-child(8) { animation-delay: 1.4s; }
.loader-bar > div:nth-child(9) { animation-delay: 1.6s; }
.loader-bar > div:nth-child(10) { animation-delay: 1.8s; }

@keyframes appear {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.scroller {
    scrollbar-width: thin;
    scrollbar-color: #b1b2b4 transparent;
    overflow-y: auto;
}

.scroller::-webkit-scrollbar {
    width: 8px;
}

.scroller::-webkit-scrollbar-track {
    background: transparent;
}

.scroller::-webkit-scrollbar-thumb {
    background-color: #b1b2b4;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.scroller::-webkit-scrollbar-button {
    display: none;
}