body {
    background: lavender;
    overflow: clip;
}

@font-face {
    font-family: marker;
    src: url(PermanentMarker-Regular.ttf);
}

div#horizon {
    z-index: -3;
    position: fixed;
    width: 200%;
    aspect-ratio: 424/260;
}

div#clouds {
    z-index: -2;
}

div#cockpit {
    z-index: 0;
    position: fixed;
    left: 50%;
    top: 70%;
    width: 120%;
    margin-top: 50%;
    aspect-ratio: 1028 / 720;
    transform: translate(-50%, -50%);
    transition: margin 2s ease;
}

img.fill {
    width: 100%;
    height: 100%;
}

img#logo {
    display: fixed;
    width: 100%;
    margin-top: -10px;
}

div#hudouter {
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -20%;
    margin-top: -20%;
    width: 40%;
    aspect-ratio: 1;
    border: green solid 5px;
    border-radius: 50%;
}

div#hudinner {
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -15%;
    margin-top: -15%;
    width: 30%;
    aspect-ratio: 1;
    border: green solid 5px;
    border-radius: 50%;
}

div#hudslider {
    position: fixed;
    width: 4%;
    aspect-ratio: 1;
    left: 10px;
    top: 10px;
    background: mediumspringgreen;
    border-radius: 50%;
    opacity: .8;
}

div#hudtarget {
    position: fixed;
    width: 7%;
    aspect-ratio: 1;
   /* opacity: 0.8; */
}

div#odometer {
    position: fixed;
    left: 12%;
    bottom: 4%;
    font-size: 400%;
}

div.ping {
    position: fixed;
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid lightgreen;
    animation: fadeout 2s;
    animation-fill-mode: forwards;
}

img#redx {
    position: fixed;
    width: 70%;
    aspect-ratio: 124 / 36;
    border-radius: 2vmax;
    left: 15%;
    top: 15%;
    transition: top 6s ease-out, opacity 2s linear;
}


div#clouds img {
    position: fixed;
    animation-timing-function: linear;
}


div#greenw {
    position: fixed;
    font-weight: bold;
    font-family: sans-serif;
    left: 45%;
    top: 20%;
    font-size: 800%;
    color: red;
    border: 10px solid red;
}

div#greenw {
    color: greenyellow;
    border-color: greenyellow;
}


.state {
    transition: opacity 1s;
}


#cardparent {
    position: fixed;
    left: 50%;
    top: 35%;
    perspective: 800px;
    transform-style: preserve-3d;
}
#card {
    position: fixed;
    background: url("hellosticker.svg");
    background-size: 100%;
    aspect-ratio: 1.4;
    width: 80vmin;
    left: 50%;
    top: 50%;
    margin-left: -40vmin;
    /* margin-top: -40vmin; */
    perspective: 100px;
    animation: carddance 10s ease infinite;
}
#name {
    font-family: marker;
    position: absolute;
    bottom: 10%;
    height: 40%;
    width: 100%;
    text-align: center;
    font-size: 16vmin;
    line-height: 13vmin;
    transition: 4s ease-out;
    white-space: nowrap;
}

@keyframes carddance {
    0% {transform: rotateX(12deg) rotateY(12deg)}
    33% {transform: rotateX(-12deg) rotateY(0deg)}
    66% {transform: rotateX(0deg) rotateY(-12deg)}
    100% {transform: rotateX(12deg) rotateY(12deg)}
}


#spinners {
    position: fixed;
}

.hourglass {
    position: fixed;
}
.hourglass:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: hourglass 1.2s infinite;
}

#spinr {
    left: 30%;
    top: 40%;
}
#spinb {
    left: 70%;
    top: 40%;
}
#spinw {
    left: 50%;
    top: 60%;
}
#spinr:after {
    border: 32px solid red;
    border-color: red transparent red transparent;
}
#spinb:after {
    border: 32px solid blue;
    border-color: blue transparent blue transparent;
}

@keyframes hourglass {
    0% {
        transform: rotate(0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
        transform: rotate(720deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
        transform: rotate(1080deg);
    }
}


@keyframes fadeout {
    0% {
        opacity: 1;
        animation-timing-function: ease-out;
        transform: none;
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

@keyframes swoop {
    0% {
        opacity: 0;
        transform: translate(0, 2%);
    }
    20% {
        opacity: 0.7;
        transform: translate(0, 0);
    }
    80% {
        opacity: 0.7;
        transform: translate(0, 40%);
    }
    90% {
        opacity: 0;
        transform: translate(0, 40%);
    }
    100% {
        opacity: 0;
        transform: translate(0, 2%);
    }
}