* {
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Simple Serenity';
  src: url('./assets/fonts/Simple-Serenity-Serif.ttf');
}

@font-face {
  font-family: 'Sulat Rizal';
  src: url('./assets/fonts/SulatRizal.ttf');
}

@font-face {
  font-family: 'TAN Mon Cheri';
  src: url('./assets/fonts/tan-mon-cheri.woff');
}

@font-face {
  font-family: 'Lavonia';
  src: url('./assets/fonts/EDLavonia-Regular.ttf');
}

@font-face {
  font-family: 'TAN Pearl';
  src: url('./assets/fonts/tan-pearl.otf');
}

@font-face {
  font-family: 'Benne';
  src: url('./assets/fonts/Benne-Regular.ttf');
}

html {
  font-size: 20px;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f4ee;
  background-image: url('./assets/background.jpg');
  background-repeat: repeat;
  background-position: center center;
  font-family: 'TAN Mon Cheri', serif;
  overflow: hidden;
}

.container {
  position: relative;
  perspective: 1500px;
}

p {
  margin-top: 0.1rem;
  margin-bottom: 0.4rem;
}

/* GRID SYSTEM */
:root {
  --g: 0.8rem;
  /* gutter */
  --container-max: 1200px;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--g);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--g);
  box-sizing: border-box;
}

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

.btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Breakpoints */
@media (max-width: 992px) {
  .md\\:col-span-12 {
    grid-column: span 12;
  }

  .md\\:col-span-6 {
    grid-column: span 6;
  }

  .md\\:col-span-4 {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .sm\\:col-span-12 {
    grid-column: span 12;
  }

  .sm\\:col-span-6 {
    grid-column: span 6;
  }
  
  html {
    font-size: 18px;
  }

  body {
    font-size: 14px;
  }
}
/* TERMINA GRID SYSTEM */

.fs-5 { font-size: 0.5rem; }
.fs-6 { font-size: 0.6rem; }
.fs-7 { font-size: 0.7rem; }
.fs-8 { font-size: 0.8rem; }
.fs-9 { font-size: 0.9rem; }
.fs-10 { font-size: 1rem; }
.fs-11 { font-size: 1.1rem; }
.fs-12 { font-size: 1.2rem; }
.fs-13 { font-size: 1.3rem; }
.fs-14 { font-size: 1.4rem; }
.fs-15 { font-size: 1.5rem; }
.fs-16 { font-size: 1.6rem; }
.fs-17 { font-size: 1.7rem; }
.fs-18 { font-size: 1.8rem; }
.fs-19 { font-size: 1.9rem; }
.fs-20 { font-size: 2rem; }

.sulat { font-family: 'Sulat Rizal'; }
.serenity { font-family: 'Simple Serenity'; }
.moncheri { font-family: 'TAN Mon Cheri'; }
.lavonia { font-family: 'Lavonia'; }
.pearl { font-family: 'TAN Pearl'; }
.benne { font-family: 'Benne'; line-height: 110%; }
.fw-bold { font-weight: 800; }

.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }

.m0 { margin: 0 !important; }

a {
  color: #1b1b1b;
  text-decoration: none;
}

.swal2-title {
  font-family: 'TAN Pearl';
  font-size: 1.6rem;
  color: #476936;
}

.swal2-html-container {
  font-family: 'TAN Mon Cheri';
  font-size: 1.2rem;
  color: #403d39;
}

.swal2-border-radius-xl {
  border-radius: 2.5rem !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

/* SOBRE */
.envelope {
  width: 80vw;
  max-width: 30rem;
  height: auto;
  aspect-ratio: 3 / 2;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  z-index: 1;
}

.envelope-front,
.envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 0;
  border-radius: 0.5rem;
}

