/* ================================
   1. RESET I PODSTAWY
   ================================ */
/* Resetting margins and padding for the entire page */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ================================
   2. SIDEBAR
   ================================ */
/* Styling the sidebar container */
.sidebar {
    background-color: #f0f0f0; /* Background color - gray */
    width: 125px; /* Width of the sidebar */
    height: 100%; /* Height of the sidebar - full page height */
    position: fixed; /* Fixing the sidebar position on the page */
    top: 0; /* Positioning at the top of the page */
    left: 0; /* Positioning on the left side */
    overflow-y: auto; /* Adding scrolling if content is longer than sidebar height */
    font-size: 11px;
    z-index: 1000; /* Dodaj z-index, aby sidebar był na wierzchu */
}

/* Styling categories in the sidebar */
.sidebar p {
   background-color: #ddd;
}

/* Styling links in the sidebar */
.sidebar a {
    display: block;
    padding: 6px;
    margin-bottom: 5px; /* Reduced space between links */
    line-height: 1.5;
    text-decoration: none;
    color: #333; /* Text color */
    transition: background-color 0.3s; /* Background color transition animation */
}

/* Decrease entries for the 'sidebar-small' class */
.sidebar-small a {
    padding: 4px;
    margin-bottom: 3px; /* Reduced space between links */
    line-height: 1.3;
}

/* Change link background color on hover */
.sidebar a:hover {
    background-color: #ddd; /* Background color on hover */
}

/* Additional styles for active link */
.sidebar a.active {
    background-color: #ccc; /* Background color for active link */
    font-weight: bold; /* Bold text for active link */
}

/* ================================
   3. GŁÓWNA TREŚĆ
   ================================ */
/* Styling the main content */
.main_content {
    margin-left: 125px; /* Maintain left margin consistent with sidebar width */
    padding: 20px; /* Default padding for content */
    box-sizing: border-box; /* Include width and padding in box model */
    transition: margin-left 0.3s; /* Add animation for smooth content shifting */
    z-index: 0; /* Główna zawartość powinna być pod sidebarem */
}

/* Change link text color on hover */
.main_content a:hover {
    color: #0056b3; /* Text color on hover */
}

/* Additional styles for active link in the main content area */
.main_content a.active {
    font-weight: bold; /* Bold text for active link */
    color: #0056b3; /* Text color for active link */
}

/* Set text alignment to right */
.right-align {
    text-align: right;
}

/* ================================
   4. TYPOGRAFIA / NAGŁÓWKI
   ================================ */
/* Stylizing headers */
h1, h2, h3, h4, h5, h6 {
    color: #333; /* Text color */
    margin: 20px 0; /* Top and bottom margins */
    font-weight: bold; /* Bold text */
}

/* Additional styles for <h1> tag */
h1 { font-size: 24px; }

/* Additional styles for <h2> tag */
h2 { font-size: 22px; }

/* Additional styles for <h3> tag */
h3 { font-size: 20px; }

/* Additional styles for <h4> tag */
h4 { font-size: 18px; }

/* Additional styles for <h5> tag */
h5 { font-size: 16px; }

/* Additional styles for <h6> tag */
h6 { font-size: 14px; }

/* ================================
   5. LINIE POZIOME
   ================================ */
/* Styling horizontal line */
hr {
    border: none; /* No border */
    border-top: 1px solid #ccc; /* Top line - gray */
    margin: 20px 0; /* Top and bottom margins */
} 

.main_content hr.custom-hr {
    border: none; /* Brak widocznych krawędzi */
    height: 1px; /* Wysokość linii */
    background: linear-gradient(to right, rgba(128, 128, 128, 0.5), rgba(128, 128, 128, 0)); /* Gradient od szarego do przezroczystego */
    width: 50%; /* Szerokość linii */
    margin: 10px 0; /* Odstępy od góry i dołu */
}

/* ================================
   6. CHECKBOX / TOGGLE / UKRYTA TREŚĆ
   ================================ */
/* Ukryj domyślny checkbox */
input[type="checkbox"] {
  display: none;
}

/* Stylizacja kontrolki checkboxa */
label[for="toggle"] {
  background-color: #ddd;
  padding: 10px;
  cursor: pointer;
}

/* Pokaż treść, gdy checkbox jest zaznaczony */
input[type="checkbox"]:checked ~ .ukryta-tresc {
  display: block;
}

/* Domyślne ukrycie treści */
.ukryta-tresc {
  display: none;
}

/* ================================
   7. OBRAZKI / IMAGE ROW
   ================================ */
/* Nowe style dla obrazków w klasie .image-row */
.image-row img, /* Obrazki bezpośrednio w .image-row */
.image-row a img { /* Obrazki wewnątrz linków w .image-row */
    display: inline-block;
    margin-right: 10px; /* Opcjonalny margines między obrazkami */
    vertical-align: top; /* Wyrównanie do góry */
}

