@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');

@property --num {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

@keyframes initText {
  0% {
    content: "Initializing system . . ."
  }

  17% {
    content: "Initializing system . . . \00000a Loading core modules . . ."
  }

  27% {
    content: "Initializing system . . . \00000a Loading core modules . . . \00000a Verifying user permissions . . . "
  }

  36% {
    content: "Initializing system . . . \00000a Loading core modules . . . \00000a Verifying user permissions . . . \00000a Compiling source code . . . "
  }

  42% {
    content: "Initializing system . . . \00000a Loading core modules . . . \00000a Verifying user permissions . . . \00000a Compiling source code . . . \00000a Running diagnostics . . ."
  }

  49% {
    content: "Loading core modules . . . \00000a Verifying user permissions . . . \00000a Compiling source code . . . \00000a Running diagnostics . . . \00000a Establishing secure connection . . ."
  }

  60% {
    content: "Verifying user permissions . . . \00000a Compiling source code . . . \00000a Running diagnostics . . . \00000a Establishing secure connection . . . \00000a Scanning for vulnerabilities . . ."
  }

  66% {
    content: "Compiling source code . . . \00000a Running diagnostics . . . \00000a Establishing secure connection . . . \00000a Scanning for vulnerabilities . . . \00000a Loading user interface . . . \00000a"
  }

  78% {
    content: "Running diagnostics . . . \00000a Establishing secure connection . . . \00000a Scanning for vulnerabilities . . . \00000a Loading user interface . . . \00000a Executing startup procedures . . . \00000a"
  }

  100% {
    content: "Establishing secure connection . . . \00000a Scanning for vulnerabilities . . . \00000a Loading user interface . . . \00000a Executing startup procedures . . . \00000a Initializing database connections . . . \00000a"
  }
}

@keyframes opcty {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@keyframes counting {
  0% {
    --num: 0
  }

  60% {
    --num: 66
  }

  100% {
    --num: 100
  }
}

@keyframes charging {
  0% {
    width: 0%
  }

  60% {
    width: 66%
  }

  100% {
    width: 100%
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0)
  }

  100% {
    transform: rotate(360deg)
  }
}

@keyframes showButton {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#title {
  display: flex;
}

body {
  background-color: #000;
  color: white;
  overflow: hidden;
  height: 100%;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(https://ik.imagekit.io/o9m4namuc/Electronic-image.png);
  background-size: cover;
  background-attachment: fixed;
  filter: brightness(0.5) blur(5px);
  z-index: -1;
  pointer-events: none;
}

.container {
  display: flex;
  height: 100vh;
  flex: 1;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

#loader {
  display: flex;
  flex-direction: column;
  width: 80%;
  animation: opcty 1s ease-in-out;
}

#loader .loading-text {
  font-family: 'Orbitron';
  letter-spacing: 0.3rem;
}

#loader .therefore {
  font-size: 24px;
  animation: rotate 1s linear infinite;
  padding-top: 9.5px;
  height: fit-content;
}

#loader .loading-number {
  counter-reset: num var(--num);
  margin-left: auto;
  transition: --num 5s;
  animation: counting 3s ease-in-out;
  font-family: 'Orbitron';
  animation-fill-mode: forwards;
}

#loader .loading-number:before {
  font-family: 'Orbitron';
  content: counter(num);
}

#loading-bar-border {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
}

#loading-bar-border .loading-bar {
  height: 0.6rem;
  margin: 1px 0px;
  background: white;
  animation: charging 3s ease-in-out;
  animation-fill-mode: forwards;
}

#warning {
  margin-top: 0.5rem;
  font-family: 'Orbitron';
  display: flex;
  height: 1.2rem;
}

#warning .exclamation {
  width: 1rem;
  display: flex;
  justify-content: center;
  background-color: white;
  color: black;
  border-radius: 3px;
}

#line-cascates {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  margin-top: 5rem;
}

#line-cascates:after {
  height: 5rem;
  font-size: 12px;
  white-space: pre;
  text-align: end;
  color: #b5b5b5;
  content: "";
  animation: initText 3s ease;
  animation-fill-mode: forwards;
}

.start-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  color: #ffff;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.5s;
  letter-spacing: 4px;
  overflow: hidden;
  font-family: 'Orbitron';
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: transparent;
  animation: showButton 0.5s ease 20ms forwards;
  opacity: 0;
  display: none;
  margin: 0 auto;
  padding: 12px 20px;
}

.start-button:hover {
  background: #ffff;
  color: #050801;
  box-shadow: 0 0 5px #ffff, 0 0 25px #ffff, 0 0 50px #ffff,
    0 0 200px #ffff;
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.start-button span {
  position: absolute;
  display: block;
}

.start-button span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffff);
  animation: animate1 1s linear infinite;
}

.start-button span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #ffff);
  animation: animate2 1s linear infinite;
  animation-delay: 0.25s;
}

.start-button span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #ffff);
  animation: animate3 1s linear infinite;
  animation-delay: 0.5s;
}

.start-button span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #ffff);
  animation: animate4 1s linear infinite;
  animation-delay: 0.75s;
}



.click-button {
  position: relative;
  display: inline-block;
  padding: 25px 30px;
  margin: 40px 0;
  color: #ffff;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.5s;
  letter-spacing: 4px;
  overflow: hidden;
  margin-right: 50px;
}

.click-button:hover {
  background: #ffff;
  color: #050801;
  box-shadow: 0 0 5px #ffff, 0 0 25px #ffff, 0 0 50px #ffff,
    0 0 200px #ffff;
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.click-button:nth-child(1) {
  filter: hue-rotate(270deg);
}

.click-button:nth-child(2) {
  filter: hue-rotate(110deg);
}

.click-button span {
  position: absolute;
  display: block;
}

.click-button span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffff);
  animation: animate1 1s linear infinite;
}

@keyframes animate1 {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

.click-button span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #ffff);
  animation: animate2 1s linear infinite;
  animation-delay: 0.25s;
}

@keyframes animate2 {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}

.click-button span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #ffff);
  animation: animate3 1s linear infinite;
  animation-delay: 0.5s;
}

@keyframes animate3 {
  0% {
    right: -100%;
  }

  50%,
  100% {
    right: 100%;
  }
}

.click-button span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #ffff);
  animation: animate4 1s linear infinite;
  animation-delay: 0.75s;
}

@keyframes animate4 {
  0% {
    bottom: -100%;
  }

  50%,
  100% {
    bottom: 100%;
  }
}