@font-face {
  font-family: 'BerlinSansFB';
  src: url('/fonts/BerlinSansFB-Reg.woff2') format('woff2'),
       url('/fonts/BerlinSansFB-Reg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BerlinSansFB';
  src: url('/fonts/BerlinSansFBDemi-Bold.woff2') format('woff2'),
       url('/fonts/BerlinSansFBDemi-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'BerlinSansFB', sans-serif;
  background-color: rgb(63, 63, 63);
  color: white;
  overflow-y: auto;
  box-sizing: border-box;
}

.container {
  display: flex;
  min-height: 100vh;
  box-sizing: border-box;
}

.sidebar {
  width: 220px;
  background-color: rgb(63, 63, 63);
  padding: 20px 0;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1000;
  border-right: 3px solid rgb(213, 113, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  max-width: 150px;
  margin-bottom: 30px;
  cursor: pointer;
  border: 3px solid rgb(213, 113, 0);
  border-radius: 8px;
  display: block;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar ul li {
  margin: 10px 0;
  text-align: center;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  font-weight: normal;
  font-size: 1.1em;
  padding: 10px 15px;
  display: block;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: background-color 0.3s, border-color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: rgb(213, 113, 0);
  border-color: black;
  color: black;
  font-weight: bold;
}

.main-content {
  margin-left: 230px;
  padding: 30px;
  box-sizing: border-box;
  flex-grow: 1;
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 40px;
  outline: none;
  color: white;
  font-family: 'BerlinSansFB', sans-serif !important;
}
.main-content:focus {
  outline: 3px solid rgb(213, 113, 0);
  outline-offset: 4px;
}

/* Homepage top image */
.top-image-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 30px;
}

.top-image {
  max-width: 100%;
  height: auto;
  border: 3px solid rgb(122, 155, 71);
  border-radius: 8px;
  object-fit: contain; /* Ensures image fits nicely */
}

/* Homepage welcome container */
.welcome-container {
  max-width: 800px;
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
  border: 3px solid rgb(122, 155, 71);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 20px auto 40px auto;
  text-align: center;
  line-height: 1.6;
  font-family: 'BerlinSansFB', sans-serif;
  color: white; /* Make sure text is visible */
}

.welcome-container h1 {
  font-size: 2em;
  color: rgb(213, 113, 0);
  margin-bottom: 10px;
  font-weight: bold;
}

.tagline {
  font-size: 1.3em;
  font-style: italic;
  margin-bottom: 30px;
  color: rgb(122, 155, 71);
}

/* Contact page specific */
.portrait {
  border: 3px solid rgb(213, 113, 0);
  border-radius: 8px;
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contact-container {
  max-width: 800px;
  width: 100%;
  padding: 25px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.6;
  color: white;
}

.contact-container h1 {
  color: rgb(213, 113, 0);
  margin-bottom: 20px;
}

.contact-container a {
  color: rgb(213, 113, 0);
  text-decoration: underline;
}

.contact-container p {
  font-size: 1.1em;
}

/* Footer */
footer {
 margin-left: 230px;
 max-width: 900px;
 padding: 0 30px;
 box-sizing: border-box;
 text-align: center;
 color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Sidebar becomes horizontal */
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 3px solid rgb(213, 113, 0);
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    justify-content: center;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .sidebar ul li {
    margin: 5px 15px;
  }

  /* Main content full width below sidebar */
  .main-content {
    margin-left: 0;
    margin-top: 20px;
    padding: 15px;
    max-width: 100%;
  }

  /* Logo styling */
  .logo {
    margin: 0 auto 10px auto;
    max-width: 120px;
  }

  /* Footer full width */
  footer {
    margin-left: 0;
    width: 100%;
  }
}
