/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&display=swap");

@font-face {
  font-family: "Modernline Handwritting"; /* Choose a descriptive name for your font */
  src: url("/modernline-personal-use.bold.otf") format("opentype"); /* Specify the path to your font file and its format */
  font-weight: normal; /* Optional: Define font weight if applicable */
  font-style: bold; /* Optional: Define font style if applicable */
  font-display: swap; /* Optional: Controls how the font is displayed while loading */
}

:root {
  --font-family: "Cormorant", serif;
  --gray-color: rgb(53, 53, 53);
  --text-color: rgb(28, 28, 28);
  --dark-color: rgb(28, 28, 28);
  --light-color: rgb(240, 240, 240);
  --hover-bg-color: rgb(150, 150, 150, 0.5);
}

* {
  margin: 0;
  padding: 0;
  font-family: var(--font-family) !important;
  box-sizing: border-box;
}

body {
  background-color: #e9e0d1;
  min-height: 100vh;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

/* TRANSITION */

* {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

.nav-links {
  font-size: 1.5rem;
  gap: 2rem 32px;
  list-style: none;
}

.top-row {
  display: flex;
  justify-content: space-between; /* logo left, hamburger right */
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.header-nav {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
    inset 0 4px 20px rgba(255, 255, 255, 0.3);
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  justify-content: space-around; /* keep logo left & menu right */
  align-items: center;
  height: 60px;
  width: 70%;
  z-index: 1000;
  transition: height 0.4s ease;
  overflow: hidden;
  border-color: var(--light-color);
}

.ham-header-nav {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
    inset 0 4px 20px rgba(255, 255, 255, 0.3);
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between; /* keep logo left & menu right */
  align-items: center;
  padding: 0.5rem 2rem;
  height: 60px;
  width: 70%;
  z-index: 1000;
  transition: height 0.4s ease;
  overflow: hidden;
  flex-direction: column;
  border-color: var(--light-color);
}

.header-nav::after,
.ham-header-nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  backdrop-filter: blur(1px);
  box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
    inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
  border-color: var(--light-color);
}

/* Expanded state when open */
.ham-header-nav.open {
  height: 260px; /* adjust as needed */
}

/* Place nav links centered when open */
.hamburger-nav-links {
  display: none; /* hidden by default */
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  font-size: 1.5rem;
  align-items: center;
}

.ham-header-nav.open .hamburger-nav-links {
  display: flex; /* show only when expanded */
}

a {
  color: var(--light-color);
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

a:hover {
  color: var(--dark-color);
  padding: 0.5rem;
  text-decoration: none;
}

p {
  color: var(--text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

p.subtitle {
  text-shadow: none;
}

.checkbox:hover {
  color: var(--dark-color);
}

.logo {
  font-size: 2rem;
  font-weight: 500;
}

.logo a:hover {
  color: var(--dark-color);
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  height: 2px;
  width: 100%;
  background-color: var(--light-color);
  transition: all 300ms ease-in-out;
}

.menu-links {
  position: absolute;
  top: 130%;
  right: 0%;
  background-color: var(--dark-color);
  border-radius: 1rem;
  width: 500%;
  max-height: 0;
  overflow: hidden;
  transition: all 300ms ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 300ms ease-in-out;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-color: var(--dark-color);
  border-width: 1px;
  border-style: solid;
  border-radius: 0.5rem;
}

.btn:hover {
  background-color: var(--dark-color);
  color: var(--light-color);
  cursor: pointer;
}

/* SECTIONS */

section {
  padding-top: 13vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  flex-direction: column;
  text-align: center;
}

.title-container h1 {
  font-size: 3rem;
  color: var(--text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.title-container p {
  font-size: 1.5rem;
  color: var(--text-color);
}

/* MAIN SECTION */

#main {
  width: 100vw;
  height: 100vh;
  padding-top: 0;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
}

.hero-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-family: "Modernline Handwritting", var(--font-family) !important;
  font-size: 4.5rem;
  object-fit: cover;
  display: block;
}

.hero-subtitle {
  color: var(--light-color);
  font-size: 2rem;
  margin-top: 0.5rem;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
}

/* DETAILS SECTION */

#details {
  position: relative;
}

.details-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 68vh;
  margin-top: -50px;
}

.details-background {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--light-color);
  padding: 1rem;
  gap: 2rem;
  text-align: center;
  width: 60%;
  height: 75%;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.1);
}

.details-background h1,
.details-background p {
  color: var(--dark-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* STORY PAGE */

#story {
  position: relative;
}

.story-img {
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  padding-bottom: 2rem;
  margin-top: -50px;
}

video {
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 1rem;
}

/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--light-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline-container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--light-color);
  border: 4px solid var(--light-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid var(--light-color);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--light-color);
}

/* Add arrows to the right container (pointing left) */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid var(--light-color);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--light-color) transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -16px;
}

/* The actual content */
.timeline-content {
  padding: 20px 30px;
  background-color: var(--light-color);
  position: relative;
  border-radius: 6px;
}

.timeline-container p {
  margin: 0;
  color: var(--dark-color);
  text-shadow: none;
}

/* GALLERY PAGE */

#gallery {
  position: relative;
}

.gallery {
  column-count: 3; /* number of columns */
  column-gap: 15px;
  padding-bottom: 1.5rem;
}

.gallery img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* REGISTRY PAGE */

#registry {
  position: relative;
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: 100%;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

