

/* === NORMAL === */

@font-face {
  font-family: 'Lato';
  src: local('Lato Thin'),
       url('../../fonts/lato-100.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Light'),
       url('../../fonts/lato-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Regular'), local('Lato'),
       url('../../fonts/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Bold'),
       url('../../fonts/lato-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Black'),
       url('../../fonts/lato-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* === ITALIC === */

@font-face {
  font-family: 'Lato';
  src: local('Lato Thin Italic'),
       url('../../fonts/lato-100italic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Light Italic'),
       url('../../fonts/lato-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Italic'),
       url('../../fonts/lato-400italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Bold Italic'),
       url('../../fonts/lato-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: local('Lato Black Italic'),
       url('../../fonts/lato-900italic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}


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

body {
  font-family: Lato;
  margin-top: 80px; /* wysokość paska, by nic nie było zasłonięte */
}


nav {
  background-color: rgb(255, 130, 130);
  list-style: none;
  height: 80px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000; /* Żeby był nad innymi elementami */
}


label.logo {
  color: white;
  font-size: 35px;
  line-height: 80px;
  padding: 0 60px;
  font-weight: bold;
}

label.logo img {
  margin-top: 5px;
  height: 85%;
}

#logo_krotkie {
  display: none;
}

@media (max-width: 415px) {
  #logo_dlugie {
    display: none;
  }
  #logo_krotkie {
    display: inline;
  }
}

nav ul {
  float: right;
  margin-right: 30px;
}

nav ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 3px;
}

nav ul li a {
  color: rgb(255, 255, 255);
  font-size: 20px;
  padding: 7px 10px;
  transition-duration: 0.3s;
}

a.pasek {
  border-radius: 8px; 
}

a.pasek:hover {
  background-color: rgb(255, 205, 205);
  transition-duration: 0.3s;
  border-radius: 8px;
  color: rgb(48, 48, 48);
}

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  line-height: 80px;
  padding-right: 20px;
  float: right;
}

/* Dropdown "Więcej" - tylko desktop */
.tylko-mobile {
    display: none;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition-duration: 0.3s;
    font-family: inherit;
}

.dropdown-toggle:hover {
    background-color: rgb(255, 205, 205);
    color: rgb(48, 48, 48);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    background-color: rgb(255, 130, 130);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1001;
    padding: 6px 0;
    margin-right: 0;
}

.dropdown-menu li {
    display: block;
    line-height: normal;
    margin: 0;
    text-align: right;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 18px;
    color: white;
}

.dropdown-menu li a:hover {
    background-color: rgb(255, 205, 205);
    color: rgb(48, 48, 48);
    border-radius: 8px;
}

.dropdown-menu.open {
    display: block;
}

/* Responsive styles */
@media (max-width: 800px) {
    .hamburger {
        display: block;
    }

    .tylko-desktop {
        display: none !important;
    }

    .tylko-mobile {
        display: block;
    }

    nav ul {
        flex-direction: column;
        background-color: rgb(255, 130, 130);
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    nav ul li {
        display: block;
        text-align: center;
        margin: 0;
    }

    nav ul li a {
        display: block;
        width: 100%;
        text-align: center;
        line-height: normal;
        padding: 14px 0;
        font-size: 20px;
        color: white;
    }

    nav ul.show {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        overflow: hidden;
    }
}

.tresc-glowna{
  overflow-x: auto;
  margin: 95px 25px 10px 25px;
}

.tresc-glowna a{
  color: #ff8282;
  transition-duration: 0.5s;
}

.tresc-glowna a:hover{
  color:#303030;
  transition-duration: 0.5s;
}

.tresc-kafelki{
  margin: 95px 12% 10px 12%;
}

.tresc-trasy{
  margin: 95px 12% 10px 12%;
}

@media (min-width: 2100px) {
  .tresc-trasy {
    margin: 95px auto 10px auto;
    width: 1650px;
  }
}
@media (max-width: 768px) {
  .tresc-trasy{
    margin: 95px 25px 10px 25px;
  }
}

.tresc{
  overflow-x: auto;
  margin: 95px 12% 10px 12%;
}

.tresc a{
  color: #ff8282;
  transition-duration: 0.5s;
}

.tresc a:hover{
  color:#303030;
  transition-duration: 0.5s;
}

.tresc a{
  color: #ff8282;
  transition-duration: 0.5s;
}

@media (max-width: 768px) {
  .tresc{
    margin: 95px 25px 10px 25px;
  }
}

@media (min-width: 2100px) {
  .tresc {
    overflow-x: auto;
    margin: 95px auto 10px auto;
    width: 1650px;
  }
}

.tresc ul {
  list-style: disc;
  margin-left: 60px;
}

.spis{
  margin: 0 auto; /* wyśrodkowanie poziome */
  border-collapse: collapse;
  width: 98%;
  text-align: center;
  background-color: #fff;
  border: 2px solid #000000;
  overflow-x: auto;
}

.spis th{
  border: 1px solid black;
  background-color: #ff8282;
  padding-top: 3px;
  padding-bottom: 3px;
}

.spis td{
  border: 1px solid black;
  background-color: white;
  padding: 7px;
}

.spis input{
  border: 1px solid black;
  border-radius: 3px;
}

.spis select{
  border: 1px solid black;
  border-radius: 3px;
}

.atr {transition: transform 0.25s ease;}
.atr:hover {-webkit-transform:scale(1.5); /* lub inna wartość */ transform:scale(1.5);}


.tabela_link {
  cursor: help;
}

.tabela_link td {
  transition: background-color 0.2s ease;
}

.tabela_link:hover td {
  transition: background-color 0.2s ease;
  background-color: rgba(255, 130, 130, 0.25);
}

.gps{
  transition-duration: 0.5s;
  content: url('../ikony/gps1.svg')
}

.gps:hover{
  transition-duration: 0.5s;
  content: url('../ikony/gps2.svg')
}

.skroty{
  margin-left: 1%;
  list-style-type: "» ";
}

.skroty ul{
  margin-left: calc(1% + 10px);
}

details summary {
  font-size: 30px;
  cursor: pointer;
  font-weight: bold;
  color: #ff8282;
  margin-bottom: 5px;
}

details summary::marker{
  color:#484848;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 0; /* Przycisk dotyka prawej krawędzi */
  z-index: 999;
  border: none;
  outline: none;
  background-color: #ff8282;
  color: white;
  cursor: pointer;
  width: 35px;
  height: 50px;
  font-size: 24px;

  /* Zaokrąglenia tylko po lewej stronie */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;

  box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: #ff5a5a;
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  #scrollTopBtn {
    display: none !important;
  }
}


