@font-face { font-family: Atami-Regular; src: url('font/Atami-Regular.otf'); } 
@font-face { font-family: Lota-Regular; src: url('font/LotaRegular.otf'); } 

:root {
    --backgroundSize: 64px;
    --wrapperDuration: 20s;
    --wrapperCount: 5;
}

html {
    background: linear-gradient(to top, #0a1b15, #375544);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    height: 100vh;
}

.background {
    background: linear-gradient(to top, #0a1b15, #375544);
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    top:0;
    bottom:0;
}

h1, h2, h3, a{
    color: #ededed;
    font-family: 'Atami-Regular';
    text-shadow: 0px 5px 5px #202e24;
}

h3 {
    padding-left: 10px;
    padding-right: 10px;
    font-family: 'Lota-Regular';
}

a {
    text-decoration: none;
}

#center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.flex-container, .flex-vertical-container {
    align-items: center;
    display: flex;
    justify-content: center; 
}

.flex-vertical-container {
   flex-direction: column;
}

#goob-title {
    padding: 10px;
    border-radius: 100px;
    box-shadow: 0px 5px 5px #202e24;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    height: 10%;
    background: linear-gradient(to top, #2f5947, #7bb099);
}

#button-list {
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 50%;
    height: 30px;
    gap: 20px;
}

button {
    padding: 8px;
    border-style: none;
    border-color: #2f5947;
    border-radius: 100px;
    box-shadow: 0px 5px 5px #202e24;
    text-align: center;
    background: linear-gradient(to top, #1f523c, #97dbbe);
    color: #ededed;
    font-family: 'Atami-Regular';
    text-shadow: 0px 5px 5px #202e24;
    transition: all 0.25s ease; 
    text-wrap: nowrap;
}

button:hover {
    scale: 1.05;
    background: linear-gradient(to top, #17754e, #a6ffda);
    box-shadow: 0px 5px 10px #53edad;
    transition: all 0.25s ease; 
}

.scroll-background {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: auto;
    background: white url("checker.png") center;
    opacity: 4%;
    image-rendering: pixelated;
    background-size: var(--backgroundSize);
    z-index: -1;
    animation: movingBackground 5s linear infinite;
}

.wrapper {
    width: 90%;
    margin-inline: auto;
    position: relative;
    height: 100px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0)
    );
}

.wrapper-item {
    position: absolute;
    left: max(calc(200px * var(--wrapperCount)), 100%);
    width: 200px;
    height: 100px;
    object-fit: contain;
    animation: scrollLeft var(--wrapperDuration) linear infinite;
}

.item1 {
    animation-delay: calc(var(--wrapperDuration)/var(--wrapperCount) * (var(--wrapperCount) - 1) * -1);
}

.item2 {
    animation-delay: calc(var(--wrapperDuration)/var(--wrapperCount) * (var(--wrapperCount) - 2) * -1);
}

.item3 {
    animation-delay: calc(var(--wrapperDuration)/var(--wrapperCount) * (var(--wrapperCount) - 3) * -1);
}

.item4 {
    animation-delay: calc(var(--wrapperDuration)/var(--wrapperCount) * (var(--wrapperCount) - 4) * -1);
}

.item5 {
    animation-delay: calc(var(--wrapperDuration)/var(--wrapperCount) * (var(--wrapperCount) - 5) * -1);
}

video {
    width: 500px;
}

@keyframes scrollLeft {
    to {
        left: -200px;
    }
}

@keyframes movingBackground {
    from {background-position: 0 0;}
    to {background-position: var(--backgroundSize) var(--backgroundSize);}
}

.spacer {
    opacity: 0%;
    padding: 25px;
}

.light-space {
    padding: 10px;
}

#goob-dance {
    height: 120%;
}

@media (max-width:600px) {
    h1 {
        font-size: 125%;
    }

    h3 {
        font-size: 100%;
    }

    button {
        font-size: 100%;
    }

    #goob-title {
        height: 5%;
    }

    video {
        width: 300px;
    }

    .spacer {
        padding: 20px;
    }

    .light-space {
        padding: 5px;
    }
}