html {
    height: 100vh; /* Allow phone scrolling */
}
#animation-container {
    position: relative;
    height: 100%;
    /* overflow-y: hidden; */
    overflow: hidden;
}
.animation-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: cover;
}

.animation-layer.sky {
    /* background-image: url(/assets/images/animation/camel/sky.png); */
    background-image: linear-gradient(
        90deg,
        rgba(129, 161, 148, 1) 0%,
        rgba(155, 191, 176, 1) 50%,
        rgba(129, 161, 148, 1) 100%
    );
    background-position: var(--bg-x-pos, 0) 0;
    filter: hue-rotate(var(--bg-hue-rot, 90deg));
    /* background-size: auto 50vh; */
}
.animation-layer.stars {
    background-image: url(/assets/images/animation/camel/stars.png);
    background-position: var(--bg-x-pos, 0) 0;
    background-size: auto 50vh;
}
.animation-layer.clouds {
    background-image: url(/assets/images/animation/camel/clouds.png);
    background-position: var(--bg-x-pos, 0) 0;
    background-size: auto 40vh;
    opacity: 0.5;
}
.animation-layer.skyline {
    background-image: url(/assets/images/animation/camel/skyline.svg);
    background-position: var(--bg-x-pos, 0) 0;
    background-size: auto 60vh;
    top: 0%;
}
.animation-ground {
    --layer-height: 100%;
    --init-bg-x: 0;
    background-size: auto var(--layer-height);
    /* Overflow handle 1 */
    top: calc(100% - var(--layer-height));
    height: var(--layer-height);
    /* This avoids overflow. Can be replaced with overflow-y: hidden in parent but will be icky on mobile */
    /* Overflow handle 2 */
    /* background-position-y: calc(100vh - var(--layer-height)); */
    /* This avoids overflow, but it requires all calculations to be from 100vh instead of 100% */
    background-position-y: 0;
    background-position-x: var(--bg-x-pos, var(--init-bg-x));
    pointer-events: none;
}
.animation-layer.dune1 {
    --layer-height: 57vh;
    --init-bg-x: 0;
    background-image: url(/assets/images/animation/camel/dune_high.svg);
    z-index: 1;
}
.animation-layer.dune2 {
    --layer-height: 52vh;
    --init-bg-x: -500px;
    background-image: url(/assets/images/animation/camel/dune_low.svg);
    filter: saturate(70%);
    z-index: 3;
}
img.camel {
    position: absolute;
    left: 50%;
    bottom: 3%;
    width: 40vh;
    height: auto;
    transform: translateX(-50%);
    -webkit-filter: invert(37%) sepia(59%) saturate(667%) hue-rotate(328deg)
        brightness(101%) contrast(84%);
    filter: invert(37%) sepia(59%) saturate(667%) hue-rotate(328deg)
        brightness(101%) contrast(84%);
    z-index: 2;
}
img.moon {
    position: absolute;
    left: var(--left-pos, 90%);
    top: var(--top-pos, 0%);
    width: 15vh;
    height: auto;
}
.animation-front-bg {
    position: absolute;
    width: 20vh;
    height: auto;
    bottom: calc(15% + var(--y-pos, 0%));
    left: var(--x-pos, 80%);
    -webkit-filter: invert(37%) sepia(59%) saturate(667%) hue-rotate(328deg)
        brightness(81%) contrast(84%);
    filter: invert(37%) sepia(59%) saturate(667%) hue-rotate(328deg)
        brightness(81%) contrast(84%);
    /* z-index: 5; */
}

a {
    text-decoration: none;
}
.banner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;

    width: 80vw;
    height: auto;
    text-align: right;

    position: absolute;
    right: 5%;
    top: 5%;
    z-index: 9;
}
.banner-container span {
    width: 100%;
    font-family: Akkordeon;
    font-size: 18vh;
    color: black;
    animation: pulse-opacity 5s ease-in-out infinite;
}
.banner-container .click-button {
    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: center;

    width: 70%;
    aspect-ratio: 17/4;
    background-color: rgba(255, 184, 78);
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 16px;

    font-family: Akkordeon;
    font-size: 50px;
    /* color: rgb(204, 141, 60); */
    color: black;
}

@media (max-width: 1000px) {
    .banner-container {
        text-align: center;
        align-items: center;
        left: 50%;
        right: 0;
        transform: translateX(-50%);
    }
    .banner-container span {
        font-size: 120px;
    }
    .banner-container .click-button {
        display: flex;
        width: 350px;
        font-size: 50px;
    }
}

@media (max-width: 620px) {
    .banner-container span {
        font-size: 80px;
    }
    .banner-container .click-button {
        width: 230px;
        font-size: 40px;
    }
}

.footer-container {
    position: fixed;
    width: 100%;
    height: 100px;
    bottom: 4%;
    z-index: 9;
    animation: pulse-opacity ease-in-out 3s infinite;
}

@media (max-width: 1000px) {
    .footer-container {
        height: 80px;
    }
}
@media (max-width: 650px) {
    .footer-container {
        height: 60px;
    }
}

.footer-container .logo {
    position: absolute;
    bottom: 0;
    right: 4%;

    height: 100%;
    width: auto;
}

.instagram-container {
    position: absolute;
    bottom: 0;
    left: 4%;

    height: 100%;
    width: auto;
}

.instagram-container img {
    height: 100%;
    width: auto;
}

@keyframes pulse-opacity {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}
