/* Apply box-sizing to all elements */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Style the header */
header {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
}

/* Style the navigation bar */
nav {
  background-color: #333;
  overflow: hidden;
}

/* Style the nav links */
nav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* Change color on hover */
nav a:hover {
  background-color: #ddd;
  color: black;
}

/* Layout: Main content area */
main {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}

/* Left and right sidebar */
aside {
  flex: 1;
  min-width: 250px; /* Prevents collapsing on small screens */
  padding: 10px;
}

/* Middle content section */
section.content {
  flex: 2;
  padding: 10px;
}

/* Responsive layout: Stack columns on smaller screens */
@media screen and (max-width: 600px) {
  main {
    flex-direction: column;
  }
  aside, section.content {
    width: 100%;
  }
}

/* Style the footer */
footer {
  background-color: #f1f1f1;
  padding: 10px;
  text-align: center;
}
