* {
    box-sizing: border-box;
}

:root {
    --color-background: #131626;
    --color-link: #5863a1;
    --color-link-border: #2f43b8;
    --color-text: #758ab9;
    --footer-color-background: rgba(0, 0, 0, 0.5);
}

html {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

body {
    color: var(--color-text);
    margin: 0 auto;
    padding: 0;
}

a {
    border-bottom: 2px solid var(--color-link-border);
    color: var(--color-link);
    display: inline-block;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}

a:hover {
    border-bottom: 2px dotted var(--color-link-border);
}

body {
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.c-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    height: calc(100vh - var(--footer-height));
    margin: 0 auto;
}

.c-image {
    max-width: 6rem;
    bottom: 15vh;
    position: absolute;
}

.c-ghost {
    max-width: 10rem;
    position: absolute;
    transform: scale(0.7);
}

.c-ghost.c-ghost--1 {
    animation: fade 4.25s ease-in-out infinite;
    animation-delay: 0.2s;
    left: 10vw;
    top: 20vh;
}

.c-ghost.c-ghost--2 {
    animation: fade 4s ease-in-out infinite;
    animation-delay: 0.8s;
    right: 10vw;
    top: 30vh;
}

.c-ghost.c-ghost--3 {
    animation: fade 4.75s ease-in-out infinite;
    left: 30vw;
    top: 40vh;
    transform: rotate(40deg) scaleX(-1);
}

.c-ghost.c-ghost--4 {
    animation: fade 6s ease-in-out infinite;
    animation-delay: 0.2s;
    right: 33vw;
    top: 20vh;
}


@keyframes fade {
    0% {
        opacity: 0;
    }
    70%,
    90% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.3;
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }
    100% {
        opacity: 0;
    }
}

.c-footer {
    align-items: center;
    background-color: var(--footer-color-background);
    display: flex;
    font-size: 0.85rem;
    height: var(--footer-height);
    inset: auto 0 0 0;
    justify-content: center;
    padding: 1rem 1.5rem 1rem;
    position: fixed;
    width: 100%;
}

@media (min-width: 800px) {
    .c-image {
        max-width: 7rem;
    }

    .c-ghost {
        transform: scale(1.1);
    }
}
