.ranking {
  background: rgba(34, 34, 34, 0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  position: relative;
}

.ranking:hover {
  transform: scale(1.05);
}

.ranking h2 {
  font-size: 1.8rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.ranking h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.ranking ul {
  list-style-type: none;
  padding: 0;
}

.ranking li {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  transition: 0.3s ease;
}

.ranking li:hover {
  background: rgba(255, 255, 255, 0.2);
}

#resetRanking {
  padding: 10px;
  font-size: 1rem;
}

#warningMessage {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(53, 53, 53, 0.95);
  color: #fff;
  padding: 10px 20px;
  border: 2px solid red;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  z-index: 10;
}

#warningMessage h4 {
  font-size: 1.2rem;
  text-align: center;
  font-style: bold;
  margin-bottom: 10px;
}

#warningMessage p {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.btnWarning {
  flex-direction: row;
}

#warningMessage button {
  font-size: 0.8rem;
  padding: 5px 10px;
  margin: 5px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

#warningMessage button:hover {
  opacity: 0.8;
}

#confirmReset {
  background: red;
}

#cancelReset {
  background: rgb(77, 76, 76);
}

.deshabilitar-interaccion * {
  pointer-events: none !important;
}

#warningMessage * {
  pointer-events: auto !important;
}
