@font-face {
  font-family: Parisienne;
  src: url(/fonts/Parisienne.ttf);
}

@font-face {
  font-family: Alice;
  src: url(/fonts/Alice.ttf);
}

@font-face {
  font-family: CormorantGaramond;
  src: url(/fonts/CormorantGaramond.ttf);
}

@font-face {
  font-family: NorthWave;
  src: url(/fonts/NorthWave.otf);
}

@font-face {
  font-family: DMSerifDisplay;
  src: url(/fonts/DMSerifDisplay.ttf);
}

@font-face {
  font-family: Lora;
  src: url(/fonts/Lora.ttf);
}

@font-face {
  font-family: Suranna;
  src: url(/fonts/Suranna.ttf);
}

@font-face {
  font-family: Italianno;
  src: url(/fonts/Italianno.ttf);
}

:root {
  --accent-color: #590313;
  --slider-elements: 22;
  --slide-width: calc(300px + (22px * 2));

  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: Lora, sans-serif;
  font-size: x-large;
}

h1 {
  font-family: DMSerifDisplay, sans-serif;
}

h2 {
  font-family: Italianno, sans-serif;
  font-size: 56px;
  font-weight: normal;
}

h3 {
  font-weight: lighter;
}

h4 {
  font-weight: lighter;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 46px;
}

form {
  display: flex;
  flex-direction: column;
}

textarea {
  resize: none;
}

a {
  color: var(--accent-color);
}

input {
  accent-color: var(--accent-color);
}

#seccion1 {
  background-image: url("/images/fabric.png");
  background-color: rgba(255, 255, 255, 0.5);
}

#seccion2 {
  background-image: url("/images/grumitos.jpg");
  background-color: rgba(255, 255, 255, 0.6);
}

#seccion3 {
  background-color: white;
}

#seccion4 {
  background-color: white;
}

#seccion5 {
  background-image: url("/images/papel.jpg");
}

#seccion6 {
  background-color: ivory;
  background-image: url("/images/fabric.png");
  background-blend-mode: luminosity;
}

#seccion7 {
  background-image: url("/images/grumitos.jpg");
  background-color: rgba(255, 255, 255, 0.6);
}

#seccion8 {
  background-image: url("/images/fabric.png");
  background-color: rgba(255, 255, 255, 0.5);
}

#seccion9 {
  background-color: var(--accent-color);
  color: white;
  padding: 100px 20px;
}

#hero {
  height: 100svh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url("/images/joseyvicky3.jpg");
  background-color: rgba(0, 0, 0, 0.5);
  background-size: cover;
  background-position: center;
  background-blend-mode: color;
  margin: -20px -20px 0 -20px;
  box-sizing: border-box;
  position: relative;
  min-height: 650px;
  box-shadow: 0px 16px 22px -3px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 16px 22px -3px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 16px 22px -3px rgba(0, 0, 0, 0.2);
  color: white;
}

#hero-content {
  display: none;
}

#jyv {
  z-index: 1;
}

#jyv h1 {
  font-size: 4em;
  line-height: 0.85;
  padding: 18px 10px 25px 10px;
  width: 80%;
  margin: auto;
  font-weight: lighter;
}

#invitado {
  padding: 10px;
  width: 90%;
  margin: 0 auto 10px auto;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  box-sizing: border-box;
}

#frase {
  margin-top: 50px;
  padding: 0 15px;
}

#frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/images/acebo.png");
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
  --frame-width: 38px;
  clip-path: polygon(0% 0%, 0% 100%, var(--frame-width) 100%, var(--frame-width) var(--frame-width), calc(100% - var(--frame-width)) var(--frame-width), calc(100% - var(--frame-width)) calc(100% - var(--frame-width)), var(--frame-width) calc(100% - var(--frame-width)), var(--frame-width) 100%, 100% 100%, 100% 0%);
  background-color: #ffe9c01f;
  backdrop-filter: blur(4px);
  filter: saturate(50%);
}

#cuentaAtras {
  text-align: center;
  padding: 75px 0 35px 0;
  position: relative;
  z-index: 1;
}

#calendario {
  width: 100%;
  font-size: xx-large;
  padding: 0 12%;
}

#dia {
  background-image: url("/images/corazones.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
}

#contador {
  display: flex;
  justify-content: space-evenly;
  box-sizing: border-box;
  margin-bottom: 35px;
  background-color: #590313c4;
  margin-left: -20px;
  margin-right: -20px;
  color: #ede9d5;
  padding: 12px 36px;
  backdrop-filter: blur(4px);
}

#mapa {
  padding: 25px 0 45px 0;
  display: flex;
  flex-direction: column;
  text-align: center;
}

#programacion {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 26px 0 34px 0;
}

#programacion h4,
#programacion p {
  margin: 0;
}

#asistencia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 0 80px 0;
  text-align: center;
}

#vestimenta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 34px 0;
}

#autobuses {
  text-align: center;
  align-content: center;
  padding: 34px 0;
}

