/* Funky Choir Website Style */
:root {
  --primary-color: #8314dedd; /* Purple */
  --secondary-color: #9106e2; /* Blue */
  --accent-color: #ff6b6b; /* Coral */
  --light-color: #f8f9fa; /* Light gray */
  --dark-color: #212529; /* Dark gray */
  --font-main: 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  background-color: var(--light-color);
  background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

nav {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem auto;
  max-width: 80%;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-color);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--dark-color);
  color: white;
  margin-top: 2rem;
}

/* Card style for events or articles */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 5px solid var(--accent-color);
}

/* Button style */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--secondary-color);
}

/* Image style */
.chorale-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 1rem 0;
  display: block;
}

/* Poster: floated right, sized to a usable minimum so the card fits around it */
.poster {
  float: right;
  width: 260px;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 0 0 1rem 1.5rem;
  display: block;
}

/* Clearfix so a .card grows to contain floated children (e.g. the poster) */
.card::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive YouTube embed */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 1rem 0;
}

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

/* Titled video card: matches the width of the other cards (no narrow cap) */
.video-card .video-wrapper {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.video-title {
  margin-top: 0;
}


/* Responsive design */
@media (max-width: 768px) {
  .poster {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }
}
