/* styles.css */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

header {
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
}

section.search {
  text-align: center;
  margin: 2rem 0;
}

#searchBar {
  padding: 0.5rem;
  font-size: 1rem;
  width: 80%;
}

#pdf-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pdf-item {
  background-color: white;
  padding: 1rem;
  width: 80%;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.pdf-item button {
  padding: 0.5rem 1rem;
  background-color: #1abc9c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pdf-item button:hover {
  background-color: #16a085;
}
footer {
  padding: 1.5rem;
  text-align: center;
  background-color: #333;
  color: white;
}
/* Preloader Container */
#advanced-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #83a4d4, #b6fbff); /* Gradient background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s ease-out;
}

/* Circle Animation */
.circle-container {
  position: relative;
}

.circle {
  border-radius: 50%;
  position: absolute;
  animation: pulse 1.5s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.3); /* Semi-transparent circles */
}

.circle-1 {
  width: 80px;
  height: 80px;
  animation-delay: 0.1s;
}

.circle-2 {
  width: 120px;
  height: 120px;
  animation-delay: 0.3s;
}

.circle-3 {
  width: 160px;
  height: 160px;
  animation-delay: 0.5s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.3;
  }
}

/* Preloader Text */
.preloader-text {
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  position: relative;
  z-index: 10;
  animation: fadeInOutText 1.8s ease-in-out infinite;
  margin-top: 2rem;
}

@keyframes fadeInOutText {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Logo Animation */
.preloader-logo {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem; /* Adjust this as necessary */
}

.logo-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  animation: logoFadeIn 1.8s ease-in-out forwards;
  animation-delay: 0.5s; /* Start the logo animation after circles start */
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)); /* Glowing effect */
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5); /* Start small */
  }
  100% {
    opacity: 1;
    transform: scale(1); /* Scale up to full size */
  }
}


/* Preloader Logo Spin */
.preloader-logo {
  width: 80px;
  height: 80px;
  animation: logoSpin 2.1s linear infinite;
}

/* Keyframes for logo spinning */
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* Hide Preloader on Page Load */
#advanced-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
