body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6c7293;
  text-align: left;
  margin: 0;
}

.parallax {
  position: relative;
  /* background-image: url('https://scontent.fmnl30-3.fna.fbcdn.net/v/t39.30808-6/274621984_2747699282040688_7180927476968912908_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=783fdb&_nc_ohc=aklzGQIEZaMAX-AWQ9V&_nc_ht=scontent.fmnl30-3.fna&oh=00_AfAjLNa9VY0I-Qbn7_h92bPffkrb-GI4a1tRyfxhPPa1XQ&oe=65790649'); */
  background-image: url('../images/psu-library-bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden; /* Ensure that the overlay does not cause scroll bars */
}

.parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust the alpha value for darkness */
  z-index: 0; /* Place the overlay behind the content */
}

header {
  position: relative;
  z-index: 0; /* Ensure that the header is on top of the overlay */
  text-align: left; /* Align text to the left */
  padding: 20px; /* Add padding to the header */
}

h1 {
  font-size: 3em;
  margin: 0;
  color: white; /* Set the text color */
}


@media screen and (m-width: 374px) {
  .contact-container {
    padding: 10px;
  }

  .contact-form h2 {
    font-size: 18px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 13px;
    padding: 8px;
  }

  button[name="submit"] {
    font-size: 14px;
    padding: 8px;
  }
}

.subtitle {
  font-size: 1.5em;
  margin-top: 10px;
  color: white; /* Customize the color as needed */
}

.highlight {
  color: #ffcc00; /* Highlight color - customize as needed */
}

main {
  padding: 2em;
}

section {
  margin-bottom: 2em;
}

/* Library Introduction Section */
#introduction {
  background-color: #f8f8f8; /* Background color for the introduction section */
  padding: 80px 0;
  text-align: center;
}

.introduction-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-content {
  text-align: left;
  padding: 20px;
  max-width: 600px; /* Adjust maximum width for better readability on smaller screens */
  margin: auto; /* Center content within the container */
}

.library-introduction h2 {
  color: #333; /* Heading color */
  font-size: 36px; /* Heading font size */
  margin-bottom: 20px; /* Space below the heading */
}

.intro-content p {
  color: #666; /* Paragraph text color */
  font-size: 18px; /* Paragraph font size */
  margin-bottom: 20px; /* Space below paragraphs */
}

.explore-button {
  display: inline-block;
  background-color: #ff8c00; /* Button background color */
  color: #fff; /* Button text color */
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px; /* Button border radius */
  transition: background-color 0.3s ease; /* Smooth background color transition on hover */
}

.explore-button:hover {
  background-color: #333; /* Hover background color */
}

.intro-image {
  overflow: hidden;
  margin-top: 20px; /* Add space between text and image on small screens */
}

.intro-image img {
  width: 100%;
  border-radius: 10px; /* Image border radius */
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .introduction-container {
    flex-direction: column; /* Stack elements in a column on small screens */
    align-items: center; /* Center content on small screens */
    padding: 20px; /* Adjust padding for smaller screens */
  }

  .intro-content {
    max-width: 100%; /* Full width on small screens */
  }

  .explore-button {
    margin-top: 20px; /* Add space between paragraphs and button on small screens */
  }
}



/* Library Features Section */
#features {
  background-color: #fff; /* Background color for the features section */
  padding: 80px 0;
  text-align: center;
}

.features-container {
  display: flex;
  flex-wrap: wrap; /* Allow features to wrap to the next line on smaller screens */
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  flex: 1;
  padding: 1em;
  text-align: center;
  background-color: #fff;
  border: 1px solid #ddd;
  justify-content: space-between;
  margin: 0.5em;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Feature card box shadow */
  transition: transform 0.3s ease; /* Smooth scale transition on hover */
  width: 300px; /* Set a fixed width for better spacing on smaller screens */
  min-width: 200px; /* Set a minimum width to prevent excessive thinning */
  max-width: 100%; /* Allow items to take full width on small screens */
}

.feature:hover {
  transform: scale(1.05); /* Scale effect on hover */
}

.feature i {
  color: #ff8c00; /* Font Awesome icon color */
  font-size: 3em; /* Font size for Font Awesome icons */
  margin-bottom: 20px; /* Space below the icon */
  display: block; /* Ensure proper alignment of the icon */
}

.feature h3 {
  color: #333; /* Feature title color */
  font-size: 24px; /* Feature title font size */
  margin-bottom: 10px; /* Space below the title */
}

.feature p {
  color: #666; /* Feature description color */
  font-size: 16px; /* Feature description font size */
  line-height: 1.6; /* Line height for better readability */
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .feature {
    width: 100%; /* Full width on small screens */
  }
}



/* Library College Visits Section */
#collegeVisits {
  background-color: #f8f8f8; /* Background color for the college visits section */
  padding: 80px 0;
  text-align: center;
}

.college-visits-container {
  max-width: 75%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
}

.chart-container {
  position: relative;
  flex: 1;
  max-width: 100%; /* Adjust the max-width for responsiveness */
  margin-right: 20px; /* Adjust the margin for spacing between chart and text */
}

.text-container {
  flex: 1;
  max-width: 100%; /* Adjust the max-width for responsiveness */
  text-align: left;
}

#collegePieChart {
  max-width: 100%;
}

