:root {
  --ink: #e5e7eb;
}

html {
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, Roboto, Arial;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  /* Ensures the header stays on top of other content */
  flex-shrink: 0;
}

/* Apply the animated background to the main content container */
#main-content-container,
header,
footer {
  background: linear-gradient(-45deg, #18213a, #0f172a, #0b1024, #0f172a);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  flex-shrink: 0;
  /* Keep this */
}

.btn:disabled {
  background: #1e293b;
  cursor: not-allowed;
  opacity: 0.4;
  /* adjust as you like */
  transform: scale(0.98);
  /* small shrink for visual feedback */
}

main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#close-modal {
  font-size: 48px;
  font-weight: 100;
  line-height: 0;
  top: 24px;
  right: 16px;
  cursor: pointer;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gk-modal {
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.gk-modal-body {
  overflow-y: auto;
  scrollbar-width: thin;
  flex-grow: 1;
}

.gk-modal-content {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.hide-scrollbar {
  overflow: hidden;
}

#nav-menu.active {
  display: flex;
  position: absolute;
  top: 100%;
  /* Positions the menu right below the header */
  left: 0;
  width: 100%;
  padding: 1rem;
  background-color: #0b1024;
  /* A dark background for the menu */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Add a scroll offset to all sections to prevent them from hiding behind the header */
section {
  scroll-margin-top: 40px;
  /* Adjust this value to match your header's height */
}

/* Additional styling for the new landing page content */
.section-title {
  @apply text-3xl font-bold tracking-tight text-white sm:text-4xl;
}

.section-subtitle {
  @apply mt-2 text-lg leading-8 text-gray-400;
}

.list-item {
  @apply flex items-start gap-x-3;
}

.list-icon {
  @apply h-5 w-5 flex-none text-indigo-400;
}
