:root {
  --bg: #0f0f10;
  --text-gray: #2b2b2b;
  --blue: #1e7cff;
  --accent-blue: #2790ff;
  --title-stroke: rgba(0, 0, 0, 0.6);
  --font-sans: "Skam", system-ui, sans-serif;
}

/* my custom font */
@font-face {
  font-family: "Skam";
  src: url("../HTML/fonts/Skam Font.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%
}

body {
  background: var(--bg);
  color: #fff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.2;
}

/* start invisible + slightly lowered */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* when visible */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* white page name labels at the top */
.subpage-labels {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  z-index: 5;
}

/* each nav label style */
.subpage-labels a {
  font-family: var(--font-sans);
  font-size: clamp(14px, 2.2vw, 28px);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}


/* Dropdown Button */
.dropbtn {
  /* These styles are copied from .subpage-labels a to match */
  font-family: var(--font-sans);
  font-size: clamp(14px, 2.2vw, 28px);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s ease; /* Added for smooth hover */
  
  /* These are your original button styles (which are good!) */
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* Dropdown button AND main nav links on hover & focus */
.subpage-labels > a:hover, /* Notice the > selector here */
.dropbtn:hover, 
.dropbtn:focus {
  color: var(--blue);
  transform: scale(1.08);
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #c2d1e1;
  min-width: 100px;
  opacity:0.9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: rgb(0, 0, 0);
  padding: 10px 10px;
  text-decoration: none;
  display: block;
  font-size: 20px;
  transition: all 0.3s ease;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #2790ff; color:white;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* hero section */
.hero {
  position: relative;
  min-height: 70vh;
  height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* background repeating words */
.bg-words {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: 6% 0;
  gap: 18px 30px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.7;
  margin: 0;
  width:100%;
  box-sizing:border-box;
}

/* make each word take only the space it needs and start hidden */
.bg-words span {
  flex: 0 0 auto;
  font-size: clamp(14px, 2.2vw, 28px);
  color: var(--text-gray);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;

  /* animation starting state */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.35s ease;
}

/* visible state applied by JS */
.bg-words span.visible {
  opacity: 1;
  transform: translateY(0);
}


/* title container */
.title {
  position: relative;
  z-index: 2;
  text-align: center;
  display: inline-block;
  line-height: 0.88;
  transform: translateY(-10px);
  margin-bottom: 80px;
}

/* each line large and heavy */
.title .line {
  display: block;
  font-weight: 900;
  font-size: clamp(36px, 7vw, 90px);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #1e7cff;
  /* space between lines */
  margin-bottom: 15px;
}

/* shakespeare portrait */
.shakespeare {
  position: absolute;
  /* push it to the bottom of the page */
  bottom: -20vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: clamp(180px, 28vw, 420px);
  /* responsive size */
  max-height: 65vh;
  object-fit: contain;
}

/* about section */
.about {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 40%, rgba(0, 0, 0, 0.04) 100%);
  color: #e6eef8;
  padding: 200px 20px;
}

.about .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 100px;
  padding-bottom: 30px;
  font-size: 1.1rem;
  text-align: center;
}

.about h2 {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 900px;
  opacity: 0.92;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* ---------------------------------
   ABOUT PAGE CUSTOM STYLES
-----------------------------------*/

/* 1. vertical accent line container */
.about-content {
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  padding-left: 28px;
  margin-left: 10px;
  text-align: left;
}

/* 2. Drop cap style for first paragraph */
.dropcap::first-letter {
  font-size: 3.4rem;
  float: left;
  padding-right: 10px;
  line-height: 0.8;
  color: var(--accent-blue);
  font-family: Cambria, serif;
}

/* 3. Two-column layout for methodology */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 850px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

/* Pipeline card */
.pipeline-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
}

.pipeline-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--accent-blue);
}

.pipeline-step {
  padding: 6px 0;
  font-family: Cambria, serif;
  opacity: 0.9;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pipeline-step:last-child {
  border-bottom: none;
}

/* 6. Link styling */
.about a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: 0.25s ease;
}

.about a:hover {
  color: #6ab3ff;
}
.team-members {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: Cambria, serif;
  opacity: 0.9;
  font-size: 1.1rem;
  gap: 6px 20px;
}

/* ----------------WORD PAGE

    CUSTOM STYLES ------------------*/  
