/* Common Styles for HIVEMIND.ING */

/* Scroll Down Animated Button */
.scroll-down-btn {
  display: inline-block;
  text-decoration: none;
}

.scroll-down-btn p {
  margin-top: 1.25rem;
  color: white;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .375rem;
  text-indent: .375rem;
  animation: colorText 5s ease-out infinite, nudgeText 5s ease-out infinite;
}

.mouse {
  background: #2c333e linear-gradient(transparent 0%, transparent 50%, white 50%, white 100%);
  position: relative;
  width: 38px;
  height: 65px;
  margin: 0 auto;
  border-radius: 6rem;
  background-size: 100% 200%;
  animation: colorSlide 5s linear infinite, nudgeMouse 5s ease-out infinite;
}

.mouse:before,
.mouse:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

.mouse:before {
  width: 34px;
  height: 61px;
  background-color: #121519;
  border-radius: 6rem;
}

.mouse:after {
  background-color: white;
  width: .375rem;
  height: .375rem;
  border-radius: 100%;
  animation: trackBallSlide 5s linear infinite;
}

@keyframes colorSlide {
  0% {
    background-position: 0% 100%;
  }

  20% {
    background-position: 0% 0%;
  }

  21% {
    background-color: #2c333e;
  }

  29.99% {
    background-color: white;
    background-position: 0% 0%;
  }

  30% {
    background-color: #2c333e;
    background-position: 0% 100%;
  }

  50% {
    background-position: 0% 0%;
  }

  51% {
    background-color: #2c333e;
  }

  59% {
    background-color: white;
    background-position: 0% 0%;
  }

  60% {
    background-color: #2c333e;
    background-position: 0% 100%;
  }

  80% {
    background-position: 0% 0%;
  }

  81% {
    background-color: #2c333e;
  }

  90%,
  100% {
    background-color: white;
  }
}

@keyframes trackBallSlide {
  0% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }

  6% {
    opacity: 1;
    transform: scale(0.9) translateY(5px);
  }

  14% {
    opacity: 0;
    transform: scale(0.4) translateY(40px);
  }

  15%,
  19% {
    opacity: 0;
    transform: scale(0.4) translateY(-20px);
  }

  28%,
  29.99% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }

  30% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }

  36% {
    opacity: 1;
    transform: scale(0.9) translateY(5px);
  }

  44% {
    opacity: 0;
    transform: scale(0.4) translateY(40px);
  }

  45%,
  49% {
    opacity: 0;
    transform: scale(0.4) translateY(-20px);
  }

  58%,
  59.99% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }

  60% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }

  66% {
    opacity: 1;
    transform: scale(0.9) translateY(5px);
  }

  74% {
    opacity: 0;
    transform: scale(0.4) translateY(40px);
  }

  75%,
  79% {
    opacity: 0;
    transform: scale(0.4) translateY(-20px);
  }

  88%,
  100% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }
}

@keyframes nudgeMouse {
  0%,
  30%,
  60%,
  90% {
    transform: translateY(0);
  }

  20%,
  50%,
  80% {
    transform: translateY(8px);
  }
}

@keyframes nudgeText {
  0%,
  30%,
  60%,
  90% {
    transform: translateY(0);
  }

  20%,
  50%,
  80% {
    transform: translateY(2px);
  }
}

@keyframes colorText {
  21%,
  51%,
  81% {
    color: #2c333e;
  }

  30%,
  60%,
  90% {
    color: white;
  }
}

/* HIVEMIND Lines Animation */
.hivemind-lines-left {
  background-image: linear-gradient(to right, #2b82ef 2%, #FD7F1B 2%, #FD7F1B 4%, #F6BC04 4%, #F6BC04 6%, #61CA22 6%, #61CA22 8%, transparent 8%, transparent 100%), var(--bg-url);
  background-repeat: no-repeat;
  background-position: left center;
  min-height: 14rem;
  background-position-y: center;
  border-radius: 12px;
}

.hivemind-lines-left:active {
  animation: gradient 5s ease infinite;
  background-image: linear-gradient(to right, #FD7F1B 2%, #F6BC04 2%, #F6BC04 4%, #61CA22 4%, #61CA22 6%, #2b82ef 6%, #2b82ef 8%, transparent 8%, transparent 100%), var(--bg-url);
}

@keyframes gradient {
  0% {
    background-position: left center;
  }

  100% {
    background-position: right center;
  }
}

/* Accessibility Improvements */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Search Container Styles */
.search-container {
  display: flex;
  width: 100%;
}

.search-container .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-container .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Soundboard Button Styles */
.soundboard-button {
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
}

.soundboard-button:hover {
  transform: scale(1.02);
}

.soundboard-button:active {
  transform: scale(0.98);
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .hivemind-lines-left {
    min-height: 10rem;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .search-container .form-control,
  .search-container .btn {
    border-radius: 0.375rem;
  }
  
  .search-container .btn {
    margin-top: 0.5rem;
  }
} 