/* ============================================
   FONTS
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Chivo:ital,wght@0,100..900;1,100..900&family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* ============================================
   GLOBAL HEADING STYLES
   ============================================ */
h1, h2, h3 {
  font-family: "Bebas Neue", sans-serif;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

body {
  display: block;
  color: #000000;
  height: 100vh;
  width: 100vw;
  background: rgb(255, 255, 0);  
  position: relative;
}

main {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: relative;
  z-index: 100;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative; 
  z-index: 100;
  width: fit-content;
}

nav ul li a {
  display: block;
  color: rgb(255, 255, 0);
  background-color: rgba(0, 0, 0, 1);
  text-align: center;
  padding: 0.5em 1em;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  cursor: pointer;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 1);
  transition: background-color 0.2s ease, color 0.2s ease;
  color: rgb(0, 0, 0);
}

/* Active state - white background with black text */
nav ul li a.active {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
}

nav ul li a.active:hover {
  background-color: rgb(255, 255, 255);
}

/* ============================================
   ASCII ART OUTPUT
   ============================================ */
#ascii-output {
  font-family: "Courier New", "Courier", monospace;
  font-size: 0.55em;
  line-height: 1.0;
  white-space: pre;
  color: #000000;
  text-align: left;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  font-weight: 600;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  display: block;
  cursor: pointer;  /* shows it's clickable */
}

/* ============================================
   PAGE CONTAINER & CONTENT
   ============================================ */
.page-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 50;
  padding: 5%;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.page-container.active {
  display: flex;
  opacity: 1;
}

.page-content {
  background-color: rgb(255, 255, 255);
  padding: 1em 1em;
  max-width: 1080px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.page-container.active .page-content {
  transform: scale(1);
}

/* Page content typography */
#page-content-inner h1 {
  margin-top: 0;
  font-size: 2.5rem;
  color: #333333;
  border-bottom: 3px solid #333333;
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-family: "Bebas Neue", sans-serif;
}

#page-content-inner h2 {
  font-size: 1.8rem;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: "Bebas Neue", sans-serif;
}

#page-content-inner p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
}

#page-content-inner ul {
  background: none;
  padding-left: 20px;
  overflow: visible;
  list-style-type: disc;
}

#page-content-inner ul li {
  color: #333333;
  margin-bottom: 10px;
  background: none;
}

#page-content-inner ul li a {
  color: #333333;
  /* text-align: left; */
  padding: 0;
}

/* ============================================
   DATE OVERLAY (Currently unused)
   ============================================ */
#date-overlay {
  position: fixed;
  font-family: "Exo 2", "Albert Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgb(255, 0, 0);
  background-color: rgb(255, 0, 255);
  padding: 10px;
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  letter-spacing: 0.1em;
  display: flex;
  justify-content: center;
}

/* ============================================
   ARTISTS PAGE STYLING
   ============================================ */
.artists-intro {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.artist-entry {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(51, 51, 51, 0.3);
  scroll-margin-top: 20px;
  transition: background-color 0.3s ease;
}

.artist-entry:last-child {
  border-bottom: none;
}

.artist-header {
  margin-bottom: 25px;
}

.artist-header h2 {
  color: #000000;
  margin: 0 0 8px 0;
  font-size: 2.5rem;
}

.artist-show-title {
  margin: 0;
  font-size: 1.3rem;
  color: #444444;
}

.artist-info-section {
  margin-left: 40px;
}

.artist-performance-details {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 20px;
  border-left: 4px solid #333333;
}

.artist-performance-details p {
  margin: 5px 0;
}

.artist-description {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 20px 0;
}

.artist-bio {
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

.artist-bio p {
  margin: 8px 0;
}

.artist-links {
  margin-top: 1em;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.artist-links a {
  background-color: rgba(0, 0, 0, 1);
  color: rgb(255, 255, 0);
  padding: 0.5em 1em;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.artist-links a:hover {
  background-color: rgba(255, 255, 255, 0.193); 
  color: rgb(0, 0, 0);
  transition: background-color 0.2s ease;
  transition: color 0.2s ease;
}

.artist-image-container {
  text-align: center;
}

.artist-image {
  max-width: 100%;
  /* height: auto; */
  /* in case I want to clip the height */
  /* max-height: 500px; */ 
  /* object-fit: cover; */
  padding-bottom: 0.5em;
}

/* ============================================
   PROGRAM PAGE STYLING
   ============================================ */
.program-intro {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.program-day {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(51, 51, 51, 0.3);
}

.program-day:last-child {
  border-bottom: none;
}

.program-day-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 25px;
}

.program-day-header h2 {
  color: #000000;
  margin: 0;
  font-size: 2.5rem;
}

.program-date {
  font-size: 1.1rem;
  color: #666666;
  margin: 0;
  font-weight: 600;
}

.program-performances {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 40px;
}

.program-performance {
  display: flex;
  gap: 20px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.03);
  border-left: 4px solid #333333;
  transition: background-color 0.2s ease;
}

.program-performance:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.program-time {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: #000000;
  min-width: 80px;
  flex-shrink: 0;
  font-weight: 700;
}

.program-installation{
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  color: #000000;
  min-width: 80px;
  flex-shrink: 0;
}

.program-details {
  flex: 1;
}

.program-details h3 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
  color: #000000;
}

.program-show {
  margin: 5px 0;
  color: #444444;
  font-size: 1.1rem;
}

.program-venue {
  margin: 5px 0;
  color: #666666;
  font-size: 0.95rem;
}

.program-no-events {
  color: #999999;
  padding: 20px;
  text-align: center;
  margin-left: 40px;
}

/* Artist links in program page */
 a.artist-link,
a.event-link {
  background-color: rgba(0, 0, 0, 1);
  color: rgb(255, 255, 0);
  text-decoration: none;
  transition: background-color 0.2s ease;
  transition: color 0.2s ease;
  padding: 0.2em;
}

a.artist-link:hover,
a.event-link:hover {
  text-decoration: none;
  background-color: white;
  color: rgb(0, 0, 0);
  transition: background-color 0.2s ease;
  transition: color 0.2s ease;
}

/* ============================================
   ABOUT PAGE STYLING
   ============================================ */
.about-content {
  margin-left: 40px;
}

.about-intro {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 30px;
  font-weight: 500;
}

.about-section {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.about-credits {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid rgba(51, 51, 51, 0.3);
  color: #666666;
}

/* ============================================
   EVENTS PAGE STYLING
   ============================================ */
.events-intro {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.event-entry {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(51, 51, 51, 0.3);
}

.event-entry:last-child {
  border-bottom: none;
}

.event-header {
  margin-bottom: 25px;
}

.event-header h2 {
  color: #000000;
  margin: 0 0 8px 0;
  font-size: 2.5rem;
}

.event-artist-name {
  font-size: 1.3rem;
  color: #666666;
  margin: 0;
}

.event-info-section {
  margin-left: 40px;
}

.event-performance-details {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 20px;
  border-left: 4px solid #333333;
}

.event-performance-details p {
  margin: 5px 0;
}

.event-description {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 20px 0;
}

.event-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.event-links a {
  background-color: rgba(0, 0, 0, 1);
  color: rgb(255, 255, 0);
  padding: 0.4em 0.8em;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.event-links a:hover {
  background-color: rgba(255, 255, 255, 0.193);
  color: black;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1920px) {
  #ascii-output {
    font-size: 0.72em;
  }
}

@media (max-width: 1600px) {
  #ascii-output {
    font-size: 0.68em;
  }
  #date-overlay {
    font-size: 1.8rem;
  }
  #page-content-inner h1 {
    font-size: 2.2rem;
  }
  #page-content-inner h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 1400px) {
  #ascii-output {
    font-size: 0.65em;
  }
  #date-overlay {
    font-size: 1.6rem;
  }
  .page-content {
    padding: 35px 50px;
  }
}

