.header {
  display: flex;
  justify-content: center;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 20px 10px;
}

.header a {
  color: #182b49;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 25px;
  border-radius: 4px;
  flex-grow: 1;
  flex-basis: 0;
  flex: 1;
}

.header a.logo {
  float: right;
  font-size: 35px;
  font-weight: bold;
  border: none !important;
  /* Usuwamy ramkę wokół logo */
}

.header a:hover {
  color: #ED6116;
}

.header a.active {
  color: #182B49;
}

.main-page {
  text-decoration: underline !important;
  font-size: 1.2rem !important;
}

@media screen and (max-width: 1000px) {
  .header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    /* Zmniejszamy odstęp między rzędami */
    padding: 0.4rem 0.4rem;
  }

  .header a.logo {
    grid-column: span 3;
    border-radius: 0;
    box-shadow: none;
  }

  .header a {
    padding: 2%;
    height: 6rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 15px; /* Zaokrąglenie krawędzi */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Dodanie cienia */
    font-size: 0.8rem;
}

}