/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Body Styling */
body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #28a745, #007bff);
  color: white;
  text-align: center;
  padding: 40px 20px;
}
.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.cta-buttons .btn {
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  transition: background-color 0.3s ease;
}
.cta-buttons .btn:hover {
  background-color: #0056b3;
}
/* Ranking Section */
.ranking-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.ranking-section h1 {
  margin-bottom: 30px;
}

/* Podium Section */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 40px 0;
  gap: 20px;
}

.podium-spot {
  text-align: center;
  position: relative;
  width: 150px;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podium-spot:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Dynamic Background Colors for Podium */
.podium-spot.first {
  height: 220px;
  background: linear-gradient(135deg, #ffdf00, #ffc107); /* Gold Gradient */
  border: 3px solid #d4af37;
}

.podium-spot.second {
  height: 180px;
  background: linear-gradient(135deg, #c0c0c0, #d9d9d9); /* Silver Gradient */
  border: 3px solid #a0a0a0;
}

.podium-spot.third {
  height: 150px;
  background: linear-gradient(135deg, #cd7f32, #d1a178); /* Bronze Gradient */
  border: 3px solid #8b5a2b;
}

/* Position Badges */
.position, .badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  color: white;
}

.gold-badge {
  background-color: #ffdf00;
  color: #000;
}

.silver-badge {
  background-color: #c0c0c0;
  color: #000;
}

.bronze-badge {
  background-color: #cd7f32;
  color: #fff;
}

/* User Card */
.user-card {
  position: relative;
  padding: 15px;
  background: white;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-card img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
  border: 3px solid white;
}

.user-card .user-info h3 {
  margin: 5px 0;
  font-size: 1.2em;
}

.user-card .user-info p {
  margin: 0;
  font-size: 0.9em;
  color: #555;
}

/* Ranked List */
.ranked-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.ranked-list li {
  background: #fff;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranked-list .user-card {
  flex-direction: row;
}

/* View More Button */
.view-more-container {
  text-align: center;
  margin-top: 20px;
}

.view-more-container button {
  padding: 10px 20px;
  background: #007bff;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-more-container button:hover {
  background: #0056b3;
}
/* Ranking Section */
.ranking-section {
  text-align: center;
  margin: 40px 0;
}

/* Graph Section */
.graph-section {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.graph-section h2 {
  margin-bottom: 20px;
}

canvas {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}