#load {
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  background-color: #2b2b2b;
  background-image: url(../img/load_bg.jpg);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

#load > p {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

#load div {
  width: 100%;
  height: 100%;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
      grid-template-columns: 1fr;
  -ms-grid-rows: 1fr;
      grid-template-rows: 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

#load div > div {
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-column: 1 / 2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1 / 2;
  text-align: center;
  -webkit-transform: scale(1);
          transform: scale(1);
}

#load div > div:nth-of-type(1) {
  opacity: 0;
  -webkit-transform: scale(3);
          transform: scale(3);
  -webkit-filter: blur(10px);
          filter: blur(10px);
}

#load div > div:nth-of-type(2) {
  opacity: 0;
  -webkit-transform: scale(3);
          transform: scale(3);
  -webkit-filter: blur(10px);
          filter: blur(10px);
}

#load.animated div {
  -webkit-animation: scale 20s ease-in-out;
          animation: scale 20s ease-in-out;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  -webkit-animation-delay: 0.8s;
          animation-delay: 0.8s;
}

#load.animated div div:nth-of-type(1) {
  -webkit-animation: load 0.3s ease-in-out;
          animation: load 0.3s ease-in-out;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

#load.animated div div:nth-of-type(2) {
  -webkit-animation: load 0.3s ease-in-out;
          animation: load 0.3s ease-in-out;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  -webkit-animation-delay: 0.8s;
          animation-delay: 0.8s;
}

@media screen and (min-width: 768px) {
  #load p, #load div {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
  }
}

@-webkit-keyframes load {
  0% {
    opacity: 0;
    -webkit-transform: scale(4);
            transform: scale(4);
    -webkit-filter: blur(10px);
            filter: blur(10px);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-filter: blur(0);
            filter: blur(0);
  }
}

@keyframes load {
  0% {
    opacity: 0;
    -webkit-transform: scale(4);
            transform: scale(4);
    -webkit-filter: blur(10px);
            filter: blur(10px);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-filter: blur(0);
            filter: blur(0);
  }
}

@-webkit-keyframes scale {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.1);
            transform: scale(0.1);
  }
}

@keyframes scale {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.1);
            transform: scale(0.1);
  }
}
