body
{
	background-color: #272727;
	font-family: "Roboto Slab", serif;
 	font-optical-sizing: auto;
  	font-weight: 400;
  	font-style: normal;
  	color: #F5F5F5;
  	margin: 0;
  	font-size: 20px;
  	width: 100%;
  	margin-left: auto;
  	margin-right: auto;
}
#zawartosc
{
	margin: 0px;
	letter-spacing: 3px;
}
#naglowek
{
	font-size: 55px;
	padding: 15px;
	text-align: center;
}
.nav
{
	width: 100%;
	background-color: #c91826;
	padding: 10px 0;
	text-align: center;
}

ol
{
 	margin: 0;
	padding: 0;
	list-style-type: none;
	font-size: 18px;
	height: 35px;
	list-style: 200%;
	display: inline-block;
}
ol a
{
	text-decoration: none;
	color: #ffffff;
	display: block;
}
ol > li
{
	float: left;
	width: 150px;
	height: 40px;
	border-right: 2px dashed #a4131f;
	transition: all .3s ease-in-out;
}
ol > li:first-child
{
	border-left: 2px dashed #a4131f;
}
ol > li:hover > a
{
	transform: scale(1.10);
	background-color: #b80715;
}
ol > li:hover > ul
{
	display: block;
}
ol > li > ul 
{
	list-style-type: none;
	padding: 0;
	margin: 0;
	height: 40px;
	display: none;
	width: 250px;
}
ol > li > a
{
	transition: transform .25s ease-in-out;
}
ol > li > ul > li
{
	background-color: #d92937;
	position: relative;
	z-index: 100;
	border-top: 2px dashed #a4131f;
	transition: all .3s ease-in-out;
}
ol > li > ul > li:hover > a
{
	transform: scale(1.10);
	background-color: #b80715;
}
ol > li > ul > li > a
{
	transition: all .25s ease-in-out;
}
.sticky
{
	width: 100%;
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100;
}
.slajd
{
	background-color: #a4131f;
	padding: 1px 25px 1px 25px;
	margin: 20px;
	margin-left: auto;
	margin-right: auto;
	width: 90%;
	text-align: left;
	border-radius: 15px;
}
#slajdy
{
	background-color: #272727;
	padding: 20px;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}
h1
{
	font-size: 25px;
}
h4
{
	font-weight: 370;
}
.rozlista
{
	position: relative;
	right: 25px;
} 
@media (max-width: 768px) {/*-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_*/
  /* 1. Zmniejszenie nagłówka, żeby nie rozpychał ekranu */
  #naglowek {
    font-size: 26px;
    padding: 10px;
    letter-spacing: 1px;
  }

  /* 2. Reset nawigacji na pionową */
  .nav {
    padding: 0;
  }

  ol {
    display: flex;
    flex-direction: column; /* Ułożenie przycisków jeden pod drugim */
    width: 100%;
    height: auto;           /* Usunięcie sztywnej wysokości 35px */
  }

  ol > li {
    float: none;            /* Wyłączenie opływania */
    width: 100% !important; /* Nadpisanie sztywnych szerokości z HTML */
    height: auto;
    border-right: none;
    border-bottom: 1px solid #a4131f; /* Odstęp między kafelkami */
  }

  ol > li:first-child {
    border-left: none;
  }

  ol a {
    padding: 12px 0;        /* Wygodne przyciski do klikania palcem */
    font-size: 16px;
  }

  /* 3. Podmenu (rozwijana historia) */
  ol > li > ul {
    position: static !important; /* Usunięcie przesunięcia 'right: 25px' */
    width: 100% !important;
    height: auto;
  }

  ol > li > ul > li {
    width: 100%;
    height: auto;
  }

  ol > li > ul > li a {
    padding: 10px 0;
    font-size: 15px;
    background-color: #7d0b13; /* Ciemniejsze tło, żeby odróżnić podmenu */
  }

  /* 4. Główna treść na całą szerokość ekranu telefonu */
  #slajdy {
    width: 95%;
    padding: 10px 0;
  }

  .slajd {
    width: 100%;
    box-sizing: border-box; /* Żeby padding nie powiększał szerokości */
    margin: 15px 0;
    border-radius: 15px;
    overflow: hidden;
  }
  ol > li > ul {
  position: static;
  right: 0;
  width: 100%;
}
#scroll-top {
  display: none;              /* Początkowo niewidoczny */
  position: fixed;            /* Zawsze w tym samym miejscu na ekranie */
  bottom: 25px;               /* Odległość od dołu */
  right: 25px;                /* Odległość od prawej */
  width: 45px;
  height: 45px;
  background-color: #c91826;  /* Kolor tła dopasowany do OSP */
  color: #ffffff;
  text-decoration: none;
  font-size: 22px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;         /* Okrągły kształt */
  z-index: 999;               /* Zawsze na wierzchu */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s, transform 0.2s;
}

#scroll-top:hover {
  background-color: #b80715;
  transform: scale(1.1);
}