* {
  margin: 0;
  padding: 0;
  font-family: "Roboto Mono", monospace;
  font-style: normal;
}

html, body {
  touch-action: manipulation;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0));
  z-index: 1000;
  padding: 1rem 2rem;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

#loading-circle {
  width: 50px;
  height: 50px;
  border: 5px solid cyan;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

#loading-text {
  margin-top: 20px;
  color: cyan;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  z-index: 1010;
}

.container {
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container {
  display: none; 
}

.nav-links {
  display: flex;
  gap: 0.3rem;
}

.nav-links .nav-link {
  color: #ffffff;
  font-size: 0.77rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links .nav-link:hover {
  background: rgba(0, 72, 98, 0.63);
  color: rgb(170, 212, 255);
}

.navIcon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  transition: filter 0.3s ease;
}

.one {
  width: 15px;
}

.custom-header:hover {
  cursor: pointer;
  color: rgb(160, 230, 255) !important;
  text-shadow: 0 0 5px rgba(43, 255, 244, 0.7);
}

.hamburger {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  z-index: 2001;
}

.hamburger-icon,
.close-icon {
  display: none;
}

.hamburger .hamburger-icon {
  display: inline;
}

.hamburger.active .hamburger-icon {
  display: none;
}

.hamburger.active .close-icon {
  display: inline;
}

.nav-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.toggle-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
 
}

.toggle-slot {
  bottom: 10px;
  right: 10px;
  font-size: 10px;
  position: absolute;
  height: 1.5em;
  width: 3em;
  border: 0px solid transparent;
  border-radius: 10em;
  background-color: white;
  transition: background-color 250ms;
  cursor: pointer;


}

.toggle-checkbox:checked ~ .toggle-slot {
  background-color: #374151;
}

.toggle-button {
  transform: translate(0.3em, 0.25em);
  position: absolute;
  height: 1em;
  width: 1em;
  border-radius: 50%;
  background-color:rgb(0, 171, 251);
  box-shadow: inset 0px 0px 0px 0.75emrgb(0, 153, 255);
  transition: background-color 250ms, border-color 250ms, transform 500ms cubic-bezier(.26,2,.46,.71);
  cursor: pointer;

}

.toggle-checkbox:checked ~ .toggle-slot .toggle-button {
  background-color: #485367;
  box-shadow: inset 0px 0px 0px 0.75em white;
  transform: translate(1.65em, 0.25em);
  cursor: pointer;

}

.sun-icon {
  position: absolute;
  height: 6em;
  width: 6em;
  color:rgb(82, 154, 255);
  cursor: pointer;

}

.sun-icon-wrapper {
  position: absolute;
  height: 6em;
  width: 6em;
  opacity: 1;
  transform: translate(2em, 2em) rotate(15deg);
  transform-origin: 50% 50%;
  transition: opacity 150ms, transform 500ms cubic-bezier(.26,2,.46,.71);
}

.toggle-checkbox:checked ~ .toggle-slot .sun-icon-wrapper {
  opacity: 0;
  transform: translate(3em, 2em) rotate(0deg);
}

.moon-icon {
  position: absolute;
  height: 6em;
  width: 6em;
  color: white;
}

.moon-icon-wrapper {
  position: absolute;
  height: 6em;
  width: 6em;
  opacity: 0;
  transform: translate(11em, 2em) rotate(0deg);
  transform-origin: 50% 50%;
  transition: opacity 150ms, transform 500ms cubic-bezier(.26,2.5,.46,.71);
}

.toggle-checkbox:checked ~ .toggle-slot .moon-icon-wrapper {
  opacity: 1;
  transform: translate(2em, 2em) rotate(-15deg);
}

.body-container {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.11),
    rgba(0, 0, 0, 0.01)
  );
  border-radius: 20px;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.body-container h1 {
  font-size: 2.8rem;
}

h1 {
  color: inherit;
  text-shadow: inherit;
}

.body-container:hover {
  background: linear-gradient(
    to bottom right,
    rgba(0, 72, 98, 0.3),
    rgba(0, 62, 123, 0.49),
    rgba(0, 72, 98, 0.1),
    rgba(0, 46, 137, 0.24)
  );
  box-shadow: 0px 2px 20px rgba(0, 72, 98, 0.63);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  color: rgb(224, 247, 255) !important;
  text-shadow: 0 0 5px rgba(43, 255, 244, 0.7);
}

