/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
/* user styles */

/* styles are what change the color and sizes of stuff on your site. */

/* these are variables that are being used in the code
    these tended to confuse some people, so I only kept 
    the images as variables */
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap");
:root {
  --header-image: url("/images/cool-swirly-stuff.jpg");
  --body-bg-image: url("https://sadhost.neocities.org/images/tiles/blu_pink.jpg");

  /* colors */
  --content: #43256e;
}

/* if you have the URL of a font, you can set it below */
/* feel free to delete this if it's not your vibe */

/* this seems like a lot for just one font and I would have to agree 
    but I wanted to include an example of how to include a custom font.
    If you download a font file you can upload it onto your Neocities
    and then link it! Many fonts have separate files for each style
    (bold, italic, etc. T_T) which is why there are so many!
    
    */

@font-face {
  font-family: "Calibri Light";
  font-style: normal;
  font-weight: normal;
  src: local("Calibri Light"), url("/fonts/calibril.woff") format("woff");
}

@font-face {
  font-family: Bumblebee;
  src: url("/fonts/bumblebee.TTF");
}

@font-face {
  font-family: Nunito;
  src: url("https://sadhost.neocities.org/fonts/Nunito-Regular.ttf");
}

@font-face {
  font-family: Nunito;
  src: url("https://sadhost.neocities.org/fonts/Nunito-Bold.ttf");
  font-weight: bold;
}

@font-face {
  font-family: Nunito;
  src: url("https://sadhost.neocities.org/fonts/Nunito-Italic.ttf");
  font-style: italic;
}

@font-face {
  font-family: Nunito;
  src: url("https://sadhost.neocities.org/fonts/Nunito-BoldItalic.ttf");
  font-style: italic;
  font-weight: bold;
}

body {
  font-family: "Courier Prime", sans-serif;
  margin: 0;
  background-color: #f4f0de;
  /* you can delete the line below if you'd prefer to not use an image */
  color: #000;
  height: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Courier Prime", sans-serif;
}

/* Base font size for paragraphs */
body {
  font-size: 20px; /* Even larger base font size */
  line-height: 1.6;
}

/* Heading Levels */
h1 {
  font-size: 2.5rem; /* 50px */
  line-height: 1.2;
}

h2 {
  font-size: 2rem; /* 40px */
  line-height: 1.3;
}

h3 {
  font-size: 1.75rem; /* 35px */
  line-height: 1.4;
}

h4 {
  font-size: 1.5rem; /* 30px */
  line-height: 1.5;
}

h5 {
  font-size: 1.25rem; /* 25px */
  line-height: 1.5;
}

h6 {
  font-size: 1.125rem; /* 22.5px */
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

/* below this line is CSS for the layout */

/* this is a CSS comment
    to uncomment a line of CSS, remove the * and the /
    before and after the text */

/* the "container" is what wraps your entire website */
/* if you want something (like the header) to be Wider than
    the other elements, you will need to move that div outside
    of the container */
#container {
  min-height: 100vh; /* Full viewport height */
  margin: 0 auto;
  /* this centers the entire page */
}

#header {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;

  width: 100%;
  /* header color here! */
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#header img {
  width: auto;
  max-height: 150px;
}

/* navigation section!! */
#navbar {
  height: 40px;
  /* navbar color */
  width: 100%;
  margin: 20px 0px;
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-evenly;
}

#navbar li {
  padding-top: 10px;
}

/* navigation links*/
#navbar li a {
  color: #fff;
  /* navbar text color */
  font-weight: 800;
  text-decoration: none;
  background-color: #360932;
  padding: 20px;
  /* this removes the underline */
}

/* navigation link when a link is hovered over */
#navbar li a:hover {
  color: #b891b3;
  text-decoration: underline;
}

#flex {
  display: flex;
}

/* this colors BOTH sidebars
    if you want to style them separately,
    create styles for #leftSidebar and #rightSidebar */
aside {
  background-color: #241445;
  width: 200px;
  padding: 20px;
  font-size: smaller;
  /* this makes the sidebar text slightly smaller */
}

/* this is the color of the main content area,
    between the sidebars! */
main {
  flex-grow: 1;
  flex: 1;
  padding: 0px;
  order: 2;
  display: flex;
  flex-direction: column;
}

#intro-section {
  min-height: 769px;
  aspect-ratio: unset;
  width: 100vw;
  position: relative;

  width: 100%;
  /* header color here! */
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#intro-section img {
  z-index: -1;
  border: none;
  bottom: 0;
  box-shadow: none;
  height: 100%;
  left: 0;
  margin: 0;
  max-height: none;
  max-width: none;
  object-fit: cover;
  outline: none;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

#search-area {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

#search-group {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#search-group h2 {
  color: white;
  font-size: 4rem;
  text-shadow: 0 0 2px #000, 0 0 4px #000;
  font-weight: 800;
}

#search-form {
  position: relative;
  width: 100%;
  height: 80px;
}

#search-input {
  width: 100%;
  height: 100%;
  background-color: white;
  border: 2px solid #000;
  border-radius: 16px;
  font-size: 1.2rem;
  padding: 1rem;
}

