@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: 50% 50%;
}

.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;
}

.rose{
  position: absolute;
  background-image: url(./img/goodRose.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 30vw;
  aspect-ratio: 1/1;
  z-index: 0;
  
}

.p-up-left{
  top: -1rem;
  left: 0;
  transform: rotate(180deg);
}

.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/lino.webp);
  background-repeat: repeat;
  width: 100vw;
  max-width: 100%;
  
}
.title{
  color: var(--accent);
  font-size: 2.7vw;
}

.playfair{
  font-family: playfair;
}
.count{
  width: 70vw;
}
.g1-f1{
  background-image: url(./img/abajo-de-cuenta-regresiva.jpeg);
  aspect-ratio: 16/9;
  background-position: 50% 50%;
}

.vest{
  background-image: url(./img/vestimenta.png);
  background-size: contain;
  aspect-ratio: 1.80;
  background-repeat: no-repeat;
  width: 100%;
}

.manos{
  background-image: url(./img/collageHorizontal.jpeg);
  aspect-ratio: 16/9;
  background-position: 50% 50%;
}

.pared{
  background-image: url(./img/velas.jpeg);
  aspect-ratio: 16/9;
  background-position: 50% 50%;
}

.after-hotels, .final, .final2, .final3, .final4, .manos, .cover, .g1-f1{
  width: 100vw;
  max-width: 100%;
  background-size: cover;
  min-height: 50vh;
  max-height: 50vh;
}

.galery{
  width: 100vw;
  max-width: 100%;
}

.confirm{
  background-image: url(./img/back-form.jpg);
  background-size: cover;
  min-height: 100vh;
  background-position: 50% 50%;
}

.gift-text{
max-width: 87vw;
}

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%;
  }
}