/* CSS Reset */
* {
    margin: 0;
    font-family: times;
    background-color: rgb(230, 230, 230);
}
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Ensures vertical alignment */
    align-items: center;
}
/* CSS for the header */
header {
    text-align: center;
}
h1 {
    
    margin: 10px;
    background-color: rgb(230, 230, 230);
}
h2 {
    font-size: 1.5em;
    padding: 3px 0;
    background-color: rgb(230, 230, 230)
}
body {
    font-size: 1.2em;
    background-color: rgb(230, 230, 230);
}
/* Basic styling for tabs */
.tab {
    overflow: hidden;
    background-color: rgb(230, 230, 230); /* Semi-transparent background color for the tabs */
}

.tab a {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 4px 6px;
    transition: 0.3s;
    font-size: 17px;
    text-decoration: none;
    color: black;
    display: inline-block;
}

.tab a:hover {
    background-color: #ddd;
}

.tab a.active {
    background-color: #ccc;
}
.foto-vitellinus {
    max-width: 90%; /* Ensures the image does not exceed its container's width */
    margin-top: 1%;
    margin-bottom: 1%;
    align-items: center;
    height: auto; /* Maintains aspect ratio */
}
/* Main content styling */
.container {
    padding: 10px;
    max-width: 1200px;
    margin: auto;
}
.CV {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    max-width: 100%;
    height: auto;
    margin: 10px;
}

.CV-text {
    margin: 10px;
    text-align: justify;
    max-width: 100%;
}

/* Responsive layout */
@media (min-width: 768px) {
    .CV {
        flex-direction: row;
        justify-content: center;
    }

    .profile-image {
        height: 500px;
        width: auto;
    }

    .CV-text {
        margin-left: 20px;
        width: 50%;
    }
}
.image-publications {
    height: 250px;
    width: auto%;
    margin: 10px;
}
.publications{
    margin: 0 5% 5% 5%;
    text-align: justify;
}

/* Outreach content styling */
.outreach {
    text-align: justify;
    margin: 0 5%;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.image-outreach {
    max-width: 100%;
    height: auto;
    margin: 10px;
}

/* Responsive layout for images */
@media (min-width: 768px) {
    .image-outreach {
        max-width: 45%; /* Adjust to fit two images per row */
    }
}

@media (max-width: 768px) {
    .image-outreach {
        max-width: 90%; /* Ensures images fit well on smaller screens */
    }
}

/* Gallery styling */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Adds space between gallery items */
}

.gallery-item {
    flex: 1 1 calc(50% - 20px); /* Two images per row with space between */
    margin: 10px;
}

.gallery {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
}

/* Responsive layout for gallery */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 100%; /* One image per row on small screens */
    }
}
.contact {
    margin-top: 10%;
    margin-bottom: 10%;
    text-align: center;
}
.contact-image{
    align-items: center;
    margin-top: 10%;
    margin-bottom: 10%;
    height: 300px;
    width: auto%;
}
.Contact-text {
    margin: 5% 15% 5% 5%;
    text-align: center;
}
/* Ensures "Louisiana State University" stays on a single line */
.single-line {
    white-space: nowrap;
}

footer {
    margin: 0;
    margin-top: 2%;
    text-align: center;
}
.references {
    margin: 10%;
    margin-top: 2%;
    text-align: justify;
}