@font-face {
  font-family: "Lato";

  font-style: normal;

  font-display: block;

  src: url("../fonts/Lato-Regular.woff2") format("woff2"),
    url("../fonts/Lato-Regular.woff") format("woff");
}

:root {
  --primary-BG-color: #0e5454;

  --secondary-BG-color: #0a3636;

  --font-color: rgb(172, 165, 165);

  --link-color: #96d8c2;
}

* {
  box-sizing: border-box;

  margin: 0;

  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Lato", sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  height: 100px;

  display: flex;

  align-items: center;

  border: 1px solid black;

  padding: 10px;

  padding-left: 0;

  background-color: var(--primary-BG-color);
}

header,
aside,
footer {
  z-index: 2;

  position: relative;
}

.logo {
  background-color: rgb(255, 255, 255);
  margin-left: 10px;
}

header h1 {
  font-size: 34px;

  font-weight: bold;

  padding-left: 40px;

  color: var(--font-color);
}

.menu {
  background-color: var(--primary-BG-color);

  display: flex;

  border: 1px solid black;

  margin: 10px;
}

.menu > a,
.menu > .dropdown {
  flex: 1;
  position: relative;
  /* Niezbędne dla pozycjonowania menu rozwijanego */
}

.menu > a,
.dropbtn {
  /* Przyciski albumów */
  text-align: center;
  padding: 10px 8px;
  border-left: 1px solid black;
  text-decoration: none;
  color: var(--font-color);
  font-size: 16px;
  display: block;
  /* Powoduje, że link wypełnia kontener */
  width: 100%;
  cursor: pointer;
}

.menu > a:hover,
.dropdown:hover .dropbtn {
  background-color: var(--secondary-BG-color);
}

main {
  display: flex;

  flex-grow: 1;

  height: 100%;

  overflow: hidden;

  z-index: 0;
}

.left-panel {
  width: 20%;

  border-right: 1px solid black;

  padding: 10px;

  background-color: var(--primary-BG-color);
}

.aktualnosci,
.linki {
  margin-bottom: 20px;
}

.aktualnosci h2,
.linki h2 {
  font-size: 18px;

  font-weight: bold;

  margin-bottom: 10px;
}

.zawartosc {
  flex: 1;

  height: 100%;

  overflow-y: auto;

  text-align: center;

  font-size: 24px;

  background-image: url(../imgs/logo_lp.svg);

  background-size: cover;

  background-repeat: no-repeat;

  background-position: center;

  z-index: 1;

  position: relative;
}

.zawartosc p {
  margin: 0;
  margin-top: 5%;
  font-size: 18px;
  line-height: 24px;
  text-shadow: 1px 1px 2px black;
}

.story .zawartosc p {
  flex: 2;
  margin: 0;
  margin-top: 5%;
  text-align: justify;
  font-size: 16px;
  line-height: 24px;
  text-shadow: 1px 1px 2px black;
  padding: 3%;
}

.zawartosc .album-info a {
  color: var(--link-color);
  text-decoration: none;
}

.zawartosc .album-info a:hover {
  text-decoration: underline;
}

.hth_info .zawartosc {
  background-image: url(../imgs/hth_img.jpg);
}

.mtra_info .zawartosc {
  background-image: url(../imgs/mtra_img.png);
}

.mtm_info .zawartosc {
  background-image: url(../imgs/mtm_img2.png);
}

.ats_info .zawartosc {
  background-image: url(../imgs/ats_img.jpg);
  background-size: 105%;
}

.frz_info .zawartosc {
  background-image: url(../imgs/frz_img.jpg);
}

.others_info .zawartosc {
  background-image: url(../imgs/guide-to-vinyl-record-sizes-speeds-617420.jpg);
}

.members_info .zawartosc {
  background-image: url(../imgs/members.jpg);
}

.funfacts .zawartosc {
  background-image: url(../imgs/nu_pose_mike.jpg);
}

.zawartosc::before {
  content: "";

  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  width: 100%;

  height: 100%;

  background-color: rgba(0, 0, 0, 0.8);

  z-index: -1;
}

