

/* TENGO A VER SI FUNCIONA LA ANIMACIÓN DE WAVE ABAJO */


body {
    background-image: url('../../media/backcomp.gif');
    background-repeat: repeat;
    background-size: min(40vw, 300px) auto;
    margin: 0;
    box-sizing: border-box;
    padding: 2vh 0;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}



::-moz-selection { /* Para Firefox */
    color: white;
    background: #f59f00;
  }
  
  ::selection {
    color: white;
    background: rgb(245, 159, 0);
  }
  

.contenedor-blanco {
    font-family: 'Figtree', sans-serif;
    text-align: center;
    justify-content: center;
    align-content: center;
    background: white;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: clamp(0rem, 20vw, 6rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 80rem;
    min-height: clamp(80%, 90vh, 52rem);
    position: relative;
    box-sizing: border-box;
    display: block;
    transition: min-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    will-change: min-height;
    text-align: center;
}

@media (max-width: 780px) {
  .contenedor-blanco {
    min-height: 80%;
    min-height: clamp(1rem, 100vw, 50rem);
  }
}

@media (orientation: portrait) {
  .contenedor-blanco {
    min-height: 90vh;
  }
}

.contenedor-interno {
  display: flex;
  flex-direction: column;margin: 0 auto;
  padding-left: clamp(0vh, 5vw, 90vh);
  padding-right: clamp(0vh, 5vw, 90vh);
  align-items: center;
  justify-content: center;
  align-content: center;
}

.contenedor-interno img {
    margin-bottom: -0.5rem;
}

.contenedor-interno p:first-of-type {
    margin-top: 0;
}


h1 {
    font-family: 'Jua', sans-serif;
    font-size: clamp(3vh, 8vw, 7vh);
    margin-bottom: 0vh;

}

.wave-text span {
    display: inline-block;
    animation: wave 1.8s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
    animation-delay: 0s;
}
.wave-text span:nth-child(2) {
    animation-delay: -0.2s;
}
.wave-text span:nth-child(3) {
    animation-delay: -0.4s;
}
.wave-text span:nth-child(4) {
    animation-delay: -0.6s;
}
.wave-text span:nth-child(5) {
    animation-delay: -0.8s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(clamp(-1vh, 1.5vw, 2vh));
    }
}


#piano {
  display: flex;
  justify-content: center;  
  gap: 0.4em;
  margin: 0 auto;
  flex-wrap: wrap;
}


.key {
  width: clamp(2.5rem, 8vw, 3.5rem);
  height: clamp(6rem, 18vh, 12rem);
  border: 1px solid #333;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: 'Jua', sans-serif;
  font-size: 2.7vh;
  cursor: pointer;
  user-select: none;
  margin: 0.1em;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 2.2em;
  padding-bottom: clamp(1em, 8%, 2.5em);
}

.keyC {
  background: #ffadad;
}
.keyD {
  background: #ffd6a5;
}
.keyE {
  background: #fdffb6;
}
.keyF {
  background: #caffbf;
}
.keyG {
  background: #9bf6ff;
}
.keyA {
  background: #a0c4ff;
}
.keyB {
  background: #d3b2ff;
}

.key {
  transition: all 0.1s ease;
}

.key:active {
  filter: brightness(94%);
  scale: 96%;
}

.key.active {
  filter: brightness(94%);
  scale: 96%;
}

#piano-message {
  margin-top: 1em;
  font-weight: bold;
  display: none;   /* 👈 hidden by default */
}

/* BOTONES links _________________________________ */ 
button {
  /* Variables */
  --button_radius: 1.75em;
  --button_color: #ffffff;
  --button_outline_color: #000000;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
}

/* From Uiverse.io by Voxybuns (edited) */ 
.button-link {
  all: unset; 
  --button_radius: 1.75em;
  --button_color: #ffffff;
  --button_outline_color: #000000;
  font-size: 14px;
  font-family: 'Figtree', sans-serif;
  font-weight: bold;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);
  cursor: pointer;
  display: inline-block;
}

.button-link .button_top {
  display: block;
  box-sizing: border-box;
  border: clamp(2px, 0.6vw, 3px) solid var(--button_outline_color);
  border-radius: var(--button_radius);
  padding: 0.75em 1.5em;
  background: var(--button_color);
  color: var(--button_outline_color);
  transform: translateY(-0.2em);
  transition: transform 0.1s ease;
  min-width: 124px;
}

.button-link:hover .button_top {
  transform: translateY(-0.44em);
}

.button-link:active .button_top {
  transform: translateY(0);
}