@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
:root {
  /* Fonts */
  --ff-cinzel: "Cinzel", sans-serif;
  --ff-montserrat: "Montserrat", sans-serif;
  /* Sizes */
  --fs-900: 48px;
  --fs-800: 40px;
  --fs-700: 32px;
  --fs-600: 30px;
  --fs-500: 24px;
  --fs-400: 20px;
  --fs-300: 18px;
  --fs-200: 16px;
  --fs-100: 14px;
  --fs-50: 12px;
  --fs-0: 10px;
  /* Font: DarkGreen */
  --c-darkGreen: #2E4E36;
  /* Font: Olive */
  --c-olive: #5A684D;
  /* Font: Cream */
  --c-cream: #F6F5F2;
  /* Background */
  --c-white1: #E9E9E9;
  --c-white2: #F5F5F5;
}
.uppercase {
  text-transform: uppercase;
}
/* typography */
.ff-muslish {
  font-family: var(--ff-mulish);
}
/* General */
body {
  background-color: var(--c-cream);
  font-family: var(--ff-montserrat);;
}
nav {
  display: none;
}
main {
  gap: 30px;
  display: grid;
  overflow: hidden;
}
h1 {
  font-size: var(--fs-800);
  font-weight: 100;
  color: var(--c-darkGreen);
  font-family: var(--ff-cinzel);
}
h2 {
  font-size: var(--fs-500);
  font-weight: 300;
  color: var(--c-darkGreen);
  font-family: var(--ff-cinzel);
}
h3 {
  font-size: var(--fs-400);
  font-weight: 100;
  color: var(--c-darkGreen);
  font-family: var(--ff-cinzel);
}
p,
p span,
summary,
.countdown-el span {
  color: var(--c-darkGreen);
  font-family: var(--ff-montserrat)
}
a.btn {
  width: 185px;
  height: 35px;
  margin: auto;
  background-color: var(--c-darkGreen);
  color: var(--c-cream);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--ff-montserrat);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  font-weight: 300;
  cursor: pointer;
  border-radius: 5px;
}
a.btn.white{
  background-color: var(--c-cream);
  color: var(--c-darkGreen);
  height: 40px;
  width: 220px;
  font-weight: 400;
  font-size: var(--fs-300);
  margin: 8px 0px 0 0;
}
.btn.insta:hover {
  background-color: #4f7558;
  transition: 0.5s;
}
.btn span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}
.btn span:after {
  content: '\00bb';
  position: relative;
  font-size: 24px;
  color: var(--c-darkGreen);
  opacity: 0;
  top: -2px;
  right: -20px;
  transition: 0.5s;
}
.btn.green span:after {
  color: var(--c-cream);
  font-size: 30px;
  top: -3px;
}
.btn:hover span {
  padding-left: 5px;
}
.btn:hover span:after {
  opacity: 1;
  right: 0;
}
.rsvp .btn,
.dressCode .btn {
  width: 100%;
}
ul,li {
  margin-bottom: 5px;
  list-style-type: none;
}
summary {
  list-style: none;
}
details {
  cursor: pointer;
  text-align: left;
}
.hero .bg-img,
.schedule .bg-img,
.info .bg-img,
.gifts .bg-img,
.faq .bg-img {
  width: 100%;
}
.floatingBox {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 300px;
}
.floatingBox p {
  text-align: left;
  font-size: var(--fs-50);
  line-height: 15px;
}
.floatingBox.top {
  top: 10%;
  transform: translate(-50%, -10%);
}
.floatingBox.bottom {
  bottom: 5%;
  transform: translate(-50%, -5%);
}
.floatingBox-wrapper {
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
}
.floatingBox-wrapper.centered {
  left: 50%;
}
.floatingBox-wrapper.right {
  left: unset;
  position: absolute;
  right: 45%;
  top: 50%;
  width: max-content;
}
.floatingBox.small {
  display: flex;
  width: 260px;
  padding: 15px;
  border-radius: 5px;
  background-color: rgba(245, 245, 245, 0.8);
  box-shadow: rgba(0, 0, 0, 0.25) -3px 4px 4px;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
}
.floatingBox.small.right{
  box-shadow: rgba(0, 0, 0, 0.25) 3px 4px 4px;
}
.bg-img {
  display: block;
  height: -webkit-fill-available;
  object-fit: cover;
}
.bg-img.side {
  max-height: 422px;
  width: 286px;
}
.schedule::before,
.info::before,
.gifts::before,
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* adjust as needed */
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(246,245,242,1) 0%,
    rgba(246,245,242,0) 30%
  );
  z-index: 1;
}
.schedule::before {
  background: linear-gradient(
    to bottom,
    rgba(246,245,242,1) 0%,
    rgba(246,245,242,0) 15%
  );
}
.schedule::after,
.info::after,
.gifts::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Transparent → #F6F5F2, starting fade at 87% */
  background: linear-gradient(
    to bottom,
    rgba(246,245,242,0) 0%,
    rgba(246,245,242,0) 87%,
    rgba(246,245,242,1) 100%
  );
  z-index: 1;
}
.schedule .bg-img {
  object-fit: cover;
  display: block;
}
.img {
  display: block;
  height: -webkit-fill-available;
  width: 100%;
  object-fit: cover;
}
/* Hero */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Transparent → #F6F5F2, starting fade at 87% */
  background: linear-gradient(
    to bottom,
    rgba(246,245,242,0) 0%,
    rgba(246,245,242,0) 87%,
    rgba(246,245,242,1) 100%
  );
  z-index: 1;
}
.hero .floatingBox {
  width: auto;
  display: grid;
  justify-items: center;
}
.hero .bg-img {
  object-fit: cover;
  display: block;
}
.hero .title {
  gap: 8px;
  display: grid;
  position: relative;
}
.hero .title .amp {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  font-size: 24px;
}
.hero.date {
  font-weight: 100;
  font-size: 14px;
}
/* Shedule */
.schedule {
  height: 600px;
  width: 100%;
  position: relative;
}
.schedule p {
  text-align: center;
  font-weight: 500;
  font-size: 12px;
}
.schedule .btn {
  margin: 10px auto 0 auto;
}
.schedule .floatingBox {
  height: auto;
  padding: 20px 20px;
  background-color: #f6f5f2e8;
}
.schedule .floatingBox .slot {
  margin-bottom: 15px;
}
.schedule .floatingBox .slot::before {
  content: "";
  width: 1px;
  height: 25px;
  margin: 5px auto;
  display: block;
  background-color: #458555;
}
.desktop {
  display: none;
}
/* RSVP */
.rsvp {
  position: relative;
}
.rsvp .bg-img.side {
  margin-left: auto;
  margin-right: 0;
}
.rsvp h3 {
  font-size: var(--fs-200);
  font-weight: 500;
  text-align: left;
}
.rsvp ol {
  margin: 13px 0;
}
/* INFO */
.info {
  position: relative;
}
.info .floatingBox {
  display: grid;
  gap: 10px;
  padding: 20px 20px;
  width: calc(100% - 40px);
  top: unset;
  background-color: rgba(233, 233, 233, 0.7);
}
.info .floatingBox p {
  text-align: center;
}
.info .btn {
  width: 230px;
}
/* DRESSCODE */
.dressCode {
  position: relative;
}
.dressCode .floatingBox p {
  margin: 10px auto;
  font-size: var(--fs-50);
}
.dressCode .floatingBox p.desc {
  margin: 0;
  font-size: var(--fs-200);
}
/* GIFTS */
.gifts {
  position: relative;
}
.gifts .floatingBox {
  display: grid;
  gap: 10px;
  padding: 20px 20px;
  width: calc(100% - 40px);
  background-color: rgb(231 231 231 / 80%);
}
.gifts .floatingBox p {
  text-align: center;
  margin-bottom: 5px;
}
/* HOSPEDAJE */
.hospedaje {
  position: relative;
}
.hospedaje .floatingBox p {
  margin: 10px auto;
  font-size: var(--fs-50);
}
.hospedaje .floatingBox p.desc {
  margin: 0;
  font-size: var(--fs-200);
}
/* FAQ */
.faq {
  position: relative;
}
.faq .bg-img {
  height: 400px;
}
.faq .floatingBox {
  top: unset;
  transform: unset;
  left: unset;
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  justify-items: start;
  justify-content: stretch;
}
.faq summary {
  width: 100%;
  position: relative;
  font-weight: 500;
  font-size: var(--fs-100);
  padding: 8px 30px 8px 20px;
  background-color: rgba(233, 233, 233, 0.7);
}
.faq picture {
  display: none;
}
details>summary::after {
  content: '+ ';
  position: absolute;
  right: 10px;
  top: 0px;
  font-size: 25px;
}
details[open]>summary::after {
  content: '- ';
  position: absolute;
  right: 12px;
  top: 0px;
  font-size: 25px;
}
details {
  width: 100%;
}
details p {
  background-color: rgb(231 231 231 / 70%);
  border-top: 1px solid #2e4e36;
  padding: 8px 20px;
}
/* FOOTER */
.footer {
  position: relative;
}
.footer .bg-img {
  height: 400px;
  width: 100%;
}
/* count down */
.countdown-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}
.countdown-container p {
  height: 18px;
  font-size: 16px;
  font-weight: 600;
}
.countdown-container span {
  font-size: 12px;
}
p.big-text {
  text-align: center;
}
/* modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.modal-content {
    display: flex;
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    height: auto;
    flex-direction: column;
    align-items: center;
}
.view {
  width: 100%;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
}
.btn.close {
  background-color: #d13737;
}
.btn.close:hover {
  background-color: #df5f5f;
  transition: 0.5s;
}
.side-imgs {
  display: none;
}
/* AOS */
@media screen and (min-width: 600px) {
  main {
    gap: 0;
  }
  a.btn {
    height: 30px;
    font-size: 12px;
    border-radius: 5px;
  }
  h2 {
    font-size: var(--fs-600);
  }
  a.btn {
    height: 50px;
    width: 220px;
    font-size: var(--fs-300);
    margin: 8px 0px 0 0;
  }
  /* HERO */
  .hero {
    order: 0;
  }
  .hero::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(30, 30, 30, 0.4) 100%);
  }
  .floatingBox.top {
    top: unset;
    bottom: 0;
    transform: translate(-50%, 0%);
    margin-bottom: 120px;
  }
  .hero .title {
    display: flex;
    align-items: center;
  }
  .hero h1,
  .hero p,
  .hero span {
    color: var(--c-cream);
  }
  .hero h1 {
    font-size: var(--fs-900);
    font-weight: 100;
  }
  .hero .title .amp {
    top: unset;
    left: unset;
    transform: unset;
    position: relative;
    font-size: var(--fs-600);
    font-weight: 100;
  }
  .hero .date {
    font-size: var(--fs-200);
    margin-bottom: 20px;
  }
  /* Shedule */
  .schedule {
    order: 1;
    height: auto;
  }
  .schedule .floatingBox .slot::before {
    height: 45px;
  }
  .schedule h2 {
    margin-bottom: 10px;
  }
  .schedule .floatingBox-wrapper {
    display: none;
  }
  .schedule .bg-img {
    display: none;
  }
  .schedule::before {
    background: unset;
  }
  .schedule::after {
    background: unset;
  }
  .desktop {
    display: grid;
    padding: 30px 30px;
  }
  .schedule .desktop .card:nth-child(3) {
    margin-top: 25px;
  }
  .schedule .card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    width: 100%;
    background-color: var(--c-darkGreen);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 4px;
  }
  .schedule .card .desc {
    display: flex;
    flex-direction: column;
    margin: 30px 30px;
    justify-content: center;
  }
  .schedule .card .desc div:first-child {
    margin-bottom: 30px;
  }
  .schedule .card .desc:first-child {
    order: 1;
  }
  .schedule .card:nth-child(3) {
    grid-template-columns: 3fr 2fr;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 4px 4px;
  }
  .schedule .card:nth-child(3) .desc:first-child {
    order: 0;
  }
  .schedule h3 {
    color: var(--c-cream);
    font-size: var(--fs-400);
    font-weight: 300;
  }
  .schedule h4 {
    color: var(--c-cream);
    font-size: var(--fs-200);
    font-weight: 200;
  }
  .schedule p {
    color: var(--c-cream);
    font-size: var(--fs-100);
    font-weight: 200;
    text-align: left;
    margin: 5px 0;
  }
  /* INFO */
  .info {
    height: 700px;
    order: 2;
  }
  .info::before,
  .info::after {
    background: unset;
  }
  .info .floatingBox {
    gap: 8px;
    width: 400px;
    padding: 15px 15px;
    justify-items: center;
  }
  .info .floatingBox p {
    font-size: var(--fs-100);
    line-height: 19px;
  }
  .info .btn {
    width: 280px;
  }
  .bg-img.side {
    width: 100%;
    border-radius: 5px;
  }
  /* DRESSCODE */
  .dressCode {
    order: 3;
    padding: 30px 30px;
  }
  .floatingBox.small {
    width: 300px;
    top: unset;
    bottom: 55px;
    left: 55px;
    right: unset;
    transform: translate(0, 0);
  }
  .dressCode .floatingBox.small.right {
    top: unset;
    bottom: 55px;
    left: unset;
    right: 55px;
    transform: translate(0, 0);
  }
  .floatingBox-wrapper {
    width: 100%;
    height: 100%;
    left: unset;
    position: absolute;
    right: 0px;
    top: unset;
    bottom: 0;
  }
  .floatingBox-wrapper.right {
    width: 100%;
    height: 100%;
    left: unset;
    position: absolute;
    right: 0px;
    top: unset;
    bottom: 0;
  }
  /* RSVP */
  .rsvp {
    order: 4;
    padding: 0 30px 30px 30px;
  }
  /* GIFTS */
  .gifts {
    height: 500px;
    order: 5;
  }
  .gifts .floatingBox {
    width: 400px;
    justify-items: center;
    border-radius: 5px;
  }
  /* HOSPEDAJE */
  .hospedaje {
    order: 6;
    padding: 30px 30px 0 30px;
  }
  .hospedaje.small {
    width: 300px;
    top: unset;
    bottom: 55px;
    left: 55px;
    right: unset;
    transform: translate(0, 0);
  }
  .hospedaje .floatingBox.small.right {
    top: unset;
    bottom: 55px;
    left: unset;
    right: 55px;
    transform: translate(0, 0);
  }
  /* FAQ */
  .faq {
    order: 6;
    margin-top: 30px;
    position: relative;
    height: 700px;
  }
  .faq .floatingBox {
    width: 500px;
    gap: 0;
    padding: 10px;
    margin: 60px auto;
    border-radius: 5px;
    background-color: rgba(233, 233, 233, 0.7);
  }
  .faq picture {
    display: block;
  }
  .faq .bg-img {
    height: 100%;
    position: absolute;
  }
  .faq::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* adjust as needed */
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(246,245,242,1) 0%,
      rgba(246,245,242,0) 30%
    );
    z-index: 1;
  }
  details {
    border-bottom: 1px solid #2e4e36;
  }
  details:last-child {
    border-bottom: unset;
  }
  details p {
    user-select: none;
    border-top: unset;
    background-color: unset;
    padding: 0 20px 10px 20px;
  }
  .faq summary {
    user-select: none;
    background-color: unset;
  }
  /* FOOTER */
  .footer {
    order: 7;
    display: none;
  }
  /* COUNTDOWN */
  .countdown-container {
    gap: 20px;
    margin-top: 5px;
  }
  .hero .big-text {
    margin-bottom: 2px;
    font-size: var(--fs-400);
  }
  .hero .countdown-el span {
    font-size: var(--fs-300);
    font-weight: 300;
  }
}
@media screen and (min-width: 750px) {
  section#dressCode, section#rsvp, section#hospedaje {
    width: 725px;
    max-width: 1200px;
    place-self: anchor-center;
  }
  .card {
    max-width: 700px;
  }
  .schedule .card:first-child {
    justify-self: left;
  }
  .schedule .card:last-child {
    justify-self: right;
  }
  .schedule .card {
    grid-template-columns: 280px 4fr;
  }
  .schedule .card:nth-child(3) {
    grid-template-columns: 4fr 280px;
  }
}
@media screen and (min-width: 850px) {
  section#schedule {
    width: 100%;
    max-width: 950px;
    place-self: anchor-center;
  }
}
@media screen and (min-width: 1000px) {
  section#dressCode,
  section#rsvp,
  section#hospedaje {
    width: 100%;
    max-width: 1500px;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .dressCode picture {
    position: relative;
  }
  .side-imgs {
    display: grid;
    grid-template-rows: 222px 200px;
    border-radius: 5px;
    overflow: hidden;
  }
  .side-imgs.col {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .side-img {
    background-size: cover;
    width: 100%;
    display: block;
    height: -webkit-fill-available;
    object-fit: cover;
    max-height: 422px;
  }
  .rsvp .floatingBox.small {
    bottom: 15px;
    left: 15px;
  }
  .dressCode .floatingBox.small.right,
  .hospedaje .floatingBox.small.right {
    bottom: 15px;
    right: 15px;
  }
}