/*
 * Copyright (c) 2021. All Rights Reserved.
 * Written by Jonathan Castillo for the University of the Cordilleras
 * Modified by JonathanCastillo with last update on 10/06/2021, 12:31 AM
 */

.preloader-wrapper {
  width: 100vw;
  height: 100vh;

  display: flex;
}

.preloader {
  margin: auto;

  width: 200px;
  height: 200px;
  position: relative;
}

.preloader-img {
  position: absolute;
  top: 0;
  width: 200px;
  height: 200px;

  display: flex;
}

.preloader-img img {
  margin: auto;
  position: relative;

  width: 64px;
}

.spinner {
  width: 72px;
  height: 72px;
  background: #09593c;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  margin: 64px;
  z-index: -1;
}

.spinner:after,
.spinner:before {
  content: '';
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.spinner-animated:after {
  position: absolute;
  border: 4px solid transparent;
  border-top-color: #09593c;
  border-bottom-color: #09593c;
  animation: spin 2s linear infinite;
}

.spinner-animated:before {
  position: absolute;
  top: 18px;
  left: 18px;
  height: 36px;
  width: 36px;
  background-color: floralwhite;
  animation: shrink 3s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.8);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes shrink {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}
