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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  height: 100vh;
  font-family: Arial, sans-serif;
  background: #1a0000;
}

.sidebar {
  width: 481px;
  position: relative;
  overflow: hidden;
  margin: auto 0;
}

.sidebar img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.toc-container {
  position: absolute;
  top: 360px;
  left: 87px;
  width: 321px;
  height: 425px;
  overflow: hidden;
}

.toc {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  scrollbar-width: thin;
  -ms-overflow-style: auto;
  scrollbar-color: #5c3d2e #2a1f1a;
}

.toc::-webkit-scrollbar {
  width: 8px;
}

.toc::-webkit-scrollbar-track {
  background: #2a1f1a;
}

.toc::-webkit-scrollbar-thumb {
  background-color: #a52a2a;
  border-radius: 4px;
  border: 1px solid #5c1d1d;
}


/* ----- Divider ----- */
.divider {
  width: 5px;
  background: url('paginator.png') repeat-y center top;
  background-size: 15px 272px;
}


.presentation {
  flex: 1;
  overflow-y: auto;

  /* Tło powtarzane kafelkowo */
  background-color: #1f1a16;
  background-image: url('bg_element.png');
  background-repeat: repeat;
  background-position: top left;
  background-size: initial;

  color: #fefefe;
  padding: 0;
  margin: 0;
}



.presentation .section > *:not(.section-title-wrapper) {
  max-width: 1000px;
  margin: 5px auto;
  padding: 20px 20px 25px 0;
  box-sizing: border-box;
  text-align: center;
}

.section h2 {
  color: #ffd700;
  margin-bottom: 10px;
  font-size: 28px;
}

.section p {
  font-size: 16px;
  line-height: 1.6;
}

.section-title-wrapper {
  margin-top: 5px;
  position: relative;
  width: 100%;
  height: 71px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}


.section-title-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #a52a2a;
  opacity: 0.8;
  transform: translateY(-50%);
  z-index: 0;
}

.section-title-image {
  height: 71px;
  width: auto;
  position: relative;
  z-index: 1;
}
/* ===== Navigation Menu ===== */
.navbar {
  width: 100%;
  background: rgba(20, 10, 10, 0.6);
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: top 0.3s ease;
}

.navbar.hidden {
  top: -100px;
}

.navbar-toggle {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  display: none; 
}

/* Linki w menu */
.navbar a {
  color: #bda875;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
  display: block;
}

.navbar a:hover {
  color: #ffffff;
}
.navbar {
  justify-content: space-between;
}

.navbar-links {
  display: flex;
  gap: 20px;
  margin-left: auto;   
}

.navbar a {
  display: inline-block;
}
.navbar-close {
  background: #2a1a1a;
  border: 1px solid #5c1d1d;
  color: #bda875;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 10px;
}
/* Scrollbar styling for .presentation */
.presentation {
  scrollbar-width: thin;
  scrollbar-color: #5c3d2e #2a1f1a;
}

.presentation::-webkit-scrollbar {
  width: 8px;
}

.presentation::-webkit-scrollbar-track {
  background: #2a1a1a;
}

.presentation::-webkit-scrollbar-thumb {
  background-color: #a52a2a;
  border-radius: 4px;
  border: 1px solid #5c1d1d;
}/* ===== Auto-hide navbar on scroll ===== */
body {
  scroll-behavior: smooth;
}

.bonus-table {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  color: #fefefe;
  background-color: rgba(42, 31, 26, 0.95);
  border: 1px solid #5c3d2e;
  border-radius: 6px;
  overflow: hidden;
}

.bonus-table thead {
  background-color: #2a1f1a;
}

.bonus-table th,
.bonus-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #3d2a23;
}

.bonus-table th {
  color: #bda875;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonus-table tbody tr:nth-child(even) {
  background-color: rgba(93, 61, 46, 0.15);
}

.bonus-table tbody tr:hover {
  background-color: rgba(165, 42, 42, 0.1);
}

.bonus-desc {
  display: block;
  font-size: 12px;
  color: #cbb78d;
  margin-top: 4px;
  font-style: italic;
}

