@font-face {
    font-family: "iso-r";
    src: url("../fonts/ISOv0.6-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "m-s";
    src: url("../fonts/UntitledSansWeb-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --type-1: "m-s";
    --type-2: "m-s";
    font-family: "m-s";
}

@media (max-width: 510px) {
    .mask {
        top: 15%;
        bottom: 15%;
        left: 15%;
        right: 15%;
    }
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
    font-family: "m-s";
    //background-color: black;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: 1fr;
}

.text {
    color: white;
}
.textbox {
    padding: 1em;
    grid-column: span 2;
}

.title {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    gap: 0.5rem;
}

ul.text-grid {
    position: fixed;
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 2.3rem;
    left: 0.8rem;
    color: white;
}

ul#textList {
    z-index: 102;
}
ul#textList li {
    flex: 1;
    font-size: clamp(1rem, 5cqmin, 5rem);
}

.loading {
    background: color(display-p3 0.163 0.553 1);
    background-size: 200% 200%;
    animation: loading 3s ease-in-out infinite;
}

.fade-out {
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.fade-in {
    opacity: 1;
    transition: all 0.8s ease-in-out;
}

@keyframes loading {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 450px) {
    .textbox {
        grid-column: 1 / -1;
    }
}

/*WRAPPER */
.wrapper {
    width: 100%;
}

.locher {
    display: flex;
    flex-direction: column;
    aljustify-content: space-between;
    padding-block: 8rem;
    padding-inline: 0.75rem;
    height: 100%;
}
.locher > .circle:not(:nth-last-child) {
    margin-bottom: auto;
}

.wrapper-left {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100dvh;
    align-content: center;
}
.wrapper-right {
    padding: 1rem;
    grid-column: 2 / span 1;
    display: flex;
    flex-direction: column;
}

/* FOOTER */

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}
footer img {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    height: 80px;
}
footer div {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

/* TYPE */

h1 {
    font-size: 1rem;
    font-family: var(--type-1);
    font-weight: normal;
    /*color: black;*/
    margin: 0;
    z-index: 100;
}

@media (max-width: 450px) {
    h1 {
        line-height: 1;
    }
}

@media (min-width: 451px) and (max-width: 640px) {
    h1 {
        line-height: 1;
    }
}

h1,
h2 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

h2 {
    font-size: 1em;
    font-weight: normal;
    font-family: var(--type-2);
}

ol {
    font-family: var(--type-1);
}

ol a {
    color: grey;
    text-decoration: underline;
}
ol a:hover {
    color: orange;
}
ol a {
    color: grey;
    text-decoration: line-through;
}

.meta {
    font-family: var(--type-1);
    grid-column: 1 / span 2;
    font-size: 0.875em;
    margin: 1em 0;
}

.entrance > a {
    width: 100%;
    height: 20vh;
    text-align: right;
    font-size: 1em;
    text-decoration: none;
    color: cadetblue;
}

.small {
    font-size: 0.75rem;
}

.d-flex-between {
    display: flex;
    justify-conten: space-between;
    flex-wrap: wrap;
}

.rotate-90-cw {
    transform: rotate(90deg);
}

.circle {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    z-index: 100;
    border-radius: 100%;
    z-index: 100;
}
.circle:not(:last-child) {
    margin-bottom: auto;
}
.label {
    position: absolute;
    top: 50%;
    right: -1rem;
    width: auto;
    display: inline-block;
    z-index: 100;
}

.text-wrapper-h {
    display: flex;
    gap: 0.5rem;
}

.jc-sb {
    justify-content: space-between;
}

@property --c1 {
    syntax: "<color>";
    initial-value: hsl(220, 80%, 60%);
    inherits: false;
}

@keyframes c1-shift {
    0% {
        --c1: hsl(220, 80%, 60%);
    }
    5% {
        --c1: hsl(300, 80%, 60%);
    }
    20% {
        --c1: hsl(300, 80%, 60%);
    }
    25% {
        --c1: hsl(10, 80%, 60%);
    }
    40% {
        --c1: hsl(10, 80%, 60%);
    }
    45% {
        --c1: hsl(160, 80%, 60%);
    }
    60% {
        --c1: hsl(160, 80%, 60%);
    }
    65% {
        --c1: hsl(50, 80%, 60%);
    }
    80% {
        --c1: hsl(50, 80%, 60%);
    }
    85% {
        --c1: hsl(220, 80%, 60%);
    }
    100% {
        --c1: hsl(220, 80%, 60%);
    }
}

.random-gradient {
    background: linear-gradient(to bottom right, var(--c1), #000);
    animation: c1-shift 20s ease infinite;
}
.mb-a {
    margin-bottom: auto;
}

.x {
    width: 100%;
    height: 100%;
    background-image: url("../images/cross.svg");
}

.pb-1 {
    padding-bottom: 1rem;
}