:root {
  --bg-gradient-start: #3730a3; /* indigo-900 */
  --bg-gradient-via: rgb(33, 137, 182); /* purple-900 */
  --bg-gradient-end: #000000; /* black */
  --navbar-bg: rgba(91, 33, 182, 0.4); /* purple-900 opacity-40 */
  --container-bg: rgba(33, 75, 182, 0.38); /* purple-900 opacity-60 */
  --text-color: #e5e7eb; /* gray-200 */
  --nav-text-color: #c4b5fd; /* purple-300 */
  /* --accent-blue:rgb(213, 242, 253);  */
  --accent-cyan: #67e8f9; /* cyan-300 */
  --accent-orange: #fb923c; /* orange-400 */
  --border-accent: rgb(72, 228, 236); /* pink-500 */
  --border-subtle: rgb(40, 149, 217); /* purple-700 */
  --shadow-accent: 0 0 12px rgba(72, 203, 236, 0.6);
  --shadow-cyan: 0 0 12px rgba(56, 189, 248, 0.6);
  --hover-bg: rgba(109, 40, 217, 0.8); /* purple-800 opacity-80 */
  --nav-hover-text: #f472b6; /* pink-400 */
  --field-selected-bg: rgba(39, 144, 219, 0.4); /* pink-600 opacity-40 */
  --field-selected-text: rgb(168, 227, 249); /* pink-300 */
  --field-deselected-opacity: 0.7;
  --field-hover-opacity: 1;
}

/* Apply base styles using variables */
.synthwave-bg {
  background: linear-gradient(
    to bottom right,
    var(--bg-gradient-start),
    var(--bg-gradient-via),
    var(--bg-gradient-end)
  );
}
.synthwave-text {
  color: var(--text-color);
}
/* .synthwave-navbar-bg { background-color: var(--navbar-bg); } */
/* .synthwave-container-bg    { background: linear-gradient(to bottom, rgba(0, 72, 98, 0.29), rgba(0, 0, 0, 0.01));} */
/* .synthwave-nav-text { color: var(--nav-text-color); } */
/* .synthwave-accent-blue { color: var(--accent-blue); } */
.synthwave-accent-cyan {
  color: var(--accent-cyan);
}
.synthwave-accent-orange {
  color: var(--accent-orange);
}
.synthwave-border-accent {
  border-color: var(--border-accent);
}
.synthwave-border-subtle {
  border-color: var(--border-subtle);
}
.synthwave-shadow-cyan {
  box-shadow: var(--shadow-cyan);
}
.synthwave-hover-bg:hover {
  background-color: var(--hover-bg);
}
.synthwave-nav-hover-text:hover {
  color: var(--nav-hover-text);
}


.field-button {
  border-color: var(--border-subtle);
  opacity: var(--field-deselected-opacity);
  transition: all 0.2s ease-in-out;
}
.field-button:hover {
  opacity: var(--field-hover-opacity);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}
.field-button.selected {
  border-color: var(--border-accent);
  color: var(--field-selected-text);
  box-shadow: var(--shadow-accent);
  background-color: var(--field-selected-bg);
  opacity: 1; 
}


.hidden-initially {
  display: none;
}

.title {
  font-size: 3em;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  z-index: 10;
}

.stack {
  display: grid;
  color: white;
  grid-template-columns: 1fr;
}

.stack span {
  font-weight: bold;
  grid-row-start: 1;
  grid-column-start: 1;
  font-size: 2.5rem;
  --stack-height: calc(100% / var(--stacks) - 1px);
  --inverse-index: calc(calc(var(--stacks) - 1) - var(--index));
  --clip-top: calc(var(--stack-height) * var(--index));
  --clip-bottom: calc(var(--stack-height) * var(--inverse-index));
  clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
  animation: stack 340ms cubic-bezier(0.46, 0.29, 0, 1.24) 1 backwards
      calc(var(--index) * 120ms),
    glitch 2s ease infinite 2s alternate-reverse;
}

.stack span:nth-child(odd) {
  --glitch-translate: 8px;
}
.stack span:nth-child(even) {
  --glitch-translate: -8px;
}

@keyframes stack {
  0% {
    opacity: 0;
    transform: translateX(-50%);
    text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
  }
  60% {
    opacity: 0.5;
    transform: translateX(50%);
  }
  80% {
    transform: none;
    opacity: 1;
    text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
  }
  100% {
    text-shadow: none;
  }
}

@keyframes glitch {
  0% {
    text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
    transform: translate(var(--glitch-translate));
  }
  2% {
    text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
  }
  4%,
  100% {
    text-shadow: none;
    transform: none;
  }
}

.subtitle {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

.search-container {
  border-radius: 8px;
  padding: 20px;
  max-width: 800px;
}

.search-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 400px) {
  .search-row {
    flex-direction: row;
  }
}

.search-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #444;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.11),
    rgba(0, 0, 0, 0.01)
  );
  color: #fff;
  border-radius: 5px;
}

.search-button {
  padding: 10px 16px;
  border: 1px solid rgb(0, 170, 255);
  background-color: transparent;
  color: rgb(0, 166, 255);
  border-radius: 5px;
  cursor: pointer;
}

.search-button:hover {
  background-color: rgba(43, 255, 244, 0.7);
  color: #000;
}

.field-toggle {
  border-top: 1px solid #444;
  padding-top: 15px;
  margin-top: 15px;
}

.toggle-label {
  font-size: 0.9em;
  opacity: 0.8;
}

