@keyframes rainbowgradient {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: -1000px 0% ;
    }
}
@keyframes colorcycle {
    0% {
      color: red;
    }
    20% {
      color: blue;
    }
    40% {
      color: green;
    }
    60% {
      color: orange;
    }
    80% {
      color: purple;
    }
    100% {
      color: red;
    }
  }
  @keyframes flash {
    from {
        filter: brightness(100%);
    }
    to {
        filter: brightness(125%);
    }
  }
  @keyframes wiggle {
        from {
            rotate: 10deg;
        }
        to {
            rotate: -10deg;
        }
  }

* {
    margin: 0;
    padding: 0;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;

}
html {
    overflow-x: hidden;
    /* theres a sidescroll bar showing up at a certain size cause of the y axis scrollbar, this takes care of that */
}

body {
    box-sizing: border-box;
    max-width: 100vw;
    aspect-ratio: 1.5;
    padding: 10px;
    background-color: rgb(204, 204, 204);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    scale: 90%;
}
header, footer {
    height: 15vh;
    background-color: gray;
}
.content {
    height: 100%;
    display: flex;
    gap: 10px;
}

sidebar {
    height: 100%;
    flex: .5 .5 0;
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

main {
    flex: 1 1 0;
    background-color: white;
}

.other {
    background-color: white;
    flex: 1 1 0;
}

.advertisement {
    min-height: 600px;
    height: 600px;
    width: 300px;
    background-color: green;
    overflow: hidden;
    position: relative;
    will-change: auto;
}
.rainbow {
    height: inherit;
    width: inherit;
    background-image: linear-gradient(to right, red, orange, yellow, limegreen, blue, purple, hotpink, red);
    background-repeat: repeat;
    background-size: 1000px 100%;
    animation: rainbowgradient infinite linear 2s;
}

.nyanko {
    position: relative;
    height: inherit;
    width: inherit;
    background-image: url(/animated-banner-ad/img/cat-nyan-cat.gif);
    background-size: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clickme {
    position: relative;
    z-index: 1;
    height: 100px;
    width: 200px;
    background-color: gold;
    border: 5px outset gold;
    border-radius: 10px;
    font-size: 1.5em;
    animation: wiggle 2s infinite alternate-reverse cubic-bezier(.43,.01,.56,1);
}
.nyanko:hover .clickme {
    animation: wiggle 2s infinite alternate-reverse cubic-bezier(.43,.01,.56,1), flash 1s infinite alternate-reverse linear;
}
.clickme:active {
    background-color: aqua;
}

.nya, .fortune {
    transition: .1s;
}

.nya {
    position: absolute;
    width: 100%;
    bottom: -350px;
}
.fortune {
    position: absolute;
    top: -50px;
    text-shadow: 0 0 5px white;
    animation: colorcycle 2s infinite linear;
}
.nyanko:hover .fortune {
    top: 200px;
}

.nyanko:hover .nya {
    bottom: -100px;
}



