html,
body {
    overflow-x: hidden; /* stops sideways scrolling */
    width: 100%;
}
/* Background container fixed behind everything */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh; /* hero height */
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
/* Sky gradient with Japanese red theme */
.sky-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: url("/img/early.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
.sky-gradient::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Adjust opacity for tint darkness */
}
/* Clouds layer */
.clouds {
    position: absolute;
    top: -0px;
    left: 0;
    width: 400%;
    height: 250px;
    background: url("/img/clouds.png") repeat-x;
    background-size: contain;
    animation: moveClouds 150s linear infinite;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}
@keyframes moveClouds {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33%);
    }
}
@media screen and (max-width: 1024px) {
    .sky-gradient {
        background-position: center top; /* shift view to the top, so more is visible */
        transform: scale(1); /* zoom out slightly (less than 1) */
    }
}
