/* === footer/footer.css === */
@media only screen and (min-width: 768px) {
    .site-footer {
        position: fixed;
    }
}

.site-footer{
    display: flex;
    width: 100%;
    height: auto;
    bottom: 0;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    background: white;
    color: var(--muted);
}

.site-footer div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*margin: 10px;*/
}

.site-footer div ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: right;
    text-align: center;
    list-style-type: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.site-footer div ul li{
    text-align: center;
    width: 100%;
    margin, padding: 0px;
}

.site-footer div ul li a {
    display: flex;
    flex-direction: column;
    margin: 16px;
    transition: color 0.5s ease, transform 0.5s ease;
    font-size: 0.8em;
}

.site-footer div ul li a:hover {
    color: var(--navygray);
    img {
        transform: scale(1.133);
        transition-duration: 0.5s;
        /*border: 3px solid transparent;*/
    }
}

.site-footer div ul li a img {
    width: 32px;
    height: auto;
    margin: 5px;
}

.site-footer div p {
    all: unset;
}

/* === nav/nav.css === */
/* 
 * hide `site-nav-menu` for mobile 
 * and show a new hamburger button 
 * that displays a list of the diff
 * links normally available on the 
 * nav menu.
 */

@media screen and (max-width: 768px) {
    .site-nav_menu {
        display: none !important;
    }
}

.site-header{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav_height);
  border-bottom: 1px solid rgba(247,247,248,1);
  box-shadow: 0px 1px 3px rgb(240,240,240);
  /*background: rgba(255,255,255, 0.935);
  /*background: var(--nav_bg);*/
  background: linear-gradient(to right, black, rgba(0,0,0,0.93), black);
  z-index: 1000;
}

.site-nav{
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-evenly;
}

.site-nav a img {
    object-fit: contain;
   /* border: 3px solid white;*/
    border-radius: 8px;
    box-shadow: none;
}

.site-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding: 1;
    margin: 0;
    gap: 20px;
}
.site-nav ul a li {
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.site-nav ul a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
    height: 100%;
    width: 128px;
    color: black;
    /*border: 3px solid white;*/
    border-radius: 8px;
}

.site-nav a img:hover, .site-nav ul a:hover {
    /*background-color: rgba(245,245,246,1);*/
    color: rgba(84,144,150,1);
    text-decoration: none;
    border: 1px solid rgba(16,9,9,0);
    border-radius: 8px;
}

.site-nav a img:active, .site-nav ul a:active {
    border-style: inset;
    border-color: white;
}

.site-nav_menu{
    width: 100%;
    /*border-top: 1px solid rgba(245,245,245);*/
    /*background: var(--navygray);*/
    /*background: white;*/
    background: var(--navygray_dark); /*rgba(41, 48, 56, 0.98);*/
    color: white;
    height: 80px;
    display: flex;
    justify-content: center;
}

.site-nav_menu a img {
    object-fit: contain;
    border-radius: 8px;
}

.site-nav_menu ul {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    margin: 0;
    color: var(--seagreen);
    font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Mono", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Consolas", "Courier New", monospace;
    font-weight: 600;
}
.site-nav_menu ul a li {
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    height: 100%;
    padding: 0;
    margin: 0;
    margin-left: 16px;
    margin-right: 16px;
}

.site-nav_menu p {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 64px;
}

.site-nav_menu ul a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
    height: 100%;
    color: var(--seagreen);
    font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Mono", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Consolas", "Courier New", monospace;
    font-weight: 600;
    border-radius: 3px;
    /*text-transform: uppercase;*/
}

.site-nav_menu a img:hover, .site-nav_menu ul a:hover {
    /*
    background: linear-gradient(var(--navygray_dark), var(--navygray));
    color: white;
    text-decoration: none;
    color: var(--navygray_dark);
    */
    color: white;
    border-bottom: 6px solid rgb(134, 84, 150);
    font-weight: 400;
}

.site-nav_menu a img:active, .site-nav_menu ul a:active {
    border-style: inset;
    border-color: white;
}

/* === paper-card/paper-card.css === */


/* Make overlay cover the entire card */
.paper-card__overlay{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: absolute;
    top, right, bottom, left: 0;
    width: 100%;
    height: 100%;
    padding: var(--space-3);
    z-index: 5;
    border-radius: var(--radius);
    /*background-color: rgba(255,255,255,0.95);*/
    background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,1)); 
    opacity: 0;
    transition: opacity 140ms ease-in-out;
}


/* Button styling */
.paper-card__btn{
  display: inline-block;
  padding: 16px;
  margin: 16px;
  border-radius: 6px;
  text-decoration: none;
  /* works on both light/dark backgrounds */
  background: var(--seagreen);
  color: white;
}

.paper-card__btn:hover{
  background: var(--navygray_dark);
  color: var(--seagreen);
}

.paper-card__btn2{
  display: inline-block;
  padding: 16px;
  margin: 16px;
  border: 2px solid var(--navygray);
  border-radius: 6px;
  text-decoration: none;
  /* works on both light/dark backgrounds */
  background: rgba(255,255,255,1);
}

.paper-card__btn2:hover{
  background: var(--navygray_dark);
  color: var(--seagreen);
}

.paper-card:not(:hover) .paper-card__overlay{
  transition: opacity 220ms ease-in;
}

/*mobile ? */
.paper-card:focus-within .paper-card__overlay{
  opacity: 1;
  pointer-events: auto;
}

