
/* General Body Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Header Styles */
header {
  background-color: #2260e6;
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Main Content Area */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure it doesn't exceed the viewport width */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Section Styling */
section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Prevent content from overflowing */
}

/* Hover Effect on Sections */
section:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Section Headings */
h2 {
  color: #2260e6;
  font-size: 1.8rem;
  margin-bottom: 15px;
  border-bottom: 3px solid #2260e6;
  padding-bottom: 5px;
}

/* Paragraph Styling */
p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Highlight Text */
.highlight {
  color: #2260e6;
  font-weight: bold;
}

/* Green Color for Comments */
.comment {
  color: green;
  font-weight: bold;
}

/* Box for displaying code examples */
.box {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #ddd;
  overflow-x: auto; /* Allow horizontal scrolling for code blocks */
}

/* Preformatted text for code */
pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  margin: 0;
  white-space: pre-wrap; /* Wrap long lines of code */
  word-wrap: break-word; /* Break long words if necessary */
}

/* Responsive Styles */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }

  h2 {
    font-size: 1.6rem;
  }

  section {
    padding: 20px;
  }

  .box {
    padding: 10px;
  }

  pre {
    font-size: 1rem; /* Slightly smaller font for code on small screens */
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.4rem; /* Smaller heading font for very small screens */
  }

  p {
    font-size: 1rem; /* Smaller paragraph font for very small screens */
  }

  .box {
    margin: 10px 0; /* Reduce margin for very small screens */
  }
}
