html{
    height: 100%;
}

body {
    flex-direction: column;
    height: 100%;
    background-color: dodgerblue;
}
#heading{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    position:absolute;
    width: 100%;
    background-image: url("https://orteil.dashnet.org/cookieclicker/img/panelMenu3.png");
    margin-top:30px;
    padding-top: 30px;
    padding-bottom:30px;
    left:0;
    top: -30px;
    background-repeat: no-repeat;
    background-size: 250% 300%;
    background-position: right 10% bottom 0%;
    z-index: 20;
}

.alertbox{

    position: absolute;
    left: 50%;
    z-index: 10000;
    background-image: url("https://orteil.dashnet.org/cookieclicker/img/panelMenu3.png");
    background-repeat: no-repeat;
    background-size: 250% 300%;
    background-position: right 10% bottom 0%;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 10px;
    padding-left: 10px;
    animation: alertbox-drop 1s linear forwards;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
}

@keyframes alertbox-drop {
    0%{
        top:-50%;
    }
    100%{
        top: 50%;
    }
}

h,#counter{
    font-size: 30pt;
    font-family: 'Merriweather';
    text-shadow: 2px 2px 0 #000000, 2px -2px 0 #000000, -2px 2px 0 #000000, -2px -2px 0 #000000, 2px 0px 0 #000000, 0px 2px 0 #000000, -2px 0px 0 #000000, 0px -2px 0 #000000;
    color: #FFFFFF;
}

#cookie-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top:0;
    left: 0;
    z-index: 100;
}

.shine {
    width: 580px;
    height: auto;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: 50%;
    aspect-ratio: 1/1;
    z-index: 140;
    opacity: 30%;
}

#shine-right{
    animation: cookie-animation-right 20s linear infinite;
}

#shine-left{
    animation: cookie-animation-left 20s linear infinite;
}

#cookie {
    width: 300px;
    height: auto;
    transition: 0.5s all ease-in-out;
    max-width: calc(50% / 1.93);
    aspect-ratio: 1/1;
    z-index: 150;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

#cookie:hover{
    transform: scale(1.1);
}

#rainy-container {
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    height: 100vh;
    overflow: hidden;
}
  
.raindrop {
    border-radius: 50%;
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('/static/img/cookie_pix.png') no-repeat;
    background-size: cover;
    z-index: 13;
    animation: raindrop-animation 5s linear forwards;

}

.mini-cookie {
    border-radius: 50%;
    position: absolute;
    width: 100px;
    height: 100px;
    background: url('/static/img/cookie_pix.png') no-repeat;
    background-size: cover;
    opacity: 0.5;
    z-index: 200;
    pointer-events: none;
}

@keyframes mini-cookie-animation-right {
    50%{
        transform: translateX(35px) translateY(-25px);
        
    }
    100%{
        transform: translateX(70px) translateY(0px);
        opacity: 0;
    }
}

@keyframes mini-cookie-animation-left {
    50%{
        transform: translateX(-35px) translateY(-25px);
        
    }
    100%{
        transform: translateX(-70px) translateY(0px);
        opacity: 0;
    }
}
  
@keyframes raindrop-animation {
    0% {
      transform: translateY(-10vh);
    }
    100% {
      transform: translate(-5vw, 200vh);
    }
}



@keyframes cookie-animation-right{
    0% {
        transfrom: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes cookie-animation-left{
    0% {
        transfrom: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}
  

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 900;
    src: url(https://fonts.gstatic.com/s/merriweather/v30/u-4n0qyriQwlOrhSvowK_l52_wFZWMf6.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @keyframes move_wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1)
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55)
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}
.waveWrapper {
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
}
.waveWrapperInner {
    position: absolute;
    width: 100%;
    overflow: hidden;
    height: 100%;
    bottom: -1px;

}
.bgTop {
    z-index: 15;
    opacity: 0.5;
}
.bgMiddle {
    z-index: 10;
    opacity: 0.75;
}
.bgBottom {
    z-index: 5;
}
.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat no-repeat;
    background-position: 0 bottom;
    transform-origin: center bottom;
}
.waveTop {
    background-size: 50% 100px;
}
.waveAnimation .waveTop {
  animation: move-wave 3s;
   -webkit-animation: move-wave 3s;
   -webkit-animation-delay: 1s;
   animation-delay: 1s;
}
.waveMiddle {
    background-size: 50% 120px;
}
.waveAnimation .waveMiddle {
    animation: move_wave 10s linear infinite;
}
.waveBottom {
    background-size: 50% 100px;
}
.waveAnimation .waveBottom {
    animation: move_wave 15s linear infinite;
}



