
body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  font-family: 'Courier New', monospace;
  height: 100vh;
  width: 100vw;
}

#background {
  background-image: url('cemento.png');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 100% { filter: brightness(1); }
  20% { filter: brightness(0.3); }
  40% { filter: brightness(1); }
  60% { filter: brightness(0.1); }
  80% { filter: brightness(1); }
}

#overlay-image {
  top: 50%; transform: translate(-50%, -50%);
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  max-width: 400px;
  z-index: 4;
  animation: glitchTitle 2.5s infinite steps(1, end);
  opacity: 0.9;
}

@keyframes glitchTitle {
  0%, 10% { opacity: 1; transform: translateX(-50%) scale(1); }
  20% { opacity: 0.4; transform: translateX(-52%) scale(1.01); }
  30% { opacity: 1; transform: translateX(-48%) scale(1); }
  40% { opacity: 0.3; transform: translateX(-50%) scale(1.02); }
  50%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

#sound-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 10px 20px;
  font-size: 1rem;
  background: black;
  color: white;
  border: 1px solid white;
  cursor: pointer;
}

#personitas-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 3;
}

.personita-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.personita {
  position: absolute;
  width: 120px;
  height: 240px;
  background-image: url('personita.png');
  background-size: contain;
  background-repeat: no-repeat;
  animation: glitchPersonita 1.2s infinite alternate ease-in-out;
}

@keyframes glitchPersonita {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(1px, -1px) scale(1.03); }
  50% { transform: translate(-1px, 1px) scale(0.98); }
  75% { transform: translate(2px, 0) scale(1.07); }
  100% { transform: translate(0, -2px) scale(1); }
}

.personita-wrapper div {
  color: white !important;
}
#instagram-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}
#instagram-icon img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 2px #fff);
  transition: transform 0.3s ease;
}
#instagram-icon img:hover {
  transform: scale(1.2);
}


@media only screen and (max-width: 768px) {
  #overlay-image {
    width: 90%;
    max-width: none;
    top: 30%;
  }
  #instagram-icon {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
}

  #instagram-icon {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
}