.about .word-title {
    margin-bottom: 12px;
    color: #224cf5;
    font-weight: 700;
    text-align: center;
    margin-top: 3rem;
    font-size: 9rem;
}

.about .word-description-big {
    padding-top: 2.5rem;
    font-size: 2rem;
    line-height: 1.6;
    max-width: 1000px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0 auto 40px auto;
    text-align: center;
    margin-bottom: 5rem;
}

.about .word-description {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0 auto 40px auto;
    text-align: center;
    margin-bottom: 10px;
}
.word-description {
    font-size:2.5rem;
    margin-left:5%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;
    margin-bottom: 30px;

    
}
#word-cloud {
    width: 100%;           /* Will fill its container */
    max-width: 800px;      /* Max size on big screens */
    height: 800px;         /* Make it a square, so the circle is perfect */
    margin: 40px auto;     /* Center it on the page with space */
    border-radius: 50%;    /* This makes it a circle! */
    border: 2px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;      /* This clips words that go outside the circle */
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

#word-cloud {
    width: 100%;           /* Will fill its container */
    max-width: 800px;      /* Max size on big screens */
    height: 800px;         /* Make it a square, so the circle is perfect */
    margin: 40px auto;     /* Center it on the page with space */
    border-radius: 50%;    /* This makes it a circle! */
    border: 2px solid rgba(255, 255, 255, 0.05);
    background-color: #e6eef8;
    position: relative;
    overflow: hidden;      /* This clips words that go outside the circle */
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.word {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    user-select: none;
}

.word:hover {
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.word-search a:hover {
  color: #224cf5;
}

.word-search {
    font-size:1.5rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-left: 5%;
    column-count: 5;         /* Number of columns */
    column-gap: 20px;        /* Space between columns */
    list-style-position: inside;
    padding: 0;
    transition: 0.3s ease; 
}
.word-search a {
    color:white;
    text-decoration:none; 
     transition: 0.3s ease;    
}
/* PLAY Pages CSS Styling */
/* ==== HEADER TITLE ==== */
.play-header {
    margin-top: 10%;
    text-align: left;
    margin-bottom: 20px;
    margin-left: 50px;
}

.box{
  text-decoration: none;
}



.play-title {
    font-size: 5rem;
    margin: 0;
    font-weight: 700;
    color:#1e7cff;
    }

/* ==== PLAY META SECTION ==== */
.play-meta {
    max-width: 700px;
    margin: auto;
    text-align: left;
    margin-bottom: 40px;
    margin-left: 100px;
    font-family: Verdana, Arial;
}

.play-description {
    color: white;
    margin-bottom: 40px;
    font-size: 1.5rem;
    
}

.play-meta p {
    margin: 8px 0;
    font-size: 1.55rem;
}

.play-meta strong {
    color: white;
}

/* STYLING FOR EACH INDIVIDUAL WORD PAGE */
.word-info {
    margin-top: 10%;
    margin-left: 10%;
    margin-bottom:50px;
}   
.word-info h1 {
    font-size: 6rem;
    color: #1e7cff;
}
.word-info h2 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 8rem;
    font-size: 1.5rem;
}
.word-info p {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 1.5rem;
}
.speech {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin-left: 10%;
    transition: color 0.3s ease;
}
.speech h2 {
    font-size: 2rem;
    margin-top: 90px;
    margin-bottom:0px;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.speech h2 a:hover {
    color: #1e7cff;
}
.speech-text {
    font-size: 1.75rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.neologism {
    color:#1e7cff;
}
.speech h2 a{
    color: inherit; /* Inherits the color from its parent */
    text-decoration: none; /* Removes the underline */
}

/* ===== CENTER and SCALE SVG CHART ===== */
.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  width: 100%;
}

/* Make the SVG large and readable */
.chart-container svg {
  width: 80vw;
  max-width: 1600px;
  height: 600px;
}

/* Make all text inside the SVG white */
.chart-container svg text {
  fill: white;
  font-family: Arial, sans-serif;
  font-size: 22px;
}

.play-meta p span {
  color: #4db8ff;
}
/* Bar color override */
.chart-container svg rect {
  fill: #4db8ff;
  stroke: white;
  stroke-width: 1;
}

/* Keep SVG links white (visited or not) */
.chart-container svg a,
.chart-container svg a:visited {
  fill: white;
  transition: fill 0.3s ease;
}

/* Add hover effect to SVG links */
.chart-container svg a:hover {
  fill: #4db8ff;
}