@font-face{
  font-family: 'my-cursive'; /* Name your font family */
  src: url('./fonts/Playwrite_CO/PlaywriteCO-VariableFont_wght.ttf');
}

@font-face{
  font-family: 'modern'; /* Name your font family */
  src: url('./fonts/Playwrite_US_Modern/PlaywriteUSModern-VariableFont_wght.ttf');
}

@font-face{
  font-family: 'playfair'; /* Name your font family */
  src: url('./fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf');
}

:root {
  --fondo: #C4E6FF;
  --white: #fafafa;
  --black: #232323;
  --accent: #555556;
  --gray: #999;
  --animate-duration: 1s;
}

html{
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

*{
   box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 3vw;
    font-family: playfair;
    color: var(--black);
    z-index: 3;
  }

main{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.modern{
  font-family: modern;
}

.principal-img{
  position: fixed;
  min-width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  z-index: -5;
  animation-duration: 5s;
  background-image: url(./img/portada.jpg);
  background-size:cover;
  margin: auto;
  background-position: 30% 20%;
}

.principal-text{
  position: fixed;
  min-width: 100vw;
  max-width: 100%;
  padding: 2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -4;
  text-align: center;
  color: #fafafafa;
  font-family: my-cursive;
  font-size: 5rem;
  animation-duration: 3s;
  animation-name: welcome-text;
  text-align: center;
}


.p-up-right{
  top: 0%;
  right: -3%;
  transform: rotate(-90deg);
}

.p-right{
  right: 0%;
  bottom: -1rem;
}

.parent-names{
  margin: 1vw;
}

.parent{
 font-size: 3vw;
}

.bigger{
  font-size: 9vw;
}
.big{
  font-size: 7vw;
}
.tlbig{
  font-size: 5vw;
}
.relat{
  position: relative;
  overflow: hidden;
}
.amp{
  position: absolute;
  top: -35%;
  left: 12%;
  font-size: 30vw;
  z-index: 0;
  color: var(--gray);
}
.z-3{
  position: relative;
  z-index: 3;
}

.frase-text{
  margin-top: 2rem;
  font-family: my-cursive;
  text-align: center;
  max-width: 86vw;
  padding: 1rem 0;
  font-size: 4vw;
  z-index: 3;
}

.space{
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
}

section{
  text-align: center;
  scroll-snap-align: start;
  width: 100vw;
  max-width: 100%;
}

.mh-50{
  min-height: 50vh;
}

.mh-25{
  min-height: 25vh;
}
.fondo{
  background-image: url(./img/pattern.jpg);
  background-repeat: repeat;
  width: 100vw;
  max-width: 100%;
  
}
.title{
  color: var(--accent);
  font-size: 2.7vw;
}

.playfair{
  font-family: playfair;
}
.count{
  width: 70vw;
}


.uno{
  background-image: url(./img/1.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 50%;
}

.dos{
  background-image: url(./img/2.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 20%;
}

.tres{
  background-image: url(./img/3.jpg);
  aspect-ratio: 16/9;
  background-position: 90% 50%;
}

.cuatro{
  background-image: url(./img/4.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 50%;
}

.cinco{
  background-image: url(./img/5.jpg);
  aspect-ratio: 16/9;
  background-position: 90% 50%;
}

.seis{
  background-image: url(./img/6.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 30%;
}

.siete{
  background-image: url(./img/7.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 30%;
}

.ocho{
  background-image: url(./img/8.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 25%;
}

.nueve{
  background-image: url(./img/9.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 20%;
}

.diez{
  background-image: url(./img/10.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 50%;
}

.once{
  background-image: url(./img/11.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 50%;
}

.doce{
  background-image: url(./img/12.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 40%;
}

.trece{
  background-image: url(./img/13.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 20%;
}

.catorce{
  background-image: url(./img/14.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 30%;
}

.quince{
  background-image: url(./img/15.jpg);
  aspect-ratio: 16/9;
  background-position: 50% 40%;
}

.cover{
  width: 100vw;
  max-width: 100%;
  background-size: cover;
  min-height: 50vh;
  max-height: 50vh;
}


label{
  display: block;
  text-align: left;
  font-size: 23px;
}
input{
  text-align: center;
  border: 3px solid var(--black); 
  border-radius: 0.3rem;
  padding: 3px 5px;
  width: 70vw;
  font-size: 27px;
}

.white{
color: var(--white);
}

.black{
  color: var(--black);
}

.hour{
  width: 100vw;
  max-width: 100%;
  text-align: left;
}

.hour1{
  --animate-duration: 1s;
}
.hour2{
  --animate-duration: 2s;
}
.hour3{
  --animate-duration: 3s;
}
.hour4{
  --animate-duration: 4s;
}
.hour5{
  --animate-duration: 5s;
}
.hour6{
  --animate-duration: 6s;
}
.hour7{
  --animate-duration: 7s;
}

.btn{
  font-weight: bold;
  padding: .3rem .7rem;
  color: var(--black); 
  border: 3px solid var(--black); 
  border-radius: 0.3rem;
  text-align: center;
  width: 70vw;
}

a {
  text-decoration: none;
}
a:hover{
  color:var(--gray); 
  text-decoration:none; 
  cursor:pointer;  
}

input{
  background-color: transparent;
  outline: none;
}

.btnw{
  background-color: transparent;
  color: var(--black); 
  border: 3px solid var(--black); 
  width: 70vw;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 0.3rem;
}

.btnw:hover, .btn:hover{
  color:var(--accent); 
  border: 3px solid var(--accent);
  cursor:pointer;  
}

.btnw:disabled, input:disabled{
  color:var(--black); 
  border: 3px solid var(--black);
}

input:focus{
  border: 3px solid var(--accent);
}



.column{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  align-content: space-evenly;
  text-align: center;
}

.row{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: space-evenly;
  text-align: center;
}

.gap{
  gap: 2rem;
}

.m-2{
  margin: 2rem;
}

.m-1{
  margin: 1rem;
}

.w-100{
  width: 100vw;
  max-width: 100%;
}

.cursive{
  font-family: my-cursive;
}

.grow{
  flex-grow: 1;
}
.fb-20{
  flex-basis: 20%;
}
.fb-30{
  flex-basis: 30%;
}
.fb-35{
  flex-basis: 35%;
}
.fb-40{
  flex-basis: 40%;
}
.fb-50{
  flex-basis: 50%;
}
.t-left{
  text-align: left;
}
.t-right{
  text-align: right;
}

.map{
  width: 100vw;
  max-width:100%;
  height: 100vh;
  max-height: 100vh;
}

.icon{
  width: 7vw;
}

.attribution{
  font-size: 0.5rem;
  padding: 0.2rem 0.5rem;
}

.dress, .suit{
  width: 50vw;
  background-size: cover;
  max-height: 100vh;
  aspect-ratio: 1;
}

.dress{
  background-image: url(./img/dress.png);
}

.suit{
  background-image: url(./img/suit.png);
}

.show{
 display: block;
}

.hide{
  display: none;
}

#credits{
  position: fixed;
  background-color: var(--white);
  width: 100vw;
  max-width: 100%;
  z-index: 5;
  bottom: 0;
}
#creditBtn:hover, #close:hover{
  color: var(--gray);
  cursor: pointer;
}
.credit-container{
  display:flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: start;
  margin: 1rem;
  gap: 0.3rem;
}
#close{
  position: absolute;
  top: 0;
  right: 0;
  font-size: 2rem;
  color: red;
}

@keyframes welcome {
  from {
    opacity: 100%;
  }

  to {
    opacity: 87%;
  }
}

@keyframes welcome-text {
  from {
    opacity: 10%;
  }

  to {
    opacity: 100%;
  }
}

@media only screen and (max-height: 500px) {
  .principal-text{
    font-size: 13vh;
  }
  .principal-img{
    background-position: 50% 30%;
  }
}

@media only screen and (max-width: 600px) {
  .principal-text{
    font-size: 11vw;
  }
  .icon2{
    width: 5rem;
  }
  *{
    font-size: 4vw;
  }
}

@media  only screen and (min-width: 1200px) {
  *{
    font-size: 1.5rem;
  }
  .frase-text{
    max-width: 55rem;
    font-size: 2.5rem;
  }
  .parent{
    font-size: 1.5rem;
   }
   .bigger{
     font-size: 5rem;
   }
   .big{
     font-size: 3rem;
   }
   .tlbig{
    font-size: 2rem;
   }
   .amp{
     font-size: 17rem;
   }
   .title{
    font-size: 1.3rem;
   }
   .icon{
    width: 3rem;
   }
   .gift-text {
    max-width: 62vw;
  }
  input{
    font-size: 35px;
  }
  .fb-30{
    flex-basis: 20%;
  }
  .fb-50{
    flex-basis: 40%;
  }
  .fb-20{
    flex-basis: 30%;
  }
}

@media (orientation: landscape) {
  .mh-50, .cover {
    min-height: 100vh;
  }
  .cover {
    max-height: 100vh;
  }
}

#play-music-button {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}