/* =========================
   Global Base Styles
   ========================= */

@font-face {
    font-family: 'Bahnschrift';
    src: url('assets/fonts/bahnschrift.ttf') format('truetype');
    font-weight: 300;
}
body {
  margin: 0;
  font-family: 'Bahnschrift', sans-serif;
  
  background: url("../blackbackground.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #ff9900;
  font-size: 20px;   /* <— Set your site-wide default font size here */
  text-align: center;
  
  height: 100vh;
  
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

h1,h2 {
  font-family: 'Bauhaus 93', sans-serif;
  font-weight: bold;         /* prevents bold distortion */
  font-size: 4.5rem;         /* adjust per heading */
  color: #000;               /* inner fill colour */
  text-align: center;
}

/* INTRO VIDEO — FULLSCREEN */
#intro-video-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    overflow: hidden;
}

#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* BACKGROUND LOOPING VIDEO */
.video-background video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* Keeps overlay content above the background video */
.overlay-content {
    position: relative;
    z-index: 10;
}

/* =========================
   Headings
   ========================= */

.heading-banner {
  position: relative;
  display: inline-block;
  margin: 40px auto;
  padding: 0 20px;
}

/* Orange bar behind headings (WELCOME, STUDENT PROFILES, etc.) */
.heading-banner::before {
  content: "";
  position: absolute;

  /* centred a bit higher so bottom edge is above baseline */
  top: 50%;

  /* thinner so it just hugs the text */
  height: 30px;

  /* extend a little left/right of the text */
  left: -30px;
  right: -30px;

  background: #ff9900;
  transform: translateY(-50%);
  z-index: -1;
}

.heading-banner h1 {
  margin: 0;
  font-size: 4rem;
  font-family: "Bauhaus 93", sans-serif;
  color: #000000;
  -webkit-text-stroke: 1px #ff9900;
}

.heading-banner {
  display: inline-block;
  text-align: center;
}

.heading2-banner {
  position: relative;
  display: inline-block;
  margin: 40px auto;
  padding: 0 20px;
}

.heading2-banner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -30px;
  right: -30px;
  height: 32px;
  background: #0000;
  transform: translateY(-50%);
  z-index: -1;   /* IMPORTANT: behind text */
}

.heading2-banner h1 {
  margin: 0;
  font-size: 4rem;
  font-family: "Bauhaus 93", sans-serif;
  color: #ff9900;
  -webkit-text-stroke: 1px #ff9900;
}

.heading2-banner {
  display: inline-block;
  text-align: center;
}

h3 {
  font-family: 'Bauhaus 93', sans-serif;
  font-weight: normal;         /* prevents bold distortion */
  font-size: 3.5rem;           /* adjust per heading */
  color: #000;                 /* inner fill colour */
  text-align: center;

  /* Outline stroke */
  -webkit-text-stroke: 1px #ff9900;
  text-stroke: 10px #ff9900;

  /* Slight shadow for glow effect */
  text-shadow:
    0 0 10px #000,
    0 0 20px #000;
}

a {
  color: #ff9900;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Home Page
   ========================= */

/* Let the home page body behave normally (override global flex) + no scrollbars */
body.home-page {
  display: block;
  height: 100vh;
  overflow: hidden;
}

/* HOME PAGE DESCRIPTION BOX */
.home-description-box {
  max-width: 900px;          /* bring it in from the sides */
  margin: 30px auto 0 auto;  /* centre horizontally, smaller gap above */
  padding: 25px 40px;        /* space inside the frame */

  border: 3px solid #ff9900;
  border-radius: 12px;

  background: rgba(0,0,0,0.6);  /* subtle transparent black */
  color: #ff9900;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;

  box-shadow: 0 0 20px rgba(255,153,0,0.35);
}

/* Container that holds WELCOME + button */
.home-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0px;    /* was 180px – move everything higher */
  padding-bottom: 0px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.home-container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* CTA button on home page */
.view-profiles-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  border-radius: 999px;
  border: 2px solid #ff9900;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #000;
  box-shadow: 0 0 15px rgba(255,153,0,0.5);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.view-profiles-link:hover {
  background: #ff9900;
  color: #000;
  box-shadow: 0 0 25px rgba(255,153,0,0.9);
  transform: translateY(-2px);
}

/* =========================
   Avatars Page
   ========================= */

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));  /* narrower columns */
    gap: 13px;                           /* tighter gap between avatars */
    justify-content: center;
    max-width: 980px;                    /* narrower page width so more fit per row */
    margin: 0 auto;
}


