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

body {
  font-family: 'Roboto', sans-serif;
  color: #2e2e2e;
  line-height: 1.6;
  background-color: #faf3e0;
  padding-top: 50px; /* Height of navbar */
}

/* Hero Section */
.hero {
  background: url('images/hero-bg.jpg') no-repeat center center/cover;
  height: 100vh;
  color: #fff;
  text-align: center;
  position: relative;
}
.hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero .band-name {
  font-size: 4rem;
  font-family: 'Great Vibes', cursive;
  text-shadow: 2px 2px 4px #000;
}

.hero .tagline {
  font-size: 1.5rem;
  margin-top: 10px;
  text-shadow: 2px 2px 4px #000;
}

/* Navbar */
.navbar {
  background-color: #4e342e;
  padding: 10px 20px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar.floating {
  background-color: rgba(78, 52, 46, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar ul {
  list-style: none;
}

.navbar ul li {
  display: inline-block;
  margin: 0 15px;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.navbar ul li a:hover {
  text-decoration: underline;
}

/* About Section */
.about, .shows, .contact {
  padding: 50px 20px;
  text-align: center;
}

.about {
  background-color: #e7d3c6;
}

.shows {
  background-color: #d3c1aa;
  color: #fff; /* Ensure text is readable on the background */
  padding: 50px 20px;
  text-align: center;
}

.shows strong {
  font-size: 1.2rem; /* Increase font size */
  color: #333; /* Darken the text */
}

.shows li {
  position: relative;
  padding-bottom: 20px; /* Add space for the separator */
}

.shows li + li::before {
  content: '';
  display: block;
  width: 30%; /* Set width to 30% of the screen */
  height: 1px; /* Set height of the hr */
  background-color: #333; /* Dark color for the hr */
  margin: 20px auto; /* Center the hr */
}

.past-shows-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.1rem;
  background-color: #4e342e;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.past-shows-button:hover {
  background-color: #3b2a23;
}

#past-shows-content {
  max-height: 70vh;
  overflow-y: auto;
}

#past-shows-content ul {
  list-style: none;
  padding: 0;
}

#past-shows-content li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

#past-shows-content li:last-child {
  border-bottom: none;
}

#past-shows-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#past-shows-modal .modal-content {
  background-color: #fff;
  margin: 15vh auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
}

.contact {
  background: url('images/band-front-bw.jpg') no-repeat center top/cover;
  background-position: center top; /* Focus on the center top part of the image */
  background-size: cover;
  background-clip: content-box; /* Clip the background to the content box */
  overflow: hidden; /* Hide the rest of the background image */
  color: #fff; /* Ensure text is readable on the background */
  padding: 50px 20px;
  text-align: center;
  position: relative; /* Ensure the background overlay is positioned correctly */
}

.contact .overlay {
  background-color: rgba(255, 255, 255, 0.8); /* Light tan or grey overlay */
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
  position: relative;
  z-index: 0; /* Changed from 1 to 0 to be below modals */
}

.contact h2, .contact p, .contact a {
  position: relative;
  z-index: 2; /* Ensure the text is above the overlay */
}

.contact p, .contact a {
  color: #000; /* Set text color to black */
}

h2 {
  font-size: 2.5rem;
  color: #4e342e;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: #4e342e;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}
/* Social Media Section in Footer */
footer .social-media {
  margin-top: 10px;
}

footer .social-media p {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

footer .social-media a img {
  width: 30px;
  height: 30px;
  margin: 0 5px;
  filter: grayscale(100%); /* Rustic desaturated look */
  transition: filter 0.3s ease;
}

footer .social-media a img:hover {
  filter: grayscale(0%);
}
/* Styling for the "Meet the Band" heading */
.section-heading {
  font-family: 'Great Vibes', cursive; /* Elegant font */
  font-size: 2.5rem; /* Larger size for prominence */
  color: #333; /* Darker color for good contrast */
  text-align: center; /* Centered alignment */
  margin-bottom: 10px; /* Space below the heading */
  position: relative; /* For the decorative divider */
}

.section-heading::after {
  content: ""; /* Decorative divider */
  display: block;
  width: 80px; /* Divider width */
  height: 3px; /* Divider thickness */
  background-color: #333; /* Same color as the text */
  margin: 10px auto 20px; /* Centered below the text */
  border-radius: 2px; /* Slightly rounded edges */
}

/* Existing members styling */
.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns for three members */
  gap: 40px;
  margin: 20px auto;
  padding: 20px;
  max-width: 1200px;
  justify-content: center;
}

@media (max-width: 768px) {
  .members {
    grid-template-columns: repeat(1, 1fr); /* On small screens: 1 column */
  }
}

/* Commented out 4-column layout for future use when new member joins
@media (min-width: 1024px) {
  .members {
    grid-template-columns: repeat(4, 1fr); 
  }
}
*/

.member {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.member-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.member.flipped .member-inner {
  transform: rotateY(180deg);
}

.member-front, .member-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 15px;
  border-radius: 10px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.member-front {
  z-index: 2;
}

.member-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  padding: 20px;
}

.member-back h4 {
  margin-bottom: 15px;
}

.bio-text {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
  padding: 10px;
}

/* Remove hover transform since we're using flip */
.member h4 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}

.member p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.member-headshot {
  width: 50%; /* Reduce width to 50% */
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Bio Modal specific styles */
#bio-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#bio-modal .modal-content {
  background-color: #fff;
  margin: min(10vh, 40px) auto;
  padding: 20px;
  width: min(90%, 600px);
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  border-radius: 8px;
}

#bio-content {
  line-height: 1.6;
  white-space: pre-line;
}

@media (max-width: 768px) {
  #bio-modal .modal-content {
    width: calc(100% - 30px);
    margin: 15px auto;
    padding: 15px;
  }
}

