body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfcf9;
  padding-top: 60px;
  font-size: 16px;
  line-height: 1.6;
}
.day-section {
  scroll-margin-top: 65px;
  padding: 30px 15px;
  border-bottom: 1px solid #eee;
  border-radius: 10px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}
h2 {
  text-align: center;
  border-bottom: 3px solid #adb5bd;
  padding-bottom: 10px;
  margin-bottom: 30px;
  color: #495057;
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav {
  background-color: #343a40;
}
.nav-link {
  color: #ffffff !important;
}
.day-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.day-section ul,
.day-section li,
.day-section p {
  text-align: left;
}
.day-section ul {
  padding-left: 20px; /* Adjusted for better indentation */
  margin: 0 auto;
  max-width: 95%; /* Slightly increased for better readability */
}
.day-section ul,
.day-section p {
  text-align: left;
  margin: 0 auto;
  max-width: 95%;
}
.day-section p {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-style: italic;
  text-align: justify; /* Improved text alignment for paragraphs */
  max-width: 95%;
  margin: 20px auto;
}
.day-section ul li {
  margin-bottom: 15px; /* Increased spacing for clarity */
  list-style-type: disc;
  list-style-position: inside;
}
.day-section ul li::marker {
  color: #6c757d;
}
.day-section img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}
.navbar-brand {
  font-size: 1.5rem;
}
.navbar-toggler {
  padding: 0.5rem;
}
footer {
  background-color: #343a40 !important;
  color: #ffffff;
  padding: 15px;
  text-align: center;
}
footer a {
  color: #ffffff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer img {
  width: 32px;
  height: 32px;
}
.navbar-nav .nav-link.active {
  font-weight: bold;
  color: #ffc107 !important;
}
@media (max-width: 768px) {
  h2 {
    font-size: 1.25rem;
  }
  .day-section ul {
    padding-left: 20px;
  }
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-link {
    padding: 0.5rem;
  }
}
.image-reference {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
  margin-top: 5px;
  font-style: italic;
}

/* Popup Styles */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.4s ease-in-out;
}

.popup-content {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.5s ease-out;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #343a40;
}

.popup-message {
  margin-top: 10px;
  text-align: center;
}

.popup-message h3 {
  color: #495057;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  border-bottom: none;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.popup-message p {
  color: #212529;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  font-size: 1rem;
  text-align: center;
  max-width: 100%;
  background-color: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  font-style: normal;
}

.popup-message p em {
  font-style: italic;
  color: #495057;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
  .popup-content {
    padding: 1.5rem;
    width: 95%;
  }

  .popup-message h3 {
    font-size: 1.2rem;
  }

  .popup-message p {
    font-size: 0.9rem;
  }
}