.avatar-card {
  text-align: center;
  padding: 12px;
}

.avatar-name {
  margin: 0 0 10px;
  font-weight: bold;
  color: #ff9900;
}

/* Force all images to be square */
img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.avatar-card img,
.avatar-cell img {
  width: 140px;        /* narrower */
  height: 200px;       /* taller to create portrait aspect */
  border-radius: 50px; /* slightly rounded corners */
  border: 6px solid #ff9900;
  object-fit: cover;
  transition: transform 0.2s, box-shadow 0.2s;
}

.avatar-card img:hover,
.avatar-cell img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff9900;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.avatar-wrapper img {
  width: 140px;
  height: 200px;
  border-radius: 15px;
  border: 3px solid #ff9900;
  object-fit: cover;
  transition: transform 0.2s, box-shadow 0.2s;
}

.avatar-wrapper img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff9900;
}

/* Overlay box at bottom with matching border */
.avatar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #ff9900;
  text-align: center;
  padding: 5px 0;
  font-weight: bold;

  border: 3px solid #ff9900;

  /* Slightly rounded top, full bottom radius */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;

  box-sizing: border-box;
}

/* =========================
   Student Pages
   ========================= */

/* Table layout for avatar + info */
.student-table {
  width: 90%;
  max-width: 1000px;
  border-collapse: collapse;
  margin: 40px auto;   /* centres the table */
}

.avatar-cell {
  width: 320px;
  vertical-align: top;
  text-align: center;
  padding: 20px;
}

.avatar-cell img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.info-cell {
  vertical-align: top;
  padding: 60px;
  border-radius: 35px;
  text-align: left;
}

.student-name h1{
  font-size: 2.5rem;
}

/* Artist statement box */
.artist-statement {
  background: #222;
  border: 3px solid #ff9900;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  max-width: 600px;
}

/* Links section */
.student-links {
  margin: 30px auto;
  max-width: 600px;
  text-align: left;
}

.student-links h3 {
  margin-bottom: 10px;
  color: #ff9900;
}

.student-links ul {
  list-style: none;
  padding: 0;
}

.student-links li {
  margin: 8px 0;
}

.student-links a {
  font-weight: bold;
  color: #ff9900;
}

.student-links a:hover {
  text-decoration: underline;
}

/* Back link styling */
.back-link {
  display: inline-block;
  margin-top: 30px;
  font-weight: bold;
  position: relative;
  z-index: auto;
}

/* =========================
   Galleries
   ========================= */
.student-page .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px auto;
}

.student-page .gallery img {
  margin: 10px;
  border: 6px solid #ff9900;   /* thicker border */
  border-radius: 12px;          /* slightly rounded corners */
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.student-page .gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px #ff9900; /* optional glowing hover */
}

/* =========================
   Lightbox Overlay
   ========================= */

.student-page #lightbox-overlay {
  position: fixed;
  inset: 0;                        /* full viewport */

  /* Make room around the lightbox content */
  padding: 5vh 5vw;                /* always leaves a gap on all sides */
  box-sizing: border-box;

  display: none;                   /* JS sets to flex when open */
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.6);     /* see page behind */
  z-index: 10000;

  cursor: pointer;                 /* clicking outside = close */
}




/* Center and anchor lightbox content for spinner */
.student-page #lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;                 /* don't close when clicking media */
}

.student-page #lightbox-content img,
.student-page #lightbox-content video,
.student-page #lightbox-content iframe {
  max-width: 100%;
  max-height: 100%;
}


.student-page #lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border: 3px solid #fff;
  box-shadow: 0 0 25px rgba(0,0,0,0.9);
}

