html,body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}
body {
  background-color: #9ab0d0;
  font-family: Anton, sans-serif;
  color: #fff;
  
  background-image: url('/guras/gura_hook_smol_by_klaius.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
}
#text {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  top: 5px;
  left: 20px;
  text-align: center;
  line-height: 1em;
  font-size: 1.5vw;
}
#jp {
  font-size: 14em;
  padding-right: 5px;
}
#same {
  font-size: 12em;
  line-height: 1em;
}
#shark {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 4em;
  text-transform: uppercase;
  padding: 0 20px;
  line-height: 1em;
}
p { margin: 0 }
#gura {
  display: none;
  position: fixed;
  top: -20px;
  height: 100%;
  
  /* 
  background-image: url('/guras/smol/gura_hook_smol_by_klaius.png');
  background-size: contain;
   */
}

/* #gura .part { opacity: 0.8; } */

#gura .body {
  width: auto;
  height: 100%;
  position: relative;
  z-index: 2;
}
#gura .parts {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
#gura .parts .part {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
}
#gura .parts .part.left-arm {
  z-index: 9;
  top: 78%;
  left: 28%;
  animation-name: swing-arm;
}
#gura .parts .part.right-arm {
  z-index: 9;
  top: 77%;
  left: 43%;
  animation-name: swing-arm;
}
#gura .parts .part.back-hair-left {
  z-index: 8;
  top: 76%;
  left: 18%;
  animation-name: swing-counter;
}
#gura .parts .part.leg-left {
  z-index: 6;
  top: 76.5%;
  left: 50%;
  animation-name: swing-counter;
}
#gura .parts .part.leg-right {
  z-index: 6;
  top: 73%;
  left: 60%;
  animation-name: swing-counter;
}
#gura .parts .part.tail {
  height: 23.5%;
  z-index: 5;
  top: 44%;
  left: 58%;
  /* animation-name: swing-tail; */
  transform-origin: bottom left;
}
#source {
  display: block;
  position: fixed;
  bottom: 10px;
  right: 10px;
  border-radius: 5px;
  padding: 5px 20px;
  font-size: 2em;
  text-decoration: none;
  background-color: rgba(100,130,160,0.3);
  color: #fff;
}
#source:hover { background-color: rgba(255,255,255,0.3); }

.swing {
  transform-origin: top center;
  animation-duration: 1s;
  animation-name: swing;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
}
@keyframes swing {
  from {
    transform: rotate(-3deg);
  }
  
  to {
    transform: rotate(3deg);
  }
}
@keyframes swing-arm {
  from {
    transform: rotate(12deg);
  }
  
  to {
    transform: rotate(3deg);
  }
}
@keyframes swing-counter {
  from {
    transform: rotate(5deg);
  }
  
  to {
    transform: rotate(-5eg);
  }
}
@keyframes swing-tail {
  from {
    transform: rotate(-30deg);
  }
  
  to {
    transform: rotate(30eg);
  }
}


/* Desktop */
#gura { right: 0; }

#gura .parts .part.left-arm {
  height: 12.8%;
}
#gura .parts .part.right-arm {
  height: 16.3%;
}
#gura .parts .part.back-hair-left {
  height: 9.8%;
}
#gura .parts .part.leg-left {
  height: 13.8%;
}
#gura .parts .part.leg-right {
  height: 16%;
}
#gura .parts .part.tail {
  height: 23.5%;
}

/* Mobile */
@media (-webkit-min-aspect-ratio: 2/1) {
  html, body { overflow: hidden }
  #gura {
    width: 100%;
    height: 100%;
    margin: auto;
    right: auto;
  }
  #gura .body {
    min-width: 800px; /* Original Ratio: 0.2874595759971254042400287459576 */
    width: 150%;
    height: auto;
    margin-left: -18%;
    
    background-image: url('/guras/smol/gura_hook_smol_by_klaius.png');
    background-size: contain;
    background-repeat: none;
    
  }
  #gura .parts .part { display: none }
  
  #gura .parts .part.left-arm {
    min-width: 99px;
    width: 18.6%;
    height: auto;
  }
  #gura .parts .part.right-arm {
    min-width: 117px;
    width: 21.9%;
    height: auto;
  }
  #gura .parts .part.back-hair-left {
    min-width: 108px;
    width: 14.7%;
    height: auto;
  }
  #gura .parts .part.leg-left {
    min-width: 70px;
    width: 20.7%;
    height: auto;
  }
  #gura .parts .part.leg-right {
    min-width: 76px;
    width: 24%;
    height: auto;
  }
  #gura .parts .part.tail {
    min-width: 263px;
    width: 32.8%;
    height: auto;
  }
}
