body {
    display: flex;
    font-family: Arial, sans-serif;
}

#menu {
    width: 225px;
    padding: 20px;
}

h1 {
    font-size: 40px;
    line-height: 1.2;
}

#works-btn {
    cursor: pointer;
    color: #0000EE;
    text-decoration: underline;
}
#works-list {
    display: none; /* Hidden by default */
    position: absolute;
    left: 145px; /* Moves it to the right of the menu */
    top: 100px; /* Aligns it properly */
    background-color: white;
    border: 1px solid black;
    padding: 25px;
    width: 170px;
}

#works-list a {
    display: block;
    margin-bottom: 5px;
    color: #0000EE;
    text-decoration: underline;
}

#works-list a.clicked {
    color: #551A8B !important;
}


#works-btn.clicked {
    color: #551A8B; /* Changes to purple when clicked */
}

#menu .clicked {
    color: #551A8B !important;
}

#content {
    flex-grow: 1;
    padding: 20px;
    background: #fff;
}

.work-content {
    display: none;
}

#header-title {
    font-size: 32px; /* Keep original size */
    font-weight: bold;
    color: black; 
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 20px; /* Adjust space below header */
}

#header-title {
    color: black; /* Change header text color to black */
}

.work-box {
    position: absolute; /* or fixed if you want it to stay in place while scrolling */
    top: 100px;  /* Move it down */
    left: 400px; /* Move it right */
    border: 1px solid black;
    padding: 25px;
    background-color: white;
    width: 600px; /* Adjust width */
    margin-bottom: 150px;
}

.work-image {
    width: 100%; /* Makes the image fill the box */
    max-width: 600px; /* Limits the size */
    display: block; /* Centers properly */
    margin: 0 auto 20px; /* Adds space below */
}

#research-btn {
    cursor: pointer;
    color: #0000EE;
    text-decoration: underline;
}

#research-list {
    display: none; /* Hidden by default */
    position: absolute;
    left: 145px; /* Moves it to the right of the menu */
    top: 100px; /* Aligns it properly */
    background-color: white;
    border: 1px solid black;
    padding: 25px;
    width: 125px;
}

#research-list a {
    display: block;
    margin-bottom: 5px;
    color: #0000EE;
    text-decoration: underline;
}

#research-list a.clicked {
    color: #551A8B !important;
}

.research-content {
    display: none;
    position: absolute;
    top: 100px;
    left: 400px;
    border: 1px solid black;
    padding: 25px;
    background-color: white;
    width: 600px;
    margin-bottom: 150px;
    z-index: 5; /* Set default z-index */
}

/* Add these new styles to ensure proper stacking */
#about-section, #contact-section {
    z-index: 5; /* Match z-index of other content */
}
