body {
  margin: 0;
  padding: 0;
  font-family: "Arial", Helvetica, Arial, sans-serif;
  color: #001d77;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

header {
  background-color: #001d77;
  padding: 15px 0;
  margin-bottom: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
}

header .container {
  width: 100%;
}

header h1.logo {
  margin: 0;
}

header h1.logo a {
  display: inline-block;
  vertical-align: middle;
}

/* Small devices (phones) */
@media (max-width: 768px) {
  header {
    padding: 10px 0;
    min-height: 75px;
  }
  
  header h1.logo {
    font-size: 1.4em;
    float: none;
    text-align: center;
    color: #fff;
  }
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.4em;
  }
  
  h2 {
    font-size: 1.3em;
  }
  
  h3 {
    font-size: 1em;
  }
  .mystyle tbody > tr > :nth-child(1) {
    width: auto;
  }
  
  .mystyle tbody > tr > :nth-last-child(1) {
    width: auto;
  }
  .bottom-container {
    height: auto;
    padding: 15px 0;
  }
  
  .stopkaUS, .stopkaUM {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
  }
  
  .footer-link {
    display: block;
    margin: 10px 0;
  }
  .toptable {
    display: flex;
    flex-direction: column;
  }

.toptable tr {
    display: flex;
    flex-direction: column;
  }

.toptable td {
    width: 100%;
    box-sizing: border-box;
  }

.toptable img {
    max-width: 80%;
    margin: 0 auto;
  }
  .flex-container {
    flex-direction: column;
  }

  .flex-text {
    padding-right: 0;
    margin-bottom: 20px;
    justify-content: center;
  }

  .flex-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .flex-image img {
    max-width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Responsive table with sticky first column and header */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive .mystyle th,
  .table-responsive .mystyle td {
    white-space: nowrap; /* Prevent content from wrapping, forcing scroll */
  }

  .table-responsive .mystyle thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #f1f1f1; /* Light grey background for sticky header */
    z-index: 2;
  }

  .table-responsive .mystyle td:first-child,
  .table-responsive .mystyle th:first-child {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background-color: #f1f1f1; /* Match header or use a different color */
    z-index: 1;
    border-right: 1px solid #dee2e6;
  }

  .table-responsive .mystyle thead th:first-child {
    z-index: 3; /* Ensure top-left corner is on top */
  }
}

/* Large devices (desktops) */
@media (min-width: 769px) {

  header h1.logo {
    margin: 0;
    font-size: 1.8em;
    float: none;
    text-transform: uppercase;
    color: #fff;
  }

  .flex-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
  }
}

header h1.logo a{
  color: #fff;
  text-decoration: none;
}
.headerlink img{
  display: inline;
  object-fit: cover;
  padding: 2px 0 0 7px;
  width: 14px;
  
} 
.skrothead{
  font-size: small;
  padding: 0;
  margin: 1.5rem 0 0 0;
}
.wyjaskroty{
  font-size: small;
  list-style: none;
  padding: 0;
  margin-top: 0.2rem;
}

/* Formatowanie loga w toptable */
.loganag img{
  float: left;
}
.loganagl img{
  max-height: 90px;
  float: right;
}
/*Formatowanie linków na stronie strategia_rozwoju.html*/
.linkstrat {
  font-weight: normal !important;
}

