html,
body,
#root {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background: #212121;
}

body {
  font-family: 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 12px;
  background: url('/assets/img/bg/default.jpg');
  background-size: cover;
  background-position: center;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 11px;
  opacity: 0.9;
}

#root {
  overflow: hidden;
}

.spinner {
  display: inline-block;
  position: relative;
  width: 164px;
  height: 164px;
  margin: 20px;
  pointer-events: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  animation: spinner-breathe 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  opacity: 0.4;
}

/* Electric discharge effect overlay */
.spinner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: inherit;
  filter: brightness(3) contrast(2);
  opacity: 0;
  animation: electric-discharge 1.2s ease-in-out infinite;
  mix-blend-mode: screen;
}

.spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: inherit;
  filter: brightness(4) contrast(3);
  opacity: 0;
  animation: electric-discharge-2 1.7s ease-in-out infinite;
  animation-delay: 0.6s;
  mix-blend-mode: screen;
}

.spinner-small {
  opacity: 0.8;
  width: 30px;
  height: 30px;
}

.spinner-small.spinner-center {
  position: absolute;
  top: calc(50% - 35px);
  left: calc(50% - 15px);
}

.spinner-center {
  display: block;
  margin: 20px auto;
}

.spinner-screen {
  position: fixed;
  left: calc(50vw - 82px);
  top: calc(40vh - 82px);
}

.spinner-button {
  width: 20px;
  height: 20px;
  position: inline-block;
  text-align: center;
  margin: 0 !important;
}

/* Hide old spinner elements */
.spinner-point,
.spinner-line {
  display: none;
}

/* Breathing animation */
@keyframes spinner-breathe {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
  }
}

/* Electric discharge animation - random timing effect */
@keyframes electric-discharge {

  0%,
  100% {
    opacity: 0;
  }

  5% {
    opacity: 0.8;
  }

  10% {
    opacity: 0;
  }

  15% {
    opacity: 0.6;
  }

  20%,
  80% {
    opacity: 0;
  }

  85% {
    opacity: 0.7;
  }

  90% {
    opacity: 0;
  }
}

/* Second electric discharge with different timing */
@keyframes electric-discharge-2 {

  0%,
  100% {
    opacity: 0;
  }

  8% {
    opacity: 0.9;
  }

  12% {
    opacity: 0;
  }

  40% {
    opacity: 0.5;
  }

  45%,
  70% {
    opacity: 0;
  }

  75% {
    opacity: 0.6;
  }

  80% {
    opacity: 0;
  }
}