body {
  background-color: #e8ebed;
  color: black;
  font-family: serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: auto; 
}

/* Updated scroll-box to handle side-by-side columns */
.scroll-box {
    width: 80%; /* Increased from 66% to give columns breathing room */
    height: 500px; /* Set a fixed height */
    background-color: white; /* Light gray background */
    border: 1px solid #ccc; /* Optional: adds a subtle border */
    margin: 30px auto; /* Centers horizontally with spacing top and bottom */
    padding: 40px; /* Reduced from 75px so sidebar + main content can fit */
    overflow-y: auto; /* Forces a vertical scrollbar if content exceeds 500px */
    box-sizing: border-box; /* Ensures padding doesn't break your width */

    /* Flexbox settings for side-by-side layout */
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Style for the new side box */
.side-box {
    flex: 1;                        /* Scales proportionally */
    min-width: 200px;               /* Keeps it from shrinking too much */
    height: 300px;                  /* NEW: Set height of side box to 300px */
    overflow-y: auto;               /* NEW: Allows scroll inside the sidebar if content is long */
    background-color: #a8b0ba;      /* Light grey background */
    color: #333333;                 /* Text color */
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Style for the main welcome content */
.main-content {
    flex: 2;                        /* Takes up more space than the side-box */
    box-sizing: border-box;
}

/* Responsive layout for smaller mobile screens */
@media (max-width: 768px) {
    .scroll-box {
        flex-direction: column;     /* Stacks side-box on top of main-content */
        height: auto;               /* Allows container to expand past 500px on mobile */
        padding: 20px;
    }
    .side-box {
        width: 100%;
        min-width: 0;
    }
}
