/* Global styles for the entire page */
body {
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

/* Styling for all sections */
section {
    font-size: 1.2em;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

/* Style for all headings */
h2 {
    font-size: 2.5em;
    color: black;
}

/* Style for paragraphs */
p {
    font-size: 1.2em;
    line-height: 1.5;
}

/* Styling links inside figures in the project section */
.project-logo figure a {
    text-decoration: underline;
    color: darkgreen;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* Styling captions inside figures in the project section */
.project-logo figure figcaption {
    font-size: 1.2em;
    color: gray;
}

/* Style for all links */
a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: darkblue;
}

/* Styling for navigation bar */
nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5em;
}

/* Specific styling for the container with the profile picture */
.intro-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    padding: 20px;
    font-size: 1.2em;
}

.intro-container figure {
    margin-right: 20px; /* Space between the photo and text */
}

/* Styling for all figures and images */
figure {
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

/* Dimensions for the profile picture */
.headshot {
    max-width: 300px;
    height: auto;
}

/* Styles for project section */
.project-logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.project-logo figure {
    margin: 0;
    text-align: left;
}

/* Fixed dimensions for project images */
.project-logo img {
    width: 150px;
    height: 80px;
    border: 2px solid black;
    border-radius: 4px;
}

/* Change link color */
.highlight_e {
    background-color: yellow;
}

/* Button color */
.highlight {
    background-color: yellow;
    border: 2px solid red;
    transition: background-color 0.5s ease;
}

/* Pop-up styling */
#popup-window {
    display: none;
    position: fixed;
    top: 20%;
    left: 30%;
    width: 40%;
    background-color: white;
    border: 2px solid black;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

#close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
}

/* Styling for footer */
footer {
    background-color: #f5f5f5;
    border-top: 1px solid #ccc;
    padding: 20px;
    text-align: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .intro-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .headshot {
        width: 100%;
        height: auto;
    }
    #popup-window {
        width: 80%;
        left: 10%;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2em;
    }
    p {
        font-size: 1.2em;
    }
    .project-logo img {
        width: 100px;
        height: 60px;
    }
}