:root {
  --pool-blue: #025ba3;
  --pool-blue-lite: #028eff;
  --primary: #3161ff;
  --secondary: #0631be;
  --error: red;
  --pink: #ed7b84;
  --lightpink: #fbb7b7;
  --lightblue: #b7bcfb;
  --light-mode-pink: #d72050;
  --light-mode-blue: #0543b6;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000;
  background-image: linear-gradient(#08080800 0px, #5c6abb26 0px),
    linear-gradient(to right, #00000000 0px, #00000000 0px);
  background-size: 100px 100px;
  background-attachment: fixed;
}

body.light-mode {
  background-color: #ffffff;
  background-image: linear-gradient(
      #ff50c82b 1.9000000000000004px,
      #ffffff00 0.9000000000000004px
    ),
    linear-gradient(
      to right,
      #fdff644f 1.9000000000000004px,
      #ffffffa6 1.9000000000000004px
    );
}

button#toggle-mode {
  color: #f1376b;
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 100px;
  padding: 5px;
  line-height: 1;
  box-shadow: 0 2px 10px -2px black;
  border: 2px solid #f1376b;
}

.help-text {
  color: var(--lightpink);
  width: auto;
  background: #31232c;
  margin: 0 auto;
  padding: 10px 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

body.light-mode .help-text {
  color: var(--light-mode-blue);
  background: #509dff30;
}

.whole-container {
}

header {
  color: white;
  padding: 20px;
  height: 200px;
  text-align: center;
  transition: 0.3s ease;
  background: radial-gradient(at top, #02c2ff63 10%, transparent 75%);
}

body.light-mode header {
  background: radial-gradient(at top, var(--lightblue) 10%, transparent 72%);
  display: block;
  position: relative;
}

/*----------*/

.title-container {
  position: relative;
  margin-top: -150px;
  margin-bottom: 50px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 50px;
  background: linear-gradient(
    to right,
    transparent 10%,
    #b7cffb4d,
    transparent 90%
  );
  box-shadow: 0 10px 25px -5px #0000009e;
}

body.light-mode .title-container {
  background: linear-gradient(
    to right,
    transparent 0%,
    #ffffff,
    transparent 100%
  );
  box-shadow: 0 15px 25px -5px #ffffff;
}

.star-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: var(--lightblue);
  text-shadow: 0 5px 10px #000000bd, 0 -1px 10px var(--pool-blue);
}

@media screen and (min-width: 2400px) {
  .star-title {
    font-size: 3rem;
  }
}

body.light-mode .star-title {
  color: unset;
  text-shadow: none;
  background: -webkit-linear-gradient(202deg, #ff4380, var(--light-mode-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 768px) {
  .star-title {
    font-size: 1.2rem;
    text-align: right;
  }
}

@media screen and (max-width: 380px) {
  .star-title {
    font-size: 0.9rem;
    text-align: right;
  }
}

.back-button {
  position: absolute;
  top: 50%;

  color: var(--lightpink);
  border: 1px solid;
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 0.9rem;
  text-decoration: none;

  transform: translateX(-500px) translateY(-50%);

  animation: leftToRight 1s ease forwards;
  animation-delay: 1s;
}

body.light-mode .back-button {
  border: 1px solid var(--light-mode-blue);
  color: var(--light-mode-blue);
}

@keyframes leftToRight {
  0% {
    opacity: 0;
    transform: translateX(-500px) translateY(-50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0px) translateY(-50%);
  }
}

.logo-container {
  width: 120px;
  position: absolute;
  top: -25%;
  background: linear-gradient(to top, #dcdfff, #ffffff);
  padding: 10px;
  border-radius: 30px;
  box-shadow: 0 3px 15px -5px black, 15px 15px 0px 4px #ffffff2b,
    -15px -15px 0px 4px #ffffff2b;
}

@media screen and (max-width: 768px) {
  .logo-container {
    width: 80px;
  }
}

@media screen and (min-width: 2400px) {
  .logo-container {
    width: 150px;
  }
}

img.logo {
  width: 100%;
  filter: drop-shadow(0px 0px 20px var(--lightblue));
}

/*----*/

.hero-container {
  position: relative;

  margin: -50px auto 0px;
  padding: 100px 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.podium-background {
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #090c21 20%, var(--lightblue));
  border-radius: 50%;
  bottom: 0;

  opacity: 0.8;
  filter: blur(50px);

  clip-path: polygon(
    0% 100%,
    15% 85%,
    25% 90%,
    35% 80%,
    45% 85%,
    55% 75%,
    65% 85%,
    75% 75%,
    85% 90%,
    100% 85%,
    100% 100%
  );
}

.top-performers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  height: 100%;
  margin: 0 auto;
  max-width: 1400px; /* Limit maximum width */
}

.performer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

/* Base avatar size */
.performer-avatar {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 100%;
  border: 8px solid #ffffff1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

/* First place (center) */
.performer-1 {
  margin-top: -50px; /* Lift it up */
}

.performer-1 .performer-avatar {
  width: 200px;
  height: 200px;
  border-color: gold;
  box-shadow: 0 0 35px -10px rgba(255, 215, 0, 0.5);
}

/* Second and third place */
.performer-2 .performer-avatar,
.performer-3 .performer-avatar {
  width: 150px;
  height: 150px;
  margin-top: 25px; /* Position slightly lower than first place */
}

/* Fourth and fifth place */
.performer-4 .performer-avatar,
.performer-5 .performer-avatar {
  width: 120px;
  height: 120px;
  margin-top: 50px; /* Position lowest */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .performer-4,
  .performer-5 {
    display: none;
  }

  .top-performers {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .top-performers {
    gap: 10px;
  }

  .performer-avatar {
    width: 80px;
    height: 80px;
    border-width: 4px;
  }

  .performer-1 {
    margin-top: -20px;
  }

  .performer-1 .performer-avatar {
    width: 120px;
    height: 120px;
  }

  .performer-2 .performer-avatar,
  .performer-3 .performer-avatar {
    width: 100px;
    height: 100px;
    margin-top: 10px;
  }
}

.performer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  line-height: 15px;
  border: 2px solid #000;
}

.performer-1 .rank-badge {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
}

.performer-2 .rank-badge {
  background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
  color: #000;
}

.performer-3 .rank-badge {
  background: linear-gradient(45deg, #cd7f32, #b08d57);
  color: #000;
}

.performer-4 .rank-badge,
.performer-5 .rank-badge {
  background: linear-gradient(45deg, var(--lightblue), var(--pool-blue-lite));
  color: #000;
}

.performer-info {
  text-align: center;
  color: var(--lightblue);
}

body.light-mode .performer-info {
  color: var(--light-mode-blue);
}

.performer-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.performer-score {
  display: flex;
  justify-content: center;
  align-items: center;
}

.performer-score .performer-score-icon {
  background: linear-gradient(to top, #081f4b, var(--pool-blue));
  padding: 3px;
  border-radius: 100px;
  display: flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-shadow: 0 1px 3px black;
}

.performer-score .performer-score-data {
  color: var(--lightblue);
  display: flex;
  line-height: 1;
  font-size: 1rem;
  padding: 5px;
  border-radius: 10px;
}

.crown {
  color: #ffb800;
  font-size: 2rem;
  margin-bottom: -10px;
  text-shadow: 0 0 8px #c3a500;
  animation: float 2s ease-in-out infiniteNONE;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-container {
  }

  .performer-avatar {
    width: 80px;
    height: 80px;
  }

  .performer-1 .performer-avatar {
    width: 100px;
    height: 100px;
  }

  .rank-badge {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/*---------*/

.leaderboard-container {
  position: relative;
  width: 95%;

  margin: 100px auto 50px auto;
  background: linear-gradient(to bottom, #011213db 20%, #0d2b398e);
  border-radius: 15px;
  box-shadow: 0 -15px 26px -12px rgba(0, 0, 0, 0.5);
}

body.light-mode .leaderboard-container {
  background: linear-gradient(to bottom, #ebecf0 50%, #e6e9ff78);
  box-shadow: 0 -15px 26px -12px rgba(0, 0, 0, 0.5),
    0 10px 15px -5px rgba(0, 0, 0, 0.5);
}

.leaderboard-container h3 {
  font-size: 3rem;
  margin: 0;
  color: #0078d4;
}

.leaderboard-container h4 {
  font-size: 1.2rem;
  font-weight: 400;
}

/* ----- leaderboard-table ---- */
.leaderboard-table {
  width: 100%;
  padding: 10px 30px 30px 30px;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 80px 70px minmax(150px, 1fr) minmax(150px, 1fr) 120px 100px;
  gap: 20px;
  padding: 15px 25px;
  margin-bottom: 15px;
  border-bottom: 1px solid;
  border-image: linear-gradient(
      to right,
      transparent,
      var(--lightblue),
      transparent
    )
    1;
}

body.light-mode .leaderboard-header {
  border-bottom-color: #0000001a;
}

.leaderboard-header span {
  color: var(--lightblue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

body.light-mode .leaderboard-header span {
  color: var(--light-mode-blue);
}

.leaderboard-rows {
  /* display: flex;
            flex-direction: column; */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns */
  grid-template-rows: repeat(10, 1fr);
  grid-auto-flow: column;
  gap: 10px;
}

@media screen and (max-width: 1700px) {
  .leaderboard-rows {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(15, 1fr);
    grid-auto-flow: column;
  }
}
@media screen and (max-width: 1100px) {
  .leaderboard-rows {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-flow: row;
  }
}

@media screen and (min-width: 2400px) {
  .leaderboard-rows {
    gap: 30px;
  }
}

.leaderboard-row {
  /* display: grid;
            grid-template-columns: 80px 70px minmax(150px, 1fr) minmax(150px, 1fr) 120px 100px; */
  display: flex;
  flex-flow: wrap;
  gap: 20px;

  padding: 25px 25px;
  padding-bottom: 30px;
  background: #ffffff08;
  /* backdrop-filter: blur(10px); */
  border-radius: 12px;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;

  position: relative;
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  transition: all 0.25s cubic-bezier(0.7, 0.98, 0.86, 0.98);
}

@media screen and (max-width: 768px) {
  .leaderboard-row {
    padding: 25px 10px 20px 10px;
    margin-bottom: 30px;
  }
}

.leaderboard-row > * {
  flex-shrink: 0;
}

body.light-mode .leaderboard-row {
  background: #00000008;
}

.leaderboard-row:hover {
  background: #ffffff12;
  transform: translateY(-2px);
}

body.light-mode .leaderboard-row:hover {
  background: #00000012;
}

.rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--lightblue);
}

body.light-mode .rank {
  color: var(--light-mode-pink);
}

/*---rank specific 1 2 3 styles */
.rank {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid;
}

@media screen and (min-width: 1800px) {
  .rank {
    font-size: 2rem;
    width: 80px;
    height: 80px;
  }
}

@media screen and (min-width: 2400px) {
  .rank {
    font-size: 2.2rem;
    width: 90px;
    height: 90px;
  }
}

/* First Place Styling */
.rank.rank-1 {
  background: linear-gradient(45deg, #ffd700, #e59400);
  color: #333;
  box-shadow: 0 0 20px #ffd70099;

  animation: pulseGold 2s forwards;
}

.rank.rank-1::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ffd700, #ffa500, #ffd700);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  animation: borderRotate 4s linear forwards;
}

/* Second Place Styling */
.rank.rank-2 {
  background: linear-gradient(45deg, #b3b2b2, #f3f3f3);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
  animation: pulseSilver 2s forwards;
}

/* Third Place Styling */
.rank.rank-3 {
  background: linear-gradient(45deg, #c5792d, #edbd73);
  color: #333;
  box-shadow: 0 0 15px #cd7f329e;
  animation: pulseBronze 2s forwards;
}

/* fourth to ten Place Styling */
.rank.rank-4 {
  background: linear-gradient(45deg, #ffe91f, #ffffff);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
}

.rank.rank-5 {
  background: linear-gradient(45deg, #ffe91fe5, #ffffff);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
}

.rank.rank-6 {
  background: linear-gradient(45deg, #ffe91fd0, #ffffff);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
}

.rank.rank-7 {
  background: linear-gradient(45deg, #ffe91fb7, #ffffff);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
}

.rank.rank-8 {
  background: linear-gradient(45deg, #ffe91f94, #ffffff);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
}

.rank.rank-9 {
  background: linear-gradient(45deg, #ffe91f7c, #ffffff);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
}

.rank.rank-10 {
  background: linear-gradient(45deg, #ffe91f5e, #ffffff);
  color: #333;
  box-shadow: 0 0 15px #c0c0c0a3;
}

/* Particle Effects */
.rank.rank-1 .particles,
.rank.rank-2 .particles,
.rank.rank-3 .particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -15px;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particleFloat 2.5s ease-in-out forwards;
}

/* Animations */
/* @keyframes pulseGold {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes pulseSilver {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.03); }
        }

        @keyframes pulseBronze {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        } */

@keyframes borderRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty));
    opacity: 0;
  }
}

.pic-name {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex: 1;
}

@media screen and (max-width: 768px) {
  .pic-name {
    width: 100%;
  }
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lightblue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media screen and (min-width: 1800px) {
  .profile-pic {
    width: 100px;
    height: 100px;
  }
}

@media screen and (min-width: 2400px) {
  .profile-pic {
    width: 120px;
    height: 120px;
  }
}

@media screen and (min-width: 3000px) {
  .profile-pic {
    width: 150px;
    height: 150px;
    margin-right: 10px;
  }
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name-company {
  display: flex;
  flex-direction: column;
  width: calc(100% - 200px);
}
@media screen and (max-width: 1800px) {
  .name-company {
    width: calc(100% - 150px);
  }
}

@media screen and (max-width: 400px) {
  .name-company {
    width: calc(100% - 100px);
  }
}

.name {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

@media screen and (min-width: 1800px) {
  .name {
    font-size: 1.6rem;
  }
}

@media screen and (min-width: 2400px) {
  .name {
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 3000px) {
  .name {
    font-size: 2rem;
  }
}

body.light-mode .name {
  color: var(--light-mode-blue);
}

/* First Place Name Styling */
.name.name-1 {
  font-weight: bold;
  background: linear-gradient(to right, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  position: relative;
}

/* Second Place Name Styling */
.name.name-2 {
  font-weight: bold;
  background: linear-gradient(to right, #c0c0c0, #e8e8e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(192, 192, 192, 0.3);
}

/* Third Place Name Styling */
.name.name-3 {
  font-weight: bold;
  background: linear-gradient(to right, #cd7f32, #b08d57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(205, 127, 50, 0.3);
}

/* Light mode adjustments */
body.light-mode .name.name-1 {
  background: linear-gradient(to right, #ffb900, #ff8c00);
  -webkit-background-clip: text;
  text-shadow: 0 2px 10px rgba(255, 185, 0, 0.3);
}

body.light-mode .name.name-2 {
  background: linear-gradient(to right, #757575, #9e9e9e);
  -webkit-background-clip: text;
  text-shadow: 0 2px 10px rgba(117, 117, 117, 0.3);
}

body.light-mode .name.name-3 {
  background: linear-gradient(to right, #a0522d, #8b4513);
  -webkit-background-clip: text;
  text-shadow: 0 2px 10px rgba(160, 82, 45, 0.3);
}

/*-----name---*/

.company {
  color: var(--pool-blue-lite);
  font-size: 1rem;

  padding: 2px 10px;
  border-radius: 20px;
}

.company {
  position: relative;
  padding: 0;
}

@media screen and (min-width: 1800px) {
  .company {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 2400px) {
  .company {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 3000px) {
  .company {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
}

body.light-mode .company {
  color: var(--light-mode-blue);
}

.time {
  position: absolute;
  top: 5px;
  right: 0;

  padding: 1px 10px;
  border-radius: 0 10px 0 5px;
  font-size: 1.5rem;
}

.time-data {
  display: flex;
  gap: 10px;
}

.time-data .time-min,
.time-data .time-sec {
  background: var(--pool-blue-lite);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  padding: 0 4px;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 3px rgb(5 96 169 / 50%);
}

@media screen and (min-width: 1800px) {
  .time-data {
    gap: 15px;
  }
  .time-data .time-min,
  .time-data .time-sec {
    font-size: 1.8rem;
    padding: 0 10px;
  }
}

@media screen and (min-width: 2400px) {
  .time-data .time-min,
  .time-data .time-sec {
    font-size: 2rem;
  }
}

@media screen and (min-width: 3000px) {
  .time-data .time-min,
  .time-data .time-sec {
    font-size: 2.5rem;
  }
}

.time-data .time-min:after,
.time-data .time-sec:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 50%;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
}

span.time-format {
  background: linear-gradient(to right, transparent, #0000008f, transparent);
  padding: 0 5px;
  display: inline-block;
}

.score {
  display: flex;
  align-items: center;
  gap: 0px;
  color: white;
  font-weight: bold;
  text-align: center;
}

.score {
  position: absolute;
  right: 5px;
  top: 70%;
  transform: translateY(-50%);
}

body.light-mode .score {
}

.score .score-icon {
  background: linear-gradient(to top, #081f4b, var(--pool-blue));
  padding: 2px 0 0 2px;
  border-radius: 100px;

  width: 20px;
  height: 20px;

  font-size: 11px;
  text-shadow: 0 1px 3px black;
}

.score .score-data {
  color: var(--lightblue);
  display: flex;
  line-height: 1;
  font-size: 2rem;
  padding: 5px;
  border-radius: 10px;
}

@media screen and (min-width: 2400px) {
  .score {
    top: 60%;
  }
  .score .score-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    padding: 2px;
  }
  .score .score-data {
    font-size: 3rem;
  }
}

/*  mobile styles */
@media (max-width: 768px) {
  .leaderboard-container {
    width: 95%;
    border-radius: 0;
    overflow: hidden; /* Contains the scroll shadow */
  }

  .leaderboard-table {
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 15px;
  }

  .leaderboard-table::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .profile-pic {
    width: 35px;
    height: 35px;
  }

  .rank {
    font-size: 1.2rem;
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
  }

  .name,
  .company {
    font-size: 0.85rem;
  }

  .time {
    font-size: 1.2rem;
  }

  .score {
    font-size: 0.85rem;
  }
}

/*---------*/

/*----pagination----*/

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.pagination-wrapper {
  display: flex;
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  background: #00000026;
  border-radius: 50px;
}

.pagination-btn {
  background-color: transparent;
  border: 0px solid var(--pool-blue-lite);
  color: var(--pool-blue-lite);
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  border-radius: 50px;
  padding: 0;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.pagination-btn:hover {
  background-color: var(--pool-blue-lite);
  color: white;
  transform: scale(1.05);
}

.pagination-btn.active {
  background-color: var(--pool-blue-lite);
  color: white;
  font-weight: bold;
}

/* Pagination visibility classes */
[class*="page-"] {
  display: grid !important;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: all 0.3s ease-in-out;
}

.page-hidden {
  display: grid !important;
  opacity: 0;
  transform: scale(0.95);

  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Existing pagination button styles */
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
}

.pagination-numbers button {
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 2400px) {
  .pagination-btn,
  .pagination-numbers button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

.pagination-numbers button.active {
  background: var(--pool-blue-lite);
}

@media (max-width: 768px) {
  .pagination-wrapper {
    padding: 10px 0;
    width: 100%;
    justify-content: center;
  }

  .pagination-btn {
    margin: 0 2px; /* Adjust margin for better spacing */
  }

  .pagination-btn:nth-child(n + 4) {
    display: none; /* Hide buttons 4 and 5 */
  }
}

/*-----------*/

a.see-all {
  color: var(--pool-blue-lite);
  font-weight: 600;
  font-size: 0.8rem;
}

@media screen and (min-width: 2400px) {
  a.see-all {
    font-size: 1.2rem;
  }
}

.filter-btn-container {
  position: relative;
  display: flex;
  justify-content: end;
  gap: 10px;
  padding: 20px 30px;
}

.filter-btn {
  border: none;
  color: var(--lightblue);
  cursor: pointer;
  padding: 5px 15px;
  font-size: 0.8rem;
  border-radius: 5px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

@media screen and (min-width: 2400px) {
  .filter-btn {
    font-size: 1.5rem;
  }
}

body.light-mode .filter-btn {
  color: var(--light-mode-blue);
}

button.filter-btn.time-filter {
  background: var(--lightblue);
  color: var(--pool-blue);
}

button.filter-btn.score-filter {
  background: var(--pool-blue);
  color: var(--lightblue);
}

.filter-btn:hover {
  opacity: 1;
}

.filter-btn.active {
  opacity: 1;
  color: var(--pool-blue);
  box-shadow: 0 0 15px -5px var(--pool-blue-lite);
}

body.light-mode .filter-btn.active {
  color: var(--lightblue);
}

.time-based-leaderboard {
  display: none;
}

.background-animation {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(to bottom, #090b15, #0f1631);
  overflow: hidden;

  background-image: url("img/starBG.png");
  background-size: cover;
}

.aurora-container {
  position: absolute;
  width: 100%;
  height: 100%; /* Changed from 70vh */
  overflow: hidden;
  contain: content;
}

.aurora {
  position: fixed;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: linear-gradient(
    80deg,
    rgba(0, 194, 255, 0),
    rgb(26 31 255 / 15%) 25%,
    rgb(69 185 255 / 20%) 45%,
    rgb(84 135 255 / 33%) 65%,
    rgba(0, 194, 255, 0)
  );
  filter: blur(20px);
  opacity: 0.4; /* Reduced opacity */
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
  animation: auroraFlow 5s ease-in-out forwards alternate; /* Slowed down */
}

.aurora::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    80deg,
    rgba(103, 255, 178, 0),
    rgb(103 184 255 / 10%) 25%,
    rgb(124 230 255 / 20%) 45%,
    rgb(103 219 255 / 10%) 65%,
    rgb(103 233 255 / 0%)
  );
  /* filter: blur(40px); */
  animation: auroraGlow 3s ease-in-out forwards alternate;
}

@keyframes auroraFlow {
  0% {
    transform: translateX(-20%) skewX(10deg);
  }
  50% {
    transform: translateX(20%) skewX(-10deg);
  }
  80% {
    transform: translateX(-20%) skewX(10deg);
  }
  100% {
    transform: translateX(0) skew(5deg);
  }
}

@keyframes auroraGlow {
  0%,
  100% {
    opacity: 0.3;
    filter: brightness(1);
  }
  50% {
    opacity: 0.5;
    filter: brightness(1.3);
  }
}
