@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&display=swap');

:root {
    --card-width: 800px;
    --card-margin: calc(var(--card-width) * 0.05);
    --card-border: 2%;
    --info-margin: 2%;
}

html body {
    width: 100vw;
    height: 100vh;
    margin: 0;
}

body {
    position: relative;

    background-image: url('assets/zip-pattern.webp');
    background-size: 40vh;
    animation: scrolling 80s linear infinite;

    display: flex;
    justify-content: center;
    align-items: center;
}

/*
█▀▀ ▄▀█ █▀█ █▀▄
█▄▄ █▀█ █▀▄ █▄▀
*/

.card {
    width: var(--card-width);
    max-width: calc(100% - var(--card-margin));
    max-height: calc(100% - var(--card-margin));
    margin: var(--card-margin);
    aspect-ratio: 1.25/1;
    position: relative;

    border-radius: var(--card-border)/calc(var(--card-border) * 1.25);
    background-image: linear-gradient(to bottom, #ECA04E, #FFD380);
    box-shadow: 1rem 1rem 3rem rgba(0, 0, 0, 0.6);

    overflow: visible;
}

.overlay {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;

    border-radius: 2%/2.5%;
}

.dot-grid {
    background-size: 6% 7.5%;
    background-position: 15% -15%;
    background-image: radial-gradient(rgba(50, 0, 0, 0.3) 10%, transparent 0);
    mix-blend-mode: color-burn;
}

.card-border {
    border: 5px solid transparent;
    background: linear-gradient(to bottom, #FFC629, #C36161) border-box;
    mask:
        linear-gradient(#000 0 0) padding-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
}

/* 
█▀▀ █░░ █▀▀ █▀▄▀█ █▀▀ █▄░█ ▀█▀ █▀
██▄ █▄▄ ██▄ █░▀░█ ██▄ █░▀█ ░█░ ▄█
*/

.thumbnail {
    max-height: 120%;
    position: absolute;
    top: 50%;
    left: 25%;

    animation: schmovin 5s ease-in-out infinite;

    z-index: 2;
    user-select: none;
    pointer-events: none;
}

.greet-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: 20% 50%;

    animation: appear 1.5s cubic-bezier(.2,1.05,.21,.99) 1 forwards;

    z-index: 1;
}

#greet {
    max-height: 60%;
    position: absolute;
    top: 3%;
    left: -10%;

    animation: tilt 5s ease-in-out infinite;

    user-select: none;
    pointer-events: none;
}

/* 
█░░ █ █▄░█ █▄▀ █▀
█▄▄ █ █░▀█ █░█ ▄█
*/

.links {
    max-width: 32%;
    position: absolute;
    top: 28%;
    left: 52%;

        z-index: 1;
    display: flex;
    flex-direction: column;
}

.link {
    width: 100%;
    aspect-ratio: 2.4/1;
    margin-top: -5%;
    transition: filter 0.1s ease, transform 0.1s ease;
}

.link-image {
    height: 100%;
    user-select: none;
}

.link:hover {
    transform: scale(1.2) rotate(-2deg);
}

.link:active {
    filter: brightness(80%);
    transform: scale(0.98) rotate(2deg);
}

/*
▄▀█ █▄░█ █ █▀▄▀█ █▀
█▀█ █░▀█ █ █░▀░█ ▄█
*/

@keyframes scrolling {
    from { background-position: 0 0; }
    to { background-position: 80vh 160vh; }
}

@keyframes schmovin {
    0% { transform: translateX(-50%) translateY(-50%) rotate(-2deg); }
    50% { transform: translateX(-50%) translateY(-50%) rotate(2deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(-2deg); }
}

@keyframes tilt {
    0% { transform: rotate(0deg) translateX(60%) translateY(-55%);}
    50% { transform: rotate(-2deg) translateX(60%) translateY(-55%);}
    100% { transform: rotate(0deg) translateX(60%) translateY(-55%);}
}

@keyframes appear {
    0% { transform: scale(0%); }
    100% { transform: scale(100%); }
}