body {
    font-family: Arial, sans-serif;
    height: 20vh;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #fff;
    padding: 10px 0% 0%;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.site-footer {
    width: 100%;
    box-sizing: border-box;
    font-size: smaller;
    color:  #fff;
    padding: 20px;
    background-color: #2b2828;
    border-top: 1px solid #ccc;
}
.container {
    max-width: 800px;
    margin: auto;
}

.profile-picture {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 1px 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
}

main {
    padding: 10px 10px 5px 10px;
    width: 100%;
    max-width: 800px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.site-footer {
    text-align: center;
    padding: 20px;
    background-color: #3c3c3c;
    border-top: 1px solid #ccc;
    margin-top: 20px;
}

.site-nav a.active {    /* This is the code that changes the color of the active page, yeah!  */
    font-weight: bold;
    color: #FFFFFF; 
    text-decoration: underline;
    background-color: #134074;
    padding: 10px 22px;
    border-radius: 5px;
    margin-bottom: -3px;
}

@media (max-width: 768px) { /* Menu adjustment for mobiles. */
    .site-nav a.active {
        font-weight: bold;
        color: #FFFFFF; 
        text-decoration: underline;
        background-color: #134074;
        padding: 3px 19px;
        border-radius: 7px;
        margin-top: 10px;
        margin-right: 0;
        margin-bottom: 5px;
        margin-left: 0;
    }
    nav ul li {
        margin: 3px 3px;
        padding: 15px 2px 15px 2px;
    }
}

    
.social-links a {
    margin: 0 10px;
    color: #D3D3D3;
    text-decoration: none;
}

.social-links a:hover {
    color: #F0F7FF;
}

.footer-disclaimer {
    font-family: Arial, sans-serif;
    font-size: smaller;
    color: #D3D3D3;
}

section {
    padding: 0px 0px 0px 0px;
    width: 100%;
}

.research-section {

    padding: 5px 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    margin-left: 15px; 
}

.section-title {
    font-size: 1.5em;
    color: #333; /* Accent color */
    font-weight: bold;
    margin-bottom: 15px;
    text-align: left; /*  title to the left */
}

.research-list {
    list-style: none; /* No bullets */
    padding: 0;
    margin: 0;
}

.research-list li {
    margin-bottom: 10px; /* Add spacing between items */
}

.research-list a {
    color: #134074; /* Link color */
    font-size: 1.1em;
    text-decoration: none; /* Remove underline */
    border-bottom: 2px solid transparent; /* Subtle hover effect base */
    transition: all 0.3s ease; /* Smooth transitions */
}

.research-list a:hover {
    border-bottom: 2px solid #134074; /* Underline on hover */
    color: #0b2545; /* Slightly darker hover color */
}

.mlcardcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
width: 200px;
height: 110px;
margin: 10px;
border: 1px solid #ccc;
border-radius: 5px;
overflow: hidden;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out;
background: linear-gradient(to bottom, #FFFFFF, #EEEEEE);
}

.card a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent */
    display: block; /* Make the entire card clickable */
}

.card:hover {
transform: scale(1.06);
}

.card img {
width: 100%;
height: 30px;
object-fit: scale-down;
margin-top: 6px;
}

.card-content {
padding: 10px;
}

.card-title {
font-weight: bold;
margin-bottom: 3px;
}

.card-description {
font-size: 10px;
}

.projects-container {
    display: flex;
    justify-content: space-around; /* Distribute cards evenly */
}

.project-card {
    width: 23%; /* Each card takes up 30% of the container width */
    margin-right: 10px;
    margin: 5px;
    border: 2.5px solid #ccc;
    padding: 0px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s ease-in-out;
    background: linear-gradient(to bottom, #FFFFFF, #EEEEEE);
    cursor: pointer;
    display: flex; /* Use flexbox for image and text positioning */
    flex-direction: row;
    align-items: flex-start; 
}

.image-container {
    width: 225px; /* Set fixed height for image container */
}

.project-card img {
width: 30%; /* Image takes full card width */
margin-right: 10px; /* Add spacing below image */
}

.text-content {
    flex: 1; /* Allow text content to take up remaining space */
}

.project-card h3 {
margin-top: 15px;
margin: 2; /* Remove default margin for the title */
text-align: left; /* Center the title */
}

.project-details {
margin-top: 2px; /* Add spacing above details */
font-size: 0.7em;
}

.project-details a {
display: block; /* Make link a block element */
text-align: center; /* Center the link */
}

@media (max-width: 768px) { /* Adjust the breakpoint as needed */
    .projects-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center cards horizontally */
    }

    .project-card {
        width: 90%; /* Make cards take up full width on mobile */
        height: 150px;
        margin: 10px 0; /* Add margin between stacked cards */
        flex-direction: row; /* Reset flex direction for image and text */
        align-items: flex-start; /* Align items to the start of the container */
    }

    .image-container {
        width: 100%; /* Image takes full width on mobile */
        margin-bottom: 10px; /* Add spacing below image */
    }

    .project-card img {
        width: 30%; /* Image takes this width */
        margin-right: 0; /* Remove right margin for stacked cards */
    }
    .project-card h3 {
        margin-top: 15px;
        margin: 15; /* Remove default margin for the title */
        text-align: left; /* Center the title */
        }
            .project-details {
        margin-top: 2px; /* Add spacing above details */
        margin: 5 20;
        font-size: 0.7em;        
        }
    p {
        text-align: left;
    }    
}