* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

body {
  font-family: 'Comic Neue', cursive;
  background: linear-gradient(
    45deg,
    #ff006e,
    #8338ec,
    #3a86ff,
    #06ffa5,
    #ffbe0b
  );
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  color: gold;
  font-size: 20px;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.balloon {
  position: fixed;
  font-size: 40px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.container {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.title {
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 3px 3px 0px #ff006e, 6px 6px 0px #8338ec;
  animation: flash 1s infinite alternate;
  margin: 20px 0;
}

@keyframes flash {
  0% {
    color: #fff;
  }
  100% {
    color: #ffbe0b;
  }
}

.subtitle {
  font-size: 2rem;
  color: #06ffa5;
  text-shadow: 2px 2px 4px #000;
  animation: bounce 2s infinite;
}

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

.photo-section {
  text-align: center;
  margin: 40px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 30px;
  border: 5px solid #ff006e;
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 0, 110, 0.8);
  }
}

.photo-card {
  width: 150px;
  height: 150px;
  border: 3px dashed #8338ec;
  
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: linear-gradient(45deg, #ffbe0b, #06ffa5);

  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px #000;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.photo-text {
  font-size: 1.5rem;
  color: #8338ec;
  font-weight: bold;
  animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

.messages-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  margin: 40px 0;
  border: 5px solid #06ffa5;
  box-shadow: 0 0 25px rgba(6, 255, 165, 0.4);
}

.messages-title {
  text-align: center;
  font-size: 2.5rem;
  color: #ff006e;
  font-weight: bold;
  text-shadow: 2px 2px 4px #8338ec;
  margin-bottom: 30px;
  animation: rainbow-text 2s linear infinite;
}

@keyframes rainbow-text {
  0% {
    color: #ff006e;
  }
  16% {
    color: #8338ec;
  }
  32% {
    color: #3a86ff;
  }
  48% {
    color: #06ffa5;
  }
  64% {
    color: #ffbe0b;
  }
  80% {
    color: #ff6b35;
  }
  100% {
    color: #ff006e;
  }
}

.message {
  background: linear-gradient(45deg, #fff, #f0f8ff);
  border: 3px solid #ffbe0b;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.8s ease-out;
  transform-origin: left;
}

@keyframes slideIn {
  0% {
    transform: translateX(-100%) rotate(-5deg);
    opacity: 0;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

.message:hover {
  animation: shake 0.5s infinite;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.message-author {
  font-size: 1.3rem;
  font-weight: bold;
  color: #8338ec;
  margin-bottom: 10px;
}

.message-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.5;
}

.footer {
  text-align: center;
  margin: 40px 0;
  font-size: 2rem;
  color: #fff;
  text-shadow: 2px 2px 4px #000;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 2px 2px 4px #000, 0 0 10px #ff006e;
  }
  100% {
    text-shadow: 2px 2px 4px #000, 0 0 20px #06ffa5, 0 0 30px #ffbe0b;
  }
}

.cake-emoji {
  font-size: 3rem;
  display: inline-block;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }
  .subtitle {
    font-size: 1.5rem;
  }
  .photo-placeholder {
    width: 250px;
    height: 250px;
  }
  .messages-title {
    font-size: 2rem;
  }
}