/* ================================
   8. TABELLE / COMPARISON TABLE WRAPPER
   ================================ */
table {
        border-collapse: collapse;
        width: 100%;
        opacity: 0.8; /* Ogólna przezroczystość tabeli */
}
th, td {
        border: 1px solid rgba(0, 0, 0, 0.5); /* Czarny kolor z przezroczystością 50% */
        padding: 8px;
        text-align: left;
}
th {
        background-color: rgba(0, 0, 0, 0.1); /* Jasne tło dla nagłówka */
}
td {
        background-color: rgba(255, 255, 255, 0.8); /* Delikatna przezroczystość dla komórek */
}
.comparison-table-wrapper {
      font-family: Arial, sans-serif;
      margin: 20px auto;
      max-width: 800px;
}
.comparison-table-wrapper table {
      width: 100%;
      border-collapse: collapse; /* Zapobiega przerwom między komórkami */
      border-spacing: 0;
}
.comparison-table-wrapper th, 
.comparison-table-wrapper td {
      text-align: left;
      padding: 12px 16px;
      border: none; /* Całkowite usunięcie widocznych obramowań */
}
/* Dodanie przezroczystego tła */
.comparison-table-wrapper td,
.comparison-table-wrapper th {
      background-color: rgba(255, 255, 255, 0.0); /* Przezroczystość tła */
}
.comparison-table-wrapper tbody tr:nth-child(odd) {
      background-color: rgba(0, 0, 0, 0.05); /* Delikatne tło dla wierszy parzystych */
}

/* ================================
   9. MAPA
   ================================ */
.map-container {
    position: relative;
    display: inline-block;
    z-index: 0;
}
.map {
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
}
.event {
    position: absolute;
    width: 10px; /* Rozmiar kropki */
    height: 10px; /* Rozmiar kropki */
    border-radius: 50%; /* Okrągła kropka */
    border: 2px solid #000; /* Czarna obramówka */
    transition: transform 0.3s ease;
    z-index: 1; /* Z-index kropki ustawiony na niższy poziom */
}
.event:hover {
    transform: scale(1.5); /* Powiększenie kropki na hover */
    z-index: 2; /* Z-index kropki ustawiony na niższy poziom */
}
.event .tooltip {
    display: none;
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 5; /* Z-index tooltipa na wyższy poziom */
}
.event:hover .tooltip {
    display: block;
    z-index: 50; /* Z-index tooltipa na wyższy poziom */
}
.tooltip-text {
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 100; /* Z-index tooltipa na wyższy poziom */
}
.tooltip-img {
    width: 120px;
    height: auto;
    Max-height: 100px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    z-index: 100; /* Z-index tooltipa na wyższy poziom */
}

/* ================================
   10. TIMELINE / MILESTONE
   ================================ */
/* Stylowanie punktów milestonów */
.milestone .timeline-content {
    background-color: #7EC8E7; /* Kolor włosów Suisei */
    color: #fff; /* Biały tekst dla lepszego kontrastu */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Lekki cień dla wyróżnienia */
}

.milestone .timeline-event::before {
    background-color: #4a8d99; /* Ciemniejszy odcień dla kropki */
}

.milestone h3 {
    color: #fff; /* Biały kolor dla nagłówków w milestone */
}

.timeline {
    position: relative;
    width: 600px; /* lub 100%, jak wolisz */
    margin: 0 auto;
    padding-left: 40px; /* miejsce na linię */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px; /* linia 20px od lewej */
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #aaa, #ddd);
}

.timeline-event {
  padding: 3px 8px; /* trochę mniej góra/dół, normalnie na boki */
  font-size: 14px;
  line-height: 1.2; /* mniejsza interlinia */
  max-width: 800px; /* szerokość normalna */
  margin-bottom: 8px; /* mniej odstępu między eventami */
}

.timeline-event h3 {
  font-size: 16px; /* zmniejszamy h3 */
  margin-top: 4px; /* mniejszy margines nad h3 */
  margin-bottom: 4px; /* mniejszy odstęp pod nagłówkiem */
  line-height: 1.2;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 6px;
    color: #666; /* Szary kolor daty */
}

.timeline-content {
    background: #f7f7f7; /* Jaśniutki szary dla "chmurek" */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* delikatniejszy cień */
}

.timeline-event::before {
    background: #999; /* Szara kropka */
    border: 3px solid #fff; /* Biała obwódka */
}

