:root {
  --bg: #EFEDE1;
  --muted: #6b6b6b;
  --accent: #EFEDE1; /* soft green hint matching dress code */
  --gold: #c9a86b;
  --maxWidth: 800px;
  --lightColor: #EFEDE1;
  --darkGreenColor: #004438;
  --darkerGreenColor: #003A2F;
  --guestOfHonorsColor: #003C31;
  --dividerColor: #FFFCE7;
  --letterCoverRotation: -16deg;
}

html {
  scroll-behavior: smooth;
}

#invitation,
#venue,
#schedule,
#gallery,
#dresscode,
#rsvp {
  scroll-margin-top: 150px;
}

#rsvp {
  scroll-margin-top: 450px !important;
}

body {
  background-image: url(/resources/bg.jpg);
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  max-width: var(--maxWidth);
  margin: 0 auto;
  z-index: 10;
}

.navigation-button {
  position: absolute;
  top: 50px;
  right: 40px;
  opacity: 0.5;
  border-radius: 3em;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--dividerColor);
  background-color: var(--darkGreenColor);
  width: 30px;
  box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
  -webkit-box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
  -moz-box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
}

.navigation-button:hover {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.navigation-menu {
  position: absolute;
  z-index: 1;
  margin: 0 auto;
  border-radius: 5px;
  top: 120px;
  right: 40px;
  display: none;
  flex-grow: 1;
  flex-direction: column;
  background-color: var(--darkerGreenColor);

}

.navigation-menu a {
  color: var(--dividerColor);;
  padding: 10px 30px;
  font-style: normal;
  text-decoration: none;
}

/* Letter or Phone Frame */
.phone {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: var(--maxWidth);
  background: var(--bg);
  color: var(--lightColor);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 4.;
  border-radius: 0px;
  box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
  -webkit-box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
  -moz-box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
}

.invitation-wrapper {
  position: relative;
  width: 100%;
}

/* Letter Header Cover */
.letter-head {
  position: relative;
  z-index: 3; /* bring cover above everything */
}

.letter-head .cover {
  background-color: var(--darkGreenColor);
  background-image: url(/resources/assets/textured-letter-header.png);
  color: var(--lightColor);
  margin: 0;
  padding: 10% 5%;
  position: relative;
  text-align: center;
  font-weight: bolder;
}

.cover-logo {
  position: absolute;
  width: 25%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.cover .invitation {
  font-size: 140%;
  padding-bottom: 4rem;
}

.cover .names {
  font-size: 500%;
  margin: 0;
  letter-spacing: -1.2px;
  transform: rotate(var(--letterCoverRotation));
  padding-bottom: 4rem;
  display: inline-flex;
  pointer-events: none;
}

.cover .invitation,
.cover .names,
.cover .date {
  animation: fadeIn 2s ease-in-out forwards;
}

.names .name,
.names .ampersand {
  display: inline-block;
  position: relative;
}

.kiwon {
  transform: translateY(-32px);
}

.ampersand {
  transform: translateY(24px);
}

.yvette {
  transform: translateY(32px);
}

.cover .date {
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--lightColor);
}

.cover p,
.cover h1,
.cover .date {
  position: relative;
  z-index: 5;
}

/* Flap */
.content {
  position: relative;
  z-index: 2;
}

.letter-flap {
  background: url(/resources/assets/sections/flap_with_pearls.png) center/cover no-repeat;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--darkGreenColor);
  position: relative;
  text-align: center;
  aspect-ratio: 1702 / 1196;
  margin-top: -10%;
  z-index: 1;
}

.flap-details {
  padding-top: 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  z-index: 2;
}

.flap-names {
  padding-bottom: 0.5rem;
}

.flap-notes {
  padding-bottom: 2rem;
}

.flap-korean-emphasis {
  font-size: 2rem;
  font-weight: bolder;
}

/* Main Image */
.main-image {
  z-index: -2;
  width: 100%;
  margin-top: -15rem;
}

/* Wedding Ceremony */
.ceremony {
  color: var(--lightColor);
  background-image: url(/resources/assets/sections/venue-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  overflow: auto;
  margin-top: -43%;
  padding-bottom: 8rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--lightColor);
  position: relative;
  z-index: 3;
}

.venue-logo {
  padding-top: 30rem;
  padding-bottom: 1.6rem;
  width: 4rem;
}

.venue-title {
  margin: 0;
  font-size: 250%;
  padding-bottom: 1.6rem;
}

.venue {
  font-weight: bolder;
  padding-bottom: 1.6rem;
}

.venue-details {
  z-index: 2;
  font-size: 120%;
  line-height: 1.8rem;
}

.venue-korean {
  padding-bottom: 1.6rem;
}

.venue-link {
  opacity: 0.8;
  color: var(--lightColor);
  transition: opacity 0.3s ease-in-out;
}

.venue-link:hover {
  opacity: 1;
}

.venue-bg {
  position: absolute;
  z-index: 1;
}

.venue-map {
  width: 45rem;
}

