/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 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;
}

/* Section Styling */
section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 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;
  color: #333;
}

/* Highlight Text */
.highlight {
  color: #2260e6;
  font-weight: bold;
}

/* Box for displaying code examples */
.box {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #ddd;
  position: relative;
  overflow: auto; /* Ensure content doesn't overflow */
}

pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  margin: 0;
  white-space: pre-wrap; /* Ensure code wraps on small screens */
  word-wrap: break-word; /* Break long words to prevent overflow */
}

/* Copy Button Styles */
.copy-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #2260e6;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}

.copy-btn:hover {
  background-color: #45a049;
}

/* Responsive Styles */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }

  header h1 {
    font-size: 2rem;
  }

  section {
    padding: 20px;
  }

  h2 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1rem;
  }

  pre {
    font-size: 0.9rem; /* Adjust code font size for smaller screens */
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.9rem;
  }

  pre {
    font-size: 0.8rem; /* Further adjust code font size for very small screens */
  }

  .box {
    padding: 10px; /* Reduce padding for smaller screens */
  }
}