body {
    background-color: #f5f2ea;
    margin-left: auto;
    margin-right: auto;
}
#header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background-color: #7B9C6B;
    border-bottom: 4px solid #5d8e58;
    padding: 1rem 0 0.75rem;
    width: 100%;
}
#header img {
    height: 120px;
    width: auto;
    margin-left: 10px;
}
#header ul li {
    list-style: none;
    display:inline;
    gap: 2rem;
    margin-top: auto;
    margin-right: 15px;
    font-size: 1.25rem;
}
#header ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}
#left{
    color: #fff;
    text-align: left;
    width: 20%;
    height: 100vh;
    float: left;
    border-right: 4px solid #524941;
    background-color: #524941d0;
}
.bean-list{
    color: #fff;
    list-style: none;
}
#main{
    width: 59%;
    float: left;
    text-align: center;
}
#right{
    width: 20%;
    height: 100vh;
    float: right;
    background-color: #cef7b6;
    border-left: 4px solid #524941;
    padding-left: 5px;
}
#footer{
    clear: both;
    color: #fff;
    text-align: center;
    border-top: 4px solid #5d8e58;
    background-color: #7B9C6B;
    padding: 1rem 0 0.75rem;
}
@media only screen and (max-width: 1024px) {

  /* Slightly reduce sidebars and center content */
  #left, #right {
    width: 25%;
  }

  #main {
    width: 49%;
  }

  /* Adjust text and padding for comfort */
  body {
    font-size: 1rem;
  }

  #header img {
    max-width: 180px;
  }

  #header ul {
    gap: 1.2rem;
  }
}

/* ========== Mobile View (Small Screens, ~700px and below) ========== */
@media only screen and (max-width: 700px) {

  /* Stack all content sections vertically */
  #left, #main, #right {
    width: 100%;
    float: none;
    padding: 1rem;
    text-align: center;
  }

  /* Header now vertical, centered */
  #header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #header img {
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
  }

  /* Menu switches to vertical list */
  #header ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
  }

  #header ul li {
    display: block;
  }

  /* Footer centers and gets breathing room */
  #footer {
    text-align: center;
    padding: 1rem 0.5rem;
  }
}