.paper-card__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.paper-card{
  display: flex;
  position: relative;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 0 var(--space-4) 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(245,243,243,1);
  transition: transform 140ms ease;
}

/* Fade in overlay when hovering anywhere on the card */
.paper-card:hover .paper-card__overlay{
  opacity: 1;
  pointer-events: auto;
}

.paper-card__title{ margin: 0 0 var(--space-1) 0; }

.paper-card__meta{
  margin: 0 0 var(--space-2) 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.paper-card__abstract{
  background: #fff;
  color: #111;
  padding: 1.2rem;
  font-family: ui-serif, Georgia, serif;
  font-size: .9rem;
  line-height: 1.5;
  text-align: left;
  width: 100%;
  border-radius: var(--radius);
}

.paper-card__links{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--space-3);
}

/* === paper-viewer/paper-viewer.css === */
.paper-viewer{
  display: flex;
  width: 100%;
  height: 90vh;
  border: none;
  background: var(--panel);
  align-self: stretch;
  text-align: center;
}

/* === post/post.css === */
.post {}

h1, h2, h3, h4 {
    margin: none;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    
}
.post h1, .post h2, .post h3 { margin-top: 4rem; }
.post pre{
  background: gray;
  padding: var(--space-3);
  border-radius: var(--radius);
  overflow-x: auto;
}

.post a {
    text-decoration: underline;
}

.sourceCode {
    width: 100%;
    margin: 3px;
    border-radius: 8px;
    background-color: rgba(0,0,0,1);
    color: rgba(245,245,245,1);
    font-weight: 6;
}

/*
.sourceCode pre {
    padding: 0;
    margin: 0;
}
*/
pre {
    background-color: rgb(41,48,56); 
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 16px;
    border-radius: 15px;
}

code {
    background-color: rgb(41,48,56); 
    color: rgba(245,245,245,1);
    padding-left: 9px;
    padding-right: 9px;
    /*padding-top: 3px;
    padding-bottom: 3px;*/
    white-space: pre-wrap;
    overflow-wrap: break-word;
    border-radius: 5px;
    font-weight: 500;
}

table, th, td {
    text-align: center;
    width: fit-content;
    margin: auto;

}

th {
    background-color: var(--navygray_dark);
    color: white;
    height: 4rem;
    border-bottom: 2px solid var(--seagreen);
    border-top: 2px solid var(--seagreen);
    box-shadow: -4px 0px 0px var(--navygray_dark);
    margin: none;
}

td {
    padding: 10px;
    border-bottom: 2px solid var(--seagreen);
}

figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

img {
    align-self: center;
}

math[display="block"] { font-size: 1.6rem; }

/* === post-card/post-card.css === */
/* container link */
.post-card{
  position: relative;
  display: block;
  text-decoration: none;
  color: white;

  /* square sizing: responsive but defaults to ~300px */
  width: 100%;
  max-width: 777px;
  aspect-ratio: 5 / 3;

  /*border-radius: var(--radius);*/
  overflow: hidden;

  margin: 3px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(245,243,243,1); /* fallback if no cover */

  box-shadow: 1px 1px 3px rgb(129,87,150);
}

/* background layer (zooms on hover) */
.post-card__bg{
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1);
  transition: transform 180ms ease;
  color: white;
}

/* hover zoom ONLY background */
.post-card:hover .post-card__bg{
  transform: scale(1.06);
}

/* bottom overlay (does NOT zoom) */
.post-card__overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  /* bottom half overlay 
  min-height: 50%; */

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;

  padding: 0.9rem;

  /* semi-transparent black rectangle */
  background: rgba(0,0,0,0.55);
  /* optional: make it slightly gradient-y */
  background: linear-gradient(
    to top,
    rgba(147, 59, 176, 0.80),
    .1%,
    rgba(0,0,0,0.97)
  );

  color: white;
}

/* text styling */
.post-card__title{
  margin: auto;
  align-self: center;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0px 1px 0px black;
  color: var(--seagreen);
  #color: var(--bright_purple);
}

.post-card__meta{
  margin: auto;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  color: white;
  text-shadow: 0px 1px 3px black;
}

.post-card__desc{
  margin: auto;
  align-self: center;
  font-size: 0.9rem;
  opacity: 0.92;

  /* keep cards tidy */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
  text-shadow: 0px 1px 3px black;
}

/* focus style for keyboard users */
.post-card:focus{
  outline: 2px solid var(--seagreen);
  outline-offset: 3px;
}

/* grid helper (optional — put this in a page/layout css) */
.post-card-grid{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

/* === post-header/post-header.css === */
.post-header {
  margin-top: 16px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(155,155,155,1);
}

.post-title { 
    text-align: center;
    margin: 0 0 var(--space-2) 0; 
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-cover { margin: var(--space-3) 0; }

.post-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel);
}

.post-description { 
    text-align: center;
    color: var(--muted); 
    margin: var(--space-2) 0 0 0; 
}

.post-tags {
  margin: var(--space-3) 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.post-tags a {
  padding: 0.2rem 0.55rem;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  text-decoration: none;
}

/* === round-image/round-image.css === */
.round-image {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 2px 2px 2px gray;
}

.round-image p {
    all: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.round-image img {
    all: unset;
    height: 100%;
    width: auto;
    margin: auto;
    object-fit: cover;
}

