/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #ff61d5, #7e22ce, #3b82f6); /* More vibrant gradient background */
  background-size: 300% 300%;
  animation: gradientAnimation 15s ease infinite;
  color: #333; /* Default text color */
  min-height: 100vh; /* Ensure the background covers the entire viewport */
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* Header Styles */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent background for the header */
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
  margin-bottom: 20px;
  position: relative;
}

.logo {
  height: 90px;
  margin-right: auto;
  border-radius: 8px; /* Rounded corners for the logo */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.site-title {
  color: #e60f8f; /* Vibrant pink color */
  font-size: 2.2rem;
  text-align: center;
  flex-grow: 1;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #ff3eb5;
}

/* Image Containers */
.container1,
.container2,
.container3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.65); /* More transparent for better contrast with vibrant background */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  backdrop-filter: blur(10px); /* Increased blur for better glass effect */
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h3 {
  width: 100%;
  text-align: center;
  color: #e60f8f; /* Matching pink color */
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-bottom: 10px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #e60f8f;
  border-radius: 3px;
}

/* Image Styles */
.birthday {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: auto;
  max-width: 258px;
  border-radius: 12px; /* Rounded corners for images */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow for images */
  object-fit: cover; /* Ensures images fit within their containers */
}

.birthday:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Zoom Modal Styles */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.zoomed-image-container {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.zoomed-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  color: #e60f8f;
  margin-top: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12); /* Enhanced shadow */
  transition: transform 0.3s ease;
}

footer:hover {
  transform: translateY(-5px);
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .birthday {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 1.7rem;
  }
  .birthday {
    max-width: 180px;
  }
  .container1, .container2, .container3 {
    padding: 15px;
    gap: 15px;
  }
  .logo {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.4rem;
  }
  .logo {
    height: 60px;
  }
  .birthday {
    max-width: 140px;
  }
  .container1, .container2, .container3 {
    padding: 10px;
    gap: 10px;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* Add hover animation for image interaction */
.birthday {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.birthday:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.25);
}

/* Add animation on image load */
.birthday {
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInImage 0.6s forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Button Styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #e60f8f;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #ff3eb5;
  transform: translateY(-3px);
}

/* Tooltip styling */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1001;
  bottom: 125%;
  left: 50%;
  margin-left: -70px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-img {
  max-width: 80vw;  /* Previously 90% — now slightly smaller for balance */
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  color: #ff69b4;
}

/* Lightbox Animations */
@keyframes scaleIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}