#search-input.suggestions-visible {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#search-button {
  right: 0;
  position: absolute;
  margin-top: 0 !important;
  background-color: #e8ffdc;
  border: 2px solid #000;
  padding: 1.4rem 1rem;
  border-radius: 0;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  bottom: 0;
  top: 0;
  font-size: 1.2rem;
}

#search-button:hover {
  background-color: #8ecc6e;
}

#search-button:active {
  background-color: #6db846;
  -webkit-box-shadow: inset 0px 0px 5px #5fa13d;
  -moz-box-shadow: inset 0px 0px 5px #5fa13d;
  box-shadow: inset 0px 0px 5px #5fa13d;
  outline: none;
}

.search-options {
  gap: 2rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}

.sort-toggle-button {
  background-color: #a52a86;
  height: 100%;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.sort-toggle-button:hover {
  background-color: #7a1a5e;
}

.tag-selector-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Styled Select Dropdown */
.tag-selector {
  appearance: none;
  width: 100%;
  padding: 12px;
  border: 2px solid #43256e;
  border-radius: 8px;
  background-color: #fff;
  color: #43256e;
  font-size: 1rem;
  font-family: "Courier Prime", sans-serif;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder Text */
.tag-selector option[disabled] {
  color: #6b5a68;
}

/* Hover and Focus State */
.tag-selector:hover,
.tag-selector:focus {
  border-color: #a52a86;
  box-shadow: 0 0 5px rgba(237, 100, 245, 0.5);
  outline: none;
}

/* Arrow Icon Replacement */
.tag-selector-wrapper::after {
  content: "▼";
  font-size: 1rem;
  color: #43256e;
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Clear Button */
.clear-tag-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a52a86;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

/* Clear Button Hover State */
.clear-tag-button:hover {
  color: #7a1a5e;
}

/* Clear Button Focus State */
.clear-tag-button:focus {
  outline: none;
  color: #6f1450;
}

.section-block {
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 680px;
}

.green-background {
  background-color: #e8ffdc;
}

.section-content {
  max-width: 1000px;
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#globe {
  align-self: center;
}

#art-gallery {
  list-style-type: none;
}

.gallery-image {
  width: 120px;
}

.content-section {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.archive-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;

  /* Default: 4 columns for wider screens */
  grid-template-columns: repeat(4, 1fr);
}

/* For larger screens (desktop) */
@media (min-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(4, 1fr); /* Always maintain 4 columns */
  }
}

/* For tablets (medium screens) */
@media (min-width: 768px) and (max-width: 1023px) {
  .archive-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
  }
}

@media (max-width: 767px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
  }
}

@media (max-width: 500px) {
  body {
    font-size: 1rem;
  }
  
  .search-options {
    gap: 1rem;
    flex-direction: column;
  }
  
  #search-form {
    height: 64px;
  }
  
  #search-input {
    font-size: 1rem;
    padding: .8rem;
  }
  
  #search-button {
    font-size: 1rem;
  }
  
  .sort-toggle-button {
    width: 100%;
  }
  
  .archive-grid {
    grid-template-columns: repeat(1, 1fr); /* 2 columns on smaller screens */
  }
  
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background-color: #e0e0e0; /* Light grey background */
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e0e0e0 25%, #cfcfcf 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-wrapper img.loaded {
  opacity: 1;
}

.archive-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
  max-width: none; /* Ensure it takes the full width of the grid cell */
}

.archive-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #ccc; /* This is the grey placeholder color */
  display: block;
  border-radius: 8px;
}

/* Adjust the size of text and other elements to fit better in smaller spaces */
.text-content h2 {
  font-size: 1rem;
  color: #43256e;
}

.text-content p.description {
  margin: 0 0 5px;
  color: #666;
  font-size: 0.9rem;
}

.text-content .read-more {
  font-size: 0.8rem;
  color: #43256e;
  text-decoration: none;
}

.text-content .read-more:hover {
  text-decoration: underline;
}

#description-section {
  background-color: #e8ffdc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

#description-section h2 {
  font-size: 1.8rem;
  color: #43256e;
  margin-bottom: 10px;
}

#description-section p {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
}

/* Audio Section */
#entry-audio {
  margin-bottom: 20px;
  width: 100%;
}

#entry-audio h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #43256e;
}

audio {
  width: 100%;
  margin-top: 10px;
}

#files-download-list {
  display: flex;
  flex-direction: column;
}

/* Transcript Section */
#files-download-list h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #43256e;
}

#files-download-list a {
  text-decoration: none;
  font-weight: bold;
  color: #a52a86;
  transition: color 0.3s ease;
}

#files-download-list a:hover {
  color: #7a1a5e;
}

/* Metadata Section */
#entry-metadata {
  margin-bottom: 20px;
}

#entry-metadata h3 {
  font-size: 1.5rem;
  color: #43256e;
  margin-bottom: 10px;
}

#entry-metadata ul {
  list-style: none;
  padding-left: 0;
}

#entry-metadata li {
  margin-bottom: 8px;
}

