body {
    margin: 0;
  
    font-family: 'Slackey', sans-serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 0 0 32px white;
    overflow: hidden;
}

canvas {
    display : block;
    margin : auto;
    background: rgb(128,168,205);
    background: linear-gradient(90deg, rgba(128,168,205,1) 0%, rgba(197,224,245,1) 100%);
    cursor: none;
}

#score {
    font-size: 75px;
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    z-index: 200;
}

#intro {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: url(/assets/introbg.png);
    background-repeat: repeat;
    background
    z-index: 100;
}

#credits {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 20px;
    font-size: 20px;;
}

#frame1 {
    position: absolute;
    top: 20vh;
    left: 15vw;
}

#frame1 img {
    height: 25vw;
    max-height: 250px;
}

#frame2 {
    position: absolute;
    top: 25vh;
    right: 5vw;
}

#frame2 img {
    width: 25vw;
    max-width: 250px;
}

#frame3 {
    position: absolute;
    top: 65vh;
    left:20vw;
}

#frame3 img {
    width: 25vw;
    max-width: 250px;
}

#frame4 {
    position: absolute;
    top: 60vh;
    right: 25vw;
}

#frame4 img {
    width: 17vw;
    max-width: 220px;
}


#loader {
    position: absolute;
    top: 35%;
    left: calc(50% - 90px);
}

#playbutton {
    position: absolute;
    top: 30%;
    left: calc(50% - 64px);
    display: none;
    cursor: pointer;
}

.playbutton-anim {
    width: 128px;
    height: 128px;
    position: absolute;
    background: url(/assets/Play.png) no-repeat;
}

.playbutton-anim:hover {
    width: 128px;
    height: 128px;
    position: absolute;
    background: url(/assets/Play_hover.png) no-repeat;
}

.playbutton-anim:active {
    width: 128px;
    height: 128px;
    position: absolute;
    background: url(/assets/Play_active.png) no-repeat;
}

.title {
    margin: auto;
    width: 90%;
    text-align: center;
    margin-top: 40px;
    font-size: 4vw;
}

small {
    font-size: 2.5vw;
}

.title-outtro {
    margin: auto;
    width: 90%;
    text-align: center;
    margin-top: 130px;
    font-size: 3vw;
}


#cannonballs {
    position: absolute;
    right: 0px;
    top: 20px;
    height: 100px;
    width: 350px;
}

.cannonball {
    position: relative;
    margin: 0 5px;
    width: 85px;
    height: 100px;
    background-image: url(/assets/fail.png);
    background-repeat: no-repeat;
    background-size: cover;
    float: right;
    display: none;
}

#info {
    position: absolute;
    width: 400px;
    height: 100px;
    left: 20px;
    top: 20px;
    border: 5px solid grey;
    background: #fff;
    z-index: 50;
    display: none;
}

#outtro {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: none;
}

#overlay {
    position: absolute;
    display: none;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    background:white;
    background:rgba(255,255,255,0.8);

    filter:blur(4px);
    -o-filter:blur(4px);
    -ms-filter:blur(4px);
    -moz-filter:blur(4px);
    -webkit-filter:blur(4px);
}

.outtro-content {
    animation-name: rocking;
    animation-duration: 392ms;
    animation-iteration-count: infinite;
    animation-timing-function: ease;
    transform: scale(1, 1) skewX(0deg) rotate(0deg);
}

.outtro-content img {
    position: absolute;
    left: calc(50% - 250px);
    top: 30%;
}

.glow-effect {
    position: absolute;
    left: calc((50% - 250px) + 148px);
    top: calc(30% + 195px);
    background: rgba(245,245,245,0.5);
    z-index: 1000;
    width: 140px;
    height: 10px;
    border-radius: 5px;

    animation-name: glowing;
    animation-duration: 392ms;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;

    opacity: 0;
}

@keyframes glowing {
    0%   {
      opacity: 0;
    }
    25% {
          box-shadow: 
        0px 0px 10px 1px rgba(245,245,245,0.2),
        inset 0px 0px 150px 1px rgba(255,255,0,0.6);    
    }
    50%  {
      opacity: 0.8;
      box-shadow: 
        0px 0px 5px 5px rgba(245,245,245,0.7),
    }
    75% {
      opacity: 0.6;
          box-shadow: 
        0px 0px 50px 5px rgba(245,245,245,0.4),
        inset 0px 0px 150px 1px rgba(0,245,245,0.9);    
    }
    100% {
      opacity: 0;
    }
}

@keyframes rocking {
    0%   {
      transform: scale(1, 1) rotate(0deg)
    }
    10%   {
      transform: scale(1, 1) rotate(0.1deg)
    }
    25%  {
      transform: scale(1.01, 1) rotate(0.1deg)
    }
    35%  {
      transform: scale(1, 1) rotate(-0.05deg)
    }
    50%  {
      transform: scale(1, 0.99) rotate(0.1deg)
    }
    75%  {
      transform: scale(1, 0.99) rotate(0deg)
    }
    100% {
      transform: scale(1, 1) rotate(0deg)
    }
  }

@keyframes rocking2 {
    0%   {
      transform: scale(1, 1) skewX(0deg) rotate(0deg)
    }
    10%   {
      transform: scale(1, 1) skewX(0.01deg) rotate(0.1deg)
    }
    25%  {
      transform: scale(1.01, 1) skewX(0deg) rotate(0.1deg)
    }
    35%  {
      transform: scale(1, 1) skewX(0deg) rotate(-0.05deg)
    }
    50%  {
      transform: scale(1, 0.99) skewX(0deg) rotate(0.1deg)
    }
    75%  {
      transform: scale(1, 0.99) skewX(0deg) rotate(0deg)
    }
    100% {
      transform: scale(1, 1) skewX(0deg) rotate(0deg)
    }
  }