* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  position: sticky;
  top: 0;
  background-color: white;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  gap: 12px;
}

button {
  background-color: #ff6f61;
  color: white;
  border: none;
  padding: 4px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  line-height: 24px;
  gap: 5px;
  height: 40px;
}

button:hover {
  background-color: #ff5047;
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 8px; 
}

a {
  text-decoration: none;
  color: #007bff;
  font-size: 16px;
}

a:hover {
  text-decoration: none;
  cursor: pointer;
}

a img:hover {
  cursor: pointer;
}

audio {
  max-width: 300px;
  height: 40px;
}

section {
  padding-bottom: 16px;
}

chord {
  position: relative;
  display: inline-block;
  width: 0;
  /* Nie wpływa na szerokość tekstu */
  height: 0;
  /* Nie zabiera miejsca na linii */
}

chord span {
  position: absolute;
  bottom: 4px;
  /* Precyzyjnie podnosi akord nad tekst */
  left: 50%;
  /* transform: translateX(-50%); */
  /* Wyśrodkowanie akordu względem słowa */
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  /* Zapobiega łamaniu akordu */
  color: #ff6f61;
  pointer-events: none;
  /* Akord nieinteraktywny */
}

.container {
  display: flex;
  max-width: 800px;
  width: 100%;
  position: relative;
}

.main-container {
  flex-direction: column;
}

.floating-container {
  display: flex;
  flex-direction: row;
  position: sticky;
  top: 40vh;
  justify-content: flex-end;
  padding-right: 10px;
  z-index: 10;
  height: 0;
}

.song-container {
  margin-top: 20px;
  max-width: 800px;
  width: 100%;
  background-color: white;
  border-radius: 8px;
  padding: 16px;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  color: #333;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 20px 0;
}

.song-line {
  position: relative;
  font-size: 16px;
  line-height: 28px;
  /* Zwiększony odstęp między wierszami */
}

.song-header {
  position: sticky;
  top: 60px;
  /* Wysokość nagłówka strony, aby unikać kolizji */
  background-color: #FFFFFFAA;
  /* Półprzezroczyste tło */
  z-index: 5;
  backdrop-filter: blur(2px);
  padding-bottom: 0px;
  font-size: 20px;
  line-height: 36px;
  font-weight: 600;
  border-radius: 8px;
}

.lyrics {
  padding-top: 8px;
}

/* Styl dla całego kontenera przycisków */
.floating-buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  /* Układ pionowy */
  gap: 10px;
  /* Odstęp między przyciskami */
  z-index: 1000;
  /* Ustawienie warstwy, aby były na wierzchu */
}

/* Styl dla każdego przycisku */
.floating-button {
  background-color: #ff6f6188;
  /* Kolor tła przycisku */
  color: #fff;
  /* Kolor tekstu */
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  /* Cień dla przycisku */
  transition: background-color 0.3s, transform 0.2s;
  /* Animacja na hover */
  width: 60px;
  height: 40px;
  display: flex;
  justify-content: center;
}

/* Efekt hover */
.floating-button:hover {
  background-color: #ff6f61cc;
  /* Zmiana koloru na hover */
  transform: scale(1.05);
  /* Powiększenie na hover */
}

@media (max-width: 1024px) {
  .title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
  }

  .song-header {
    font-size: 16px;
    line-height: 30px;
    font-weight: 600;
  }

  .song-line {
    font-size: 14px;
  }

  .mobile-only {
    display: flex !important; 
  }
}

button.invert {
  border: 1px solid #ff6f61;
  background-color: #ffffff;
}

.scaling-buttons {
  padding-top: 10px;
  margin-bottom: -10px;
  justify-content: flex-end;
}

.scaling-buttons button {
  height: 30px;  
}

.mobile-only {
  display: none;  
}

#scrollControl {
  position: relative;
}

/* Badge z prędkością */
.badge {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 20px;
  height: 20px;
  font-size: 12px;
  color: white;
}
    
.spacer {
  height: 16px;
}

.footer-spacer {
  height: 50vh;
}

.song-header-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.song-page {
  font-size: 14px;
  color: #999999;
}