/* General Reset */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
/* Event Container */
.event-details-container {
  max-width: 1300px;
  margin: 50px auto;
  padding: 20px;
  background-color: whitesmoke;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Event Title */
#event-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: black;
  text-align: center;
  margin-bottom: 20px;
}

/* Event Description */
#event-description p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin: 10px 0;
  text-align: justify;
}

/* Image Gallery */
.image-gallery-wrapper {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  padding: 20px 0;
}

.image-gallery {
  display: flex;
  gap: 25px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 47px 10px;
}

.image-gallery img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(50px);
  animation: slideUpFade 0.8s ease forwards;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Delay each image animation */
.image-gallery img:nth-child(1) {
  animation-delay: 0.2s;
}
.image-gallery img:nth-child(2) {
  animation-delay: 0.4s;
}
.image-gallery img:nth-child(3) {
  animation-delay: 0.6s;
}

/* Enhanced hover effect with more space for animation */
.image-gallery img:hover {
  transform: translateY(-20px);
  box-shadow: 0 25px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(66, 133, 244, 0.2);
  border-color: rgba(66, 133, 244, 0.5);
}

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

/* Responsive styles */

@media (max-width: 768px) {
  .image-gallery-wrapper {
    width: 100%;
    padding: 10px;
  }

  .image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .image-gallery img {
    width: 90%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }

  /* Remove horizontal scrolling */
  .image-gallery-wrapper {
    overflow-x: hidden;
  }

  /* Ensure proper spacing */
  .event-details-container {
    padding: 15px;
  }

  /* Hide hamburger and old nav menu */
  .hamburger {
    display: none;
  }

  .mobile-home {
    display: flex;
    align-items: center;
  }

  .mobile-home a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }

  .mobile-home a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* For smaller screens */
@media (max-width: 480px) {
  .image-gallery img {
    width: 95%;
    max-height: 220px;
  }
}

/* Animations */
@keyframes slideIn {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes textSlide {
  0% {
    letter-spacing: -2px;
    opacity: 0;
  }
  100% {
    letter-spacing: 1px;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  #event-title {
    font-size: 2rem;
  }

  #event-description {
    font-size: 1rem;
  }

  .image-gallery img {
    width: 90%;
    height: auto;
  }
}
/* button style */
.download-button {
  position: relative;
  border-width: 0;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1;
  margin: 20px auto;
  display: block;
}

.download-button .docs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 4px;
  z-index: 1;
  background-color: #242a35;
  border: solid 1px #e8e8e82d;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.download-button:hover {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.download {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  margin: 0 auto;
  z-index: -1;
  border-radius: 4px;
  transform: translateY(0%);
  background-color: #01e056;
  border: solid 1px #01e0572d;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.download-button:hover .download {
  transform: translateY(100%);
}

.download svg polyline,
.download svg line {
  animation: docs 1s infinite;
}

@keyframes docs {
  0% {
    transform: translateY(0%);
  }

  50% {
    transform: translateY(-15%);
  }

  100% {
    transform: translateY(0%);
  }
}
/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
  background: #1f1f1f; /* Dark background for the scroll space */
  border-radius: 10px; /* Rounded corners for the track (scroll space) */
}

::-webkit-scrollbar-thumb {
  background-color: #c7c5c59c; /* Initially matching the track color */
  border-radius: 50px; /* Smooth and fully rounded corners for the thumb */
  border: 2px solid #1f1f1f; /* Border to blend with the track */
  transition: background-color 0.3s ease; /* Smooth transition for color changes */
}
