html {
    background-color: black;
}

body {
    margin: 0;
    padding: 0;
}

canvas {
    padding: 0;
    margin: auto;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100vw;
    max-height: 100vh;
}
#card {
    z-index: -1;
    position: absolute;
    x: 0;
    y: 0;
    height: 100dvh;
    width: 100dvw;
    color: white;
    opacity: 0.5;
    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
    /* Vertically centers items within the flex container */
    justify-content: center;
    font-family: Helvetica, Arial, sans-serif;
    /* font-weight: 200; */
    font-size: 1dvh;
    letter-spacing: 0.5em;
    line-height: 2;
    text-transform: uppercase;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeHalfIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.5;
    }
}

.fade-out-element {
    animation-name: fadeOut;
    animation-duration: 1s;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

.fade-in-element {
    animation-name: fadeIn;
    animation-duration: 1.5s;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

.fade-half-in-element {
    animation-name: fadeHalfIn;
    animation-duration: 0.25s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}