
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;

}

#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100vw;
  min-height: 100vh;
  z-index: -1;
}

.leaderboard-outer {
  top: 80px;
  max-width: 500px;
  margin: 40px auto;
  background: rgba(255,255,255,0.9);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 30px 0 40px 0;
  position: relative;
}




.leaderboard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.leaderboard-title {
  background: #dcdcdc;
  width: 90%;
  border-radius: 20px;
  padding: 10px;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
.podium-item {
  width: 100px;
  height: 60px;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  background: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.podium-item.first {
  background: #ffe95c;
  height: 60px;
  color: #222;
}
.podium-item.second {
  background: #bdbdbd;
  height: 50px;
  color: #222;
}
.podium-item.third {
  background: #ff9c3f;
  height: 45px;
  color: #222;
}


.leaderboard-list {
  width: 90%;
  margin: 0 auto;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  border-radius: 16px;
  margin: 10px 0;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.1s;
}
.leaderboard-row.first {
  background: #ffe95c;
  color: #222;
  font-weight: bold;
  transform: scale(1.04);
}
.leaderboard-row.second {
  background: #bdbdbd;
  color: #222;
  font-weight: bold;
  transform: scale(1.03);
}
.leaderboard-row.third {
  background: #ff9c3f;
  color: #222;
  font-weight: bold;
  transform: scale(1.02);
}
.leaderboard-row .rank {
  min-width: 32px;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
}
.leaderboard-row .name {
  flex: 1 1 auto;
  margin-left: 18px;
  text-align: left;
}
.leaderboard-row .xp {
  min-width: 90px;
  text-align: right;
}
html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  color: rgb(255, 255, 255);
  padding-bottom: 80px;
  box-sizing: border-box;
  cursor: default;
  caret-color: transparent;
  font-family: 'Arial', sans-serif;
}

#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  z-index: -1;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}

header {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #A662CD 3%, #86D0EB 95%);
  gap: 40px;
  position: fixed;
  width: 100%;
  padding: 10px 40px;
  box-sizing: border-box;
  top: 0;
  z-index: 1000;
}

h1 {
  font-size: 20px;
}

.headerItem {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.headerItem:hover,
.headerItem a:hover {
  color: rgb(152, 122, 221);
  transform: translateX(5px);
}

.headerItem a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.left {
  margin-left: 20px;
  margin-right: 10px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.header-logged-out .left {
  margin-right: auto;
}

.header-user {
  margin: 0;
  margin-right: auto;
  font-size: 18px;
}



.leaderboard-row.others {
  background: #e0e0e0;
  color: #222;
  font-weight: normal;
  transform: none;
}

/* --- Burger Menu Responsive Header --- */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.burger-menu span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

.header-nav {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: linear-gradient(90deg, #A662CD 3%, #86D0EB 95%);
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1050;
    min-width: 180px;
  }
  .burger-menu {
    display: flex;
  }
  .header-logged-in, .header-logged-out {
    flex-wrap: nowrap;
  }
  /* Show nav when burger-toggle is checked */
  .burger-toggle:checked ~ .burger-menu + .header-nav,
  .burger-toggle:checked + .burger-menu + .header-nav {
    display: flex;
  }
  /* Animate burger icon to X when checked */
  .burger-toggle:checked + .burger-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-toggle:checked + .burger-menu span:nth-child(2) {
    opacity: 0;
  }
  .burger-toggle:checked + .burger-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}