@import 'fonts/league-spartan/index.css';

h1 {
  font-family: League Spartan;
  font-size: 64px;
  color: #fff;
  line-height: 0;
}

:root {
  --color-dark-blue: #002D57;
  --color-light-blue: #00AEEF;
/*
  --color-grey-blue: #94CDE3;
  --color-yellow: #F0F66E;
  --color-red: #E63946;
*/
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-dark-blue);
}

.container {
    position: relative;
}

.splash {
    position: absolute;
    top: 50%;
    margin-left: calc(50vw - 500px / 2);
    margin-top: calc(50vh - 500px / 2 - 50px);
    transform: scale(0.75);
}

g {
    display: inline;
    fill: var(--color-light-blue);
    fill-opacity: 1;
    stroke: none;
}

.k {
  fill: none;
  stroke: var(--color-light-blue);
}

#k-line-left {
  stroke-width: 50px;
}

#k-line-top path {
    stroke-width: 50px;
    transform-origin: 307.5px 140px;
    transform:
      translateX(-2px)
      rotate(38.75deg)
      translatey(-25px)
      ;
}

#k-line-bottom path {
    stroke-width: 50px;
    transform-origin: 250px 250px;
    transform:
      translate(-42.5px, -10px)
      rotate(48.25deg)
    ;
}


@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(2.2);
    fill: var(--color-grey-blue);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate-90cw {
  0% {
    opacity: 0;
    transform: rotate(-90deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes rotate-90ccw {
  0% {
    transform: rotate(90deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(0deg);
  }
}

svg {
  animation-name: fade-in;
  animation-duration: 0.5s;
  animation-timing-function: ease;
}

h1 {
  animation-name: fade-in;
  animation-duration: 1.2s;
  animation-delay: 3.1s;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

.axes {
  transform-origin: 17.5% calc(100% - 17.5%);
  animation-fill-mode: both;
  animation-duration: 0.6s;
  animation-delay: 0.5s;
  animation-timing-function: ease;
}
#v-axis {
  animation-name: rotate-90cw;
}
#h-axis {
  animation-name: rotate-90ccw;
}

.ticks path {
    animation-name: pop-in;
    animation-fill-mode: both;
    animation-duration: 0.15s;
}



g#v-ticks path:nth-child(1) {
    transform-origin: 12.5% 62.5%;
    animation-delay: 1.1s;
}
g#v-ticks path:nth-child(2) {
    transform-origin: 12.5% 42.5%;
    animation-delay: 1.25s;
}
g#v-ticks path:nth-child(3) {
    transform-origin: 12.5% 22.5%;
    animation-delay: 1.4s;
}


g#h-ticks path:nth-child(1) {
    transform-origin: 37.5% 87.5%;
    animation-delay: 1.55s;
}
g#h-ticks path:nth-child(2) {
    transform-origin: 57.5% 87.5%;
    animation-delay: 1.7s;
}
g#h-ticks path:nth-child(3) {
    transform-origin: 77.5% 87.5%;
    animation-delay: 1.85s;
}



@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

#k-line-left {
  stroke-dashoffset: 225;
  stroke-dasharray: 225;
  animation-name: dash;
  animation-duration: 0.7s;
  animation-delay: 2s;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

#k-line-top, #k-line-bottom {
  stroke-dashoffset: 200;
  stroke-dasharray: 200;
  animation-name: dash;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-timing-function: ease;
}
#k-line-top {
  animation-delay: 2.5s !important;
}
#k-line-bottom {
  animation-delay: 2.8s !important;
}

