html {
    font-family: "Roboto", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

a {
    color: #00adb5;
}

h1 {
    font-family: "Montserrat", sans-serif;
}

header {
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    margin-top: 0em;
    height: 3em;
}

header p {
    font-family: "Montserrat", sans-serif;
    font-size: 16pt;
    font-weight: 750;
}

nav a {
    color: #eee;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: normal;
}

nav a:hover {
    color: #00adb5;
}

main {
    margin: 0 0 ;
    flex: 1;
}

.page-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem clamp(0px, 25rem, 20vw);
    align-items: flex-start;
}

.sidebar {
    width: %30;
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
}

.sidebar-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    display: block;
    margin: 0 auto 1.5rem;
    border: 3px solid #888888;
}

.social-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 0.8rem;
}

.social-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.2 ease;
}

.social-links a i {
    width: 24px;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

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


.main-content {
    flex: 1
}

.summary {
    font-size: 14pt;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 1.5rem;
    line-height: 2;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2.0rem;
}

.project-card {
    display: flex;
    gap: 2rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    align-items: center;
}

.project-card:hover {
    border-color: #00adb5;
}

.project-media {
    flex: 1;
    max-width: 40%;
}

.project-media img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.project-info {
    flex: 1.5;
}

.project-info h3 {
    margin-top: 0;
    color: #333333;
}

footer {
    background-color: #333333;
    color: #ffffff;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 1em;
}

@media (max-width: 1220px) {
    .sidebar-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem;
    }

    .sidebar p {
        text-align: center;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem;
        margin-bottom: 1.5rem;
        position: static;
    }
    
    .page-container {
        padding: 1rem;
        gap: 1.5rem;
        flex-direction: column;
    }

    .summary {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 450px) {
    header {
        height: auto;
        min-height: fit-content;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    header h1 {
        margin: 0;
        font-size: 1.5rem;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    nav a {
        margin: 0;
    }

    .project-card {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        max-width: 100%;
        gap: 1.5rem;
        box-sizing: border-box;
    }

    .project-info,
    .project-media {
        width: 100%;
        max-width: 100%;
    }
}

.pub-container {
    max-width: 850px;      /* Restricts the width so long citations are easy to read */
    margin: 40px auto;     /* Centers the container and adds space top/bottom */
    padding: 0 20px;       /* Keeps content from touching the edges on mobile screens */
}

.pub-container h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pub-container hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 30px;
}

.pub-container ol.bibliography li {
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #404040;
}

.pub-container .pub-links a {
    color: #0066cc !important;
    text-decoration: none !important;
    font-weight: 500;
    border-bottom: 1px dashed #0066cc !important;
    transition: all 0.15s ease-in-out;
}

.pub-container .pub-links a:hover {
    color: #004499 !important;
    border-bottom: 1px solid #004499 !important;
    background-color: #f0f6ff !important;
    border-radius: 4px;
}

.author-list strong {
    font-weight: 700 !important;
    color: #111111;
}
