* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basic typography and colors */
body {
  position: relative;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-height: 100vh;
  background-image: url("/public/images/leaderboardsBg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: rgb(255, 239, 214);
  overflow: clip;
}

.nav-content {
  display: flex;
  justify-content: end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.leaderboard-text {
  font-size: 50px;
  line-height: 72px;
  text-align: center;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: rgba(255, 175, 16, 1);
  text-shadow: 5px 1px 0px rgb(97, 97, 97);
  margin: 20px 0 0;
}

@media screen and (max-width: 768px) {
  .leaderboard-text {
    font-size: 40px;
    line-height: 56px;
    text-shadow: 4px 1px 0px rgb(97, 97, 97);
    margin: 10px 0 0;
  }
}


.top-container {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 20px;
  justify-content: center;
  position: relative;;
}

.category-dropdown {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.time-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  background-color: white;
  width: max-content;
  padding: 8px 16px;
  border-radius: 100px;
}

.time-btn {
  background: rgba(244, 241, 255, 1);
  color: rgba(30, 30, 30, 1);
  border: none;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 20px;
  line-height: 27px;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .time-btn {
    padding: 8px 16px;
    font-size: 16px;
    line-height: 22px;
  }
}

@media screen and (max-width: 480px) {
  .time-btn {
    padding: 4px 14px;
    font-size: 14px;
    line-height: 20px;
  }
  .time-selector {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: max-content;
    padding: 4px 8px;
    margin: 0 auto;
  }
}

.time-btn.active {
  background: rgba(119, 95, 233, 1);
  color: white;
  font-size: 20px;
  line-height: 27px;
  font-weight: 500;
  position: relative;
}

@media screen and (max-width: 768px) {
  .time-btn.active {
    font-size: 16px;
    line-height: 22px;
  }
}

@media screen and (max-width: 480px) {
  .time-btn.active {
    font-size: 14px;
    line-height: 20px;
  }
}

.time-btn.active::after {
  content: "●";
  position: absolute;
  border-radius: 100%;
  right: 5px;
  height: 16px;
  width: 16px;
  color: rgba(118, 202, 0, 1);
}

@media screen and (max-width: 768px) {
  .time-btn.active::after {
    height: 12px;
    width: 12px;
    right: 3px;
  }
}

@media screen and (max-width: 480px) {
  .time-btn.active::after {
    height: 10px;
    width: 10px;
    right: 2px;
  }
}

.divider {
  width: 1px;
  height: 12px;
  background-color: rgb(245, 238, 238);
  flex-shrink: 0;
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  .podium-container {
    max-width: 95%;
    margin: 30px auto 0;
  }
}

@media screen and (max-width: 480px) {
  .podium-container {
    gap: 5px;
  }
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1.5px solid rgba(255, 220, 142, 1);
  padding-top: 10px;
  overflow: hidden;
}

.first {
  order: 2;
  height: 200px;
}

.first .name {
  background-color: rgba(255, 246, 229, 1);
  height: 33%;
  width: 100%;
  color: rgba(150, 104, 14, 1);
  display: grid;
  place-items: center;
}

.second .name {
  height: 33%;
  width: 100%;
  color: rgba(116, 112, 112, 1);
  display: grid;
  place-items: center;
}

.third .name {
  height: 33%;
  width: 100%;
  color: rgba(156, 97, 75, 1);
  display: grid;
  place-items: center;
}

.second {
  order: 1;
  height: 170px;
  color: rgba(116, 112, 112, 1);
}

.name {
  font-family: Bakbak One;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .name {
    padding: 4px;
    font-size: 14px;
    line-height: 16px;
  }
}

.third {
  order: 3;
  height: 140px;
}

.rank {
  display: grid;
  place-items: center;
  padding: 10px;
}

li:nth-child(-n + 3) {
  min-height: 54px !important;
  max-height: 54px !important;
  width: 80%;
  background: linear-gradient(90.72deg, #ffb000 0.24%, #ffe9b8 100%);
  border-radius: 10px;
  border: 1px solid;
  border-image-source: linear-gradient(90deg, #e6e6e6 0%, #ffdd93 100%);
}
li:nth-child(-n + 3) p {
  border: 0.5px solid rgba(255, 255, 255, 1);
  background: rgba(186, 94, 33, 1);
  height: 38px;
}

li {
  list-style-type: none; /* Remove the default bullet points */
  width: 80%;
  height: 38px;
  padding: 8px 20px 8px 20px;
  gap: 8px;
  border-radius: 4px;
  background: rgba(248, 246, 255, 0.5);
  color: rgba(0, 0, 0, 1);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
}

@media screen and (max-width: 480px) {
  li:nth-child(-n + 3) {
    width: 95%;
  }
  li {
    width: 95%;
  }

  #listing-container {
    height: calc(100vh - 440px) !important;
  }
}

#listing-container {
  padding: 20px;
  overflow-y: scroll;
  height: calc(100vh - 470px);
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  overflow-x: hidden;
}

/* Webkit browsers (Chrome, Safari, newer Edge) */
#listing-container::-webkit-scrollbar {
  width: 10px;
}

#listing-container::-webkit-scrollbar-track {
  background: rgba(216, 205, 213, 1);
  border-radius: 10px;
}

#listing-container::-webkit-scrollbar-thumb {
  background: rgba(216, 205, 213, 1);
  border-radius: 10px;
}

#listing-container::-webkit-scrollbar-thumb:hover {
  background: rgba(216, 205, 213, 1);
}

/* Firefox */
#listing-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 205, 213, 1) rgba(255, 255, 255, 1);
  scroll-behavior: smooth;
}

.topThree {
  font-family: Baloo;
  font-size: 24px;
  font-weight: 600;
  line-height: 37.78px;
  color: rgba(186, 94, 33, 1);
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .topThree {
    font-size: 20px;
    line-height: 32px;
  }
}

@media screen and (max-width: 480px) {
  .topThree {
    font-size: 16px;
    line-height: 26px;
  }
}

.list-item {
  font-family: Noto Sans;
  font-size: 16px;
  font-weight: 500;
  line-height: 21.79px;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .nav-links {
    line-height: 1.5;
  }
  .nav-content {
    padding: 10px 20px;
  }
  nav {
    display: none !important;
  }
}

nav {
  display: block;
  background-color: #333;
  color: white;
}

.bottom-menu {
  padding: 10px 20px;
}
.bottom-menu .menu-item {
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 8px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.bottom-menu .menu-item.active {
  background-color: #f6f4ff;
}
.bottom-menu .menu-item .b-text {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
}
.bottom-menu .menu-item.active .b-text {
  color: #6447ed;
}
.bottom-menu .menu-item.active .b-image path {
  fill: #6447ed;
}
.bottom-menu .b-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background-color: #ffffff;
  border-top: 1px solid #ddd;
  /* height: 60px; */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.menu-item {
  text-align: center;
  flex: 1;
}
.menu-item i {
  font-size: 20px;
  color: #666;
}
.menu-item span {
  display: block;
  font-size: 12px;
  color: #666;
}
/* Mobile-specific styles */
@media (min-width: 768px) {
  .bottom-menu {
    display: none;
  }
  .toggle-container {
    display: none;
  }
  .m-filter-container {
    display: none;
  }
  .m-dashboard-container {
    display: none;
  }
}
