h1 {font-size: xx-large;
color: #ffffff;
text-align:center;
}

body {
  background-color: rgb(0, 0, 0);
  font-family: Jura, sans-serif;
  color: #ffffff;
  text-align:center;
  font-size: large;
}

/* Style all links inside nav */
nav a {
  color: #ffffff;             
  text-decoration: none;                     
  font-weight: 300;
  transition: color 0.2s;
  text-align:center;
}

/* Hover effect */
nav a:hover {
  color: #000000;         
  text-decoration: none;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;     /* fills screen, crops excess */
  z-index: -1;            /* behind your content */
}

/* Make text visible on top */
main {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: 40vh;
  font-size: 3rem;
}


.jura {
  font-family: "Jura", sans-serif;
  font-weight: 300;
  font-style: normal;
}

a {
  font-family: Jura, sans-serif;
  color: #ffffff;
}

ul {
  list-style-type: disc;   /* default dots */
  margin-left: 20px;       /* space for dots */
  padding-left: 20px;      /* ensures dots show inside */
}

.code-wrapper {
  display: flex;               /* two-column layout */
  gap: 20px;                   /* space between columns */
  max-width: 1000px;           /* overall width */
  margin: 0 auto;              /* center in page */
}

.code-block {
  flex: 1;                     /* left column */
  background: #f5f5f5;
  padding: 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  overflow-x: auto;
}

.explanation {
  flex: 1;                     /* right column */
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

/* Make it mobile-friendly */
@media (max-width: 700px) {
  .code-wrapper {
    flex-direction: column;
  }
}

.thumbnail-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 👈 two thumbnails per row */
  gap: 40px;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0;
  justify-items: center; /* centers thumbnails */
}

.thumbnail-nav a {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.3s ease;
}

.thumbnail-nav a img {
  width: 250px;              /* ✅ fixed size */
  aspect-ratio: 1 / 1;       /* ✅ forces perfect square */
  object-fit: cover;         /* ✅ crops images nicely */
  filter: grayscale(100%);   /* ✅ grayscale by default */
  transition: filter 0.4s ease, transform 0.3s ease;
  display: block;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 0;          /* 👈 HARD SQUARE corners */
}

.thumbnail-nav a:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.thumbnail-nav a:hover {
  transform: translateY(-5px);
}

/* ✏️ Caption styling */
.thumbnail-nav a p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.3px;
  text-transform: none; /* ✅ keep text as typed */
}