/* Stylizacja poziomej linii hr */
.timeline-divider {
    border: 0;
    height: 2px; /* Grubość linii */
    background: linear-gradient(90deg, #7EC8E7, #4a8d99); /* Gradient w kolorach włosów Suisei */
    margin: 30px 0; /* Odstępy w pionie */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Lekki cień dla linii */
}

/* Opcjonalna modyfikacja dla linii, która jest używana w milestone */
.milestone + .timeline-divider {
    background: linear-gradient(90deg, #4a8d99, #7EC8E7); /* Możesz odwrócić gradient w milestone */
    margin-top: 15px;
    margin-bottom: 15px;
}

/* ================================
   11. CARDS
   ================================ */
/* Kontener dla kart */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* każda karta min. 250px, wypełnia miejsce */
    gap: 16px; /* odstęp między kartami */
    margin: 20px 0;
}

/* Karta */
.card {
    background-color: #dedede; /* delikatny szary */
    border: 1px solid rgba(0,0,0,0.2); /* delikatne obramowanie */
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* lekki cień */
}

/* Nagłówek w karcie */
.card h3 {
    margin-top: 0;
    color: #000; /* ciemniejszy niebieski */
}

/* Lista w karcie z niestandardowymi strzałkami */
.card ul {
    padding-left: 18px;
    list-style: none;
}

.card ul li::before {
    content: "→"; /* strzałka zamiast kropki */
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    color: #000;
}

/* Linki w karcie */
.card a {
    color: #000;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.card a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3399cc;
    transition: width 0.3s ease;
}

.card a:hover::after {
    width: 100%;
}

.card a:hover {
    color: #1d6f99;
}

/* Responsywność */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr; /* na wąskich ekranach jedna kolumna */
        gap: 12px;
    }
}


/* ================================
   12. MEDIA QUERIES (MAŁE EKRANY)
   ================================ */
/* PONIŻEJ TEJ LINII OBSŁUGA MAŁYCH EKRANÓW ONLY */
@media (max-width: 768px) {
    .sidebar {
        width: 80px; /* Zmniejszamy szerokość sidebaru */
    }
    .main_content {
        margin-left: 80px; /* Zmniejszamy lewy margines dla głównej treści */
        padding: 10px; /* Mniejsze marginesy w głównej treści */
    }
    .sidebar-small a {
        padding: 4px;
        margin-bottom: 3px;
    }
    .sidebar p {
        font-size: 10px; /* Zmniejszamy czcionkę w sidebarze */
    }
    .sidebar a {
        font-size: 10px; /* Zmniejszamy czcionkę linków */
        padding: 4px; /* Mniejsze marginesy w linkach */
    }
    table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Włączenie płynnego przewijania na urządzeniach mobilnych */
        display: block;
    }
    th, td {
        padding: 6px;
    }
    .map-container {
        width: 100%;
        height: auto; /* Skaluje mapę do szerokości ekranu */
    }
    .event {
        width: 8px; /* Zmniejszamy rozmiar kropki */
        height: 8px; /* Zmniejszamy rozmiar kropki */
    }
    .tooltip-text {
        font-size: 12px; /* Zmniejszamy rozmiar czcionki tooltipa */
    }
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 14px; }
    h5 { font-size: 12px; }
    h6 { font-size: 10px; }
    .timeline {
        flex-direction: column;
        padding: 0 16px;           /* dodaj wewnętrzne marginesy zamiast zewnętrznych */
        max-width: 100vw;          /* nie pozwól wyjść poza ekran */
        overflow-x: hidden;        /* zablokuj przewijanie w poziomie */
        box-sizing: border-box;
    }
    .timeline .event {
        width: 60%;
        margin-left: 0;
        padding-left: 24px;        /* zamiast marginów */
        box-sizing: border-box;
    }
    .timeline .event-text {
        margin-left: 0;
        text-align: left;
        max-width: 60%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .timeline .line {
        left: 8px;                 /* dostosuj pozycję linii */
        right: auto;
    }
    label[for="toggle"] {
        padding: 15px; /* Większy obszar kliknięcia */
    }
    .image-row {
        overflow-x: auto;
        white-space: nowrap;
    }
    .image-row img {
        width: 100px; /* Zmniejszamy rozmiar obrazków */
        height: auto;
    }
    img {
        max-width: 80%;  /* Zmniejszenie obrazków do 80% szerokości kontenera na małych ekranach */
        height: auto;
        display: block;
        margin: 0 auto;
    }
}


.container-three-quarters {
  display: flex;         /* uaktywnia flexbox */
  width: 100%;           /* cała szerokość ekranu */
  gap: 20px;             /* opcjonalnie odstęp między divami */
}

.three-quarters {
  flex: 3;               /* zajmuje 3 jednostki */
}

.card {
  flex: 1;               /* zajmuje 1 jednostkę */
}
