@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #1d1d1d;
}

.container {
  width: 520px;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 12px;
  padding: 30px 40px;
}

.container h2 {
  color: #fff;
  align-self: center;
  font-size: 1rem;
  text-transform: capitalize;
}

.container .progress-box {
  width: 100%;
  height: 80px;
  margin: 12px 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  box-sizing: border-box;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.progress-box:hover {
  background: rgba(52, 52, 52, 0.133);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.progress-box.active {
  background: rgba(52, 52, 52, 0.133);
  border: 2px solid #00ff00;
  transform: scale(1.1);
}

.progress-box p {
  color: #fff;
}

.progress-box .progress-bar {
  width: 100%;
  height: 12px;
  position: relative;
  background: #222;
  box-shadow: inset 0 8px 60px rgba(0, 0, 0, 0.1),
    inset 0 8px 8px rgba(0, 0, 0, 0.1), inset 0 -4px 4px rgba(0, 0, 0, 0.1);
  margin: 12px 0;
  border-radius: 16px;
}

.progress-bar span {
  /* width: 20%; */
  height: 80%;
  background: #00ff00;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  border-radius: 16px;
  transition: 0.6s;
}

.progress-bar span::after {
  content: attr(data);
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  padding: 3px 7px;
  background: linear-gradient(to bottom, #333, #222);
  font-weight: 600;
  color: #fff;
  border-radius: 24px;
  border: 1px solid #0005;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.container .progress-box:nth-child(1) {
  filter: hue-rotate(10deg);
}

.container .progress-box:nth-child(2) {
  filter: hue-rotate(230deg);
}

.container .progress-box:nth-child(3) {
  filter: hue-rotate(100deg);
}

.container .progress-box:nth-child(4) {
  filter: hue-rotate(300deg);
}

.container .progress-box:nth-child(5) {
  filter: hue-rotate(180deg);
}

.container h3 {
  color: #fff;
}

#totalVotes {
  color: #00ff00;
}

.name {
  color: #dd5746;
  font-size: 1rem;
  margin-top: 1rem;
}

.name a {
  text-decoration: none;
  color: #7bc9ff;
  font-size: 1.3rem;
  margin-left: 5px;
}

.name a:hover {
  text-decoration: underline;
}
