/* Hide toggle buttons by default (desktop) */
.sidebar-toggle-left,
.sidebar-toggle-right {
  display: none !important;
}

/* Show toggle buttons on small screens */
@media(max-width:699px) {
  .sidebar-toggle-left,
  .sidebar-toggle-right {
    display: block !important;
  }
}

:root {
  --text: darkslategray;
  --line: darkseagreen;
  --accent: cadetblue;
}

h5 {
  float: right;
  padding: 10px;
}

body {
  background: #3f7343;
  color: white;
  font-family: sans-serif;
  font-size: 0.875em;
}

center {
  text-align: center;
}

/* --- Wrapper --- */
.wrapper {
  width: 1150px;
  background: #192c1a;
  margin: 0 auto;
  position: relative;
  margin-top: -10px;
  margin-bottom: -10px;
}

/* Header and footer images */
.header, .footer {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(rgb(0,0,0,0.1),rgb(0,0,0,0.1)), url("https://i.imgur.com/7wy1FGK.png");
  background-size: cover;
}

.footer {
  height: 50px;
}

/* Navigation links */
.links {
  padding: 5px 0;
}

.link {
  text-align: center;
  display: inline-block;
  list-style-type: none;
  font-weight: bold;
  font-size: 1.16em;
  padding: 5px 10px;
}

.link a {
  color: white;
  text-decoration: none;
}

nav a {
  margin: 10px 0;
  font-size: 1.5em;
  text-decoration: none;
  color: var(--fill);
  filter: drop-shadow(1px 1px 0 var(--text)) 
          drop-shadow(-1px 1px 0 var(--text)) 
          drop-shadow(0 -1px 0 var(--text)) 
          drop-shadow(1px 0 var(--text));
  padding: 20px;
}

nav a:hover, nav a:focus {
  color: var(--accent);
}

/* --- Flexbox layout for main + sidebars --- */
.wrapper-2 {
  display: flex;
  justify-content: center; /* center columns horizontally */
  align-items: flex-start; /* tops aligned */
  gap: 40px; /* space between sidebars and main */
  padding-left: 10px;  /* space around container */
  padding-right: 10px;
}

/* Sidebars */
.sidebar-left, .sidebar-right {
  width: 200px;
  position: relative;
}

/* Main content */
.main {
  flex: 1; /* take remaining space */
}

/* Box styling */
.box {
  padding: 5px 10px 0 10px;
  background: #e2dcc1;
  color: #12282f;
  border-top: 5px solid #187b9b;
  border-bottom: 5px solid #187b9b;
  margin: 10px 0 15px 0;
}

.box img {
  max-width: 100%;
  height: auto;
}

.inner {
  /* inner content wrapper */
}

/* Responsive adjustments */
@media(max-width:1180px) {
  .wrapper {
    width: calc(440px + 50vw);
  }
}

@media(max-width:910px) {
  .wrapper {
    width: calc(360px + 52vw);
  }
  .sidebar-left, .sidebar-right {
    width: 160px;
  }
}

@media(orientation:portrait) {
  .wrapper {
    width: 96vw;
    margin: 0 auto;
    padding:0;
    position: relative;
  }
  .wrapper-2 {
    width: 94vw;
    margin: 0 auto;
    padding:0;
    position: relative;
    display: block; /* stack vertically for mobile */
  }
  .sidebar-left, .main, .sidebar-right {
    width: 92vw;
    margin: 0.25rem 1vw;
  }
  .sidebar-left, .sidebar-right {
    font-size: 0.95em;
  }
}

/* Mobile slide-out sidebars */
@media(max-width: 699px) {
  #sidebar-left,
  #sidebar-right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    padding: 10px;
    overflow-y: auto;
    background: #e2dcc1;
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  /* Offscreen by default */
  #sidebar-left {
    left: 0;
    transform: translateX(-100%);
  }

  #sidebar-right {
    right: 0;
    transform: translateX(100%);
  }

  /* Open state */
  #sidebar-left.open,
  #sidebar-right.open {
    transform: translateX(0);
  }

  /* Toggle buttons */
  .sidebar-toggle-left,
  .sidebar-toggle-right {
    position: fixed;
    top: 10px;
    z-index: 1100;
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.2em;
    border-radius: 5px;
  }

  .sidebar-toggle-left {
    left: 10px;
  }

  .sidebar-toggle-right {
    right: 10px;
  }

  /* Optional: dim background when sidebar is open */
  body.sidebar-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 900;
  }
}

.logo-hint {
  display: inline-block;
  font-size: 0.8em;
  color: white;
  margin-left: 10px;
  vertical-align: middle;
  font-family: sans-serif;
}