/* Setlists Section */
.setlists {
  background-color: #c4b7a6; /* New background color */
  padding: 50px 20px;
  text-align: center;
}

.setlist-buttons {
  display: flex;
  justify-content: center;
  gap: 10px; /* Reduce gap to allow for overlap */
  flex-wrap: wrap;
}

.setlist-button {
  background-color: #4e342e;
  color: #fff;
  border: none;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 234px; /* Increase width by 50% */
  height: 200px; /* Set height to ensure the entire image fits */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden; /* Ensure the image does not overflow the button */
  background-size: 300% 100%; /* Adjust background size to show more of the image */
}

.setlist-button:nth-child(1) {
  background-position: 50% 0%; /* Use middle section */
}

.setlist-button:nth-child(2) {
  background-position: 25% 0%, 75% 0%; /* Use sections 3 and 5 */
}

.setlist-button:nth-child(3) {
  background-position: 0% 0%, 50% 0%, 100% 0%; /* Use sections 2, 4, and 6 */
}

.setlist-button:nth-child(4) {
  background-position: 0% 0%, 25% 0%, 50% 0%, 75% 0%; /* Use sections 2, 3, 4, and 5 */
}

.setlist-button:nth-child(5) {
  background-position: 0% 0%, 25% 0%, 50% 0%, 75% 0%, 100% 0%; /* Use sections 2, 3, 4, 5, and 6 */
}

.setlist-button span {
  position: absolute;
  top: 10px; /* Move text to the upper section */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.7); /* White background with same opacity */
  color: #000; /* Black text */
  padding: 5px 10px;
  border-radius: 5px;
  width: 90%; /* Set width to 90% of the box area */
  text-align: center;
}

.setlist-button:hover {
  background-color: #3b2a23;
}

.setlist-button:hover::after {
  content: "Click to view set";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* Setlist Modal */
#setlist-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#setlist-modal .modal-content {
  background-color: #fff;
  margin: 10vh auto;
  padding: 20px;
  width: 95%;
  max-width: 800px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Audio Modal */
#audio-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#audio-modal .modal-content {
  background-color: #fff;
  margin: 5vh auto;
  padding: 20px;
  width: 95%;
  max-width: 800px;
  border-radius: 8px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Remove the generic .modal styles */

/* Subscribe Button */
.subscribe-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  color: #fff;
  background-color: hsl(8, 9%, 66%);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  }

.subscribe-button:hover {
  background-color: #3b2a23;
}

/* Audio Section */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.audio-button {
  background: url('images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  border: none;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 234px;
  height: 100px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.audio-button:hover {
  transform: translateY(-5px);
}

.audio-button span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  width: 90%;
  text-align: center;
}

#audio-content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  padding: 20px;
}

#song-list {
  text-align: left;
  overflow-y: auto;
  max-height: 40vh; /* Reduced to give more space to player */
  width: 100%;
}

#audio-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  min-height: 150px;
  width: 100%;
}

/* Remove the media query that was changing the layout */
@media (min-width: 768px) {
  #audio-content {
    grid-template-columns: 1fr;  /* Keep single column layout at all sizes */
  }
}

#song-list {
  text-align: left;
  overflow-y: auto;
  max-height: 60vh;
}

.song-item {
  padding: 10px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.song-item:hover {
  background-color: #f0f0f0;
}

.song-item.playing {
  background-color: #e0e0e0;
  font-weight: bold;
}

#audio-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  min-height: 150px;
}

#player {
  width: 100%;
  max-width: 400px;
}

#drive-player {
  width: 100%;
  max-width: 640px;
  min-height: 0;  /* Remove min-height */
  border: none;
  transition: height 0.3s ease;
  display: none;  /* Hidden by default */
}

#now-playing {
  font-style: italic;
  color: #666;
}

.media-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

@media (max-width: 500px) {
  .media-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center buttons horizontally */
  }
}

.youtube-link {
  text-align: center;
  padding: 15px;
  margin: 20px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.youtube-link a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #4e342e;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  padding: 10px;
}

.yt-logo-container {
  position: relative;
  height: 40px;
  width: 120px;
  margin: 0 auto; /* Center the container */
}

.yt-logo-bw, .yt-logo-color {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.yt-logo-color {
  opacity: 0;
}

.youtube-link a:hover {
  color: #000;
}

.youtube-link a:hover .yt-logo-color {
  opacity: 1;
}

/* Common Modal Styles */
#bio-modal .modal-content,
#past-shows-modal .modal-content,
#setlist-modal .modal-content,
#audio-modal .modal-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: 'Roboto', sans-serif;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px;
  margin: 5vh auto;
  width: 90%;
  max-width: 600px;
}

#bio-modal .modal-content h2,
#past-shows-modal .modal-content h2,
#setlist-modal .modal-content h2,
#audio-modal .modal-content h2 {
  font-family: 'Great Vibes', cursive;
  color: #4e342e;
  margin-bottom: 5px;
  font-size: 2.8rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#bio-role {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-bottom: 25px;
  font-size: 1.2em;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

#bio-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
  white-space: pre-line;
  text-align: justify;
  padding: 0 15px;
}

.close-button {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  color: #4e342e;
  cursor: pointer;
  transition: color 0.3s ease;
  opacity: 0.7;
}

.close-button:hover {
  color: #000;
  opacity: 1;
}

@media (max-width: 768px) {
  #bio-modal .modal-content {
    padding: 20px;
    margin: 10px;
    width: calc(100% - 20px);
  }
  
  #bio-modal .modal-content h2 {
    font-size: 2.2rem;
  }
  
  #bio-content {
    font-size: 1em;
    padding: 0 5px;
  }
}

.close-button {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  color: #4e342e;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #000;
}
