* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  overflow: hidden;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: absolute;
}

html, body { width:100%; height:100%; overflow: hidden; }
#webGLApp {
  position: absolute;
  top: 0;
  left: 0;
  width: 105vw;
  height: 105vh;
  z-index: 1;
  overflow: hidden;
  -webkit-filter: hue-rotate(-96deg) contrast(5.2) saturate(0.7);
  filter: hue-rotate(-96deg) contrast(5.2) saturate(0.7);
}

a {
  color: white;
}

a:visited {
  color: white;
}

.heading {
  padding: 1rem;
  z-index: 10;
  color: white;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  text-wrap: auto;
  font-family: 'Iceland', sans-serif;
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
}

/* Show all options in a grid for comparison */
.headings-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4rem;
  width: 80vw;
  max-width: 1200px;
  pointer-events: none;
}

.controls-primary {
  /* position: fixed;
  top: 2rem;
  right: 2rem; */
  z-index: 10;
  display: flex;
  gap: 1rem;
  pointer-events: auto;
}
.btn-primary {
  min-width: 48px;
  height: 48px;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-primary img {
  height: 100%;
  padding-right: 1rem;
}

.btn-primary.inverted {
  background: rgba(0, 0, 0, 0.382)
}

.btn-primary img.invert {
  filter: invert();
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.btn-primary.active {
  display: flex;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Color Adjuster Panel */
.container-primary-panel {
  position: fixed;
  /* top: 2rem;
  left: 2rem; */
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  min-width: 320px;
  max-width: 400px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: none;
}

.container-primary-panel.open {
  display: block;
}

.container-primary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container-primary-title {
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.container-primary-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.container-primary-close:hover {
  opacity: 0.7;
}

.color-picker-group {
  margin-bottom: 1.25rem;
}

.color-picker-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
}

.color-picker-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-picker-input {
  width: 60px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-input::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.color-value-display {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: white;
  font-family: 'Inter', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: text;
  user-select: all;
  transition: all 0.3s ease;
}

.color-value-display:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.color-value-display:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.copy-btn.copied {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.5);
}

.container-primary-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: white;
  font-size: 0.7rem;
}

.export-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.export-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.toggle-adjuster-btn {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  pointer-events: auto;
}

.toggle-adjuster-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.footer {
  position: absolute;
  bottom: 2rem;
  z-index: 10;
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  /* pointer-events: auto; */
}
.footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer a:hover {
  opacity: 0.7;
}

.bottom-buttons {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1rem;
  z-index: 10;
  display: flex;
}

#donkeyClickMeme {
  z-index: 10;
  position: absolute;
  height: 19rem;
  transition: all 0.3s ease;
  filter: saturate(1.6);
  -webkit-filter: saturate(1.6);
}

.hidden-image {
  display: none; /* Hides the image initially */
}

.visible-image {
  display: block; /* Makes the image visible */
}

.gamba-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 38.2%;
  mix-blend-mode: hard-light;
  background: black;
  z-index: 10;;
}

#gambaBtn {
  margin-top: 2rem;
}

/* Age Verification Modal */
.age-verify-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.age-verify-overlay.open {
  display: flex;
}

.age-verify-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.age-verify-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: white;
  margin: 0 0 0.25rem;
  line-height: 1;
}

.age-verify-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 1rem;
}

.age-verify-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.age-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.age-verify-deny {
  opacity: 0.6;
}

.age-verify-deny:hover {
  opacity: 1;
}

.age-verify-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.age-verify-disclaimer a {
  color: rgba(255, 255, 255, 0.6);
}

.tooltip-container {
  position: relative; /* Essential for positioning the tooltip text */
  display: inline-block; /* Aligns with text flow */
  cursor: pointer; /* Optional: changes cursor to pointer */
}

.tooltip-text {
  /* Hidden state */
  visibility: hidden;
  opacity: 0;
  
  /* Positioning */
  position: absolute;
  z-index: 1; /* Ensures it appears on top of other content */
  
  /* Appearance */
  width: 120px;
  background-color: #333; /* Dark background */
  color: #fff; /* White text */
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  min-width: 12rem;
  
  /* Transition for a smooth effect */
  transition: opacity 0.3s; 

  /* Default position (e.g., top of the container) */
  bottom: 100%; 
  left: 50%;
  transform: translateX(20%); /* Centers the tooltip */
  margin-bottom: 5px; /* Spacing from the hovered element */

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}