.student-page #lightbox-content video,
.student-page #lightbox-content iframe {
  max-width: 100%;
  max-height: 100%;
  border: 3px solid #fff;
  box-shadow: 0 0 25px rgba(0,0,0,0.9);
}

/* Video sizing helper for widescreen videos */
.student-page #lightbox-content .lb-video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#lightbox-content {
    position: relative;
    width: 80vw;
    height: 80vh;
    max-width: 80vw;
    max-height: 80vh;
    cursor: default;     /* prevents close when clicking the media */
}


.student-page #page-content.blur {
  filter: blur(5px);
  pointer-events: none;
}

/* Navigation buttons */
.student-page .nav-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 20px;
  z-index: 1001;
  transition: color 0.2s;
  position: absolute;
}

.student-page .nav-btn:hover {
  color: #ffcc00;
}

/* Spinner element */
#lightbox-spinner {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff9900;  /* orange highlight */
  animation: spin 0.8s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#lightbox-spinner.visible {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Student Page Heading Style */
.student-page h2 {
  position: relative;
  display: inline-block;
  font-family: 'Bauhaus93', sans-serif;
  font-size: 2rem;
  color: #ffcc00;
  -webkit-text-stroke: 6px black;
  text-stroke: 6px black;

  padding: 20px 0; /* vertical breathing room */
  margin: 40px 0;
}

/* Logo container */
.logo-wrapper {
    position: relative;
    margin-top: 20px;
}

/* The box behind */
.logo-wrapper {
    position: relative;
    margin-top: 20px;
    display: inline-block;        /* shrink to fit box */
}

/* Narrow box behind the text */
.logo-wrapper::before {
    content: "";
    position: absolute;

    top: 2.2em;                  /* lower top border */
    bottom: 2.2em;               /* raise bottom border */

    left: 15%;
    transform: translateX(-25%);

    width: calc(100% + 40%);   /* text width + 150px left/right */
    background: #000;
    border: 2px solid #ffa51f;
    z-index: 0;
    text-shadow:
        -2px 0 #ffa51f,
         2px 0 #ffa51f,
         0 -2px #ffa51f,
         0  2px #ffa51f;     
}

/* The “2D” text */
.logo {
    font-size: 6rem;
    font-family: "Bauhaus 93", sans-serif;
    font-weight: bold;

    color: #ffa51f;                 /* solid orange text */
    -webkit-text-stroke: 1px #000;  /* thin black stroke */

    position: relative;
    z-index: 1;                     /* appears ABOVE the box */
}

.student-page #prev-btn { left: 20px; }
.student-page #next-btn { right: 20px; }

/* =========================
   Avatars page layout tweaks
   ========================= */

.avatars-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: flex-start;
  align-items: center;
}

.avatars-container {
  width: 100%;
  flex: 1 0 auto;  /* grow to take available vertical space */
}

.back-home {
  margin: 40px 0;
  font-size: 1.4rem;
  font-weight: bold;
}

/* =========================
   Content frame INSIDE bezel
   (avatars + student pages only)
   ========================= */

/* =========================
   Content frame INSIDE bezel (HOME)
   ========================= */

.home-page #site-content {
  position: fixed;
  top: 8vh;
  bottom: 8vh;
  left: 6vw;
  right: 6vw;

  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;   /* Firefox */
}

.home-page #site-content::-webkit-scrollbar {
  display: none;           /* Chrome / Safari / Edge */
}


/* =========================
   Content frame INSIDE bezel (AVATARS)
   ========================= */

.avatars-page .avatars-container {
  position: fixed;
  top: 7.9vh;          /* nudge to align with the video bezel */
  bottom: 7vh;
  left: 0vw;
  right: 7vw;

  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.avatars-page .avatars-container::-webkit-scrollbar {
  display: none;
}


/* =========================
   Content frame INSIDE bezel (STUDENT PAGES)
   ========================= */

.student-page #page-content {
  position: fixed;
  top: 3vh;
  bottom: 3vh;
  left: 6vw;
  right: 6vw;

  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.student-page #page-content::-webkit-scrollbar {
  display: none;
}



