@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Light.woff2) format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-SemiBold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: Fira Code;
    src: url(../assets/fonts/FiraCode-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}

.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.font-medium {
    font-weight: 500;
}
.font-regular {
    font-weight: 400;
}
.font-light {
    font-weight: 300;
}

.h-center {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
}
.b-space {
    padding-bottom: 2vh;
    padding-top: 2vh;
}

.p-space {
    padding-bottom: 3vh;
    text-align: center;
}

body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: Fira Code, monospace;
    -webkit-font-smoothing: antialiased;
    background-color: #EBEBEB;
    background: #0b0d0f;
    color: #E0E0E0;
    margin: 0px;
}

a {
  color: inherit;
}

a:hover {
  color: inherit;
}

a:visited {
  color: inherit;
}


.board{
  --cols: 1;
  --col-gap: clamp(10px, 1.5vw, 24px);
  --row-gap: 16px;
  --row-size: 6px;

  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: var(--row-size);
  gap: var(--row-gap) var(--col-gap);
  grid-auto-flow: dense;
  margin: 0;
  padding: 0;
  list-style: none;
}


@media (min-width: 615px)  { .board { --cols: 2; } }
@media (min-width: 920px)  { .board { --cols: 3; } }
@media (min-width: 1300px) { .board { --cols: 4; } }
@media (min-width: 1600px) { .board { --cols: 5; } }
@media (min-width: 1900px) { .board { --cols: 6; } }
@media (min-width: 2200px) { .board { --cols: 7; } }


.pin { 
  grid-row-end: span 1; 
}


.card { 
  display: grid; 
  gap: .6rem; 
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; 
  padding: 10px; 
  overflow: hidden; 
  margin: 0;
}

.card time {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75em;
    opacity: 0.6;
}

.card > img{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.card > figcaption{
  margin: 0;
  padding: .6rem .5rem .7rem;
  text-align: center;
  line-height: 1.45;
}

/* highlight when navigated via #hash or after copying */
/*:target .card { outline: 2px solid var(--accent, #A7C7E7); outline-offset: 2px; }*/
.flash-highlight .card { box-shadow: 0 0 0 3px var(--accent, #A7C7E7) inset; }

footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 0px;
    color: #E0E0E0;
    font-size: max(0.7vw, 0.5rem);
}

header.site-nav{
    position: static;
    top: 0;
    z-index: 1000;
}


.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0B4E82;
    padding: 8px 12px;
}

.nav-desktop {
    display: flex;
    gap: 3vw;
    align-items: center;
    justify-content: center;
}

.nav-desktop a{
    color: #E0E0E0;
    text-decoration: none;
    padding: 8px 6px;
}

.nav-desktop a:hover {
    text-decoration: underline;
}

.nav-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: block !important;
        display: flex !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu-btn::after{
        transition: none;
    }
}

.title-icon {
    display: flex;
    align-items: center;
}

.title-icon-element {
    max-width: 10vw;
    max-height: 10vh;
}

.title-font {
    margin-left: 1.5rem;
    font-size: max(1.7vw, 1.7rem);
}

.title-font-small {
    margin-left: 1rem;
    font-size: max(1vw, 1rem);
}

.center-item {
    align-items: center;
}

.navbar-nav {
    display:flex;
    max-width: 100%;
    max-height: 11vh;
    padding: max(0.5vw, 0.5rem) max(1vw, 1rem);
    top: 0;
    z-index: 1000;
    margin: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #0B4E82;
}

.navbar-nav-list {
    list-style: none;
    border-width: 2rem;
    border-radius: 0.5rem;
    gap: 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-inline-start: 80px;
}

.navbar-nav-link {
    display: flex;
    text-decoration: none;
    text-align: center;
    font-size: max(1vw, 1.2rem);
    color: #E0E0E0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #E0E0E0;
    cursor: pointer;
}

@media (max-width: 750px) {
    .navbar-nav {
        display: none;
    }
    .nav-div {
        display: none;
    }
    .navbar-nav-m {
        display: flex;
    }
}

.navbar-nav-m {
    display: none;
    max-width: 100%;
    max-height: 11vh;
    padding: max(0.5vw, 0.5rem) max(1vw, 1rem);
    top: 0;
    z-index: 1000;
    margin: auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #a8a9aa;
}

.nav-menu {
    display: inline-block;
}

.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .5ch;
    color: #E0E0E0;
    cursor: pointer;
    user-select: none;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px
}

.nav-menu-btn::after {
    content: "▾";
    transition: transform 0.15s ease;
}

.nav-menu[open] .nav-menu-btn::after {
    transform: rotate(180deg);
}

.nav-menu-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: #0B4E82;
    display: grid;
    gap: 6px;
}

.nav-menu-list a{
    color: #E0E0E0;
    text-decoration: none;
    padding: 6px 4px;
    display: block;
}

.nav-menu-list a:hover{
    text-decoration: underline;
}

.hover-underline:hover {
    text-decoration: underline;
}