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

body {
  background: #000;
  background-image: url("https://alx.ovh/upload/uploads/67633860d37f4.jpg");
  color: white;
  font-family: "Arial", sans-serif;
  text-align: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.winner-container {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 90%;
  width: 500px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.winner-info-rank {
  font-size: 30px;
}

.winner-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden; /* Asigură că imaginea rămâne rotundă */
  margin-bottom: 15px;
  border: 4px solid #fff;
}

.winner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Imaginea va acoperi complet zona div-ului fără a o distorsiona */
}

.winner-title {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #f1f1f1;
}

.winner-details {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.winner-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: gray;
  margin-bottom: 15px;
  border: 4px solid #fff;
}

.winner-info {
  font-size: 1.2rem;
  margin: 8px 0;
}

.winner-info-rank {
  font-size: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-top: 10px;
  color: #f1f1f1;
}

.rank-image {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.social-media {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.social-media a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s;
}

.social-media a:hover {
  background: rgba(255, 255, 255, 0.4);
}

.social-media a img {
  width: 26px;
  height: 26px;
}

@media (max-width: 600px) {
  .winner-container {
    width: 90%;
    padding: 15px;
  }

  .winner-title {
    font-size: 1.8rem;
  }

  .winner-info {
    font-size: 1rem;
  }

  .winner-photo {
    width: 100px;
    height: 100px;
  }

  .winner-info-rank {
    font-size: 1.1rem;
  }

  .social-media a {
    width: 40px;
    height: 40px;
  }

  .social-media a img {
    width: 22px;
    height: 22px;
  }
}

.slider {
  /* slider */
  --slider-width: 100%;
  --slider-height: 50px;
  --slider-bg: rgba(255, 255, 255, 0.178);
  --slider-border-radius: 9px;
  /* level */
  --level-color: #ffffff;
  --level-transition-duration: 0.1s;
  /* icon */
  --icon-margin: 15px;
  --icon-color: var(--slider-bg);
  --icon-size: 25px;
}

.slider {
  position: fixed;
  left: -1%;
  height: 70%;
  cursor: pointer;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
}

.slider .volume {
  color: #000;
  display: inline-block;
  width: var(--icon-size);
  height: auto;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.slider .level {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--slider-width);
  height: var(--slider-height);
  background: var(--slider-bg);
  overflow: hidden;
  border-radius: var(--slider-border-radius);
  transition: height var(--level-transition-duration);
  cursor: inherit;
  position: relative;
  z-index: 1;
  transform: rotate(270deg);
}

.slider .level::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  -webkit-box-shadow: -200px 0 0 200px var(--level-color);
  box-shadow: -200px 0 0 200px var(--level-color);
}
.slider .level::-moz-range-thumb {
  width: 0;
  height: 0;
  border-radius: 0;
  border: none;
  box-shadow: -200px 0 0 200px var(--level-color);
}

@media (max-width: 1500px) {
    .slider {
      display: none;
    }
  }