.content-row {
  display: flex;
  justify-content: center;
  gap: 30px; /* odstęp między ramkami */
  flex-wrap: wrap; /* dla responsywności */
  margin: 40px auto;
  max-width: 1080px;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  text-align: left;
  border: 1px solid #3d2a23;
  border-radius: 8px;
  background-color: rgba(31, 26, 22, 0.7);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  width: 500px; /* ? ustalona szerokość, by zmieściły się obok siebie */
}

.content-image {
  max-width: 300px;
  height: auto;
  margin-left: 0; /* usunięcie domyślnego przesunięcia */
}

.content-text {
  color: #fefefe;
  font-size: 16px;
  line-height: 1.6;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-template-rows: auto auto;
  border: 2px solid #3d2a23;
  background-color: rgba(31, 26, 22, 0.7);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 10px auto;
  padding: 5px;
  gap: 10px;
  align-items: center;
}

.info-left {
  color: #bda875;
  font-weight: bold;
  font-size: 16px;
}

.info-right {
  color: #fefefe;
  font-size: 16px;
  text-align: right;
}

.info-icon {
  grid-row: 1 / span 2; /* Rozciąga ikonę na dwa wiersze */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 10px;
}

.info-icon img {
  width: 67px; /* dostosuj wielkość ikonki */
  height: auto;
}
.table-row {
  display: flex;
  width: fit-content;
}

.info-box {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  /* Usuwamy tło i ograniczamy szerokość */
  background: none;
  width: fit-content;
  margin: 10px auto;
}


.info-box > div {
  border: 1px solid #3d2a23;
  padding: 8px 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label {
  font-weight: bold;
  color: #bda875;
  text-align: left;
}

.value {
  color: #fefefe;
  text-align: center;
}

.icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  height: 60px;
  width: auto;
}


.text-box {
  display: inline-block;
  border: 1px solid #5c3d2e;
  background: rgba(31, 26, 22, 0.85);
  padding: 15px 20px;
  margin: 20px auto;
  color: #fefefe;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.text-box .highlight {
  color: #bda875;
}
/* tabelka w estetyce czerwono–złotej */
.drop-table{
  border-collapse: collapse;
  margin: 30px auto;
  font-size: 15px;
  color: #fefefe;
  background: #3d2a23;
}

.drop-table th,
.drop-table td{
  border: 1px solid #876555;
  padding: 8px 12px;
  text-align: center;
 
}

.drop-table th{
  background: #5c3d2e;
  color: #bda875;
  font-weight: bold;
}

.drop-table td:nth-child(2){   /* kolumna z ID – lekko wyróżniona */
  color: #bda875;
  font-weight: bold;
  text-align: center;
}

.drop-table tbody tr:nth-child(even){
  background: rgba(255,255,255,0.04);     /* subtelne naprzemienne tło */
}
.rank-table {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 20px;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  color: #fefefe;
  background-color: rgba(42, 31, 26, 0.95);
  border: 1px solid #5c3d2e;
  border-radius: 6px;
  overflow: hidden;
}

.rank-table thead {
  background-color: #2a1f1a;
}

.rank-table th,
.rank-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #3d2a23;
  text-align: center; /* <<< To dodaje centrowanie */
}

.rank-table th {
  color: #bda875;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-table tbody tr:nth-child(even) {
  background-color: rgba(93, 61, 46, 0.15);
}

.rank-table tbody tr:hover {
  background-color: rgba(165, 42, 42, 0.1);
}

.bonus-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: italic;
  color: #cbb78d;
}
.player-rank-table {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 20px;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  color: #fefefe;
  background-color: rgba(42, 31, 26, 0.95);
  border: 1px solid #5c3d2e;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.player-rank-table thead {
  background-color: #2a1f1a;
}

.player-rank-table th,
.player-rank-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #3d2a23;
}

.player-rank-table th {
  color: #bda875;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-rank-table tbody tr:nth-child(even) {
  background-color: rgba(93, 61, 46, 0.15);
}

.player-rank-table tbody tr:hover {
  background-color: rgba(165, 42, 42, 0.1);
}
.map-hover-box {
  position: relative;
  width: fit-content;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.map-hover-box img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.map-hover-box:hover img {
  filter: brightness(40%) blur(1px);
}

.map-info-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: #fefefe;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: Arial, sans-serif;
  text-align: center;
}

.map-hover-box:hover .map-info-overlay {
  opacity: 1;
}
.lazy-section[data-loaded="false"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.lazy-section[data-loaded="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