#entry-metadata strong {
  font-weight: bold;
  color: #000;
}

/* Back to Archive Button */
.archive-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #a52a86;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.archive-btn:visited {
  color: white;
  text-decoration-color: white;
}

.archive-btn:hover {
  background-color: #7a1a5e;
  text-decoration: underline;
}

.archive-btn:active {
  background-color: #6f1450;
}

/* Example styles for the newly added classes */
#content-wrapper {
  margin: 0 auto;
  max-width: 1100px;
  padding: 2rem;
}

.interview-header {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.interview-image {
  width: auto;
  height: 200px;
}

.interview-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.interview-title {
  font-size: 24px;
  font-weight: bold;
}

.interview-description {
  font-size: 18px;
}

footer {
  background-color: #d9d9d9;
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

footer a {
  color: inherit;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
}

h1,
h2,
h3 {
  color: #a52a86;
}

h1 {
  font-size: 25px;
}

strong {
  /* this styles bold text */
  color: #a52a86;
}

/* this is just a cool box, it's the darker colored one */
.box {
  background-color: #13092d;
  border: 1px solid #a52a86;
  padding: 10px;
}

/* CSS for extras */

#topBar {
  width: 100%;
  height: 30px;
  padding: 10px;
  font-size: smaller;
  background-color: #13092d;
}

/* BELOW THIS POINT IS MEDIA QUERY */

/* so you wanna change the width of your page? 
    by default, the container width is 900px.
    in order to keep things responsive, take your new height,
    and then subtrack it by 100. use this new number as the 
    "max-width" value below
    */

@media only screen and (max-width: 800px) {
  #flex {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }

  #description-section,
  #entry-audio,
  #entry-transcript,
  #entry-metadata {
    padding: 15px;
  }

  .archive-btn {
    width: 100%;
  }

  /* the order of the items is adjusted here for responsiveness!
      since the sidebars would be too small on a mobile device.
      feel free to play around with the order!
      */
  main {
    order: 1;
  }

  #header {
    display: flex;
    flex-direction: row;

    width: 100%;
    /* header color here! */
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0px;
  }

  #header img {
    width: auto;
    max-height: 96px;
  }

  /* navigation section!! */
  #navbar {
    height: 100%;
    /* navbar color */
    width: 100%;
    margin: 10px 0px;
  }

  #navbar ul {
    height: 100%;
    flex-wrap: wrap;
  }

  #navbar li {
    padding-top: 10px;
  }

  /* navigation links*/
  #navbar li a {
    color: #fff;
    /* navbar text color */
    font-weight: 800;
    text-decoration: none;
    background-color: #360932;
    padding: 10px;
    margin: 8px 4px;
    /* this removes the underline */
  }
}

#people {
  scroll-margin-top: 2rem;
}

.people-section {
  align-items: flex-start;
  text-align: left;
}

.people-intro {
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.4rem 1.5rem;
  width: 100%;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.people-grid li {
  line-height: 1.4;
}

.team-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

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

  .people-intro {
    text-align: left;
  }
}

a {
  color: #43256e;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:visited {
  color: #43256e;
}

a:hover {
  color: #a52a86;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #43256e;
  outline-offset: 3px;
}

.tag-selector:focus-visible,
.clear-tag-button:focus-visible {
  outline: 3px solid #43256e;
  outline-offset: 2px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.section-block {
  width: 100%;
  min-height: 0;
  padding: 4rem 1.5rem;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-content p {
  max-width: 68ch;
}

.archive-grid {
  max-width: 1200px;
}

.archive-item h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0.75rem 0 0.5rem;
}

.archive-item h2 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.archive-item p {
  color: #3d2a3b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.people-section > h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.people-grid {
  gap: 0.6rem 2rem;
}

.people-grid a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#people {
  border-top: 1px solid rgba(67, 37, 110, 0.18);
}

footer {
  height: auto;
  padding: 2rem 1.5rem;
  background-color: #360932;
}

footer h3 {
  color: #f4f0de;
  font-size: 1rem;
  font-weight: 400;
}

@media (min-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-placeholder {
    animation: none;
  }

  .image-wrapper img {
    transition: none;
  }
}

.faq-section h3 {
  width: 100%;
  text-align: center;
}

#navbar a:focus-visible,
footer a:focus-visible {
  outline-color: #f4f0de;
}

.interview-main,
.interview-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.interview-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

.interview-header > img,
.interview-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.interview-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.interview-details h2,
.interview-title {
  margin-top: 0;
}

#entry-audio,
#entry-audio audio,
#files-download-list,
#entry-metadata {
  width: 100%;
  max-width: 100%;
}

#entry-metadata li {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .interview-main,
  .interview-entry {
    padding: 1.25rem;
    gap: 1.5rem;
  }

  .interview-header {
    flex-direction: column;
    gap: 1.25rem;
  }

  .interview-header > img,
  .interview-image {
    max-width: 100%;
    max-height: none;
  }
}

.transcript-note {
  color: #6b5a68;
  font-size: 0.95rem;
}

.transcript-note {
  display: block;
}