.zawartosc .album-descr {
  display: flex;
  gap: 20px; /* Dodaje odstęp między tekstem a obrazkiem bez psucia układu */
  align-items: flex-start; /* Wyrównuje elementy do góry */
  margin: 50px 20px;
}

.zawartosc .album-descr p {
  flex: 2;
  margin: 0;
  text-align: justify;
  font-size: 16px;
  line-height: 24px; /* Duże odstępy między liniami */
  text-shadow: 1px 1px 2px black;
}

.zawartosc .album-descr .albumCoverContainer {
  flex: 1;
}

.funfacts .zawartosc ul {
  list-style-type: circle;

  text-align: left;

  display: inline-block;

  margin: 20px;

  margin-left: 50px;

  color: var(--font-color);
}

.funfacts .zawartosc ul li {
  margin-bottom: 20px;
  font-size: 18px;
}

.funfacts .zawartosc h2 {
  color: var(--link-color);
}

.zawartosc h3 {
  color: var(--link-color);

  margin-top: 40px;

  margin-bottom: 20px;
}

p {
  color: var(--font-color);

  padding-left: 20px;

  padding-right: 20px;
}

footer {
  border-top: 1px solid black;

  text-align: center;

  padding: 10px;

  font-weight: bold;

  height: 70px;

  background-color: var(--primary-BG-color);

  flex-shrink: 0;

  color: var(--font-color);
}

.left-panel {
  color: var(--font-color);
}

.aktualnosci ul {
  list-style: none;
  /* Usuwa domyślne kropki (bullet points) */
}

.aktualnosci .news-item {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  /* Zaokrąglone rogi */
  border-left: 3px solid var(--secondary-BG-color);
  transition: background-color 0.3s ease;
  /* Płynne przejście dla hover */
}

.aktualnosci .news-item:hover {
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.aktualnosci .news-date {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: var(--link-color);
  margin-bottom: 5px;
}

.aktualnosci .news-title {
  font-size: 14px;
  color: var(--font-color);
  padding: 0;
}

.linki a {
  color: var(--link-color);
  text-decoration: none;
}

.linki a:hover {
  text-decoration: underline;
}

.dropdown-content {
  display: none;
  position: absolute;
  /* Pojawia się "nad" resztą strony */
  background-color: var(--primary-BG-color);
  width: 100%;
  z-index: 10;
  border: 1px solid black;
  border-top: none;
}

.dropdown-content a {
  flex: none;
  border-left: none;
  width: auto;
  font-size: 16px;
  color: var(--font-color);
  padding: 10px 8px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: var(--secondary-BG-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.menu > a.active,
.dropbtn.active {
  background-color: var(--secondary-BG-color);
  font-weight: bold;
}

.dropdown-content a.active {
  background-color: var(--secondary-BG-color);
  font-weight: bold;
  color: #ffffff;
}

.songList {
  padding-top: 0px;
  margin: 40px;
  text-align: left;
  color: var(--font-color);
}

.songList hr {
  width: 300px;
  background-color: var(--font-color);
  margin: 10px 0;
  border: none;
  border-top: 2px dashed #333;
  height: 0;
}

.songLink {
  color: var(--link-color);
  text-decoration: none;
  font-size: 16px;
}

.songLink:hover {
  text-decoration: underline;
}

.albumCover {
  width: 100%;
  height: auto;
  border: 5px solid black;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.5);
}

.albumCoverindex {
  width: 40%;
  height: auto;
  border: 5px solid black;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.5);
  margin-top: 30px;
}

.album-info .album-description {
  display: flex;
  align-items: center;
}

.logo-history-container {
  width: 90%;
  margin: 50px auto;
  background-color: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--secondary-BG-color);
}

.logo-history-container h2 {
  text-align: center;
  color: var(--link-color);
  margin-bottom: 30px;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
}

.logo-row:last-child {
  border-bottom: none;
}

.logo-col-img {
  flex: 1; /* Zajmuje lewą stronę */
  text-align: center;
  padding-right: 20px;
}

