/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* set images to shrink and grow with their containers */
img {
  max-inline-size: 100%
}

/* set properties for attribution text under images and in credits etc */
.attribution {
  font-size: 50%;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Footer (template bg = #333) */
.header,
.footer {
  background: #38403a;
  color: white;
  padding: 1rem;
  text-align: center;
}

/* Set colors for the sidebars. Originally left was #f0f0f0 and right was #f9f9f9. */
.sidebar-left,
.sidebar-right {
  background: #617851;
}

/* Main Container - Holds the 3 middle columns */
.container {
  flex: 1; /* Pushes footer to bottom */
  display: flex;
  border: 1rem solid #1a1714;
}

/* Left Sidebar (Navigation) */
.sidebar-left {
  padding: 1rem;
  width: 200px; /* Fixed width for nav */
  flex-shrink: 0; /* Prevent shrinking */
}

/* Main Content. Original bg was #fff */
.main-content {
  background: #b3b282;
  padding: 1rem;
  border-left: 1rem solid #1a1714;
  border-right: 1rem solid #1a1714;
  flex: 1; /* Takes remaining space */
}

/* Right Sidebar */
.sidebar-right {
  padding: 1rem;
  width: 250px; /* Fixed width for sidebar */
  flex-shrink: 0;
}

/* Mobile Responsive - Stack everything vertically */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar-left,
  .sidebar-right {
    width: 100%;
  }
}
