html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

.box {
  padding: 20px;
  font-size: 1.5rem;
}

.top {
  background-color: rgb(24, 24, 27);
  height: 10%;
  width: 100%;
  color: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  z-index: 10;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  text-shadow: 
    0 0 5px rgb(255, 255, 255),
    0 0 10px rgb(255, 255, 255),
    0 0 20px rgb(255, 255, 255),
    0 0 40px rgb(255, 255, 255);
}

.logo img {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 0 10px rgb(255, 255, 255));
}

.logo a.no-underline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.menu a.no-underline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.nightcity:hover {
  text-shadow: 0 0 10px rgb(156, 163, 175);
}

.mapa:hover {
  text-shadow: 0 0 10px rgb(156, 163, 175);
}

.sklep:hover {
  text-shadow: 0 0 10px rgb(156, 163, 175);
}

.regulamin:hover {
  text-shadow: 0 0 10px rgb(156, 163, 175);
}

.logo2 {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: auto;
}

.logo2 img {
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px white);
}

.logo2 {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1%;
  background-color: rgb(24, 24, 27);
  color: rgb(156, 163, 175);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  z-index: 10;
}


.rok, .nisakikg {
  display: block;
  user-select: none;
  -webkit-user-select: none;
}


.second {
  position: absolute;
  top: 10%;
  width: 100%;
  bottom: 1%;
  background: url("../grafiki/tlo.png") repeat;
  background-size: auto;
  background-position: bottom left;
  display: flex;
  justify-content: center;
  overflow-y: auto;
}

.rules {
  width: 70%;
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  scrollbar-width: none; 
  -ms-overflow-style: none;
}

.rules::-webkit-scrollbar {
  display: none;
}


.rule-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rule-header {
  cursor: pointer;
  font-weight: bold;
  padding: 10px 0;
  font-size: 1.2rem;
  user-select: none;
  -webkit-user-select: none;
}

.rule-content {
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 5px;
  padding-left: 15px;
  padding-right: 15px;
  transition: max-height 2s ease;
  backdrop-filter: blur(1px);
}

.regtekst {
  padding: 5px 0;
  font-size: 1rem;
  line-height: 1.4;
}

.rule-item.active .rule-content {
  max-height: 800px;
}

.rule-item:not(:last-child)::after {
    content: "";
    display: block;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 100%;
    margin: 10px 0;
}

.rule-bar {
  text-align: center;
}