:root {
  --color-text: #fff;
  --color-bg: #000;
  --color-link: #f9d77e;
  --color-link-hover: #fff;
  --color-info: #efc453;
  --glitch-width: 100vw;
  --glitch-height: 100vh;
  --gap-horizontal: 10px;
  --gap-vertical: 5px;
  --time-anim: 4s;
  --time-anim-1: 4.5s;
  --delay-anim: 3.5s;
  --delay-anim-1: 7s;
  --blend-mode-1: none;
  --blend-mode-2: none;
  --blend-mode-3: none;
  --blend-mode-4: none;
  --blend-mode-5: overlay;
  --blend-color-1: transparent;
  --blend-color-2: transparent;
  --blend-color-3: transparent;
  --blend-color-4: transparent;
  --blend-color-5: #af4949;
}

@font-face {
  font-family: "PhelixBoomgartner";
  src: url("../fonts/PhelixBoomgartner.otf") format("opentype");
}

@font-face {
  font-family: "DoctorGlitch";
  src: url("../fonts/Doctor\ Glitch.otf") format("opentype");
}

* {
  transition: all 0.3s ease;
  letter-spacing: 0.125em;
}

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition-property: height, visibility;
  transition-property: height, visibility;
  -webkit-transition-duration: 0.25s;
  transition-duration: 0.25s;
  -webkit-transition-timing-function: ease;
  transition-timing-function: ease;
}

body {
  /* background-image: url(../images/bg.png); */
  background-position: right;
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: 350px;
  background-color: #00040d;
}

.solved .badge {
  background-color: #17b06b94;
  border: 1px solid #17b06b;
  color: white;
}

.badge {
  border: 1px solid #87c4f2;
}

.solved {
  background-color: #ffffff14;
}

.solvers {
  color: #36a2eb;
  font-size: 1rem;
}

.solver_num {
  color: white;
}

.machine .solvers {
  font-size: 1rem !important;
}

.machine_page .solvers {
  font-size: 1.25rem !important;
}

.ip {
  padding-right: 20px;
}

.category_web {
  border-top: 4px solid #ef121b94;
}

.category_reversing {
  border-top: 4px solid #17b06b94;
}

.category_steg {
  border-top: 4px solid #f9751594;
}

.category_pwning {
  border-top: 4px solid #00a09994;
}

.category_machine {
  border-top: 4px solid #0f329894;
}

.category_machine a:hover {
  text-decoration: none;
  color: inherit;
}

.category_misc {
  border-top: 4px solid #ffce5694;
}

.category_crypt {
  border-top: 4px solid #9966ff94;
}