.college-visits-container h3 {
  color: #333; /* Section title color */
  font-size: 24px; /* Section title font size */
  margin-top: 20px;
}

.college-visits-container p {
  color: #666; /* Section description color */
  font-size: 16px; /* Section description font size */
  line-height: 1.6; /* Line height for better readability */
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .college-visits-container {
    align-items: center;
    flex-direction: column; /* Stack chart and text on top of each other on small screens */
  }

  .chart-container,
  .text-container {
    max-width: 100%; /* Full width on small screens */
    margin-right: 0; /* Remove margin for better spacing */
  }
}



/* Library Yearly Visitors Section */
#yearlyVisitors {
  background-color: #f8f8f8; /* Background color for the yearly visitors section */
  padding: 80px 0;
  text-align: center;
}

.yearly-visitors-container {
  position: relative;
  max-width: 75%;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 600px; /* Adjust the height as needed for better chart visualization on smaller screens */
}

#yearlyVisitorsChart {
  max-width: 600px; /* Adjust the max-width as needed */
  width: 100%;
  height: 100%; /* Use 100% height to fill the container */
}

.yearly-visitors-container h3 {
  color: #333; /* Section title color */
  font-size: 24px; /* Section title font size */
  margin-top: 20px;
}

.yearly-visitors-container p {
  color: #666; /* Section description color */
  font-size: 16px; /* Section description font size */
  line-height: 1.6; /* Line height for better readability */
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .yearly-visitors-container {
    flex-direction: column; /* Stack items vertically on smaller screens */
    align-items: flex-start; /* Align items to the start on smaller screens */
    height: auto; /* Auto height for better responsiveness */
  }

  #yearlyVisitorsChart {
    max-width: 100%; /* Allow chart to take full width on smaller screens */
    height: auto; /* Auto height for better responsiveness */
  }
}



/* Library Most Visited Facilities Section */
#mostVisitedFacilities {
  background-color: #f8f8f8; /* Background color for the most visited facilities section */
  padding: 80px 0;
  text-align: center;
}

.most-visited-facilities-container {
  position: relative;
  max-width: 75%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 600px;
}

#mostVisitedFacilitiesChart {
  max-width: 600px; /* Adjust the max-width as needed */
}

.most-visited-facilities-container h3 {
  color: #333; /* Section title color */
  font-size: 24px; /* Section title font size */
  margin-top: 20px;
}

.most-visited-facilities-container p {
  color: #666; /* Section description color */
  font-size: 16px; /* Section description font size */
  line-height: 1.6; /* Line height for better readability */
}

/* Library Contact Section */
.library-contact {
  background-color: #f8f8f8;
  padding: 80px 0;
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.contact-form {
  flex: 1;
  max-width: 400px;
  text-align: left;
}

.contact-form h2 {
  color: #333;
  font-size: 32px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #333;
  font-size: 18px;
  margin-bottom: 5px;
}

.form-group input, 
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-group label{
  font-weight: bold;
}

button {
  background-color: #4caf50;
  color: #fff;
  padding: 12px 35px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.register-options span a {
  background-color: #4caf50;
  color: #fff;
  padding: 12px 35px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.register-options a:hover {
  background-color: #45a049; /* Optional: A darker shade for hover effect */
}



button:hover {
  background-color: #45a049;
}

@media screen and (max-width: 768px) {
  .form-group {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .form-group input,
  .form-group select,
  .form-group option,
  .form-group textarea {
    width: auto;
  }
}

@media screen and (min-width: 375px) {
  .form-group {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px; /* Add spacing between elements */
  }

  .form-group input,
  .form-group select,
  .form-group option,
  .form-group textarea {
    width: 100%; /* Ensure inputs take full width */
    max-width: 100%; /* Prevent overflow */
    padding: 8px; /* Adjust padding for smaller screens */
    font-size: 14px; /* Adjust font size for readability */
  }

  .form-group label {
    font-size: 14px; /* Adjust label font size for smaller screens */
  }

  button {
    width: 100%; /* Full width button for mobile */
    padding: 10px; /* Ensure button is easy to tap */
    font-size: 16px; /* Make button text readable */
  }

  .contact-container {
    padding: 15px; /* Adjust padding for smaller containers */
    box-sizing: border-box; /* Ensure consistent box-sizing */
  }

  .contact-form h2 {
    font-size: 18px; /* Adjust heading size for small screens */
    text-align: center; /* Keep heading centered */
  }
}



/* Library Footer */
.library-footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
}

.library-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.library-footer .footer-section {
  flex: 1;
  max-width: 250px;
  margin-bottom: 30px;
}

.library-footer .footer-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.library-footer .footer-section p {
  font-size: 16px;
  margin-bottom: 10px;
}

.library-footer ul {
  list-style: none;
  padding: 0;
}

.library-footer ul li {
  margin-bottom: 10px;
}

.library-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.library-footer a:hover {
  color: #ffd700; /* Change to your preferred hover color */
}

.library-footer .social-icons {
  display: flex;
}

.library-footer .icon-link {
  margin-right: 10px;
  font-size: 24px;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .library-footer .footer-section {
    flex: 1 0 100%; /* Full width on smaller screens */
  }
  .library-footer .footer-container {
    justify-content: center; 
  }
}




