@font-face {
  font-family: "Minecraft";
  src: url(/assets/fonts/Minecraft.otf) format("opentype");
  font-display: swap;
}


@font-face {
  font-family: "Minecraft-Bold";
  src: url(/assets/fonts/Minecraft-Bold.otf) format("opentype");
  font-weight: bold;
  font-display: swap;
}


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


footer {
  margin-top: auto;
}



header {
  max-width: 650px;
}


.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-align: center;
  font-family: "Poppins", sans-serif;
}


@media (max-width: 768px) {


  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--header-bg-open);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 6px var(--shadow);
    z-index: 1000;
    margin-top: 0;
    padding-top: 0;
  }
}



#experience,
#content-creation,
#thumbnails {
  padding: 4rem 2rem;
  background: var(--bg);
  text-align: center;
}


.video-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 4rem;
  padding: 0 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}


.video-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}


.video-card .video-container {
  position: relative;
  width: 100%;
  height: 100%;
}


.video-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover; /* also crops the black bars off YouTube's 4:3 preview images */
}


.play-button::before {
  border-top: 15px solid transparent;
  border-left: 25px solid white;
  border-bottom: 15px solid transparent;
}



.thumbnail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 4rem;
  padding: 0 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}


.thumbnail-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}


.thumbnail-card img {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
}


.thumbnail-card .video-title {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,1),
    0 0px 4px rgba(0,0,0,0.9),
    0 0px 32px rgba(0,0,0,0.7);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}



.server-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  margin-top: 4rem;
  padding: 0 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}


.server-card {
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  width: 100%;
  aspect-ratio: 4/5;
  box-shadow: 0 4px 6px var(--shadow);
  box-sizing: border-box;
}


.server-card.custom-font, .server-card.custom-font h2, .server-card.custom-font .server-ip, .server-card.custom-font .server-role {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}


.server-card .server-icon {
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}


.server-card h2 {
  margin-top: 1em; /* same top margin the old <h3> had */
  font-family: "Minecraft-Bold", sans-serif;
  font-size: 1.5rem;
  background: var(--heading-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.1rem;
}


.server-card .server-ip {
  font-family: "Minecraft", sans-serif;
  font-size: 1.3rem;
}


.server-card .server-role {
  font-family: "Minecraft", sans-serif;
  font-size: 1.1rem;
}


.server-card:nth-child(1),
.server-card:nth-child(1) h2,
.server-card:nth-child(1) .server-ip,
.server-card:nth-child(1) .server-role {
  font-family: "Valorant", sans-serif;
}


@media (max-width: 768px) {

  .server-cards,
  .video-cards,
  .thumbnail-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  }
}


@media (max-width: 600px) {

  /* Experience cards: the section already pads 2rem, the extra 2rem inside the grid left them too narrow for their titles on phones */
  .server-cards {
    padding: 0;
  }
}


@media (max-width: 480px) {

  .server-cards,
  .video-cards,
  .thumbnail-cards {
    grid-template-columns: minmax(0, 1fr);
  }


  .server-card,
  .video-card,
  .thumbnail-card {
    margin: 0 auto;
  }
}


@media print {

  .nav-links,
  .hamburger {
    display: none;
  }
}


.server-card,
.video-card,
.thumbnail-card {
  position: relative;
}


/* ---- Lightbox: one native <dialog> (built by lightbox.js) for thumbnails and videos ---- */
.lightbox {
  max-width: none;
  max-height: none;
}


.lightbox[data-kind="video"] {
  background: var(--overlay-scrim-strong);
  backdrop-filter: blur(8px);
  animation: lightbox-fade 0.25s ease;
}


@keyframes lightbox-fade {
  from {
    opacity: 0;
  }
}


.lightbox-stage img {
  max-width: 80vw;
  max-height: 80vh;
}


.lightbox-stage iframe {
  width: min(92vw, 1400px);
  max-height: 88vh;
  aspect-ratio: 16 / 9;
  display: block;
  box-shadow: 0 25px 80px var(--lightbox-shadow);
}


.lightbox .close,
.lightbox .arrow {
  font: inherit;
  font-size: 2rem;
}


.lightbox .close {
  z-index: 2001;
}


.lightbox .arrow {
  z-index: 1001;
}


/* ---- Document page (yrQVj.html): this CSS used to be an inline <style> in the page ---- */
.page-document .hamburger { display: none !important; }

.page-document .nav-links {
  display: flex !important;
  position: static !important;
  flex-direction: row !important;
  background: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  width: auto !important;
  top: auto !important;
  left: auto !important;
  padding: 0 !important;
}


.page-document header { max-width: 250px; }


#k7Mv2x {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7rem 1.5rem 3rem;
  gap: 0;
}


.n3Wp9q {
  width: 100%;
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  overflow-y: auto;
  max-height: 80vh;
  box-shadow: 0 0 0 0.5px rgba(228, 155, 15, 0.25),
              0 8px 32px var(--shadow-soft);
  -webkit-user-select: none;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--surface);
}


.n3Wp9q::-webkit-scrollbar {
  width: 6px;
}


.n3Wp9q::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}


.n3Wp9q::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 10px;
}


#pdf-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--bg-elevated);
}


/* pdf-render.js reserves each page's final height up front and paints its canvas when it scrolls near the viewport */
#pdf-container .pdf-page {
  width: 100%;
  margin-bottom: 4px;
  background: #fff;
}


#pdf-container .pdf-page:last-child { margin-bottom: 0; }


#pdf-container canvas {
  display: block;
  width: 100%;
  height: auto;
}


#pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--ink-4);
  font-size: 0.9rem;
  width: 100%;
  min-height: 300px;
  background: var(--bg-elevated);
  box-sizing: border-box;
}


.pdf-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(228, 155, 15, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


@keyframes spin { to { transform: rotate(360deg); } }


#pdf-error {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ink-4);
  font-size: 0.9rem;
  background: var(--bg-elevated);
}


/* Ctrl+P used to be intercepted by a script; printing the page now just prints this notice */
@media print {

  .page-document #k7Mv2x { display: none; }

  .page-document::before {
    content: "Printing is disabled for this page.";
    display: block;
    padding: 2rem;
    color: #000;
  }
}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