/* Wedding Schedule */
.schedule {
  color: var(--darkGreenColor);
  background-image: url(/resources/assets/sections/schedule-min.png);
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10rem;
  padding-bottom: 20rem;
  z-index: 4;
  pointer-events: none;
}

.schedule-title {
  font-size: 275%;
  font-weight: bolder;
}

.schedule-top,
.schedule-bottom {
  position: absolute;
  width: 100%;
}

.schedule-top {
  top: -267px;
  right: 0;
}

.schedule-bottom {
  bottom: -236px;
  left: 0;
}

.schedule .schedule-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 5%;
}

.schedule-text .schedule-time {
  background: url(/resources/assets/time-bg.png);
  background-size: cover;
  background-repeat: none;
  color: var(--lightColor);
  font-size: 130%;
  width: 100px;
  padding: 4% 15%;
  margin: 5%;
}

.schedule-text .schedule-name {
  font-size: 140%;
  margin-bottom: 5%;
  font-weight: bolder;
}

.schedule-text .schedule-name-korean {
  font-size: 120%;
}

.schedule-arrow-longer {
  height: 120px;
}

.schedule-arrow {
  height: 62px;
}

/* Reminders & Gallery */
.gallery-reminders {
  background: var(--darkGreenColor);
  color: var(--lightColor);
  width: 100%;
  padding-top: 7rem;
  padding-bottom: 10rem;
  position: relative;
  z-index: 5;
}