.envelope-front {
  background: #dddfc9;
  background-image: url('./assets/envelope-front.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.guest-name {
  font-family: 'Simple Serenity', serif;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  margin: 0.5rem 0;
}
  
.guest-pax {
  font-family: 'Sulat Rizal', serif;
  font-size: clamp(0.8rem, 3vw, 1.5rem);
  margin: 0.5rem 0;
}

.envelope-back {
  background: #dddfc9;
  background-image: url('./assets/envelope-back.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotateY(180deg);
}

#envelope-fold {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: transparent;
  background-image: url('./assets/envelope-flap.png');
  background-size: contain;
  background-repeat: no-repeat;
  transform-origin: top;
}

.waxseal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7.5em;
  height: 7.5em;
  background-image: url('./assets/waxseal.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}

/* TARJETA INVITACIÓN */
.card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  max-width: 20rem;
  height: auto;
  aspect-ratio: 2 / 3;
  padding: 0.2rem;
  background: #fff;
  border-radius: 0.25rem;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  text-align: center;
  z-index: 1;
  background-image: url('./assets/bgcard.jpg');
}

.brides-names {
  font-family: 'Simple Serenity';
  color: #a40061;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  text-align: left;
  line-height: 3.7rem;
  margin: 1rem 0.2rem 0.15rem 0.2rem;
  font-weight: normal;
}

.brides-ampersand {
  font-family: 'Lavonia';
  text-shadow: 4px 4px 6px #565656;
  letter-spacing: 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: #FFFFFF;
}

.brides-first-letter {
  font-family: 'Lavonia';
  text-shadow: 4px 4px 6px #565656;
  letter-spacing: 0.7rem;
  font-size: clamp(3rem, 8vw, 4rem);
  color: #FFFFFF;
}

.disco-ball-bg {
  background-image: url('./assets/invite-discoball.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 4.5rem;
  margin-top: 0 !important;
  padding-top: 1rem !important;
  padding-left: 1rem !important;
}

.card-main-text {
  font-family: 'Benne', serif;
  /* font-size: clamp(0.9rem, 3vw, 1.4rem); */
  font-size: 1.1rem;
  color: #403d39;
  margin: 0.2rem;
  line-height: 1rem;
}

.itinerario {
  align-items: center;
}

.itinerario .col-span-4 {
  font-family: 'TAN Pearl';
  /* font-size: clamp(0.5rem, 1.5vw, 0.85rem); */
  font-size: 0.7rem;
  text-align: right !important;
  padding-right: 0.5rem;
}

.itinerario .col-span-8 {
  font-family: 'Benne', serif;
  /* font-size: clamp(0.75rem, 2.5vw, 1.15rem); */
  font-size: 1rem;
  text-align: center !important;
  padding-left: 0.5rem;
  line-height: 1.4rem;
}
/* TERMINA INVITACIÓN */

/* ELEMENTOS FLOTANTES */
.floating-items {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(5px -3px 7px rgba(0, 0, 0, 0.45));
  opacity: 0;
}
.unclickable {
  pointer-events: none;
}
.white-ol {
  background-color: rgba(255,255,255,0.5);
  border-radius: 0.7rem;
  width: 85%;
  text-align: center;
}

.floating-items img,
.img-fl {
  max-width: 100%;
  height: auto;
}

#rsvp {
  top: 28%;
  right: 2rem;
  width: 10rem;
  height: 5.4rem;
  line-height: 90%;
  background-image: url('./assets/ticket-rsvp.png');
  background-size: contain;
  background-repeat: no-repeat;
}

#dino {
  bottom: -1.5rem;
  left: -3rem;
  width: 12rem;
  height: 7.12rem;
}

#brocha {
  top: -9rem;
  right: -9rem;
  width: 16rem;
  height: 16rem;
}
#pinterestBoard {
  display: none;
}
.swal2-subtitle-dresscode {
  content: ' Avant Garden';
  font-size: 2.5rem;
  font-family: 'Lavonia';
  color: #583b16;
  margin-bottom: 1.5rem;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: gold;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

#registry {
  bottom: 0;
  right: 1rem;
  width: 8rem;
  height: 8rem;
  background-image: url('./assets/card-registry.png');
  background-size: contain;
  background-repeat: no-repeat;
}
#registry p {
  padding: 1rem;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
}

#locationCard {
  bottom: 10rem;
  right: 2rem;
  width: 8rem;
  height: 5.29rem;
  line-height: 90%;
  font-weight: 800;
  background-image: url('./assets/card-location.jpg');
  background-size: contain;
  background-repeat: no-repeat;
}
#locationCard span {
  padding: 0.9rem 0.1rem;
  font-size: clamp(0.7rem, 1.8vw, 1.1rem);
}

#countDown {
  top: 1.5rem;
  left: 1rem;
  width: 7.7rem;
  height: 10rem;
  background-image: url('./assets/card-countdown.png');
  background-size: contain;
  background-repeat: no-repeat;
  font-size: clamp(0.55rem, 1.3vw, 0.75rem);
}
#countDownHolder {
  margin: 0.5rem 0 0.5rem 0;
  padding: 0.8rem 0.4rem;
  line-height: 115%;
}
#addToCalendar {
  padding: 0.5rem;
}

#mediaCard {
  top: 14rem;
  left: 1.5rem;
  width: 7.5rem;
  height: 7.5rem;
  line-height: 1rem;
  font-weight: 800;
  background-image: url('./assets/card-media.png');
  background-size: contain;
  background-repeat: no-repeat;
}
#mediaCard span {
  padding: 0.9rem 0.1rem;
  font-size: clamp(0.7rem, 1.5vw, 1.1rem);
}

#link-more {
  border-radius: 0.25rem;
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #a67c52;
  opacity: 0;
  border: 0 !important;
  padding: 0.5rem;
  font-size: 0.65rem;
  color: #FFFFFF !important;
  font-family: 'TAN Pearl', serif;
}