/* Universal styles */

* {
  box-sizing: border-box;
  font-family: "Molengo", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background-color: #080739e6;
}

/* Navigation */

#nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background-color: #e3d6c2f2;
  position: sticky;
  top: 0;
  z-index: 100;
}

#nav a {
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4b89fc, #000000e4);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
}

/* Page layout */

main {
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Header section */

.header {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.header h1,
.header h2 {
  position: relative;
  color: #ffffff;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
  text-align: center;
  margin: 0;
  z-index: 2;
  max-width: 90%;
}

.header h1 {
  font-family: "Shadows Into Light Two", Georgia, serif;
  font-size: 96px;
}

.header h2 {
  font-size: 28px;
  font-weight: normal;
}

/* Two-card layout */

.two-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

/* About and dates cards */

.about,
.dates {
  background: #e3d6c2da;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Visual hierarchy boost for generator */

.dates {
  text-align: center;
  border: 2px solid rgba(79, 140, 255, 0.35);
  box-shadow: 0 10px 28px rgba(79, 140, 255, 0.25);
}

.about {
  opacity: 0.96;
}

/* About typography */

.about h2 {
  font-size: 30px;
  margin-top: 0;
}

.about p {
  font-size: 20px;
  margin-bottom: 16px;
}

.about ol {
  padding-left: 24px;
  font-size: 18px;
  line-height: 1.7;
}

.about li {
  margin-bottom: 10px;
}

/* Generator output */

.generator p,
#greeting,
#restaurant-output,
#activity-output,
#challenge-output {
  font-size: 20px;
  margin: 12px auto 14px;
  max-width: 480px;
}

/* Generator button */

#generate-btn {
  margin-top: 20px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f8cff, #7aa7ff);
  color: white;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Footer */

.footer {
  background-color: #e3d6c2da;
  margin-top: 60px;
}

.footer .contact {
  text-align: center;
  padding: 24px;
}

.footer h3 {
  color: #000000;
  margin: 0;
  padding-bottom: 8px;
}

.footer p {
  color: #000000;
  margin: 0;
}

/* Mobile adjustments */

@media (max-width: 900px) {
  .two-card-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about,
  .dates {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  #nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
  }

  #nav a {
    display: none;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 14px 22px;
  }

  #nav-toggle:checked ~ a {
    display: block;
  }

  .header h1 {
    font-size: 52px;
  }

  .header h2 {
    font-size: 18px;
    margin-top: 10px;
  }
}