.logo-col-img img {
  max-width: 100%;
  max-height: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.logo-col-text {
  flex: 1;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
}

.logo-col-text p {
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-size: 18px;
  text-shadow: none;
  text-align: center;
}

.logo-col-text strong {
  color: var(--link-color);
  font-size: 20px;
}

.timeline-body .timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline-body .timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--link-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}
.timeline-body .container {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}
.timeline-body .container.show {
  opacity: 1;
  transform: translateY(0);
}
.timeline-body .left {
  left: 0;
}
.timeline-body .right {
  left: 50%;
}
.timeline-body .container::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: var(--link-color);
  border-radius: 50%;
  top: 20px;
  border: 4px solid #ffffff;
  z-index: 1;
}
.timeline-body .left::after {
  right: -16px;
}
.timeline-body .right::after {
  left: -16px;
}

.timeline-body .date {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--link-color);
}
.timeline-body .desc img {
  max-width: 100px;
  margin-right: 15px;
  vertical-align: middle;
  border-radius: 6px;
  float: left;
}
.timeline-body .desc {
  overflow: hidden;
  color: white;
}

.members_info h3 {
  color: var(--link-color);
  margin: 40px 0 20px 0;
  font-size: 32px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#czlonkowie,
#byli-czlonkowie {
  display: grid;
  /* Automatyczne dopasowanie kolumn: min 300px szerokości */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.member {
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(10px); /* Efekt rozmycia tła pod kartą */
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 191, 255, 0.2);
  border-color: var(--link-color);
}

.member h3 {
  font-size: 1.5rem;
  margin: 0 0 5px 0;
  border: none;
  color: #fff;
  text-shadow: 1px 1px 2px black;
}

.member p:nth-of-type(1) {
  color: #aaa;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 5px;
}

.member p:nth-of-type(2) {
  color: var(--link-color);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.member img {
  width: 100%;
  height: 250px;
  object-fit: cover; /* Zdjęcie wypełni ramkę bez rozciągania */
  object-position: top;
  border-radius: 8px;
  margin-bottom: 15px;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.member:nth-of-type(1) img {
  object-position: 50% 10%;
}

.member:nth-of-type(2) img,
.member:nth-of-type(5) img {
  object-position: 50% 30%;
}

.member:hover img {
  filter: grayscale(0%); /* Pełny kolor po najechaniu */
}

.member p:last-of-type {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ddd;
  text-align: left;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto; /* To wypycha element na prawą stronę we Flexboxie */
  margin-right: 15px;
  z-index: 10; /* Musi być nad menu */
  position: relative; /* Aby z-index działał */
}

.hamburger span {
  height: 3px;
  border-radius: 2px;
  background: #ffffff;
}

.mobile-menu {
  width: 100%;
  height: 100vh; /* Pełna wysokość ekranu */
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(18,18,18, 0.95);
  transform: translateY(-100%);
  z-index: 9;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Płynniejsza animacja */
  overflow-y: auto; /* Pozwala przewijać menu, jeśli jest długie */
  padding-top: 0;
}

.mobile-menu.active {
  transform: translateY(100px);
  /* Ważne: musimy odjąć 100px od wysokości, żeby dół menu nie uciekł */
  height: calc(100vh - 100px);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
}

.mobile-menu .menu:hover,
.mobile-menu .dropbtn:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--link-color);
  padding-left: 35px; /* Lekki ruch w prawo przy hover */
}

.mobile-menu ul.submenu {
  display: none;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Klasa dodawana przez JS, żeby pokazać podmenu */
.mobile-menu ul.submenu.open {
  display: block;
  animation: slideDown 0.3s ease-out; /* Animacja otwierania */
}

.mobile-menu ul.submenu li a {
  padding: 15px 25px 15px 45px;
  font-size: 14px;
  color: #cccccc;
  display: block;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
}

.mobile-menu ul.submenu li a:hover {
  color: #fff;
  background-color: transparent;
}

.mobile-menu .dropbtn::after {
  content: ">"; /* Znak strzałki */
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Obrót strzałki, gdy podmenu jest otwarte (klasa active dodana do span) */
.mobile-menu .dropbtn.expanded::after {
  transform: rotate(90deg);
  color: var(--link-color);
}

/* Animacja otwierania */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .hamburger {
    display: inline-flex;
    cursor: pointer;
  }
  #menu-container {
    display: none;
  }
}

