*, *::before, *::after {
  box-sizing: border-box;
}


:root {
  --bg-color: #0d0d0d;
  --text-color: #e0e0e0;
  --accent-color: #00ff88;
  --muted-color: #999999;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  position: relative;
  min-height: 200vh;
}

.container {
  background-color: #0d0d0d;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  padding: 1rem;
  max-width: 960px;
  margin: 2rem auto;
  color: #e0e0e0;
}

h1, h2, h3 {
  color: var(--accent-color);
  margin-top: 2rem;
}

h1 {
  font-size: 2.2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.3rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1.2rem;
}

ul {
  padding-left: 1.5rem;
  list-style-type: square;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #33ffaa;
}

hr {
  border: none;
  border-top: 2px solid var(--accent-color);
  margin: 3rem 0;
}

.title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  white-space: normal;      /* Tillåter radbrytning */
  word-wrap: break-word;    /* Bryt långa ord vid behov */
  overflow-wrap: break-word;
}

.title .year {
  display: block;        /* Gör "2026" till egen rad */
  font-size: 2.2rem;    /* Lite mindre text för året */
  white-space: normal;
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }
  .title .year {
    font-size: 1.5rem;
  }
}

.subtitle {
  text-align: center;
  color: var(--accent-color);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-width: 100%;
  width: 50%;
  margin: 1rem auto 0.5rem auto;
}

.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent-color);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  user-select: none;
  transition: transform 0.2s;
}

.nav:hover {
  transform: translateY(-50%) scale(1.2);
}

.prev { left: 5px; }
.next { right: 5px; }

.dots {
  text-align: center;
  margin-top: 0.6rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: var(--muted-color);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent-color);
}

.caption-text {
  text-align: center;
  color: var(--muted-color);
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 2rem;
  text-align: center;
}

.home-title {
  font-size: 2.4rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  flex-direction: row;
  justify-content: center;  /* Centrerar knapparna horisontellt */
  gap: 1.5rem;              /* Avstånd mellan knapparna */
  margin-top: 2rem;
  flex-wrap: wrap;          /* Tillåter radbrytning på små skärmar */
}



.lineup-image {
  text-align: center;
  margin-bottom: 2rem;
}

.lineup-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

.lineup-text {
  text-align: left;
  margin-top: 1rem;
}

.lineup-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-color);
  max-width: 100%;
  word-break: break-word;
}

.player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.player-list div {
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 1rem;
}

.na24-corner {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.9rem;
  color: rgba(0, 255, 136, 0.5);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
}

.sidebar-toc {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 200px;
  background-color: #0d0d0d;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,255,136,0.4);
  font-family: 'Inter', sans-serif;
  color: #00ff88;
  z-index: 1000;
}

.sidebar-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-toc li {
  margin-bottom: 1rem;
}

.sidebar-toc a {
  color: #00ff88;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.sidebar-toc a:hover {
  color: #00cc66;
}

/* MOBIL */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-top: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .player-list {
    grid-template-columns: 1fr;
    gap: 0.5rem 0;
    max-width: 100%;
  }

  /* Dölj innehållsförteckningen */
  .sidebar-toc {
    display: none !important;
  }

  section {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  p, h2, h3, .lineup-text p {
    max-width: 100%;
    word-wrap: break-word;
  }

  .slider-wrapper {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .lineup-text p {
    font-size: 1rem;
  }
}

.title {
  white-space: normal; /* tillåt radbrytning */
  font-size: clamp(1.5rem, 6vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--accent-color);
  text-align: center;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 2rem;
  max-width: 600px; /* justera maxbredd så knapparna inte flyter ut */
  margin-left: auto;
  margin-right: auto;
  gap: 1rem; /* mellanrum mellan knapparna */
}

.home-button {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: #00ff88;
  border: 2px solid #00ff88;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 200px;
}

.home-button:hover {
  background-color: #00ff88;
  color: #000;
}

/* Placera knapparna i grid */
.left-button {
  grid-column: 1;
  justify-self: end; /* knapp till höger i vänster kolumn */
}

.right-button {
  grid-column: 3;
  justify-self: start; /* knapp till vänster i höger kolumn */
}

@media (max-width: 480px) {
  .button-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .left-button,
  .right-button {
    grid-column: 1;
    justify-self: center;
  }
}








