@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fce4ec;
  font-family: 'Pacifico', cursive;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

#container {
  text-align: center;
}

.birthday-text {
  color: #ff4081;
  /* font-size: 6rem; */
  font-size: clamp(3rem, 8vw, 6rem);
  opacity: 0;
  animation: fade-in 2s ease-in-out forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.signature {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: #ff80ab;
  opacity: 0;
  animation: signature-fade-in 2s ease-in-out 2s forwards;
}

@keyframes signature-fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.memories-link {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  /* Make sure it is above other elements */
  font-size: 1.2rem;
  text-decoration: none;
  color: #ff4081;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 5px;
}

.gallery {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: absolute !important;
  top: 10px !important;
  padding: 10px;
}

.gallery-item {
  width: 30%;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .gallery-item {
    width: 45%;
  }
}