* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  /* fallback color */
  background-color: #000;

  /* background image */
  background-image: url('img/pitbackground.jpg');
  background-size: cover;           /* scale to fill */
  background-position: center;      /* center the image */
  background-repeat: no-repeat;
  background-attachment: fixed;     /* optional: keep fixed on scroll */

  color: #e6e6e6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

/* make the page container slightly translucent so text stays readable */
.site-container {
  max-width: 960px;
  margin: 18px auto;
  background: rgba(0, 0, 0, 0.6);      /* dark translucent */
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  color: #fff;
}

/* Header / nav */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 18px; }
.logo { font-weight: 425; font-family: "canterbury", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-size: 1.9rem; }
.nav-links a { text-decoration: none; color: #ffffff; margin-left: 12px; font-size: 0.95rem; }

/* Content */
main h1 { 
  font-weight: 375;
  font-size: 2.2rem;
   margin-bottom: 8px;
    font-family: "OldNewspaperTypes", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-align: center;}
.lead {
  color: #d9d9d9;
  margin: 0.5rem auto 16px;
  max-width: 640px;     /* change this value to make the paragraph narrower/wider */
  line-height: 1.5;
  text-align: center;   /* remove if you prefer left-aligned text */
  padding: 0 12px;      /* small side padding for very narrow screens */
}

/* Small centered image */
.main-image {
  display: block;
  margin: 0.5rem auto;
  width: 140px;      /* change to 100px or 80px for smaller */
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #eef1f6;
}

/* Footer */
footer { margin-top: 20px; text-align: center; color: #ffffff; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 480px) {
  .site-container { margin: 16px; padding: 18px; }
  .main-image { width: 120px; }
}
.row {
  margin: 15px;
}

/* ...existing code... */

.container {
  max-width: 900px;
  margin: 35px auto;
  padding: 0 12px;
}

/* make each .row display 3 images side-by-side */
.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

/* anchors as blocks and images sized down */
.row a { display: block; text-align: center; }
.row img {
  width: 100%;
  height: auto;
  max-width: 280px; /* change to 240px or 200px to make them smaller */
  margin: 0 auto;
  border-radius: 0px;
  border: #ffffff 5px solid;
  display: block;
}

/* responsive: 2 columns on medium screens, 1 column on small */
@media (max-width: 800px) {
  .row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
  .row img { max-width: 100%; }
}

@font-face {
  font-family: 'canterbury';
  src: url(fonts/Canterbury.ttf) format('truetype');
  font-family: 'OldNewspaperTypes';
  src: url(fonts/OldNewspaperTypes.ttf) formaat('truetype');
}

.button-28 {
  appearance: none;
  background-color: transparent;
  border: 2px solid #ffffff;
  border-radius: 12px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;

  /* make it smaller and centered */
  display: block;
  margin: 0.5rem auto 18px;
  width: auto;
  max-width: 260px;     /* cap the size */
  padding: 10px 18px;   /* smaller padding */
  min-height: 40px;     /* smaller height */

  font-family: Roobert, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  outline: none;
  text-align: center;
  text-decoration: none;
  transition: all 200ms ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.button-28:disabled {
  pointer-events: none;
}

.button-28:hover {
  color: #fff;
  background-color: #1A1A1A;
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.button-28:active {
  box-shadow: none;
  transform: translateY(0);
}
html { scroll-behavior: smooth; }

/* Optional styles */
html {
	box-sizing: border-box;
	font-family: "YouTube Noto", Roboto, Arial, Helvetica, sans-serif;
	height: 100%;
}

*,
*::before,
*::after {
	box-sizing: inherit;
	margin: 0;
	padding: 0;
}

body {
	height: 100%;
	background-color: #f4eae1;
}
/* END Optional styles */

.video-container {
	width: 640px;
	border-radius: 4px;
	margin: 0 auto;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: 0px 8px 20px rgba(rgb(0, 0, 0), 0.4);
  
  .video-wrapper {
  position: relative;
  margin: 18px auto 12px; /* increased top gap so there's more space below the button */
  text-align: center;
}

  .video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    margin: 18px auto 12px;
    justify-content: center;
    align-items: center;
  }

	video {
		width: 100%;
		height: 100%;
		border-radius: 4px;
	}
}


.divider1 {
  width: 100%;
  max-width: 320px;    /* adjust length */
  height: 2px;         /* thickness */
  background: #717171;    /* black line */
  margin: 18px auto;   /* space above/below */
  border-radius: 1px;  /* tiny smoothing (optional) */
}
.divider2 {
  width: 100%;
  max-width: 845px;    /* adjust length */
  height: 2px;         /* thickness */
  background: #717171;    /* black line */
  margin: 18px auto;   /* space above/below */
  border-radius: 1px;  /* tiny smoothing (optional) */
}
/* From Uiverse.io by PriyanshuGupta28 — make it a full-screen overlay and add hidden state */
.ai-matrix-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: #000; /* full-screen dark background while loading */
  transition: opacity 360ms ease, visibility 360ms ease;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* inner grid that was previously .ai-matrix-loader size */
.ai-matrix-loader .matrix-inner {
  width: 120px;
  height: 160px;
  position: relative;
  perspective: 800px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

/* keep your existing .digit and .glow rules but target .ai-matrix-loader .digit */
.ai-matrix-loader .digit { 
  color: #00ff88;
  font-family: monospace;
  font-size: 18px;
  text-align: center;
  text-shadow: 0 0 5px #00ff88;
  animation: matrix-fall 2s infinite, matrix-flicker 0.5s infinite;
  opacity: 0;
}
.digit {
  color: #00ff88;
  font-family: monospace;
  font-size: 18px;
  text-align: center;
  text-shadow: 0 0 5px #00ff88;
  animation:
    matrix-fall 2s infinite,
    matrix-flicker 0.5s infinite;
  opacity: 0;
}

.digit:nth-child(1) {
  animation-delay: 0.1s;
}
.digit:nth-child(2) {
  animation-delay: 0.3s;
}
.digit:nth-child(3) {
  animation-delay: 0.5s;
}
.digit:nth-child(4) {
  animation-delay: 0.7s;
}
.digit:nth-child(5) {
  animation-delay: 0.9s;
}
.digit:nth-child(6) {
  animation-delay: 1.1s;
}
.digit:nth-child(7) {
  animation-delay: 1.3s;
}
.digit:nth-child(8) {
  animation-delay: 1.5s;
}

.glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle,
    rgba(0, 255, 136, 0.1) 0%,
    transparent 70%
  );
  animation: matrix-pulse 2s infinite;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-50px) rotateX(90deg);
    opacity: 0;
  }
  20%,
  80% {
    transform: translateY(0) rotateX(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(50px) rotateX(-90deg);
    opacity: 0;
  }
}

@keyframes matrix-flicker {
  0%,
  19%,
  21%,
  100% {
    opacity: 0.8;
  }
  20% {
    opacity: 0.2;
  }
}

@keyframes matrix-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}
/* hidden state to fade and disable the loader */
.ai-matrix-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}