html, body
{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

body
{
  background: url(./media/imagenes/fondo.png)
}

.color
{
  fill: var(--color, black);
}

#svg
{
  position: absolute;
  overflow: visible;
  top: 0;
  left: 0;
}

#content
{
  text-align: center;
  font-family: sans-serif;
  user-select: none;
  
}

.balloon
{
  cursor: pointer;
}

#behind_svg { z-index: 1; }
#content { z-index: 2; }
#svg{ z-index: 99; }

/* ----------------Customizacion---------------------- */
.colored {
  background-image: linear-gradient(90deg, rgb(255, 106, 131) 0%, rgb(255, 37, 73) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  }

.revienta {
  position: absolute;
  top: 3%;
  left: 48%;
  font-family: 'McLaren', cursive;
  font-size: clamp(0.625rem, 0.5093rem + 0.6173vw, 1.25rem);
  color: grey;
  padding: 5px;
  border-radius: 20px;
  background-color: aliceblue;
}

.principal {
    padding: 5vh 5vw;
    border-radius: 15px;
}

.img-fiesta {
  display: flex;
  justify-content: end;
  align-items: end;
  position: relative;
}

.card {
  background-color: #fff;
  padding: 20px;
  transform: rotate(13deg);
  box-shadow: 3px 3px 5px 3px rgb(199, 199, 199);
}

.letra {
  font-family: 'McLaren', cursive;
  font-size: clamp(1.25rem, 1.1343rem + 0.6173vw, 1.875rem);
}

.invitation-card {
  display: flex;
  justify-content: start;
}

.card2 {
  font-family: 'McLaren', cursive;
  width: 25vw;
  height: auto;
  border-radius: 5px;
  background-color: rgb(255, 255, 240);
  padding: 3vh 2vw;
  transform: rotate(342deg);
  box-shadow: 3px 3px 5px 3px rgb(199, 199, 199);
  margin: -25% 0 0 3.5vw;
  color: rgb(114, 114, 114);
}
/* --------------------------Ajuste de Media Query en definicion hd----------------- */
@media (min-width: 1919.8px) and (max-width:2280px) {
  .card2 {
    margin: -20% 0 0 7vw;
  }
}
/* --------------------------Sigue codigo normal------------------------ */

.img-card {
  width: 50vh;
  height: 50vh;
  margin-bottom: 2vh;
  border-radius: 5px;
}

.cursive {
  font-family: 'Satisfy', cursive;
}

.tamaño {
  font-size: clamp(1.5rem, 1.338rem + 0.8642vw, 2.375rem);
}

.flecha {
  width: 300px;
  height: 300px;
  transform: rotate(106deg);
  position: absolute;
  right: 40%;
  bottom: 24%;
}

.caja-fecha {
  display: flex;
  justify-content: center;
  border-bottom: 3px dotted rgb(255, 83, 112);
  margin-bottom: 3vh;
}

.te-invito {
  font-size: clamp(1.25rem, 1.0417rem + 1.1111vw, 2.375rem);
}

.fecha {
  font-size: clamp(0.9375rem, 0.7639rem + 0.9259vw, 1.875rem);
  border-right: 3px dotted rgb(255, 83, 112);
  padding: 2vh 2vw 0vh 2vw;
}

.hora {
  font-size: clamp(0.9375rem, 0.7639rem + 0.9259vw, 1.875rem);
  padding: 2vh 2vw 0vh 2vw;
}

.direccion {
  margin: 0;
  font-size: clamp(0.9375rem, 0.7639rem + 0.9259vw, 1.875rem);
}

.candy {
  margin-top: 2vh;
  color: red;
  font-size: clamp(1.25rem, 1.0185rem + 1.2346vw, 2.5rem);
}


.icono-home2 {
  font-size: clamp(0.9375rem, 0.7639rem + 0.9259vw, 1.875rem);
  color: #fff;
  background:  linear-gradient(rgb(134, 207, 255) 0%, rgb(93, 157, 253) 100%);
  position: absolute;
  z-index: 9999999;
  border-radius: 10px;
  left: 2vw;
  top: 1vh; 
  display: inline-block;
  padding: 1.5vh 2vw;
}

.icono-home2:hover {
  background: rgb(93, 157, 253);
  color: grey;
}

.btn-funcion {
  text-decoration: none;
  position: absolute;
  right: 2%;
  bottom: 1%;
  background: linear-gradient(rgb(255, 137, 157) 0%, rgb(252, 45, 79) 100%);
  border-radius: 10px;
  display: inline-block;
  padding: 15px 25px;
  color: #fff;
  font-size: clamp(0.5rem, 0.2454rem + 1.358vw, 1.875rem);
}

.btn-funcion:hover {
  background: rgb(252, 45, 79);
  color: grey;
}

/* --------------------ANIMACIONES------------------------ */

 /* Animación de la "card" */
 .card {
  animation: fade-in 2s ease-in;
  animation-delay: 1s;
}

/* Animación de "card2" */
.card2 {
  animation: fade-in 2s ease-in;
  animation-delay: 3s;
}

/* Animación de "flecha" */
.flecha {
  animation: fade-in 2s ease-in;
  animation-delay: 2s;
}

.revienta {
  animation: fade-out 1s ease-in-out 7s forwards;
  animation-delay: 4s;
}

/* Animación "fade out" de "revienta" */
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    display: none;
  }
}

/* Animación "fade in" de la "flecha" */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* -----------------------------responsive------------------------- */

@media (min-width:200px) and (max-width: 1365.7px) {

  #content {
    padding-top: 5vh;
  }
  .img-card {
    width: 100%;
    height: auto;
  }

 .card2 {
  width: auto;
  padding: 3vh 3vw;
  margin: 0 0 0 5vw;
 } 

 .fecha {
  padding: 2vh 8vw 0 2vw;
 }

 .hora {
  padding: 2vh 2vw 0 8vw;
 }

 .flecha {
  width: 150px;
  height: auto;
  bottom: -10%;
  right: -13%;
  z-index: 5;
  transform-origin: center center;
  transform: scaleX(-1) rotate(44deg);
  
 }

.revienta {
  top: 1%;
  right: 0;
  padding: 3px;
  display: inline-block;
  animation-delay: 7s;
}

}

/* -------------------AJUSTE DEL CONTENIDO --------------------------- */


@media (min-width:200px) and (max-width: 375.7px) {
  #content {
    padding:0;
  }
}

@media (min-width:603px) and (max-width: 768.7px) {
  .flecha {
    right: 28%;
    bottom: -25%;
 
  }
}

@media (min-width:600px) and (max-width: 602.7px) {
  .flecha {
    right: 15%;
    bottom: -25%;
  }
}