/*Kafelki zdjęciowe w menu*/

.menu-container {
  display: grid;
  grid-template-columns: repeat(4, 300px); /* zawsze max 4 kolumny */
  gap: 15px;
  justify-content: center; /* centrowanie kafelków w rzędzie */
  margin: 30px auto 0;
  padding: 0;
}

@media (max-width: 1260px) {
  .menu-container {
    grid-template-columns: repeat(3, 300px);
  }
}

@media (max-width: 948px) {
  .menu-container {
    grid-template-columns: repeat(2, 300px);
  }
}

@media (max-width: 630px) {
  .menu-container {
    grid-template-columns: repeat(1, 300px);
  }
}


.tile {
  position: relative;
  width: 300px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none; /* zdjęcie się nie rusza */
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  backdrop-filter: blur(4px);
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
  z-index: 1;
}



.separator-kafelki {
  grid-column: 1 / -1; /* separator zajmuje całą szerokość siatki */
  text-align: center;
  position: relative;
  margin: 15px 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: black;
}

.separator-kafelki::before,
.separator-kafelki::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #ff8282;
}

.separator-kafelki::before {
  left: 0;
}

.separator-kafelki::after {
  right: 0;
}

/*Koniec*/


hr {
  border-style: solid;
  border-color: #ff8282;
}

.dane-techniczne{
  margin: 0 auto; /* wyśrodkowanie poziome */
  border-collapse: collapse;
  width: 75%;
  text-align: center;
  background-color: #fff;
  border: 2px solid #000000;
}

.dane-techniczne th{
  border: 1px solid black;
  background-color: #ff8282;
  padding-top: 3px;
  padding-bottom: 3px;
}

.dane-techniczne td{
  border: 1px solid black;
  background-color: white;
  padding: 7px;
  transition: background-color 0.2s ease;
}

.tabela-hover td {
  transition: background-color 0.2s ease;
}

.tabela-hover:hover td {
  transition: background-color 0.2s ease;
  background-color: rgba(255, 130, 130, 0.25);
}

/* POJAWIANIE SIĘ ZDJĘCIA */
/*    NA PEŁNYM EKRANIE   */

.fullscreen-img {
  cursor: pointer;
  transition: 0.3s ease;
}

.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.5s forwards; /* Animacja pojawiania się */
}

.fullscreen-overlay.show {
  display: flex;
  opacity: 1;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(0.8);
  animation: zoomIn 0.3s forwards; /* Animacja powiększenia zdjęcia */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes zoomOut {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.8);
  }
}

#closeBtn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/*KONIEC*/

/*Miniaturka zdjęć na górze artykułu o pojeździe*/
.miniatura {
  display: flex;
  margin: auto;
  width: 70%;
  max-width: 900px;
  border-radius: 25px;
  padding: 10px;
}

.miniatura:hover {
  scale: 1.05;
}


@media (max-width: 915px) {
  .miniatura {
    width: 80%;
  }
}
/*KONIEC*/


.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* odstęp między zdjęciami */
  justify-content: left;
  padding: 10px;
  margin-left: 20px;
  list-style-type: "» ";
}

.galeria img {
  width: 100%;
  max-width: 250px;
  margin-left: 25px;
  height: auto;
  max-height: 168px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  border: 2px outset #303030;
}



.galeria img:hover {
  transform: scale(1.05);
  border: 2px outset #ff8282;
}

.opis-zdj{
  width: 100%;
  font-size: 20px;
}

/*Tabela stan taboru na przestrzeni lat*/
.ilostan{
  margin: 0 1.25%;
  border-collapse: collapse;
  text-align: center;
  background-color: #fff;
  border: 2px solid #000000;
}

