/* Global styles */

body {
  font-family: 'Josefin Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1d1d1d;
  color: white;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: url('hero.svg');
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  cursor: default;
  text-align: center;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  margin-bottom: 5px;
}

a {
  text-decoration: none;
  color: #fff;
}

/* Container */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Rules text */

#rules-container {
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  max-width: 800px;
  width: 100%;
  font-size: 18px;
}

#rules-container.show {
  opacity: 1;
  pointer-events: auto;
}

/* Leftbar styles */

.leftbar {
  background-color: rgba(4, 4, 26, 0.8);
  width: 300px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1; /* Dodane z-index */
  border-radius: 15px;
  overflow-y: auto;
}

.leftbar a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.leftbar a:hover {
  color: #4a47ff;
}

.toggle-btn {
  padding: 15px 20px;
  color: white;
  cursor: pointer;
}

/* Dodane style dla zakładek */
.tab {
  background-color: #555;
  color: white;
  padding: 10px;
  margin-bottom: 5px;
  cursor: pointer;
  border-radius: 8px;
}

.tab:hover {
  background-color: #777;
}

.navbar-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.007);
  padding: 15px 20px;
  backdrop-filter: blur(8px);
  z-index: 2; /* Ustawione na wyższy niż leftbar, aby być na wierzchu */
}

.navbar-blur h1 {
  margin: 0;
  color: white;
}

/* Dodane style dla przycisków po prawej stronie */
.right-buttons {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  right: 80px; /* Dostosowana wartość odległości od prawej krawędzi */
  padding: 15px;
}

.right-buttons a {
  background-color: #4a47ff;
  color: white;
  padding: 10px 15px;
  margin-right: 10px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.right-buttons a:last-child {
  margin-right: 0;
}

.right-buttons a:hover {
  background-color: #3737cb;
}

   /* Resetowanie stylów paska przewijania */
   body {
    margin: 0;
    padding: 0;
    overflow: auto; /* Włączamy pasek przewijania */
  }

  /* Niestandardowy pasek przewijania */
  ::-webkit-scrollbar {
    width: 7px; /* Szerokość paska przewijania */
    position: fixed; /* Stylizujemy pasek przewijania */
    top: 0;
    right: 0;
    bottom: 0;
  }

  ::-webkit-scrollbar-thumb {
    background-color: #1c143a; /* Kolor paska przewijania */
    border-radius: 5px; /* Zaokrąglenie rogów paska przewijania */
  }

  ::-webkit-scrollbar-track {
    background-color: #08061a; /* Kolor tła paska przewijania */
  }

  /* Stylizacja dla paska przewijania w przeglądarkach nieobsługujących WebKit */
  body {
    scrollbar-width: thin;
    scrollbar-color: #180950 #f1f1f1;
  }
  
  
  
  

/* ... */

/* Dodane style dla nagłówka w pasku nawigacyjnym na urządzeniach desktopowych */
@media only screen and (min-width: 769px) {
  .navbar-blur #navbar-title {
    margin-left: 60px; /* Przesunięcie tytułu w prawo na urządzeniach desktopowych */
  }

  .navbar-blur .toggle-btn {
    display: block; /* Pokaż przycisk otwierający/zamykający leftbar */
    position: absolute;
    left: 20px; /* Ustawienie pozycji przycisku na lewej stronie */
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Dodane style dla nagłówka w pasku nawigacyjnym na urządzeniach mobilnych */
@media only screen and (max-width: 768px) {
  .navbar-blur #navbar-title {
    display: none; /* Ukryj tytuł na urządzeniach mobilnych */
  }
}

/* ... */


  /* Dodane style dla lewego paska na urządzeniach mobilnych */
  .leftbar {
    left: -100%; /* Ukryj lewy pasek na początku na urządzeniach mobilnych */
    right: auto; /* Resetowanie ustawienia dla prawej strony */
  }
}

/* ... */

/* Dodane animacje dla leftbara */
.leftbar {
  /* ... */
  transition: left 0.3s ease, opacity 0.3s ease;
  opacity: 0;
    left: 0; /* Ustawienie lewego paska na lewej stronie */
  right: auto; /* Resetowanie ustawienia dla prawej strony */
  transform: translateX(-100%); /* Przesunięcie lewego paska poza ekran */
}

.leftbar.show {
  opacity: 1;
  left: 0;
}

/* ... */