@media (max-width: 1200px) {
  #ascii-output {
    font-size: 0.62em;
  }
  #date-overlay {
    font-size: 1.5rem;
  }
  #page-content-inner h1 {
    font-size: 2rem;
  }
  #page-content-inner h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) {
  #ascii-output {
    font-size: 0.58em;
  }
  #date-overlay {
    font-size: 1.3rem;
  }
  .page-content {
    padding: 30px 40px;
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  /* Navigation - Fixed to top on mobile */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgb(255, 255, 0);
  }
  
  nav ul {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 0;
  }
  
  nav ul li {
    flex: 1 1 0;
    min-width: 0;
  }
  
  nav ul li a,
  nav ul li a.nav-link {
    font-size: 0.9rem;
    padding: 0.5em 0.5em;
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }
  
  /* ASCII output - Add top padding to avoid nav overlap */
  #ascii-output {
    font-size: 0.52em;
    padding-top: 25px;
  }
  
  /* Page container - Add top padding */
  .page-container {
    padding: 5%;
    padding-top: calc(25px + 5%);
  }
  
  .page-content {
    padding: 25px 30px;
  }
  
  #date-overlay {
    font-size: 1.1rem;
  }
  
  #page-content-inner h1 {
    font-size: 1.8rem;
  }
  
  #page-content-inner h2 {
    font-size: 1.5rem;
  }
  
  #page-content-inner p {
    font-size: 1rem;
  }
  
  /* Artists page mobile adjustments */
  .artist-header h2 {
    font-size: 2rem;
  }
  
  .artist-info-section {
    margin-left: 20px;
  }
  
  .artist-description {
    font-size: 1.1rem;
  }
  
  .artist-image {
    /* max-height: 350px; */
  }
  
  /* Program page mobile adjustments */
  .program-day-header {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  
  .program-performances {
    margin-left: 20px;
  }
  
  .program-performance {
    flex-direction: column;
    gap: 10px;
  }
  
  .program-time {
    font-size: 1.5rem;
    min-width: auto;
  }
  
  .program-no-events {
    margin-left: 20px;
  }
  
  /* About page mobile adjustments */
  .about-content {
    margin-left: 20px;
  }
  
  .about-intro {
    font-size: 1.2rem;
  }
  
  .about-section {
    font-size: 1.05rem;
  }
  
  /* Events page mobile adjustments */
  .event-header h2 {
    font-size: 2rem;
  }
  
  .event-info-section {
    margin-left: 20px;
  }
  
  .event-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  #ascii-output {
    font-size: 0.45em;
  }
  #date-overlay {
    font-size: 1rem;
  }
  nav ul li a {
    padding: 0.4em 0.8em;
    font-size: 0.9rem;
    text-align: center!important;
  }
}

@media (max-width: 480px) {
  #ascii-output {
    font-size: 0.39em;
  }
  #date-overlay {
    font-size: 0.9rem;
  }
  .page-content {
    padding: 20px;
  }
  #page-content-inner h1 {
    font-size: 1.5rem;
  }
  #page-content-inner h2 {
    font-size: 1.2rem;
  }
  #refresh-button {
    width: 8%;
  }
}
