body {
    background-color: rgba(230, 204, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 1rem;
    overflow-y: auto;
    font-family: 'Cherry Bomb One';
}

@keyframes cambio-borde {
    0%   { border-color: violet; }
    25%  { border-color: pink; }
    50%  { border-color: yellow; }
    75%  { border-color: lightblue; }
    100% { border-color: violet; }
}

.hbd, .msg, a {
    background-color: #fff3;
    padding: 15px 20px;
    border-radius: 25px;
    animation: 
        bounce 2s ease infinite,
        cambio-borde 5s linear infinite,
        cambio-color-texto 5s linear infinite;
    border: 4px solid; 
    max-width: 90%;
    text-align: center;
    margin-bottom: 15px;
}

.hbd {
    font-size: 2rem;
    transform: scale(1.1) rotate(-2deg);
}

.msg {
    width: 88%;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

a {
    font-size: 1.8rem;
    transform: scale(1.1) rotate(-2deg);
    margin-top: 20px;
    text-decoration: none;
}

@keyframes cambio-color-texto {
    0%   { color: violet; }
    25%  { color: pink; }
    50%  { color: yellow; }
    75%  { color: lightblue; }
    100% { color: violet; }
}

.contenedor-imagenes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  padding: 5px;
}

.img {
  width: 200px;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  animation: 
        bounce 2s ease infinite,
        cambio-borde 5s linear infinite,
        cambio-color-texto 5s linear infinite;
  margin: 0 5px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1.1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

#videoFondo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: -1;
  opacity: .7;
}

audio {
  display: none;
}

@media only screen and (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .hbd {
        font-size: 1.5rem;
        padding: 10px 15px;
        margin-bottom: 10px;
    }
    
    .msg, a {
        font-size: 1.3rem;
        padding: 10px 15px;
    }
    
    .contenedor-imagenes {
        gap: 8px;
        margin: 10px 0;
    }
    
    .img {
        width: 100px;
    }
    
    a {
        margin-top: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .hbd {
        font-size: 1.3rem;
        padding: 8px 12px;
    }
    
    .msg, a {
        font-size: 1.1rem;
        padding: 8px 12px;
    }
    
    .img {
        width: 100px;
    }
    
    @keyframes bounce {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-5px) scale(1);
        }
    }
    
    .hbd, a {
        transform: scale(1) rotate(-2deg);
    }
}