.field-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.field-button {
  padding: 6px 12px;
  font-size: 0.8em;
  border: 1px solid #666;
  border-radius: 5px;
  background-color: #1a1a1f;
  color: #ddd;
  cursor: pointer;
}

.field-button .icon {
  display: none;
  margin-left: 5px;
}

.field-count {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 10px;
}


.field-button {
  border-color: var(--border-subtle);
  opacity: var(--field-deselected-opacity);
  transition: all 0.2s ease-in-out;
  padding: 6px 12px;
  font-size: 0.8em;
  border: 1px solid #666;
  border-radius: 5px;
  background-color: #1a1a1f;
  color: #ddd;
  cursor: pointer;
}

.field-button:hover {
  opacity: var(--field-hover-opacity);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
}

.field-button.selected {
  border-color: var(--border-accent);
  color: var(--field-selected-text);
  box-shadow: var(--shadow-accent);
  background-color: var(--field-selected-bg);
  opacity: 1;
}

.hidden-initially {
  display: none;
}

.title {
  font-size: 3em;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  z-index: 10;
}

.stack {
  display: grid;
  color: white;
  grid-template-columns: 1fr;
}

.stack span {
  font-weight: bold;
  grid-row-start: 1;
  grid-column-start: 1;
  font-size: 2.5rem;
  --stack-height: calc(100% / var(--stacks) - 1px);
  --inverse-index: calc(calc(var(--stacks) - 1) - var(--index));
  --clip-top: calc(var(--stack-height) * var(--index));
  --clip-bottom: calc(var(--stack-height) * var(--inverse-index));
  clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
  animation: stack 340ms cubic-bezier(0.46, 0.29, 0, 1.24) 1 backwards
      calc(var(--index) * 120ms),
    glitch 2s ease infinite 2s alternate-reverse;
}

.stack span:nth-child(odd) {
  --glitch-translate: 8px;
}
.stack span:nth-child(even) {
  --glitch-translate: -8px;
}

@keyframes stack {
  0% {
    opacity: 0;
    transform: translateX(-50%);
    text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
  }
  60% {
    opacity: 0.5;
    transform: translateX(50%);
  }
  80% {
    transform: none;
    opacity: 1;
    text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
  }
  100% {
    text-shadow: none;
  }
}

@keyframes glitch {
  0% {
    text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
    transform: translate(var(--glitch-translate));
  }
  2% {
    text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
  }
  4%,
  100% {
    text-shadow: none;
    transform: none;
  }
}

.subtitle {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

.search-container {
  border-radius: 8px;
  padding: 20px;
  max-width: 800px;
}

.search-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 940px) {
  .search-row {
    flex-direction: row;
  }
}

.search-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #444;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.11),
    rgba(0, 0, 0, 0.01)
  );
  color: #fff;
  border-radius: 5px;
}

.search-button {
  padding: 10px 16px;
  border: 1px solid rgb(0, 170, 255);
  background-color: transparent;
  color: rgb(0, 166, 255);
  border-radius: 5px;
  cursor: pointer;
}

.search-button:hover {
  background-color: rgba(43, 255, 244, 0.7);
  color: #000;
}

.field-toggle {
  border-top: 1px solid #444;
  padding-top: 15px;
  margin-top: 15px;
}

.toggle-label {
  font-size: 0.9em;
  opacity: 0.8;
}

.field-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.field-button .icon {
  display: none;
  margin-left: 5px;
}

.field-count {
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 10px;
}



@media (max-width: 600px) {
  .title {
    font-size: 0.5em !important;
    text-align: center;
  }

  .subtitle {
    font-size: 0.6em;
    text-align: center;
  }

  .search-container {
    padding: 5px;
    max-width: 100%;
  }

  .search-row {
    flex-direction: column;
    gap: 8px;
  }

  .search-input,
  .search-button {
    width: 100%;
    font-size: 0.6em;
  }

  .field-buttons {
    flex-direction: row;
    align-items: stretch;
  }

  .field-button {
    font-size: 0.6em;
    padding: 3px;
    width: 30%;
  }

  .stack span {
    font-size: 0.9rem;
  }

  #loading-indicator {
    font-size: 7px;
  }

  #initial-message {
    font-size: 9px;
  }

  .toggle-label {
    font-size: 9px;
  }

  .hamburger {
    position: fixed; 
    right: 1.5rem;
    top: 0.3rem;
    z-index: 3000; 
  }

  .close-icon {
    font-size: 2rem;
    color: white;
  }

  .hamburger {
    display: block;
  }

  .hamburger-icon,
  .close-icon {
    display: none;
  }

  .hamburger .hamburger-icon {
    display: inline;
  }

  .hamburger.active .hamburger-icon {
    display: none;
  }

  .hamburger.active .close-icon {
    display: inline;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: black;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    display: none;
    z-index: 2000;
    padding-top: 3rem;
  }

  .nav-wrapper.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.1rem;
  }

  .nav-links .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    color: white;
  }

  .toggle-slot {
  display: none;


}
}