.hackerFont {
  font-family: Hack, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.color_danger {
  color: #ff0044 !important;
  text-shadow: 0 0 6px #ff0044, 0 0 12px #ff0044, 0 0 24px rgba(255, 0, 68, 0.8);
}
.color_white {
  color: #ffffff !important;
  text-shadow: 0 0 6px #00ffff, 0 0 14px rgba(0, 255, 255, 0.6),
    0 0 30px rgba(0, 255, 255, 0.3);
}

.bold {
  font-weight: bold;
}

h1,
h2 {
  font-family: "PhelixBoomgartner" !important;
}

button.typewriter {
  max-width: 0%;
  overflow: hidden;
  /* Ensures the content is not revealed until the animation */
  white-space: nowrap;
  /* Keeps the content on a single line */
  /* margin: 0 auto; */
  /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.15em;
  /* Adjust as needed */
  animation: expand 1s steps(140, end), blink-caret 0.75s step-end infinite;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.typewriter h4 {
  width: 0%;
  overflow: hidden;
  /* Ensures the content is not revealed until the animation */
  white-space: nowrap;
  /* Keeps the content on a single line */
  /* margin: 0 auto; */
  /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.15em;
  /* Adjust as needed */
  animation: typing 0.5s steps(140, end), blink-caret 0.75s step-end infinite;
  animation-delay: 1.5s;
  animation-fill-mode: forwards;
}

.toggle-yes {
  border-radius: 6px 0 0 6px !important;
}
.toggle-no {
  border-radius: 0 6px 6px;
}

input[type="radio"].toggle {
  display: none;
}
input[type="radio"].toggle:checked + label {
  background-color: #714cdf;
  color: #fff;
}

/* The typing effect */

@keyframes expand {
  0% {
    max-width: 0%;
  }
  10% {
    max-width: 10%;
  }
  15% {
    max-width: 0%;
  }
  20% {
    max-width: 12%;
  }
  30% {
    max-width: 15%;
  }
  40% {
    max-width: 25%;
  }
  50% {
    max-width: 30%;
  }
  60% {
    max-width: 45%;
  }
  70% {
    max-width: 65%;
  }
  80% {
    max-width: 85%;
  }
  100% {
    max-width: 100%;
  }
}

/* The typing effect */

@keyframes typing {
  0% {
    width: 0%;
  }
  10% {
    width: 10%;
  }
  15% {
    width: 0%;
  }
  20% {
    width: 0%;
  }
  30% {
    width: 15%;
  }
  40% {
    width: 25%;
  }
  45% {
    width: 15%;
  }
  50% {
    width: 30%;
  }
  60% {
    width: 45%;
  }
  70% {
    width: 65%;
  }
  80% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

.content__title {
  letter-spacing: 1.5px;
  color: #00ffff !important;
  animation: glitch-anim-text 3s infinite ease-in-out;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff,
    0 0 40px rgba(0, 255, 255, 0.8);
}

.content__title2 {
  color: #ff00ff !important;
  animation: glitch-anim-text-2 3.5s infinite ease-in-out;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff,
    0 0 40px rgba(255, 0, 255, 0.8);
}

/* glitch effect */

@keyframes glitch-anim-text {
  0%,
  100% {
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff,
      0 0 40px rgba(0, 255, 255, 0.7);
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 1px);
    text-shadow: -2px 0 #00ffff, 2px 0 #00ffff, 0 0 25px #00ffff;
  }
  40% {
    transform: translate(2px, -1px);
  }
  60% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
}

@keyframes glitch-anim-text-2 {
  0%,
  100% {
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff,
      0 0 40px rgba(255, 0, 255, 0.7);
    transform: translate(0);
  }
  25% {
    transform: translate(2px, -2px);
    text-shadow: 2px 0 #ff00ff, -2px 0 #ff00ff, 0 0 25px #ff00ff;
  }
  50% {
    transform: translate(-2px, 2px);
  }
  75% {
    transform: translate(1px, -1px);
  }
}

.glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch__img {
  position: absolute;
  top: calc(-1 * var(--gap-vertical));
  left: calc(-1 * var(--gap-horizontal));
  width: calc(100% + var(--gap-horizontal) * 2);
  height: calc(100% + var(--gap-vertical) * 2);
  background: url(../images/bg.png);
  transform: translate3d(0, 0, 0);
  background-blend-mode: var(--blend-mode-1);
  background-position: right;
  background-size: cover;
  background-repeat: no-repeat;
  /* background-position-x: 350px; */
}

.glitch__img_login {
  background: url(../images/bg--world.png) !important;
}

.glitch__img_404 {
  background: url(../images/404.gif) !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
}

.glitch__img_leaderboard {
  position: fixed !important;
  background: url(../images/bg--world.png) !important;
}

.glitch__img_register {
  position: fixed !important;
}

.glitch__img:nth-child(n + 2) {
  opacity: 0;
}

.imgloaded .glitch__img:nth-child(n + 2) {
  animation-duration: var(--time-anim);
  animation-delay: var(--delay-anim-1);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.imgloaded .glitch__img:nth-child(2) {
  background-color: var(--blend-color-2);
  background-blend-mode: var(--blend-mode-2);
  animation-name: glitch-anim-1;
}

.imgloaded .glitch__img:nth-child(3) {
  background-color: var(--blend-color-3);
  background-blend-mode: var(--blend-mode-3);
  animation-name: glitch-anim-2;
}

.imgloaded .glitch__img:nth-child(4) {
  background-color: var(--blend-color-4);
  background-blend-mode: var(--blend-mode-4);
  animation-name: glitch-anim-3;
}

.imgloaded .glitch__img:nth-child(5) {
  background-color: var(--blend-color-5);
  background-blend-mode: var(--blend-mode-5);
  animation-name: glitch-anim-flash;
}

@keyframes glitch-anim-1 {
  0% {
    opacity: 1;
    transform: translate3d(var(--gap-horizontal), 0, 0);
    -webkit-clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
    clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
  }
  2% {
    -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
    clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
  }
  4% {
    -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
  }
  6% {
    -webkit-clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
    clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
  }
  8% {
    -webkit-clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
    clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
  }
  10% {
    -webkit-clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
    clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
  }
  12% {
    -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
    clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
  }
  14% {
    -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
  }
  16% {
    -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
    clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
  }
  18% {
    -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
    clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
  }
  20% {
    -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
    clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
  }
  21.9% {
    opacity: 1;
    transform: translate3d(var(--gap-horizontal), 0, 0);
  }
  22%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    -webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    opacity: 1;
    transform: translate3d(calc(-1 * var(--gap-horizontal)), 0, 0);
    -webkit-clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
    clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
  }
  3% {
    -webkit-clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%);
    clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%);
  }
  5% {
    -webkit-clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
    clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
  }
  7% {
    -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
    clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
  }
  9% {
    -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
    clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
  }
  11% {
    -webkit-clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%);
    clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%);
  }
  13% {
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
    clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
  }
  15% {
    -webkit-clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%);
    clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%);
  }
  17% {
    -webkit-clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%);
    clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%);
  }
  19% {
    -webkit-clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
    clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
  }
  20% {
    -webkit-clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%);
    clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%);
  }
  21.9% {
    opacity: 1;
    transform: translate3d(calc(-1 * var(--gap-horizontal)), 0, 0);
  }
  22%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    -webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  }
}

