/* Universell reset för marginaler, padding och box-sizing */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Grundinställningar för html elementet */

html {
  font-size: 16px;
}

/* Body-stil med font, färg, bakgrund, flexlayout */

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #f5f5f5;
  background-color: #121212;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main element fyller tillgängligt utrymme */

main {
  flex: 1;
}

/* Container för centrerad layout och maxbredd */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Rubriker från h1 till h6 med gemensam stil och olika storlekar */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Impact', sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #f5f5f5;
}

/* Specifik stil för h1 */

h1 {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Specifik stil för h2 */

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

/* Specifik stil för h3 */

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Specifik stil för h4 */

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Paragrafer */

p {
  margin-bottom: 1rem;
}

/* Länkar */

a {
  color: #c10000;
  text-decoration: none;
}

/* Hover och fokus för länkar */

a:hover, a:focus {
  color: #ff3333;
  text-decoration: underline;
}

/* Listor */

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* Header med bakgrund, skugga och positionering */

header {
  background-color: #1a1a1a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Container inom header för layout */

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* Logotypens rubrikstil */

.logo h1 {
  font-size: 2rem;
  margin: 0;
  color: #c10000;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

/* Hovereffekt för logotypen */

.logo h1:hover {
  color: #ff3333;
}

/* Navigationsmenyn i horisontell rad */

.main-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Listobjekt i navigation */

.main-nav li {
  margin-left: 1rem;
}

/* Länkar i navigation */

.main-nav a {
  display: block;
  padding: 0.5rem;
  color: #f5f5f5;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
}

/* Hover, fokus och aktiv stil för navigation länkar */

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  color: #c10000;
  text-decoration: none;
}

/* Page banner med bakgrund, padding och textcentrering */

.page-banner {
  background-color: #333333;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Innehåll inom page-banner */

.page-banner .container {
  position: relative;
  z-index: 2;
}

/* Rubrik i page-banner */

.page-banner h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  color: #c10000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Paragraf i page-banner */

.page-banner p {
  font-size: 1.25rem;
  color: #f5f5f5;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero-sektion med bakgrundsbild och padding */

.hero {
  background-color: #000000;
  background-image: url('pics/Pantera.png');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 10rem;
  margin-bottom: 0;
}

/* Innehåll inom hero */

.hero .container {
  position: relative;
  z-index: 2;
}

/* Texten i hero-sektionen */

.hero-content {
  max-width: 700px;
  text-align: left;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f5f5f5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #f5f5f5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

/* Knappar */

.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  background-color: #c10000;
  color: #f5f5f5;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: solid;
  border-color: #FFFFFF;
}

/* Hover och fokus för knappar */

.btn:hover, .btn:focus {
  background-color: #990000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
  color: #f5f5f5;
  text-decoration: none;
}

/* Sektion för bandintroduktion */

.band-intro {
  padding: 2rem 0;
  background-color: #1e1e1e;
}

/* Innehåll i bandintroduktionen */

.intro-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

/* Bandbild */

.band-photo {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s ease;
}

.band-photo:hover {
  transform: scale(1.02);
}

/* Sektion för albumhöjdpunkter */

.album-highlight {
  padding: 4rem 0;
  background-color: #1a1a1a;
}

.album-highlight h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #c10000;
}

/* Grid för album */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Varje albumkort */

.album {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

/* Albumomslag */

.album-cover {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  height: 200px;
}

.album-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Albuminformation */

.album-info {
  padding: 1.5rem;
}

.album-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #c10000;
}

.album-info p {
  color: #f5f5f5;
  font-size: 1rem;
  line-height: 1.6;
}

/* Tidslinjesection */

.timeline {
  padding: 4rem 0;
  background-color: #1e1e1e;
}

.timeline-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.timeline-items {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.timeline-date {
  flex: 0 0 120px;
  text-align: center;
  padding: 1rem;
  background-color: #c10000;
  border-radius: 4px;
  margin-right: 1.5rem;
}

.timeline-date span {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f5f5f5;
}

.timeline-content {
  flex: 1;
  padding: 0.5rem 0;
}

.timeline-content h3 {
  color: #c10000;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #f5f5f5;
}

/* Impact-sektion */

.impact-section {
  padding: 4rem 0;
  background-color: #1a1a1a;
}

.impact-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #c10000;
}

.impact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.impact-text {
  flex: 1;
  min-width: 300px;
}

.impact-image {
  flex: 1;
  min-width: 300px;
}

.impact-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.impact-text h3 {
  color: #c10000;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Medlemmar-sektion */

.members-section {
  padding: 4rem 0;
  background-color: #1e1e1e;
}

.members-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #f5f5f5;
}

.member-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.member-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.member-image {
  position: relative;
  overflow: hidden;
}

.member-info {
  padding: 1.5rem;
}

.member-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.member-info h3 {
  color: #c10000;
  margin-bottom: 0.5rem;
}

.member-role {
  color: #f5f5f5;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.member-bio {
  color: #f5f5f5;
}

.member-bio h4 {
  color: #c10000;
  margin: 1rem 0 0.5rem;
}

.member-bio ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

.member-bio li {
  margin-bottom: 0.5rem;
  color: #f5f5f5;
}

/* Recensionssektion */

.album-review {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
  height: 500px;
}

.review-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  height: 500px;
}

.album-cover {
  flex: 0 0 300px;
  position: relative;
  padding-top: 10px;
}

.album-details {
  flex: 1;
  min-width: 300px;
}

.review-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.album-details h2 {
  color: #c10000;
  margin-bottom: 1rem;
}

.album-meta {
  margin-bottom: 1rem;
}

.album-meta p {
  margin-bottom: 0.5rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.stars {
  display: inline-flex;
  gap: 0.25rem;
}

.stars i {
  font-size: 1.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.stars i:hover {
  transform: scale(1.1);
}

.rating-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f5f5f5;
}

.review-content {
  color: #f5f5f5;
  height: 300px;
}

.review-content h3 {
  color: #c10000;
  margin: 2rem 0 1rem;
}

/* Fanclub-sektion */

.fanclub-section {
  padding: 4rem 0;
  background-color: #1e1e1e;
}

.signup-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.signup-container h2 {
  text-align: center;
  color: #c10000;
  margin-bottom: 2rem;
}

#fanclub-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #f5f5f5;
  font-weight: 500;
}

.required {
  color: #c10000;
  margin-left: 0.25rem;
}

/* Form inputs */

input[type="text"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #f5f5f5;
}

/* Radio button grupp */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Formactions knapp */

.form-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Responsiva design: max-width 768px */

@media (max-width: 768px) {
  /* Första rubriken större än 2.5rem till 2.5rem */
  h1 {
    font-size: 2.5rem;
  }

  /* H2 till 2rem */
  h2 {
    font-size: 2rem;
  }

  /* Navigation i responsiv layout */

  .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    padding: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  /* Page banner marginal upp */

  .page-banner {
    margin-top: 50px;
  }

  /* Logotyp centrerad */

  .logo {
    margin: 0 auto;
    display: block;
  }

  /* Navigationslänkar margin och fontstorlek */

  .main-nav li {
    margin: 0rem 0;
  }

  .main-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  /* Hero sektion bakgrundsbild null */

  .hero {
    background-color: #000000;
    background-image: url('');
    background-size: cover;
    background-position: center;
    padding: 10rem;
    margin-bottom: 0;
  }

  /* Rubrik i hero mindre */

  .hero-content h2 {
    font-size: 2.5rem;
  }

  /* Kolumnlayout för intro */

  .intro-content {
    flex-direction: column;
  }

  /* Albumgrid till en kolumn */

  .album-grid {
    grid-template-columns: 1fr;
  }

  /* Tidslinjeobjekt till kolumnlayout */

  .timeline-item {
    flex-direction: column;
  }

  /* Datum i tidslinje */

  .timeline-date {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  /* Impact-innehåll till kolumnlayout */

  .impact-content {
    flex-direction: column;
  }

  /* Medlemskort till full bredd */

  .member-card {
    max-width: 100%;
  }

  /* Recensioner header till kolumn */

  .review-header {
    flex-direction: column;
  }

  /* Albumomslag flex */

  .album-cover {
    flex: 0 0 auto;
  }

  /* Formgrupper margin */

  .form-group {
    margin-bottom: 1rem;
  }

  /* Formactions margin */

  .form-actions {
    margin-top: 1.5rem;
  }
}