body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: url(../assets/leopard.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    font-size: 16px;
}
@font-face {
    font-family: 'Font';
    src: url(../assets/font.woff2);
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Icon';
    src: url(../assets/icon.woff2);
    font-style: normal;
    font-weight: 100 700;
}
* {
    font-family: 'Font', monospace;
    box-sizing: border-box;
    position: relative;
}
a {
    color: white;
    text-decoration: underline;
}
icon {
    font-family: 'Icon';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.letters {
    display: flex;
    gap: 0px;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.75s;
}
.letter {
    height: 150px;
    animation: letterfly 2s infinite cubic-bezier(0.42, 0.0, 0.58, 1.0);
    transform: translateY(25%);
}

@keyframes letterfly {
    0% {
        transform: translateY(25%);
    }
    50% {
        transform: translateY(-25%);
    }
    100% {
        transform: translateY(25%);
    }
}

.letter:nth-child(1) {
    animation-delay: 0.1s;
}
.letter:nth-child(2) {
    animation-delay: 0.2s;
}
.letter:nth-child(3) {
    animation-delay: 0.3s;
}
.letter:nth-child(4) {
    animation-delay: 0.4s;
}
.letter:nth-child(5) {
    animation-delay: 0.5s;
}
.letter:nth-child(6) {
    animation-delay: 0.6s;
}
.letter:nth-child(7) {
    animation-delay: 0.7s;
}

.buttons {
    width: 75%;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(0,0,0,0.25);
    gap: 10px;
    box-shadow: 0 0 7px 2px rgba(255,255,255,0.25);
}
.buttonsection {
    display: flex;
    gap: 10px;
}
.button {
    padding: 10px;
    width: 100%;
    text-align: center;
    background: transparent;
    font-size: 14px;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
    text-decoration: none;
}
.button:hover {
    background: white;
    color: purple;
    text-shadow: none;
    text-decoration: none;
}
.lead {
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* flex */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    animation: fadeandblur 0.75s both;
}

.modal {
    display: none; /* flex */
    width: calc(100% - 60px);
    height: calc(100% - 120px);
    border: 1px solid white;
    max-width: 800px;
    max-height: 600px;
    font-size: 18px;
    line-height: 1.75em;
    overflow: auto;
    animation: wewillcontrolthehorizontalwewillcontrolthevertical 1.5s both;
}
.modaltext {
    margin: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topoptions {
    transition: opacity 0.5s;
    opacity: 0;
    width: calc(100% - 60px);
    max-width: 800px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 5px;
}

.modalclose {
    cursor: pointer;
    font-size: 16px;
}
.modalclose:hover {
    text-decoration: underline;
}
.modalname {
    font-size: 36px;
    text-align: right;
}

.modaltextoption {
    display: flex;
    gap: 15px;
    align-items: start;
}
.mtoi {
    height: 34px;
    font-weight: 800;
    margin-bottom: 5px;
    border-radius: 5px;
}
.mtot {
    font-size: 16px;
}

@keyframes wewillcontrolthehorizontalwewillcontrolthevertical {
    0% {
        max-width: 0;
        max-height: 0;
    }
    50% {
        max-width: 800px;
        max-height: 0;
    }
    100% {
        max-height: 600px;
    }
}
@keyframes fadeandblur {
    to {
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5vw);
    }
}
@keyframes die {
    to {
        max-width: 0;
        max-height: 0;
        overflow: hidden;
    }
}
@keyframes fadeandblurout {
    from {
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(5vw);
    }
    to {
        background: rgba(0,0,0,0);
        backdrop-filter: blur(0);
    }
}

@media screen and (max-width: 850px) {
    .letters {
        width: 300px;
        flex-wrap: wrap;
    }
    .letter {
        height: 100px;
    
    }
    .letter:nth-child(1), .letter:nth-child(2), .letter:nth-child(3) {
        margin-left: 5px;
        margin-right: 5px;
    }
    .letter:nth-child(4) {
        animation-delay: 0.1s;
    }
    .letter:nth-child(5) {
        animation-delay: 0.1667s;
    }
    .letter:nth-child(6) {
        animation-delay: 0.2333s;
    }
    .letter:nth-child(7) {
        animation-delay: 0.3s;
    }
    .buttons {
        width: 100%;
    }
}