.about-containers {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.registry-container {
  padding: 1.5rem;
  flex: 1 1 300px;
  aspect-ratio: 2 / 1;
  background: var(--light-color);
  border-radius: 2rem;
  text-align: center;
  min-width: 250px;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.registry-container:hover {
  background: var(--hover-bg-color);
}

/* RSVP PAGE */

#rsvp {
  position: relative;
}

#entire-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  min-width: 60%;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.column {
  padding: 2rem;
  gap: 2rem;
}

.is-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 60%;
}

.rsvp-background {
  background-color: var(--light-color);
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.1);
  gap: 1rem;
  width: 60%;
  height: 75%;
}

.label {
  color: var(--dark-color);
  display: block;
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.input {
  border: 1px solid var(--dark-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.card {
  background-color: var(--light-color);
  border: 1px solid var(--dark-color);
  border-radius: 0.5rem;
  padding: 1rem;
}

.rsvp-response {
  background-color: var(--light-color);
  border: 1px solid var(--dark-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.help {
  color: var(--dark-color);
  font-size: 0.875rem;
  text-shadow: none;
}

.button,
.button.is-link {
  background-color: var(--light-color);
  color: var(--dark-color);
  cursor: pointer;
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1.5rem;
  width: 8rem;
  border-color: var(--dark-color);
  border-width: 1px;
  border-style: solid;
  border-radius: 0.5rem;
}

.button.is-link:hover {
  background-color: var(--dark-color);
  color: var(--light-color);
  cursor: pointer;
}

.rsvp-container {
  text-align: center;
  gap: 2rem;
}

.rsvp-container h6 {
  color: var(--dark-color);
  text-shadow: none;
}

.rsvp-header {
  color: var(--dark-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.guest-list {
  list-style-type: none;
  padding: 0;
  color: var(--dark-color);
  padding-bottom: 1rem;
}

.addeventatc {
  font-family: var(--font-family);
}

/* FOOTER */

footer {
  margin: 0 1rem;
  padding-bottom: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
    inset 0 4px 20px rgba(255, 255, 255, 0.3);
  top: 1rem;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem 2rem 0 0;
  backdrop-filter: blur(1px);
  box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
    inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

footer p {
  text-align: center;
  color: var(--text-color);
}

footer a {
  color: var(--font-color);
}

footer a:hover {
  color: var(--light-color);
  text-decoration: none;
}

.footer-nav {
  position: relative;
  justify-content: space-around;
  align-items: center;
  padding: 2rem;
}

/* COUNTDOWN TIMER */
.countDown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 3rem;
}

.countDown__cont {
  font-family: var(--font-family);
  font-size: 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #333;
}
.countDown__interval_cont {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  width: auto;
}
.countDown__interval_cont:nth-child(n + 1):not(:last-child) {
  margin-right: 1em;
}
.countDown__interval_basic_cont {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
.countDown__interval_basic_cont_description {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-left: 0.3em;
  margin-top: 0.3em;
  font-size: 1.75em;
  color: var(--text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.countDown__digit_cont {
  -webkit-perspective: 3.2em;
  perspective: 3.2em;
  box-shadow: 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.2);
  width: 1em;
  height: 1.6em;
  position: relative;
  line-height: 1.6em;
  font-size: 5em;
  font-weight: bold;
  border-radius: 0.08em;
}
.countDown__digit_cont:nth-child(n + 1):not(:last-child) {
  margin-right: 0.05em;
}
.countDown__digit_last_placeholder,
.countDown__digit_new_placeholder {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  text-align: center;
  overflow: hidden;
}
.countDown__digit_last_placeholder {
  bottom: 0;
  background: white;
  border-radius: 0 0 0.08em 0.08em;
}
.countDown__digit_last_placeholder_inner {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  bottom: 50%;
  position: absolute;
}
.countDown__digit_new_placeholder {
  top: 0;
  background: #f7f7f7;
  border-radius: 0.08em 0.08em 0 0;
}
.countDown__digit_last_rotate,
.countDown__digit_new_rotate {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 50%;
  font-weight: bold;
  position: absolute;
  top: 0;
  overflow: hidden;
  -webkit-animation-duration: 0.4s;
  animation-duration: 0.4s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  border-radius: 0.08em 0.08em 0 0;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}
.countDown__digit_last_rotate:after,
.countDown__digit_new_rotate:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-bottom: 0.01em solid rgba(0, 0, 0, 0.1);
}
.countDown__digit_last_rotate {
  -webkit-animation-name: countDown_flip_1;
  animation-name: countDown_flip_1;
  background: #f7f7f7;
}
.countDown__digit_new_rotate {
  -webkit-animation-name: countDown_flip_2;
  animation-name: countDown_flip_2;
  background: white;
}
.countDown__digit_new_rotated {
  -webkit-transform: rotateX(180deg);
  transform: rotateX(180deg);
  width: 100%;
  height: 100%;
}
.countDown__digit_new_rotated_inner {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  bottom: 50%;
  position: absolute;
}
@-webkit-keyframes countDown_flip_1 {
  0% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    z-index: 1;
  }
  100% {
    -webkit-transform: rotateX(-180deg);
    transform: rotateX(-180deg);
    z-index: 0;
  }
}
@keyframes countDown_flip_1 {
  0% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    z-index: 1;
  }
  100% {
    -webkit-transform: rotateX(-180deg);
    transform: rotateX(-180deg);
    z-index: 0;
  }
}
@-webkit-keyframes countDown_flip_2 {
  0% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    z-index: 0;
  }
  100% {
    -webkit-transform: rotateX(-180deg);
    transform: rotateX(-180deg);
    z-index: 1;
  }
}
@keyframes countDown_flip_2 {
  0% {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    z-index: 0;
  }
  100% {
    -webkit-transform: rotateX(-180deg);
    transform: rotateX(-180deg);
    z-index: 1;
  }
}