#musica {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 36px 0;
}

#fotos {
  text-align: center;
}

#regalos {
  text-align: center;
}

#modalInicial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  text-align: center;
  backdrop-filter: blur(6px);
  background-color: #590313c4;
}

#modalInicialContent {
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
  color: white;
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

#modalInicialContent .button {
  background-color: #A28634;
  color: white;
}

#musicButton {
  width: 48px;
  height: 48px;
  position: fixed;
  bottom: 15px;
  right: 15px;
  box-sizing: border-box;
  z-index: 5;
  background-color: #590313c4;
  border-radius: 90px;
  padding: 10px;
  box-sizing: content-box;
  backdrop-filter: blur(4px);
  cursor: pointer;
  box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
}

#modalAsistencia * h4 {
  margin-bottom: 0px;
  margin-top: 10px;
  font-weight: bold;
}

#modalAsistencia * p {
  margin-top: 0;
}

#modalRegalo {
  text-align: center;
}

#modalBus {
  font-size: smaller;
}

.carta {
  width: 60%;
  background-blend-mode: lighten;
  box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  padding: 20px;
  max-width: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.notas {
  width: 100%;
  height: 97px;
  box-sizing: border-box;
  font-size: large;
  font-family: Alice, sans-serif;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 6px;
  padding: 40px 20px 0 20px;
}

.contador-item {
  display: flex;
  flex-direction: column;
  width: 30%;
}

.contador-item span:first-of-type {
  font-size: 2.8em;
}

.colon {
  width: 10px;
  margin-top: 5px;
  font-size: 55px;
}

.comillas {
  width: 16px;
  object-fit: contain;
  margin-bottom: 7px;
}

.programacion-item {
  margin: 20px 0;
}

.programacion-item img {
  height: 128px;
  width: 128px;
  object-fit: contain;
}

.modal {
  background-color: rgba(0, 0, 0, 0.61);
  backdrop-filter: blur(2px);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 999;
  top: 0;
  align-content: center;
  justify-content: center;
  display: none;
}

.modal-content {
  width: 60%;
  max-width: 700px;
  padding: 20px;
  box-sizing: border-box;
  background-image: url("/images/grumitos.jpg");
  background-color: rgba(255, 255, 255, 0.6);
  background-blend-mode: lighten;
  margin: auto;
  box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.25);
  max-height: 90svh;
  overflow-y: scroll;
  border-radius: 16px;
}

.button {
  padding: 10px 20px;
  border: none;
  color: white;
  background-color: var(--accent-color);
  border-radius: 30px;
  font-size: 0.75em;
  font-family: Alice;
  box-shadow: 0px 0px 14px -2px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0px 0px 14px -2px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 0px 14px -2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: 2px solid white;
  text-decoration: none;
}

.decoracion {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  filter: none;
  opacity: 0.4;
}

.vl {
  border-left: 6px solid var(--accent-color);
  height: 60px;
  margin: auto;
  border-radius: 3px;
}

.ribbon {
  --r: 0.5em;
  padding-inline: calc(var(--r) + .5em);
  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(--accent-color);
  /* the main color */
  width: fit-content;
  color: #fff;
}

.listaAlergenos {
  display: none;
}

/* .formSection {
  background-color: white;
} */

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc((var(--slide-width) * -1) * (var(--slider-elements) / 2)));
  }
}

.slider {
  margin: 0 -20px;
  overflow: hidden;
  position: relative;
}

/* .slider::before,
.slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 50px;
  z-index: 2;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
} */

.slider .slide-track {
  animation: scroll 45s linear infinite;
  display: flex;
  width: calc(var(--slide-width) * var(--slider-elements));
}

.slider .slide {
  width: var(--slide-width);
}

.slide img {
  object-fit: cover;
  padding: 25px 25px 75px 25px;
  background-image: url("https://static.vecteezy.com/system/resources/thumbnails/022/402/523/small/textured-white-yellow-paper-by-ai-free-photo.jpg");
  background-size: 100% 100%;
  background-color: #ffffffc9;
  background-blend-mode: lighten;
  box-shadow: 0px 16px 22px -3px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 16px 22px -3px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 16px 22px -3px rgba(0, 0, 0, 0.2);
  margin-bottom: 32px;
}

.invitado {
  box-sizing: border-box;
  padding: 0 20px;
  border: 2px solid var(--accent-color);
  border-radius: 6px;
  margin: 20px 0;
  font-size: large;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-m {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-o {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-m.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-o.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smartphone */
/* - Width */

@media only screen and (max-width: 1160px) {

  .carta {
    width: 100%;
  }

  .modal-content {
    width: 100%;
  }

}

@media only screen and (max-width: 500px) {

  #jyv h1 {
    font-size: 3em;
  }

  .contador-item span:first-of-type {
    font-size: 1.8em;
  }

  .colon {
    font-size: 33px;
  }

}

@media only screen and (max-width: 390px) {

  #jyv h1 {
    font-size: 2.5em;
  }

}