body {
  background-color: #0d1117;
  padding: 20px;
  color: #c9d1d9;
  font-family: "Arial", sans-serif;
}

h1 {
  color: #4caf50;
  font-size: min(36px, calc(100vw / 25));
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-align: center;
}

#dashboard-content {
  text-align: center;
}

.top-bar {
  width: calc(100% - 40px);
  padding: 10px 20px;
  background-color: #161b22;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
}

.top-bar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 1px; 
  object-fit: cover;
  cursor: pointer;
}

#leaderboardButton {
  padding: 8px 16px;
  border: 2px solid #4caf50;
  color: #4caf50;
  background-color: transparent;
  border-radius: 20px;
  cursor: pointer;
}

#leaderboardButton:hover {
  background-color: #4caf50;
  color: #fff;
}

.account-info {
  display: flex;
  align-items: center;
  color: #c9d1d9;
  font-size: 16px;
  margin-right: 10px;
  position: relative;
}

#balance {
  font-weight: bold;
  color: #c9d1d9;
  margin-right: 16px;
}

#username {
  cursor: pointer;
  position: relative;
  margin-right: 10px;
  font-size: 20px;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center
}

#dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #161b22;
  border: 1px solid #4caf50;
  border-radius: 5px;
  display: none;
  z-index: 1;
  margin-top: 5px;
  width: 75px;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: translateY(-10px);
  opacity: 0;
}

.dropdown.show #dropdown-menu {
  display: block;
  transform: translateY(0px);
  opacity: 1;
}

#dropdown-menu button {
  background: none;
  color: #c9d1d9;
  padding: 8px 12px;
  border: none;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

#dropdown-menu button:hover {
  background-color: #4caf50;
  color: white;
  border-radius: 4px;
}