@media (max-width: 992px) {
  header {
    height: auto;
    padding: 15px 10px;
  }

  header h1 {
    font-size: 24px;
    padding-left: 20px;
  }

  main {
    flex-direction: column;
  }

  aside {
    display: none;
  }

  .left-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid black;
  }

  .menu {
    flex-wrap: wrap;
  }

  .menu > a,
  .menu > .dropdown {
    flex: 1 1 45%;
  }

  .zawartosc {
    background-size: cover;
    background-position: center;
  }

  .zawartosc .album-descr {
    flex-direction: column;
    margin: 20px;
  }

  .albumCoverContainer {
    margin-top: 20px;
  }

  .albumCoverindex {
    width: 70%;
  }

  .logo-row {
    flex-direction: column;
    text-align: center;
  }

  .logo-col-text {
    border-left: none;
    padding-left: 0;
    margin-top: 20px;
  }

  .timeline-body .timeline::after {
    left: 30px;
  }

  .timeline-body .container {
    width: 100%;
    padding-left: 60px;
    left: 0 !important;
  }

  .timeline-body .container::after {
    left: 14px !important;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 18px;
  }

  footer {
    font-size: 14px;
    height: auto;
  }

  .left-panel {
    display: none; /* na telefonie chowam boczny panel */
  }

  main {
    flex-direction: column;
  }

  .zawartosc {
    padding: 10px;
    font-size: 14px;
  }

  .zawartosc p {
    font-size: 14px;
    line-height: 22px;
  }

  .albumCover {
    width: 100%;
  }

  .albumCoverindex {
    width: 90%;
  }

  .songList {
    margin: 20px 10px;
  }

  .members_info h3 {
    font-size: 24px;
  }

  #czlonkowie,
  #byli-czlonkowie {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 16px;
    padding-left: 10px;
  }

  .hamburger {
    margin-right: 5px;
  }

  .mobile-menu ul li {
    font-size: 14px;
  }

  .member img {
    height: 200px;
  }

  .logo-history-container h2 {
    font-size: 18px;
  }
}

@media (min-width: 2560px) {
  body {
    max-width: 2400px;
    margin: 0 auto;
  }

  header {
    height: 140px;
    padding: 20px 40px;
  }

  header h1 {
    font-size: 48px;
    padding-left: 80px;
  }

  .menu > a,
  .dropbtn {
    font-size: 20px;
    padding: 18px 15px;
  }

  .left-panel {
    width: 15%;
    font-size: 18px;
    padding: 30px 20px;
  }

  .aktualnosci h2,
  .linki h2 {
    font-size: 24px;
  }

  .aktualnosci .news-title {
    font-size: 18px;
  }

  .zawartosc {
    font-size: 22px;
    background-size: cover;
  }

  .zawartosc p {
    font-size: 20px;
    line-height: 32px;
  }

  .zawartosc h3 {
    font-size: 36px;
  }

  .zawartosc .album-descr {
    max-width: 1800px;
    margin: 80px auto;
    gap: 60px;
  }

  .albumCover {
    border: 8px solid black;
  }

  .songList {
    font-size: 22px;
  }

  .songLink {
    font-size: 20px;
  }

  #czlonkowie,
  #byli-czlonkowie {
    grid-template-columns: repeat(4, 1fr); /* 4 karty w rzędzie na 4K */
    gap: 50px;
  }

  .member {
    padding: 30px;
  }

  .member img {
    height: 320px;
  }

  .member h3 {
    font-size: 24px;
  }

  .member p {
    font-size: 18px;
    line-height: 28px;
  }

  .timeline-body .timeline {
    max-width: 1600px;
  }

  .timeline-body .container {
    padding: 40px 60px;
    font-size: 18px;
  }

  .timeline-body .date {
    font-size: 24px;
  }

  .logo-history-container {
    max-width: 1800px;
    padding: 40px;
  }

  .logo-history-container h2 {
    font-size: 40px;
  }

  .logo-col-text p {
    font-size: 22px;
  }

  footer {
    font-size: 22px;
    height: 100px;
    padding: 20px;
  }
}