html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-family: sans-serif;
  background: #111;
  color: white;
}

.screen {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
}

#change-user {
  background: none;
  border: none;
  color: white;
  font-size: 1.2em;
  cursor: pointer;
}

.half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  cursor: pointer;
  transition: background 0.3s;
}

.half:hover {
  filter: brightness(1.2);
}

#left { background: #222; border-right: 1px solid #444; }
#right { background: #333; }

#top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

#category-select {
  font-size: 1em;
}

#ranking-btn {
  background: none;
  border: none;
  color: gold;
  font-size: 1.5em;
  cursor: pointer;
}

#skip-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5em 1em;
  font-size: 1em;
  background: #555;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#leaderboard {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #111;
  color: white;
  display: none;
  flex-direction: column;
  padding: 1em;
  overflow-y: auto;
}

#leaderboard h2 {
  margin-top: 0;
}

#leaderboard ol {
  padding-left: 1em;
}

#close-leaderboard {
  margin-top: 1em;
  background: none;
  border: 1px solid white;
  color: white;
  padding: 0.3em 0.7em;
  cursor: pointer;
}

.half {
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-shadow: 1px 1px 3px black;
  overflow: hidden;
}

.overlay {
  background: rgba(0, 0, 0, 0.5); /* Optional: darkens image for readability */
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
}

.text {
  font-size: 1.2em;
}

