/* Apply a smooth font for better readability */
body {
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  /* Set the background image - using a random DDLC background for now */
  background-image: url("../../images/bg/notebook.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #ffffff;
  overflow-y: auto; /* Ensure the body can scroll */
}

/* Semi-transparent overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent overlay */
  z-index: -1; /* Ensure the overlay stays behind content */
}

/* Container with fadeIn animation */
#template-container {
  max-width: 1000px;
  margin: 60px auto; /* Center the container */
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8.5px);
  -webkit-backdrop-filter: blur(8.5px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  animation: fadeIn 1.5s ease-in-out;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

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

/* Heading Styles with Text Shadow */
#template-container h1 {
  text-align: center;
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Template Box Styles */
.template-box {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.template-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.template-box h2 {
  color: #fff;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  margin-bottom: 20px;
  border-bottom: 3px solid #8e2de2;
  padding-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.template-box p {
  line-height: 1.8;
  color: #e0e0e0;
  text-align: justify;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Lists Styling */
.template-box ul,
.template-box ol {
  margin-left: 20px;
  margin-right: 20px;
  color: #e0e0e0;
  padding-left: 20px;
  line-height: 1.6;
}

.template-box ul li,
.template-box ol li {
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Download Button */
.download-button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #6a0dad, #4b0049);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  text-align: center;
  margin: 20px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-button:hover {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Resource Link Styling */
.resource-link {
  color: #ff69b4;
  text-decoration: none;
  font-weight: bold;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.resource-link:hover {
  color: #ff8dc6;
  text-shadow: 0 0 8px rgba(255, 105, 180, 0.6);
}

/* Decorative Divider */
.divider {
  width: 80%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
  margin: 40px auto;
  border: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #template-container {
    margin: 40px 20px;
    padding: 30px 20px;
  }

  #template-container h1 {
    font-size: 2rem;
  }

  .template-box {
    padding: 20px 15px;
  }

  .template-box h2 {
    font-size: 1.5rem;
  }

  .template-box p {
    font-size: 1rem;
  }
}

/* Additional High-Resolution Adjustments */
@media (min-width: 2560px) {
  #template-container {
    padding: 80px 50px;
  }

  #template-container h1 {
    font-size: 3.5rem;
  }

  .template-box {
    padding: 40px 25px;
    font-size: 1.3rem;
  }

  .template-box h2 {
    font-size: 2.5rem;
  }
}
