/* General Layout */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  overflow: hidden;
  font-family: "Bodoni Moda", serif;
}

.wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Text Styling */
.top-text {
  font-size: 1.2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: -10px;
  font-weight: 300;
}

/* Main Title Styling */
.flashy-title {
  color: #ff69b4;
  font-size: 6rem;
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  animation: sizePulse 3s infinite ease-in-out,
    colorFlash 1.5s infinite alternate;
}

@media (max-width: 768px) {
  .flashy-title {
    font-size: 4rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .flashy-title {
    font-size: 3rem;
    letter-spacing: 1px;
  }
}

@keyframes sizePulse {
  0%,
  100% {
    transform: scale(1);
    letter-spacing: 2px;
  }
  50% {
    transform: scale(1.1);
    letter-spacing: 10px;
  }
}

@keyframes colorFlash {
  0% {
    color: #ff69b4;
    text-shadow: none;
  }
  50% {
    color: #ff1493;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
  }
  100% {
    color: #ff007f;
    opacity: 0.9;
  }
}

.ismu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  max-width: 300px;
}

/* Side clickable picture */
.side-pic {
  position: fixed;
  right: 200px;
  top: 65%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 50;
  transition: transform 0.2s ease;
}

.side-pic:hover {
  transform: translateY(-50%) scale(1.08);
}

.side-pic img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  /* freeze the gif by default using a canvas trick via JS */
  display: block;
}

/* Flashing Button */
.prank-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #87ceeb;
  color: white;
  animation: buttonFlash 0.6s infinite alternate;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes buttonFlash {
  0% {
    background-color: #87ceeb;
  }
  100% {
    background-color: #ffffff;
  }
}

/* Popup Styles */
.popup {
  position: fixed;
  background-color: #ffb6c1;
  border: 2px solid #ff69b4;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 250px;
  font-family: "Arial", sans-serif;
  font-size: 1rem;
  color: #333;
  animation: popupAppear 0.3s ease-in;
}

@keyframes popupAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.popup-close:hover {
  color: #ffffff;
}

.secret-popup {
    position: fixed;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: 3px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  animation: secretPulse 0.5s ease-in forwards;
    width: 400px;
    padding: 40px;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes secretPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.secret-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #FF69B4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    transition: background-color 0.3s;
}

.secret-button:hover {
    background-color: #FF1493;
}