/* Formatowanie listy nagłówków */
div.home {
  padding: 1px 0 30px 0;
  background-color: #fff;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
div.home a{
  text-decoration: none;
  color: #001d77;
  font-weight: bold;
}
h1 {
    font-size: 1.6em;
    /*padding-bottom: 20px;*/
}
h2 {
  font-size: 1.5em;
  font-weight: lighter;
}
h3 {
  font-size: 1.3em;
  font-weight: 100;
  margin-top: 1em;
  letter-spacing: -1px;
}
h4 {
  font-size: 0,8em;
  font-weight: 100;
  margin-top: 2px;
  letter-spacing: -1px;
}

h5 {
  font-size: 1.3em;
  font-weight: normal;
}

.lists li {
  font-size: 1.1em;
  font-weight: normal;
}
.opiswkaz{
  font-size: 1.1em;
  font-weight: normal;
}

/* formatowanie tabeli */
.mystyle {
    font-size: 1rem;
    border-collapse: collapse;
    border: 1px solid grey;
    empty-cells: hide;
    text-align: right;
    width: 100%; /* Removed overflow-x: auto; */
    /*display: block;*/
}
.mystyle td, th {
  padding: 5px;
}

.mystyle th {
  text-align: center;
}

.mystyle tbody>tr>:nth-child(1){
  text-align: left;
  width: auto; /* Changed from 600px */
}

.mystyle tbody>tr>:nth-child(2){
  text-align: center;
}

.mystyle tbody>tr>:nth-last-child(1){
  background-color: #ccd1e3;
  width: auto; /* Changed from 60px */
 }

.mystyle tr:hover {
    background: silver;
    cursor: pointer;
}

.lista li {
  padding-top: 3px;
}
.eksport{
  align-content: "left";
}
.eksport img{
  width: 25px;
}

.bottom-container{
  position: relative;
  z-index: 10;
  background-color: #001d77;
  height: 75px;
  width: auto;
  padding-top: 10px;
  text-align: center;
  margin: 2rem auto 0;
  color: #fff;
  text-decoration: none;
}

/* Style the toptable */
.toptable {
  color: #fff;
  width: 100%;
  border-collapse: collapse;
}
/* Style the cells in the toptable */
.toptable td{
  padding: 10px;
  text-align: center;
  background-color: #fff !important;
}

.toptable th {
  text-align: center;
}

/* Make the images in the toptable responsive */
.toptable img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.cryptedmail{
  text-decoration: none;
  color: #001d77;
}
/*
 * Składanie rozbitego adresu mailowego
 */
.cryptedmail:after {
  content: attr(data-name) "@" attr(data-domain) "." attr(data-own) "." attr(data-tld);
}
.stopkaUS{
  width: 300px;
  display: inline-block;
  margin-left: 12rem;
}
.stopkaUM{
  width: 300px;
  display: inline-block;
  margin-left: 20rem;
}
.dankont{
  text-align: center;
  margin-top: 3rem;
}
.footer-link{
  font-size: 1.1rem;
  text-decoration: none;
  color: #fff;
  margin: 0 2rem;
}
.copyright{
  margin: 1.8rem;
  font-size: 0.7rem;
}
.h_opiscelu{
  margin: 2rem auto;
  font-size: 1.5rem;
  font-weight: bold;
}
.opiscelu{
  margin:auto;
  font-size: 1.3rem;
  text-align: justify;
}

.ul_opiscelu{
  margin:auto;
  font-size: 1.3rem;
  text-align: justify;
  list-style-type: disc;
  padding: 20px;
}

/* listwa nawigacyjna */
.breadcrumbs{
  padding: 5px;
  margin-top: 0;
  margin-bottom: 1px;
}

.breadcrumbs_item{
  display: inline-block;
}

.breadcrumbs_item:not(:last-of-type)::after{
content: '>';
}

.breadcrumbs_link{
  text-decoration: none;
  color: #001d77;
}

.breadcrumbs_link:hover{
  text-decoration: underline;
}

td:empty{
  background-color: #EEEEEE;
}

/*Dodanie obrazów do paragrafów*/
.flex-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.flex-text {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
    font-size: 1.2em;
    margin-top: 0.2rem;
    color: #424242;
}

.flex-image {
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
}

/* Style the cards */
.card {
  background-color: #f0f0f0; /* Light grey background */
  padding: 15px; /* Add some padding inside the cards */
  margin-bottom: 20px; /* Add space between cards */
  border-radius: 10px; /* Slightly more rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
  font-size: 1.1em;
}

.card li {
  line-height: 1.6; /* Zwiększamy odstęp dla paragrafów wewnątrz karty */
}


/* Accordion styles */
.accordion-item {
    margin-bottom: 10px; /* Add some space between accordion items */
    border: 1px solid #ccc; /* Add a border to the item */
    border-radius: 5px; /* Add a border-radius to the item */
}

.accordion-header {
    cursor: pointer; /* Add a pointer cursor to indicate it's clickable */
    position: relative; /* Add a relative position to the header */
    padding: 10px; /* Add some padding to the header */
    transition: background-color 0.5s ease-out; /* Add a smooth transition effect to the background-color */
}

.accordion-header::after {
    content: '+'; /* Add a plus sign to the header */
    position: absolute; /* Position the plus sign */
    right: 10px; /* Position the plus sign on the right */
    top: 50%; /* Center the plus sign vertically */
    transform: translateY(-50%); /* Center the plus sign vertically */
    transition: transform 0.5s ease-out; /* Add a smooth transition effect to the plus/minus icon */
}

.accordion-header.active::after {
    transform: translateY(-50%) rotate(45deg); /* Rotate the plus sign to make it a minus sign */
}

.accordion-header:hover {
    background-color: #f0f0f0; /* Add a background color to the header on hover */
}

.accordion-header.active {
    background-color: #e0e0e0; /* Add a background color to the active header */
}

.accordion-content {
    max-height: 0; /* Initially hide the content */
    overflow: hidden; /* Hide the content that overflows the max-height */
    transition: max-height 0.5s ease-out, padding 0.5s ease-out; /* Add a smooth transition effect */
    padding: 0 10px; /* Add some padding to the content */
}

.accordion-header.active + .accordion-content {
    padding: 10px; /* Add padding when the accordion is open */
}

.lista li {
  padding-top: 3px;
}
.eksport{
  align-content: "left";
}
.eksport img{
  width: 25px;
}

.bottom-container{
  position: relative;
  z-index: 10;
  background-color: #001d77;
  height: 75px;
  width: auto;
  padding-top: 10px;
  text-align: center;
  margin: 2rem auto 0;
  color: #fff;
  text-decoration: none;
}

/* Style the toptable */
.toptable {
  color: #fff;
  width: 100%;
  border-collapse: collapse;
}
/* Style the cells in the toptable */
.toptable td{
  padding: 10px;
  text-align: center;
  background-color: #fff !important;
}

/* Make the images in the toptable responsive */
.toptable img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.cryptedmail{
  text-decoration: none;
  color: #001d77;
}
/*
 * Składanie rozbitego adresu mailowego
 */
.cryptedmail:after {
  content: attr(data-name) "@" attr(data-domain) "." attr(data-own) "." attr(data-tld);
}
.stopkaUS{
  width: 300px;
  display: inline-block;
  margin-left: 12rem;
}
.stopkaUM{
  width: 300px;
  display: inline-block;
  margin-left: 20rem;
}
.dankont{
  text-align: center;
  margin-top: 3rem;
}
.footer-link{
  font-size: 1.1rem;
  text-decoration: none;
  color: #fff;
  margin: 0 2rem;
}
.copyright{
  margin: 1.8rem;
  font-size: 0.7rem;
}
.h_opiscelu{
  margin: 2rem auto;
  font-size: 1.5rem;
  font-weight: bold;
}
.opiscelu{
  margin:auto;
  font-size: 1.3rem;
  text-align: justify;
}
/* listwa nawigacyjna */
.breadcrumbs{
  padding: 5px;
  margin-top: 0;
}

.breadcrumbs_item{
  display: inline-block;
}

.breadcrumbs_item:not(:last-of-type)::after{
content: '>';
}

.breadcrumbs_link{
  text-decoration: none;
  color: #001d77;
}

.breadcrumbs_link:hover{
  text-decoration: underline;
}

td:empty{
  background-color: #EEEEEE;
}

/*Dodanie obrazów do paragrafów*/
.flex-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.flex-text {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
    font-size: 1.2em;
    margin-top: 0.2rem;
    color: #424242;
}

.flex-image {
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
}

/* Tooltip for interactive table rows */
.interactive-row {
  position: relative;
}

.interactive-row:hover::after {
  content: 'Wyświetl wykres'; /* Tooltip text */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  margin-bottom: 5px; /* Space from the row */
  
  /* Style the tooltip */
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;
  z-index: 1;
  
  /* Prevent line breaks */
  white-space: nowrap;
  
  font-size: 0.8em;
}

/* Styles specific to the 300.html page */
.page-300 h2 {
  font-weight: bold;
}

.page-300 .accordion-item {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none; /* Remove default accordion border */
  background-color: #fff; /* Set a base white background for the item */
}

.page-300 .accordion-header {
  padding: 0; /* Remove default accordion header padding */
}

.page-300 .accordion-header.active {
  background-color: #f0f0f0; /* Light grey background for active header */
}

.page-300 .accordion-content {
  background-color: #fff; /* Ensure content area is white */
}

.normal-weight {
  font-weight: normal !important;
}
