/* ------- Top Navigation Bar ------- */

.top-row-spacing {
    color: rgba(64, 64, 64, 0.3);
    display: flex;
    margin-right: 0;
    background-color: #F7F7F7;
    top: 0;
    z-index: 10;
    height: 4%;
    padding-top: .75%;
    padding-bottom: .75%;
    font-family: Monaco, Menlo, Consolas, monospace;
    position: sticky;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.left-top-row {
    display: flex;
    flex: 1.25;
    justify-content: center;
    align-items: center;
    font-family: Monaco, Menlo, Consolas, monospace;
    font-weight: bold;
}

.right-top-row {
    color: rgba(64, 64, 64, 0.3);
    overflow-x: auto;
    flex: 5;
    gap: 8%;
    margin-right: 1.5%;
    margin-left: 1.5%;
    display: flex;
    justify-content: left;
    align-items: flex-start;
    font-family: Monaco, Menlo, Consolas, monospace;
    padding-left: 3%;
}

/* ------- Main Body Content ------- */

.page-grid {
    display: flex;
    align-items: stretch; 
}

@media (max-width: 600px) {
  .page-grid {
    display: flex;
    flex-direction: column;  
  }
}

.left-column {
    display: flex;
    flex-direction: column;
    flex: 1.25;
    overflow: visible;
    min-height: 0;
}

@media (max-width: 600px) {
  .left-column {
    flex: none; 
    flex-direction: row;
    margin: 2%;
    padding: 2%;
  }
}

.right-column {
    display: flex;
    flex-direction: column;
    flex: 5;
    margin-right: 3%;
    margin-left: 3%;
}

@media (max-width: 600px) {
  .right-column {
    margin-right: 1%;
    margin-left: 1%;
    flex-direction: column;
    display: flex;
  }
}

.logo-section-sticky {
    position: sticky;
    border-radius: 10px;
    margin-top: 10px;
    margin-right: 10px;
    flex-direction: column;
    display: flex;
    top: 54px;
    z-index: 5;
    justify-content: center;
    align-items: center;
    padding-top: 0;
}

@media (max-width: 600px) {
  .logo-section-sticky {
    position: static;
    flex-direction: row;
    display: flex;
    justify-content: left;
    align-items: left;
    padding-top: 0;
    border-radius: 0;
    background-color: white;
    border-radius: 8px;
  }
}

.logo-image {
    width: 100%;
    height: auto;
    align-items: center;
}

@media (max-width: 600px) {
  .logo-image {
    width: 45%;   /* shrink on phones */
    max-width: 300px;
    align-items: left;
    text-align: left;
    margin: 0;
  }
}

.logo-writing {
    padding-top: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: auto;
    display: flex;
    max-width: 250px;
}

@media (max-width: 600px) {
  .logo-writing {
    display: flex;
    flex-direction: row;
    padding: 10px;
    align-items: center;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    flex-wrap: wrap;
  }
}

.sticky-links {
    flex-direction: row;
    padding-top: 15px;
    align-items: center;
    padding: 10%;
    height: auto;
    display: flex;
    transition: transform 0.2s ease;
    display: inline-block; 
    border:rgba(64, 64, 64, 0.9);
}

@media (max-width: 600px) {
  .sticky-links {
    flex-direction: row;
    padding-top: 0;
    align-items: center;
    padding: 0;
    height: auto;
    display: flex;
    transition: transform 0.2s ease;
    display: inline-block; 
    border:rgba(64, 64, 64, 0.9);
  }
}

.mini-logo{
    min-width: 25px;
    width: 15%;
    height: auto;
    flex-direction:  row;
}

@media (max-width: 600px) {
  .mini-logo{
    width: 20px;
    margin-right: 3%;
    flex-direction: row;
  }
}

.image-home {
    height: auto;
    width: 98%;
    flex: 5;
    border-radius: 4px;
    margin: 1.5%;
}

.about-home {
    flex: 5;  
    margin: 1.5%;
    padding: 1%;
    height: 200px;
    margin-right: 10px;  
    margin-bottom: 10px;  
}

.bottom-contact-container {
    height: 100%;
    margin: 3%;
    border-radius: 4px;
    z-index: -1;
}

@media (max-width: 600px) {
  .bottom-contact-container {
    margin: 1%;
    padding: 1%;
    align-items: left;
    text-align: left;
    background-color: #f9f9f9;
  }
}

/* ------- Projects Page ------- */

.project-container-1 {
    height: auto;
    flex: 5;
    margin: 1.5%;
}

@media (max-width: 600px) {
  .project-container-1 {
    height: auto;
  }
}

.italic-title {
    font-style: italic;
}

/* ------- Publications Page ------- */

.paper-container {
    height: auto;
    flex: 5;
    margin: 1.5%;
    gap: 1em;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.paper-links {
    display: flex;
    flex-direction: column;
}

.poster-title {
    height: auto;
    flex: 5;
    margin: 1.5%;
    gap: 1em;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}


.publications-container-1 {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.publications-container-grid {
    display: grid;
    grid-template-columns: 250px 1fr; 
    gap: 1rem 2rem; 
    align-items: start;
    margin: 1.5%;
}

@media (max-width: 600px) {
  .publications-container-1 {
    height: auto;
    width: 100%;
    flex: 5;
    margin: 3%;
    padding-right: 5px;
    gap: 1em;
    display: flex;
    align-items: flex-start;
  }
}

.poster {
  max-width: 320px;           
  margin: 1rem auto;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.poster-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.poster-pdf {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background-color: #2b6cb0;
  border-radius: 6px;
}

.poster-pdf:hover,
.poster-pdf:focus {
  background-color: #1e4e8c;
}

/* ------- Software Page -------- */

.software-container-1 {
    height: auto;
    flex: 5;
    margin: 1.5%;
    gap: 1em;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.software-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    font-size: 1.5rem;
    border-bottom: solid black 1px;
}

.software-picture{
    padding: 4px;
    width: 30%;
    height: auto;
    border-radius: 1px;
    object-fit: contain;
    object-fit: cover;
    flex-shrink: 0;  
}

.software-description {
    display: flex;
    flex-direction: column;
}

/* ------- Team Page ------- */

.supervisor-container {
    height: auto;
    flex: 5;
    margin: 1.5%;
    gap: 1em;
    display: flex;
    align-items: flex-start;
}

.team-container-1 {
    height: auto;
    padding: 10px;
    flex: 5;
    margin: 1.5%;
    gap: 1em;
    display: flex;
    align-items: flex-start;
}

@media (max-width: 600px) {
  .team-container-1 {
    height: auto;
  }
}

.picture-container {
    padding: 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 70%;
    height: auto;
    max-width: 175px;
    border-radius: 3px;
    object-fit: contain;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 600px) {
  .picture-container {
    width: 40%;   /* shrink on phones */
    max-width: 150px;
  }
}

.text-block {
  display: flex;
  flex-direction: column; 
}

/* ------- General CSS Calls ------- */

body {
    font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
    color: black;
    background-color: #F7F7F7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #5d5d5d, transparent);
  margin: 1.5em 0;
  grid-column: 2;
} 

a {
    color: black;
    font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
    font-size: 18px;
    text-decoration: none;
}

a:hover {
    transform: scale(1.05);
    transition-duration: 0.3s;
}

a.nice-link {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.semi-opaque {
    color: rgba(64, 64, 64, 0.9);
    margin: 0;
    height: 4%;
}

a.software-link {
    color: #2b6cb0;
    transition: color 0.2s ease;
}

a.software-link:hover {
    color: #1e4e8c;
}

.bottom-contact-container a {
    font-size: inherit;
}

@media (max-width: 600px) {
  .left-top-row {
    flex: none;
    padding: 0 0.75em;
  }

  .right-top-row {
    flex: 1;
    gap: 1em;
    margin: 0;
    padding-left: 0;
  }

  .top-row-spacing a {
    font-size: 15px;
  }
}

.right-top-row a[aria-current="page"] .semi-opaque {
    color: black;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-block h3 a {
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
