/* General styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
    padding: 0;
    background-color: #222;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: top;
  background: #222;
  color: #fff;
  padding-top: 20px;
  padding-bottom: 30px;
  min-height: 100vh;
  width: auto;
  position: fixed;
  left: 0;
  top: 0;
}

header h1, header h2 {
  text-align: center;
  margin-bottom: 20px;
}

header a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  display: block;
  padding: 10px 20px;
}

header a:hover, header a.current {
  color: #e8491d;
  font-weight: bold;
  background-color: #444;
}

/* Navigation */
nav {
  padding-top: .1rem;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav a {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #ccc;
  box-sizing: border-box;
}

nav a:hover {
  background-color: #555;
  color: #fff;
}

/* Main content */
main {
  padding: 20px;
  box-sizing: border-box;
  max-width: calc(100% - 270px); /* Set max-width for the main content based on the header width */
  margin-left: 200px; /* Margin left equal to header width */
  margin-right: 200px; /* Margin right equal to the padding value */
  background-color: #2d2d2d; /* Slightly lighter shade of grey for main content background */
}

/* Contact page */
main.main-content.contact a {
  color: #fff;
}

main.main-content.contact a:hover {
  color: #ccc;
}

/* Footer */
footer {
  padding: 20px;
  background: #222;
  color: #ccc;
  text-align: center;
}

/* Top-left container */
.top-left {
  position: fixed;
  top: 0;
  left: 0;
  padding: 1rem;
  z-index: 10;
  background-color: #333;
  width: calc(100% - 200px);
}

.links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.links a {
  color: #ccc;
  text-decoration: none;
}

.links a:hover {
  color: #fff;
}

/* Mobile optimization */
@media screen and (max-width: 767px) {
  nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: static;
  }
}