.ilostan th{
  border: 1px solid black;
  background-color: #ff8282;
  padding-top: 3px;
  padding-bottom: 3px;
}

.ilostan td{
  border: 1px solid black;
  background-color: white;
  padding: 7px;
  transition: background-color 0.2s ease;
}
/*Koniec*/

.kolumna-opis {
  font-weight: bold;
}

.opis-pojazdu {
  font-size: 18px; 
  text-align: justify;
  margin-left: 10px;
  margin-right: 10px;
}

zz {
  font-weight: bold;
  color: red;
}

.tresc-404 {
  width: 100%;
  max-width: 800px; /* lub inna max szerokość jaka Ci pasuje */
  margin: 80px auto 15px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.tresc-404 img {
  width: 100%;         /* dopasuj do szerokości kontenera */
  height: auto;        /* zachowaj proporcje */
  max-height: 85vh;    /* maksymalna wysokość to 80% wysokości okna */
  display: block;
  margin: 0 auto;      /* wyśrodkuj w poziomie */
  object-fit: contain; /* dobrze dopasowuje obraz wewnątrz */
}


.menu-trasy {
  display: grid;
  grid-template-columns: repeat(10, 1fr); /* 10 kolumn w rzędzie */
  gap: 15px;
  justify-content: center;
  margin: 30px auto 0;
  max-width: calc(10 * 110px + 9 * 15px); /* 10 kafelków x max szerokość + odstępy */
}

.nagłówek-linie{
  display: flex; 
  height: 19px; 
  align-items: stretch;
}

.nagłowek-linie-aktualizacja {
    float: right;
  }

@media (max-width: 625px) {
  .nagłówek-linie{
    display: inline; 
    height: 19px; 
    align-items: stretch;
  }

  .nagłowek-linie-aktualizacja {
    float: left;
  }
}


@media (max-width: 1200px) {
  .menu-trasy {
    grid-template-columns: repeat(10, minmax(60px, 1fr)); /* skalowanie kafelków */
  }
}

@media (max-width: 800px) {
  .menu-trasy {
    grid-template-columns: repeat(5, 1fr); /* zmiana na 5 kolumn */
  }
  .numer-linii {
    max-width: none; /* wypełniają kolumny w pełni */
  }
}

.numer-linii {
  position: relative;
  max-width: 100px;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  background-color: #ff8282;
  border: none;
  outline: 2px solid #ff4444;

  color: white;
  font-size: 40px;
  align-content: center;
  text-align: center;
}

.numer-linii:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.numer-linii-old {
  position: relative;
  max-width: 100px;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  background-color: #e3acac;
  border: none;
  outline: 2px solid #ac5050;

  color: white;
  font-size: 40px;
  align-content: center;
  text-align: center;
}

.numer-linii-old:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.numer-linii-blank {
  position: relative;
  max-width: 100px;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.numer-linii-off {
  position: relative;
  max-width: 100px;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  background-color: #adadad;
  border: none;
  outline: 2px solid #3c3c3c;

  color: rgb(223, 223, 223);
  font-size: 40px;
  align-content: center;
  text-align: center;
  cursor: not-allowed;
}

@media (max-width: 1100px) and (min-width: 801px), (max-width: 550px){
  .numer-linii, .numer-linii-old, .numer-linii-off {
    font-size: 25px;
    font-weight: bold;
  }
}

.linia-info {
  display: flex; /* całość w poziomie */
  height: 92px;
  gap: 10px;
  align-items: stretch; /* wszystkie elementy mają taką samą wysokość */
}

.linia-numer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 161px;  /* ustalona szerokość numeru */
  height: 100%;  /* wysokość dopasowana do całego kontenera */
  font-size: 4.5rem;
  border-radius: 8px;
  background-color: #ff8282;
  outline: 4px solid #ff4444;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bis { /*linia wariant bis*/
  font-size: 3.7rem;
}

.linia-strzalka {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;  /* szerokość strzałki */
  font-size: 5rem;
}

@media (max-width:1000px) {
  .linia-info {
    height: 40px
  }
  .linia-numer {
    width: 50px;
    font-size: 2rem;
  }

  .bis {
    font-size: 1rem;
  }

  .linia-strzalka {
  width: 25px;  /* szerokość strzałki */
  font-size: 2.5rem;
  }
}


.linia-kierunki {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1; /* zajmuje resztę szerokości */
}

.linia-kierunki > div {
  text-align: left;
  font-size: 2.5rem;
}

@media (max-width:1000px) {
  .linia-kierunki > div {
    font-size: 100%;
  }
}

.linia-tabela{
  margin: 0 auto; /* wyśrodkowanie poziome */
  border-collapse: collapse;
  width: 98%;
  text-align: center;
  background-color: #fff;
  border: 2px solid #000000;
  overflow-x: auto;
}

.linia-tabela th{
  border: 1px solid black;
  background-color: #ff8282;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 20px;
}

.linia-tabela td{
  border: 1px solid black;
  background-color: white;
  padding: 3px;
  font-size: 17px;
}