:root {
  --font-family-base: "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-family-base);
  background-color: #f8f9fa;
}


.center-section {
  margin-top: 64px;         /* Offset for fixed header */
  padding: 56px 24px 40px;   /* Padding for content */
  /* max-width: 700px;         Limit horizontal width */
  width: 100%;              /* Fill available horizontal space */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(rgba(0, 41, 77, 0.32), rgba(0, 41, 77, 0.32)), url('/images/tappas_background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  /* Remove height and min-height */
}

.hero-intro {
  position: relative;
  width: 100%;
  max-width: 1160px;
  display: grid;
  grid-template-columns: minmax(250px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  margin-bottom: 28px;
  padding: 28px 32px;
  min-height: clamp(240px, 28vw, 340px);
  border-radius: 28px;
  background: rgba(0, 22, 41, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.hero-mosquito-wrap {
  position: relative;
  min-height: clamp(180px, 22vw, 300px);
}

.hero-mosquito {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(240px, 30vw, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.hero-text {
  max-width: 720px;
  width: 100%;
  z-index: 1;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.center-section .centered-content {
  /* max-width: 400px; */
  width: 100%;
  margin: 0 auto;
}

.center-section p {
  color: #fff;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.65;
}

.support-email-link {
  color: #ffd166;
  text-decoration: underline;
  font-weight: 600;
}

.support-email-link:hover,
.support-email-link:focus {
  color: #ffe59a;
}

.center-section button {
  display: block;
  margin: 32px auto 0 auto;
  background-color: white;
  color: #004B87;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

.center-section button:disabled {
  background-color: #e0e0e0;
  color: #888;
  cursor: not-allowed;
}



.main-title {
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-subheader {
  margin-top: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-description {
  margin-top: 0;
  max-width: 78ch;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 800px) {
  .hero-intro {
    grid-template-columns: 1fr;
    padding: 22px 18px 18px;
    gap: 14px;
    min-height: 0;
    text-align: center;
  }

  .hero-mosquito-wrap {
    min-height: 180px;
  }

  .hero-mosquito {
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(170px, 48vw, 250px);
  }

  .hero-text {
    text-align: center;
  }

  .hero-subheader {
    text-align: center;
  }

  .hero-description,
  .center-section p {
    margin-left: auto;
    margin-right: auto;
  }
}

.auth-header {
  position: fixed; /* or absolute */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  height: 64px;
  padding: 0 24px;
  font-size: 1em;
  background: #fff;
  text-align: right;
  color: #343a40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-bottom-left-radius: 16px;
  z-index: 100;
}

 .notebook-status, .notebook-status p  {
    color: grey;
    margin-top: 16px; /* or any value you prefer */
 }

.doc-link {
  color: #343a40;
  text-decoration: underline;
  font-size: 16px;
  margin-right: 20px; /* Add gap between doc link and login/logout */
}

.doc-link:hover {
  color: #007bff;
  text-decoration: underline;
}

 .logout-link {
  padding: 10px 20px;
  background-color: #343a40;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  display: inline-block;
  text-align: right;
  margin-right: 0;
}

.login-link {
  padding: 10px 20px;
  background-color: #343a40;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  display:inline-block;
  text-align: right;
  margin-right: 0;
}

.open-notebook-link {
  padding: 18px 32px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  font-weight: 500;
  font-size: 22px;
}

.sub-info {
  font-size: 12px;
  color: gray;
}

/* CSS Spinner */
.css-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
}

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