/* Source Sans 3 font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
/* Poiret One font */
@import url('https://fonts.googleapis.com/css2?family=Poiret+One&display=swap');


.source-sans {
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

.poiret {
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* MARK: CSS Reset */
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Increase line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}


/* MARK Variables */

:root {
  --beige-text-color: #E3DBBB;
  --that-green: #41431B;
  --lighter-green: #AEB784;
  --neutral: #F8F3E1;
}

/* MARK: Custom Styles */

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--beige-text-color);
  background-image: url("assets/filmstrip-full.png");
  background-size: 100px auto;
  background-repeat: repeat;
}

a {
  color: var(--beige-text-color)
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#container {
  width: 100%;
  max-width: 100%;
  background-color: rgba(from var(--that-green) r g b / 93%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  max-width: 800px;
}

.w-100 {
  width: 100%;
}

.max-w-90vw {
  max-width: 90vw;
}

.mt-4vh {
  margin-top: 4vh;
}

.mt-2vh {
  margin-top: 2vh;
}

.mt-05r {
  margin-top: 0.5rem;
}

.mt-1-5r {
  margin-top: 1.5rem;
}

.mt-2r {
  margin-top: 2rem;
}

.pt-4vh {
  padding-top: 4vh;
}

.pt-2vh {
  padding-top: 2vh;
}

.max-w-100 {
  max-width: 100%;
  overflow: hidden;
}

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

.flex-row {
  display: flex;
  flex-direction: row;
}

.space-around {
  justify-content: space-around;
}

.space-between {
  justify-content: space-between;
}

.center {
  justify-content: center;
  align-self: center;
}

.nowrap {
  flex-wrap: nowrap;
}

#nav-container {
  --shadow: 0 1.5px 1px -1px rgba(from var(--beige-text-color) r g b / 95%);

  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  height: 10vh;
  min-height: 2rem;
  justify-content: center;
}

#nav-bar {
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

.nav-item {
  display: inline-block;
  height: 100%;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--beige-text-color);
  font-size: 0.8rem;
  align-content: center;
}

.nav-item:hover {
  background-color: var(--beige-text-color);
  color: var(--that-green);
  transition: all 0.3s ease;
}

@supports (animation-timeline: scroll()) {
  #nav-container {
    animation: scroll-shadow linear both;
    animation-timeline: scroll();
    animation-range: 0rem 5rem;
  }

  @keyframes scroll-shadow {
    from {
      box-shadow: none;
      background-color: none;
    }

    to {
      box-shadow: var(--shadow);
      background-color: rgba(from var(--that-green) r g b / 98%);
    }
  }
}

.font-light {
  font-weight: 200;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: bold;
}

.font-semibold {
  font-weight: 600;
}

.text-xl {
  font-size: 2.0rem;
}

.text-large {
  font-size: 1.5rem;
}

.text-medium {
  font-size: 1.25rem;
}

.text-base {
  font-size: 1.00rem;
}

.text-small {
  font-size: 0.75rem;
}

.uppercase {
  text-transform: uppercase;
}

.text-error {
  color: red
}

.link-text {
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
}

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
}

#candm-container {
  padding-top: 5vh;
  padding-bottom: 5vh;
}

#candm {
  margin: auto;
  height: 50vh;
  width: auto;
  max-width: 90vw;
}

#hero-date {
  margin-bottom: 5vh;
}

.fancy-squiggle {
  height: auto;
  width: 3rem;
  margin-bottom: 10vh;
}

.nav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 96vh;
  /* padding top is to compensate for the sticky header */
  padding: 15vh 5vw 0;
}

.nav-section>h2 {
  margin-bottom: 4vh;
}

#gandt-postcard {
  height: auto;
  width: 720px;
  max-width: 90vw;
}

.button {
  min-width: 8rem;
  background-color: var(--beige-text-color);
  color: var(--that-green);
  font-family: "Source Sans 3", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid var(--beige-text-color);
  text-align: center;
  padding: 0.75rem 1rem;
}

.button:hover {
  background-color: var(--that-green);
  color: var(--beige-text-color);
  transition: all 0.3s ease;
}

.button-link {
  a {
    color: var(--that-green);
    text-decoration: none;
  }
}

.button-link:hover {
  a {
    color: var(--beige-text-color);
    transition: all 0.3s ease;
  }
}

#dinner-links {
  justify-content: space-around;
}

#rsvp-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 90vw;
}

#rsvp-button {
  width: 100%;
  max-width: 90vw;
}

#rsvp-button>#rsvp-button-loader {
  display: none;
}

#rsvp-button.processing>#rsvp-button-loader {
  display: block
}

#rsvp-button.processing>#rsvp-button-text {
  display: none
}

.loader {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #FFF;
  border-bottom-color: var(--that-green);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.hidden {
  visibility: hidden;
  display: none;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#footer {
  padding: 2vh 0;
}

fieldset {
  border: none;
}

label {
  flex: 0 0 auto;
}

.text-field {
  flex: 1 1 auto;
  border: var(--beige-text-color) solid 1px;
  border-radius: 0.25rem;
  background-color: var(--neutral);
  color: var(--that-green);
  text-indent: 0.5rem;
}

.text-field-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 90vw;
}

#attendence-group {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.radio-option {
  gap: 0.5rem;
}

#conditional-questions {
  display: flex;
  flex-direction: column;
}

.fadeout {
  opacity: 0%;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transform: scaleY(0);
  transition: all 0.3s ease;
}

#hotels-map {
  height: auto;
  width: 100%;
  min-height: 280px;
  max-height: 560px;
  min-width: 340px;
  max-width: 90vw;
}

#hotel-list {
  list-style-type: none;
  padding: 0;
}

@media (min-width: 768px) {
  body {
    background-size: 150px auto;
  }

  #hero-date {
    font-size: 24px;
    margin-top: 5vh;
    margin-bottom: 10vh;
  }

  #nav-container {
    height: 5vh;
    min-height: 5vh;
  }

  #nav-bar {
    a {
      font-size: 1rem;
    }
  }

  .nav-section {
    /* padding to compensate for the sticky header */
    /* smaller on widescreen devices that likely have
      less vertical space */
    padding-top: 10vh;
  }

  #candm-container {
    padding-top: 10vh;
  }

  #dinner-links {
    justify-content: center;
    gap: 4rem;
  }

  #attendence-group {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  #rsvp-form {
    max-width: 380px;
  }

  #rsvp-button {
    width: 24rem;
  }

  #hotels-map {
    height: auto;
    width: 100%;
    min-height: 280px;
    max-height: 560px;
    min-width: 340px;
    max-width: 780px;
  }
}