/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

h2 {
  margin-top: 3rem;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* General Layout */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Hyperlink Styles */
a {
  color: #00ccff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    text-align: center;
}

.fest-header {
    background-color: #050608;
}

.bands-header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 15px;
}

.fest-header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  opacity: 0.8;
}

.header-logo {
  width: 10rem;
  height: auto;
}

.header-banner {
  width: 85%;
  max-width: 60rem;
  height: auto;
}

.fest-poster {
    width: 100%;
    max-width: 70rem;
    height: auto;
    clip-path: inset(1px);
}

.fest-banner {
    width: 100%;
    max-width: 70rem;
    height: auto;
    clip-path: inset(1px);
    margin-top: 3em;
}

/* Band Grid Layout */
.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 100%;
}

/* Ensure maximum of 3 items per row */
@media (min-width: 768px) {
    .band-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(33.333% - 2rem), 1fr));
    }
}

.band-item {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.band-item:hover {
  transform: translateY(-5px);
}

.band-item a {
  text-decoration: none;
  color: #333;
}

.band-item a:hover {
  text-decoration: underline;
}

.band-image {
  /* Remove the fixed aspect ratio and relative positioning */
  width: 100%;
  overflow: hidden;
}

.band-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.band-item:hover .band-image img {
  filter: grayscale(0%);
}

/* Social Grid Layout */
.social-grid {
    max-width: 100%;
}

/* Ensure maximum of 3 items per row */
@media (min-width: 768px) {
}

.social-item {
}

/* Footer Styles */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Band Detail Page Styles */
.band-detail {
  background: #fff;
  border-radius: 5px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.band-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.band-detail-image {
  width: 100%;
  margin-bottom: 1.5rem;
}

.band-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.band-detail-info {
  flex: 1;
}

.band-detail-info h1 {
  margin-top: 0;
}

.band-detail-content {
  line-height: 1;
}

/* Bio section with increased line spacing */
.band-bio {
  line-height: 1.3;
}

.quotes-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .quotes-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.band-quote {
  line-height: 1.3;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 0 1.5rem 0.8rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.band-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quote-text {
  margin-bottom: 0.2rem;
  flex-grow: 1;
}

.quote-source {
  text-align: right;
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-size: 0.9em;
}

/* Shared Stage With List Styles */
.shared-stage-list {
  column-count: 1;
  column-gap: 2rem;
  margin: 0;
  padding-left: 2rem;
  max-width: 650px;
}

@media (min-width: 768px) {
  .shared-stage-list {
    column-count: 2;
  }
}

.shared-stage-list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

/* Social Media Icons */
.social-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Adjust this value to increase or decrease the space between icons */
}

.large-social-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 5px;
}

.large-facebook-icon {
    width: 43px;
    height: 43px;
    vertical-align: middle;
    margin-right: 5px;
    margin-bottom: 1px;
}

.large-social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: 3em;
}

.social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.social-link:hover {
  text-decoration: underline;
}

/* Book Band Image Link Styles */
.book-band-link {
  display: table;
  margin: 4rem auto 0;
  text-decoration: none;
}

.book-band-image {
  display: block;
  max-height: 35px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Get Tickets Image Link Styles */
.get-tickets-link {
    display: table;
    margin: 0 auto;
    text-decoration: none;
}

.get-tickets-image {
    display: block;
    max-height: 35px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Responsive Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
