body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-image: url("index-bg.jpeg");
    background-size: cover;
    background-attachment: fixed;
    background-position: left bottom;
    background-color:rgba(255,255,255,0.75);
    background-blend-mode:lighten;
    color: #333333;
}

header {
    background-color: #D8E9FF;
    padding: 20px;
    position: fixed; /* Fixes the header at the top */
    top: 0;
    width: 100%; /* Ensures the header spans the full width */
    z-index: 1000; /* Keeps the header on top of other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px; /* Optional: limits the width of the header content */
    margin: 0 auto; /* Centers the header content */
}

h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: normal;
    font-family: monospace;
}

h1 a {
    color: inherit;
    text-decoration: none
}

.language {
    font-size: 14px;
}

.language a {
    text-decoration: none;
    color: #333;
    margin: 0 5px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 110px auto 5px auto;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: Medium;
    background-color: #2950CA;
    color: #F6F8FF;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 3px 3px 5px #888888;
}

/* Retaining previous styles */



/* Sidebar with fixed position */
.sidebar {
    position: fixed;
    top: 200px; /* Adjust this value based on your header height */
    left: 4%;
    width: 170px;
    padding: 15px;
    background-color: #F3F7FF;
    border-right: 1px solid #ccc;
    box-shadow: 3px 3px 5px #888888;
    z-index: 1000;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1100px) {
.sidebar { display: none;  }
}




/* Works section*/
.works-section {
    width: 50%;
    min-width: 600px;
    margin: 0 auto;
    margin-top: 70px; /* Offset for the fixed header */
}

.work-type h2 {
    align-items: center;
    font-size: 24px;
    font-style: bold;
    margin-bottom: 20px;
    padding-top: 90px;
    margin-top: -60px;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 3px 3px 5px #888888;
    background-color: white;
    position: relative; /* Enable z-index to work */
    z-index: 10; /* Brings the work-item to the front */
}


.work-item:nth-child(even) {
    background-color: #f9f9f9;
}

.score-image {
    flex: 1;
    max-width: 200px;
    margin-right: 20px;
}


.score-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 3px 3px 5px #888888;
}

.score-image:hover {
    border-radius: 8px;
    box-shadow: 5px 5px 40px -20px #555; /* Add a stronger shadow on hover */
}

.work-details {
    flex: 2;
    text-align: left;
}

.work-details h3 {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 10px;
    font-weight: normal;
}

.work-details p {
    margin: 5px 0;
    font-size: 16px;
    line-height: 150%;
}

.work-details ul {
    margin-top: 0;
    margin-bottom: 0;
}

.work-details ul li {
    margin: 5px 0;
    font-size: 16px;
    line-height: 150%;
}

.work-details a {
    color: #b2781a;
    text-decoration: none;
    font-weight: bold;
}



/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sits above other content */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black background with opacity */
    opacity: 0; /* Initial opacity */
    transition: opacity 0.5s ease-in-out; /* Transition for fade effect */
}

.modal.show { /* When modal is shown, change opacity */
    display: block;
    opacity: 1; /* Fade-in to full visibility */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px #000;
    transition: transform 0.3s ease-in-out;
}

.modal-content:hover {
    transform: scale(1.25); /* Zoom effect on hover */
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #bbb;
}

#caption {
    margin: 15px auto;
    text-align: center;
    color: #fff;
    font-size: 18px;
}


/* Responsive Design */
@media only screen and (max-width: 600px) {
    /* Stack header elements vertically */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    /* Stack nav links vertically on smaller screens */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 120px;
        padding: 0 20px;
    }

    nav ul li {
        margin: 10px 20px;
    }

    nav ul li a {
        padding: 10px 15px;
        width: 100%;
        text-align: left;
    }

    /* Remove the sidebar on small screens */
    .sidebar {
        display: none;
    }

    /* Adjust works section width to 100% on smaller screens */
    .works-section {
        width: 95%;
        min-width: 95%;
        margin-left: 0;
        padding: 0 20px;
    }

    /* Stack score image and details vertically for smaller screens */
    .work-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .score-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .work-details {
        text-align: center;
    }
}



