/* Combined CSS for navigation, section styling, pleasant colors, and smooth scrolling */

/* Reset some default styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f7f7f7; /* Pleasant light gray background */
}

/* Style the navigation bar */
#navbar {
  background-color: #2e4057; /* Pleasant dark blue background */
  overflow: hidden;
}

#navbar header {
  padding: 20px;
  color: #ffffff; /* White text color */
  text-align: center;
}

.nav-link {
  float: left;
  display: block;
  color: #ffffff; /* White text color */
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.nav-link:hover {
  background-color: #ddd; /* Light gray background on hover */
  color: #333; /* Dark gray text color on hover */
}

/* Style the headings to make them catchy */
header {
  font-size: 24px;
  font-weight: bold;
  color: #2e4057; /* Pleasant dark blue text color */
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Add a decorative underline */
header::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #2e4057; /* Pleasant dark blue underline */
  margin-top: 5px;
}

/* Style the paragraphs within the sections */
.main-section p {
  font-size: 16px;
  color: #444444; /* Dark gray text color */
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Add a pleasant light gray background to sections */
.main-section {
  background-color: #f7f7f7;
  padding: 20px;
  margin: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Style the code blocks */
.main-section code {
  background-color: #eeeeee; /* Very light gray background */
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
  margin-top: 10px;
  color: #333; /* Dark gray text color */
}

/* Style the unordered lists */
.main-section ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #444444; /* Dark gray text color */
}

/* Style list items */
.main-section li {
  margin-bottom: 5px;
}

/* Three navigation bars (span elements) */
.span-bar {
  display: block;
  background-color: #2e4057; /* Pleasant dark blue color */
  height: 3px;
  width: 25px;
  margin: 5px auto;
  transition: 0.4s;
}

/* Animation for the "hamburger" menu */
.change .span-bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.change .span-bar:nth-child(2) {
  opacity: 0;
}

.change .span-bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* CSS for smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Smooth scrolling for anchor links */
a[href*="#"] {
  transition: 0.3s;
}

a[href*="#"]:hover {
  background-color: #ddd; /* Light gray background on hover */
  color: #333; /* Dark gray text color on hover */
}