@keyframes glitch-anim-3 {
  0% {
    opacity: 1;
    transform: translate3d(0, calc(-1 * var(--gap-vertical)), 0)
      scale3d(-1, -1, 1);
    -webkit-clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%);
    clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%);
  }
  1.5% {
    -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%);
    clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%);
  }
  2% {
    -webkit-clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%);
    clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%);
  }
  2.5% {
    -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
    clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
  }
  3% {
    -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%);
    clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%);
  }
  5% {
    -webkit-clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%);
    clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%);
  }
  5.5% {
    -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%);
    clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%);
  }
  7% {
    -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%);
    clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%);
  }
  8% {
    -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
    clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
  }
  9% {
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%);
    clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%);
  }
  10.5% {
    -webkit-clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%);
    clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%);
  }
  11% {
    -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%);
    clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%);
  }
  13% {
    -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%);
    clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%);
  }
  14% {
    -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%);
    clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%);
  }
  14.5% {
    -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
    clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
  }
  15% {
    -webkit-clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%);
    clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%);
  }
  16% {
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
    clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
  }
  18% {
    -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%);
    clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%);
  }
  20% {
    -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%);
    clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%);
  }
  21.9% {
    opacity: 1;
    transform: translate3d(0, calc(-1 * var(--gap-vertical)), 0)
      scale3d(-1, -1, 1);
  }
  22%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
    -webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  }
}

#preloader {
  width: 100%;
  height: 100%;
}

#preloader {
  background: black;
  color: #ddd;
  padding: 5px;
  box-sizing: border-box;
}

#preloader::-webkit-scrollbar {
  display: none;
}

span.ok,
span.fail,
span.fail:before,
span.ok:before {
  margin-right: 10px;
}

span.ok {
  color: #1ec622;
}

span.fail {
  color: red;
}

span.ok:before,
span.fail:before {
  content: "[";
}

span.ok:after,
span.fail:after {
  margin-left: 10px;
  content: "]";
}

#main {
  display: none;
}

.navbar-nav a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  text-shadow: 0 0 4px #00ffff, 0 0 8px rgba(0, 255, 255, 0.6),
    0 0 15px rgba(0, 255, 255, 0.3);
  transition: all 0.25s ease-in-out;
}

.navbar-nav a:hover {
  color: #00ffff !important;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #00ffff, 0 0 25px #00ffff,
    0 0 50px #00ffff;
  transform: scale(1.05);
}

.navbar-nav .text-white.bold {
  color: #ff00ff !important;
  text-shadow: 0 0 10px #ff00ff, 0 0 25px #ff00ff, 0 0 40px #ff00ff;
}

.custom-control-input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #00ffff;
  border-radius: 4px;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.custom-control-input:hover {
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

.custom-control-input:checked {
  background-color: #00ffff;
  box-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff;
  border-color: #00ffff;
}

.custom-control-input:checked::after {
  content: "✔";
  color: #000;
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  top: 0px;
  left: 3px;
}

.custom-control-label {
  color: #e0f7fa;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  margin-left: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.custom-control-label:hover {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

.form-control {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(0, 255, 255, 0.4);
  color: #e0ffff;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(0, 255, 255, 0.4);
  font-style: italic;
}

.form-control:focus {
  background-color: rgba(0, 0, 0, 0.6);
  border-color: #00ffff;
  color: #ffffff;
  box-shadow: 0 0 10px #00ffff, 0 0 20px rgba(0, 255, 255, 0.5);
}

.form-text.text-muted {
  color: rgba(180, 255, 255, 0.6) !important;
  font-size: 0.9rem;
}

.form-text.text-muted a {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
  transition: 0.3s;
}

.form-text.text-muted a:hover {
  color: #fff;
  text-shadow: 0 0 10px #00ffff;
}

.custom-control.my-4 {
  margin-top: 0.8rem !important;
  margin-bottom: 0.5rem !important;
}

.custom-control.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  padding-left: 0 !important;
}

.custom-control-input {
  margin: 0 !important;
  vertical-align: middle;
}

.custom-control-label {
  margin: 0;
  font-size: 0.95rem;
  color: #bdfcff;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

canvas#myChart {
  height: 500px !important;
  width: 100% !important;
  max-height: 600px;
  filter: drop-shadow(0 0 10px #00ffff);
}

.chartjs-render-monitor {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
