/* @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

body {
    font-family: "Figtree", sans-serif;
    /* font-family: 'Lato', sans-serif; */
    margin: 0;
    padding: 0;
    background-image: url('background.jpg'); /* Background image URL */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent background from repeating */
    background-size: cover;
    background-attachment: fixed;
}

.spacer {
    height: 20px; /* Space above the container */
}

.container {
    width: 85%; /* Adjust the width as needed */
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 1); /*  white background */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

#footer {
    background-color: rgba(255, 230, 166, 0.749); 
    display: flex;
}

.left {
    align-self: center;
    text-align: left; 
    width:49%; 
    display: inline-block;
}

.right {
    align-self: center;
    text-align: right; 
    width:50%; 
    display: inline-block;
}

.flexheader {
    display: flex; /* Use flexbox to arrange items */
    /* justify-content: center; */
    align-items: top;
    flex-grow: 1; /* Allow content to grow and take available space */
}

.headshot {
    display: block;
    max-width: 200px; /* Reduce the size of the headshot */
    height: auto;
    order: -1; /* Move the headshot to the beginning of the flex container */
    margin-right: 30px; /* Add spacing between headshot and content */
    border-radius: 5px;
}

.infoline {
    margin: 0;
    margin-bottom: 10pt;
}

.blurb {
    margin: 0;
}

h1 {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    color: rgb(55, 54, 104);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 20pt;
    margin-bottom: 10pt;
    color: rgb(55, 54, 104);
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 10pt;
}

b {
    color: rgb(55, 54, 104);
    font-weight: 600;
}

.indented {
    margin-top: 0;
    margin-left: 20px;
}

a {
    color: rgb(108, 104, 236);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.resource {
    text-decoration: none;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: white;
    background-color: rgb(151, 149, 199);
}

.resource:hover {
    text-decoration: none;
    background-color: rgb(108, 104, 236);
}

li:not(:last-child) {
    line-height: 1.5;
    margin-bottom: 5px;
}

.pub {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
}

.pub-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-top: 3px;
    user-select: none;
}

.toggle-btn::before {
    content: '▶';
    display: inline-block;
    transition: transform 0.2s ease;
}

.toggle-btn.open::before {
    transform: rotate(90deg);
}

.toggle-all-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    user-select: none;
}

.pub-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.pub-authors {
    color: #555;
    margin-top: 0.2rem;
}

.pub-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.5;
    cursor: default;
}

.pub-description.open {
    max-height: fit-content;
    margin-top: 10pt;
    margin-bottom: 5pt;
    margin-left: 1.6rem;
    margin-right: 0.8rem;
}

.tagline {
    font-style: italic;
    color: rgb(71, 71, 91);;
    background-color: rgb(226, 226, 249);
    padding: 8px 15px;
    /* color: rgb(134, 134, 181); */
}

span.tagline {
    padding: 3px 5px;
}

.tagline a {
    color: rgb(72, 68, 197);
}

.footnote {
    font-size: .8rem;
}

.vspace {
    height: 10pt;
}

.nowrap {
    white-space: nowrap
}

.sqrt {
    white-space: no-wrap;
    border-top: 1px solid;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .flexheader {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center;
    }
    .headshot {
        margin: 0; /* Remove margin between headshot and content on mobile */
        order: 0; /* Reset the order for mobile layout */
        border-radius: 50%;
    }
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 30px;
        text-align: center;
        margin: 10pt 0;
    }
    .infoline {
        text-align: center;
    }
    .spacer {
        height: 10px; /* Space above the container */
    }
    .pub-description {
        margin-left: 0;
    }
}

#redirect-message {
    position: fixed;
    top: -100px; /* Start off-screen */
    left: 0;
    right: 0;
    background-color: #ffcc00;
    color: #000;
    text-align: center;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: top 0.5s ease-in-out;
    font-size: 16px;
    word-wrap: break-word;
}

#redirect-message a {
    color: #000;
    text-decoration: underline;
}