.reminders {
  padding-bottom: 5%;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.reminders-text {
  padding-bottom: 15px;
  font-size: 120%;
}

.reminders-text-korean {
  padding-top: 25px;
}

.gallery {
  margin-top: 5%;
  padding-bottom: 8rem;
  color: var(--darkGreenColor);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.gallery-section-title {
  letter-spacing: 0;
  pointer-events: none;
  padding-top: 15%;
  font-size: 180%;
  text-align: center;
  z-index: 1;
}

.gallery-photo-album {
  background-color: var(--lightColor);
  height: 100vh;
  width: 100%;
}

.gallery-photo-album .carousel-cell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 23% solid black;
}

.gallery-photo-album .carousel-cell img {
  display: block;
  width: 96%;
  height: 96%;
  position: absolute;
  object-fit: contain;
}

.gallery-names {
  margin-bottom: -10%;
  z-index: 1;
  font-size: 150%;
}

.gallery-title {
  font-size: 500% !important;
  margin: 0;
  margin-top: 40px;
  z-index: 1;
}

.gallery-swipe {
  font-size: 160%;
  padding-top: 20px;
  font-size: 2em;
  padding-bottom: 40px;
  z-index: 1;
}

.gallery-swipe-message {
  color: var(--darkGreenColor);
  text-align: center;
  padding-bottom: 1em;
  z-index: 2;
}

.gallery-bg {
  position: absolute;
  width: 100%;
  z-index: 0;
}

.gallery-top {
  top: 10%;
}

.gallery-bottom {
  bottom: 60px;
}

.gallery-logo {
  padding-top: 1em;
  width: 5rem;
}

/* Letter Divider & Save The Date */
.letter-divider {
  background-color: var(--dividerColor);
  width: 100%;
  height: 4rem;
  position: relative;
  box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
  -webkit-box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
  -moz-box-shadow: 3px 4px 7px 2px rgba(0,0,0,0.19);
}

.save-the-date {
  left: calc(50% - 5rem);
  bottom: -15px;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 10rem;
  z-index: 5;
}

/* Dress Code */
.dresscode-general-subtitle {
  font-size: 150%;
}

.dresscode-general-title {
  font-size: 175%;
}

.dresscode {
  color: var(--darkGreenColor);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.dresscode-theme {
  padding: 0;
  margin: 0;
}

.dresscode-image-formal-wear {
  position: relative;
}

.horizontal-line {
  width: 40%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: -0.6%;
}

.dresscode-image {
  width: 40%;
}

.dresscode-message-korean {
  padding-top: 20px;
  padding-bottom: 40px;
}

.dresscode-title {
  font-size: 500%;
  color: var(--darkGreenColor);
  letter-spacing: -1.2px;
  display: inline-flex;
  pointer-events: none;
}


.horizontal-line-longer {
  width: 90%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: -1%;
}

.dresscode-pallete {
  width: 60%;
}

.dresscode-image-formal-wear .dresscode-pallete {
  width: 40%;
}

.dresscode-section {
  width: 100%;
}

.dresscode-groomsmen-content {
  position: relative;
}

.dresscode-groomsmen-details {
  display: flex;
  justify-content: center;
  text-align: left;
  
}

.dresscode-groomsmen-image {
  width: 35%;
  height: 35%;
  padding-right: 20px;
}

.dresscode-groomsmen-message {
  line-height: 160%;
  width: 45%;
  display: flex;
  flex-direction: column;
  padding: 5% 5px;
}

.dresscode-groomsmen-message-line1,
.dresscode-groomsmen-message-line2 {
  font-weight: bold;
}

.dresscode-groomsmen-message-line1 {
  padding-bottom: 2%;
}
.dresscode-groomsmen-message-line2 {
  padding-bottom: 4%;
}


.dresscode-bridesmaid-content {
  position: relative;
}

.dresscode-bridesmaid-details {
  display: flex;
  justify-content: center;
  text-align: left;
  
}

.dresscode-bridesmaid-image {
  width: 35%;
  height: 35%;
  padding-right: 20px;
}

.dresscode-bridesmaid-message {
  line-height: 160%;
  width: 45%;
  display: flex;
  flex-direction: column;
  padding: 5% 5px;
}

.dresscode-bridesmaid-message-line1,
.dresscode-bridesmaid-message-line2 {
  font-weight: bold;
}

.dresscode-bridesmaid-message-line1 {
  padding-bottom: 2%;
}
.dresscode-bridesmaid-message-line2 {
  padding-bottom: 4%;
}


.dresscode-men {
  position: relative;
}

.dresscode-men-details {
  display: flex;
  justify-content: center;
  text-align: left;
  
}

.dresscode-image {
  width: 60%;
}

.dresscode-message {
  line-height: 200%;
  font-size: 120%;
  font-weight: bold;
}

.dresscode-message-korean {
  font-size: 120%;
}

/* Guest of Honors */
.guest-of-honors-start-logo {
  width: 80px;
}

.guest-of-honors-end-logo {
  width: 120px;
  padding-bottom: 45rem;

}

.guest-of-honors {
  position: relative;
  background-color: var(--darkGreenColor);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--lightColor);
  width: 100%;
  text-align: center;
  z-index: 2;
  padding-top: 45%;
}

.guest-of-honors-important-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.guest-of-honors-section-title {
  font-size: 550%;
}

.guest-of-honors-title {
  font-size: 260%;
  font-weight: bold;
  color: var(--guestOfHonorsColor);
}

.guest-of-honors-title {
  --r: .8em;

  padding-inline: calc(var(--r) + .3em);
  line-height: 1.8;
  clip-path: polygon(0 0,100% 0,calc(100% - var(--r)) 50%,100% 100%,0 100%, var(--r) 50%);
  background: var(--lightColor); /* the main color */
  width: fit-content;
}

.guest-of-honors-important-group {
  width: 80%;
  margin: 0 auto;
}

.guest-of-honors-section {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.guest-of-honor-godparents {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.guest-of-honor-godparents .guest-of-honor-person {
  width: 100%;
  flex-grow: 1;
}

.guest-of-honors-important-group .guest-of-honors-title {
  font-size: 210%;
  padding: 0px 40px;
}

.guest-of-honors-important .guest-of-honor-person {
  font-size: 170%;  
}

.guest-of-honors-title {
  font-size: 170%;
  padding: 0px 40px;
}

.guest-of-honor-person {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 140%;
  flex-grow: 1;
  padding-bottom: 40px;
}

.guest-of-honor-person .english-name {
  letter-spacing: 1px;
}

.guest-of-honor-person * {
  flex-grow: 1;
}

.guest-of-honors-important {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 120px;
  width: 100%;
}

.guest-of-honors-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.guest-of-honors-top,
.guest-of-honors-bottom {
  position: absolute;
  width: 100%;
}

.guest-of-honors-top {
  top: -5px;
  left: 0px;
  z-index: 20;
}

.guest-of-honors-bottom {
  right: 0px;
  left: -13px;
  width: 103%;
  bottom: 0px;
  z-index: 20;
}

.guest-of-honors-padding-bottom {
  background-color: var(--lightColor);
  width: 100%;
  height: 300px;
}

/* RSVP */
.rsvp {
  background-color: var(--lightColor);
  color: var(--darkGreenColor);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px 5rem;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  z-index: 10;
}

.rsvp-title {
  font-size: 500%;
  margin: 0;
  padding: 45%;
}

.rsvp-text {
  text-align: center;
  margin-bottom: 5px;
  font-size: 125%;
}

.rsvp-text-korean {
  font-size: 120%;
}

.rsvp-note-text {
  margin-bottom: 5px;
}

.rsvp-note-korean {
  font-size: 120%;
}

.rsvp-button {
  display: inline-flex;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 10px 60px;
  font-size: 165%;
  font-style: normal;
  font-family: 'medino';
  text-decoration: none;
  background-color: transparent;
  color: var(--darkerGreenColor);
  border: 5px solid var(--darkerGreenColor);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  outline: none;
}

.rsvp-button:hover,
.rsvp-button:hover a {
  color: var(--lightColor);
  background-color: var(--darkerGreenColor);
}

.rsvp-button a {
  text-decoration: none;
  color: var(--darkerGreenColor);
  width: 100%;
  height: 100%;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.rsvp-action {
  padding: 5%;
}

.rsvp-note-2 {
  margin-top: 72px;
}

.rsvp-note-text {
  font-size: 120%;
}

.section-title {
  font-size: 500%;
}

.rsvp-note-text .line-break {
  display: block;
}