/*
  style.css –
  - 3 custom fonts (Metal Mania, Roboto, UnifrakturMaguntia)
  - parallax hero
  - animated scrolling text
  - min 3 gradients
  - transitions, keyframes, responsive layout
*/

/* Root color variables */
:root {
  --main-red: #a10404;
  --accent-yellow: #dcb001;
  --dark-bg: #1a1a1a;
  --light-text: #eee;
}

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

body {
  font-family: 'Roboto', sans-serif; /* main body font */
  color: var(--light-text);
  background-color: #111; /* fallback behind sections */
}

/* HEADER & NAV */
header {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
}

/* Animated scrolling text using keyframes */
.scrolling-text {
  font-family: 'UnifrakturMaguntia', cursive; /* second font */
  color: #fff;
  background-color: var(--main-red);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  animation: scrollText 800s linear infinite;
}

@keyframes scrollText {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.festival-title {
  font-family: 'Metal Mania', cursive; /* third font */
  font-size: 1.8rem;
  color: var(--accent-yellow);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
.main-nav a {
  text-decoration: none;
  color: var(--light-text);
  font-size: 1rem;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: var(--accent-yellow);
}
.active {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background-color: rgba(0,0,0,0.9);
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

/* HERO SECTION (Parallax) + GRADIENT #1 */
.hero-section {
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)),
    url("https://cdn.pixabay.com/photo/2015/10/12/15/19/crowd-984339_1280.jpg")
      no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.hero-content h2 {
  font-family: 'Metal Mania', cursive;
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* General Sections */
section {
  margin: 20px;
  background: rgba(26,26,26,0.8);
  padding: 20px;
  border-radius: 4px;
}

/* HEADLINERS & NEWCOMER (Gradient #2) */
.headliners, .newcomer-profile {
  background:
    linear-gradient(135deg, rgba(161,4,4,0.7), rgba(220,176,1,0.3));
}
.headliners article, .newcomer-profile {
  margin-bottom: 20px;
}
.headliners h3, .newcomer-profile h2 {
  color: var(--accent-yellow);
  font-family: 'Metal Mania', cursive;
}

/* Embedded iframes styling */
iframe {
  margin-top: 10px;
  box-shadow: 0 0 6px #000;
}

/* Spotify embed container */
.spotify-embed {
  margin: 10px 0;
}

/* details + summary styling */
details {
  background: rgba(255,255,255,0.1);
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
}
summary {
  cursor: pointer;
  color: var(--accent-yellow);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

/* REGISTRATION FORM */
.registration-form label {
  color: var(--accent-yellow);
  margin-top: 10px;
  display: block;
}
.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #222;
  color: #fff;
}
.registration-form button {
  background: var(--main-red);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.registration-form button:hover {
  background: #c10606;
}

/* GALLERY (Gradient #3) */
.gallery-section {
  background: linear-gradient(160deg, rgba(28,28,28,0.7), rgba(161,4,4,0.5));
}
.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery figure {
  border: 1px solid #444;
  width: 200px;
  overflow: hidden;
  transition: transform 0.3s;
  background-color: #000;
}
.gallery img {
  width: 100%;
  display: block;
}
.gallery figure:hover {
  transform: scale(1.05);
}
.gallery figcaption {
  text-align: center;
  padding: 5px;
  font-size: 0.9rem;
}

/* TABLES - now 4 columns for time, band, genre, year formed */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.schedule-table th, .schedule-table td {
  border: 1px solid #444;
  padding: 10px;
  text-align: left;
  background: #222;
}
.schedule-table thead tr {
  background: #111;
  color: var(--accent-yellow);
}
.schedule-table tbody tr:nth-child(even) {
  background: #2a2a2a;
}

/* FAQ */
.faq-section details {
  margin-bottom: 10px;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .hero-section {
    padding: 60px 10px;
  }
  .hero-content iframe {
    width: 100%;
    max-width: 420px;
    height: auto;
  }
  .gallery {
    flex-direction: column;
    align-items: center;
  }
  .registration-form input,
  .registration-form textarea,
  .registration-form select {
    width: 100%;
  }
  .schedule-table th, .schedule-table td {
    font-size: 0.85rem;
  }
  .scrolling-text {
    font-size: 1rem;
  }
  .festival-title {
    font-size: 1.5rem;
  }
}
