* {
  box-sizing: border-box;
  font-family: 'Rubik';
  font-weight: 200;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  color: #1c0f54;
}

#rotate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  text-align: center;
  color: #ff19f6;
  font-family: 'Roboto Mono', monospace;
  font-size: 3.5rem;
  z-index: 9000;
}
#rotate img {
  display: block;
  height: 256px;
  margin-bottom: 1rem;
}

#rotate {
  z-index: 9999;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fbf6f9e0;
  align-items: center;
  display: none;
  justify-content: center;
  z-index: 9998;
}

#overlay-wrapper {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  display: flex;
  justify-content: center;
}

.huge-chartbox {
  padding: 20px;
  border: 1px solid #040803;
  border-radius: 50%;
  position: relative;
  width: 300px;
  height: 300px;
}

.huge-chartbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7.5px solid transparent; /* La mitad del ancho del triÃ¡ngulo */
  border-right: 7.5px solid transparent; /* La mitad del ancho del triÃ¡ngulo */
  border-top: 20px solid #000;
  z-index: 1;
}

.huge-chartbox div.donut-hole {
  height: 75px;
  width: 75px;
  background-color: #fff;
  z-index: 20;
  position: absolute;
  top: 42px;
  left: 42px;
  border-radius: 96px;
  line-height: 40px;
}

.huge-chartbox div.donut-hole {
  background-color: #fbf6f9 !important;
  border: 2px solid #ccc;
}

#categories li:before {
  content: '0';
  color: #ccc;
  margin-left: 0.5rem;
  float: right;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f219';
}

#categories li:after {
  content: '0';
  color: #ccc;
  margin-left: 1rem;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f219';
  float: right;
}

#category-0,
#category-0.correct-1:after,
#category-0.correct-2:after,
#category-0.correct-2:before {
  color: #fdca00;
}

#category-1,
#category-1.correct-1:after,
#category-1.correct-2:after,
#category-1.correct-2:before {
  color: #19a7f5;
}

#category-2,
#category-2.correct-1:after,
#category-2.correct-2:after,
#category-2.correct-2:before {
  color: #8100c8;
}

#category-3,
#category-3.correct-1:after,
#category-3.correct-2:after,
#category-3.correct-2:before {
  color: #ff96f7;
}

#category-4,
#category-4.correct-1:after,
#category-4.correct-2:after,
#category-4.correct-2:before {
  color: #4fa846;
}

#category-5,
#category-5.correct-1:after,
#category-5.correct-2:after,
#category-5.correct-2:before {
  color: #6cf0d1;
}

#category-6,
#category-6.correct-1:after,
#category-6.correct-2:after,
#category-6.correct-2:before {
  color: #f06c6c;
}

#category-7,
#category-7.correct-1:after,
#category-7.correct-2:after,
#category-7.correct-2:before {
  color: #1b0ca0;
}

#category-8,
#category-8.correct-1:after,
#category-8.correct-2:after,
#category-8.correct-2:before {
  color: #ec3593;
}

#timer {
  display: none;
}

#categories {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #ccc;
  list-style: none;
  padding: 0;
}

#categories li {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

#question {
  overflow: auto;
  height: 95%;
  width: 95%;
  background: #1c0f54;
  border-radius: 2rem;
  padding: 1rem 2rem;
}

#question .container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#close,
.botonera button,
#startButton {
  background: #b3328a;
  color: #fff;
  border: none;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.5rem 1rem;
  line-height: 1.5;
  border-radius: 0.6rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

#close:hover {
  background: #623189;
}

#question {
  position: relative;
}

#question #answer {
  text-align: center;
  position: relative;
  bottom: 1rem;
  width: 100%;
  left: 0;
  padding-bottom: 1rem;
}

#question h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#question h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-top: 1rem;
  text-align: center;
  position: relative;
  padding: 30px 0 20px;
  font-weight: bold;
}

#question h3::before,
#question h3::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background-image: url('questionbar.png');
  background-size: cover;
  background-repeat: no-repeat;
}

#question h3::before {
  top: 0;
}

#question h3::after {
  bottom: 0;
}

#question ul li {
  position: relative;
  padding: 30px 0 30px;
}

#question ul li::before,
#question ul li::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background-size: cover;
  background-repeat: no-repeat;
}

#question ul li:nth-child(1)::before,
#question ul li:nth-child(1)::after {
  background-image: url('answer1bar.png');
}

#question ul li:nth-child(2)::before,
#question ul li:nth-child(2)::after {
  background-image: url('answer2bar.png');
}

#question ul li:nth-child(3)::before,
#question ul li:nth-child(3)::after {
  background-image: url('answer3bar.png');
}

#question ul li:nth-child(4)::before,
#question ul li:nth-child(4)::after {
  background-image: url('answer4bar.png');
}

#question ul li::before {
  top: 0;
}

#question ul li::after {
  bottom: 0;
}

#answer p {
  width: 80px;
  height: 80px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 auto;
}
#answer p.correct {
  background-image: url('right.png');
}
#answer p.incorrect {
  background-image: url('wrong.png');
}

/* 
#question ul.correct {
  background-size: 15%;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url('../images/right.png');
}

#question ul.incorrect {
  background-size: 15%;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url('../images/wrong.png');
} */

#question .correct_old {
  background: green;
  color: #fff;
  padding: 1rem;
  border-radius: 1rem;
}

#question .incorrect_old {
  background: red;
  color: #fff;
  padding: 1rem;
  border-radius: 1rem;
}

#question ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Centra horizontalmente los elementos */
  align-items: center; /* Centra verticalmente los elementos */
  height: 100%; /* Ocupa todo el alto disponible en su padre */
}

#question ul li {
  width: calc(50% - 75px);
  margin: 0 75px 0.5rem 0;
}

#question .option {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  background: transparent;
  color: #fff;
  border: none;
}

#question .option:hover {
  cursor: pointer;
}

#question .option[disabled]:hover {
  cursor: default;
}

#score {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #040803;
  display: flex;
  align-items: center;
  margin: 0 auto;
  background: url(score.png) no-repeat center center;
  background-size: cover;
  height: 100px;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

#ranking {
  position: absolute;
  right: 6rem;
  top: 1rem;
  color: #040803;
  display: flex;
  align-items: center;
  margin: 0 auto;
  background: url(ranking.png) no-repeat center center;
  background-size: cover;
  margin: 25px;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

#ranking:hover {
  cursor: pointer;
}

#chart {
  transform-origin: center center;
  scale: 1.8;
  left: 47px;
  top: 49px;
}

#spin {
  margin-left: -223px;
  z-index: 100;
  background: none;
  border: none;
  color: #fff;
  background-color: #6c3c94;
  height: 120px;
  width: 120px;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -61px;
  position: relative;
  top: 50%;
  left: 50%;
}

#question .win {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#question .win h2 {
  font-size: 2.5rem;
}

#start,
#rankingList,
#loading,
#board {
  position: absolute;
  background: #1c0f54;
  height: 100%;
  width: 100%;
}

#start,
#rankingList,
#loading {
  z-index: 9000;
}

#board {
  z-index: 8000;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loading {
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#rankingList {
  display: flex; /* Activar flexbox */
  flex-direction: column; /* Organizar los hijos verticalmente */
  justify-content: space-between; /* Espaciar los hijos */
  height: 100%; /* Ajustar la altura al contenedor padre, ajustar según necesidades */
  width: 100%; /* Ajustar el ancho al contenedor padre, ajustar según necesidades */
}

#rankingList #finished {
  margin-top: 0;
  margin-bottom: 2rem;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
}

#rankingList dl {
  flex-grow: 1; /* Hacer que el dl ocupe el espacio restante */
  overflow-y: auto; /* Añadir desplazamiento vertical si es necesario */
  margin-top: 0; /* Eliminar margen superior */
  margin-bottom: 0; /* Eliminar margen inferior */
}

#rankingList dt.me {
  color: #b13e89;
}

#rankingList dt.me + dd {
  color: #b13e89;
}

.botonera {
  display: flex;
  padding: 1rem;
  justify-content: center;
}

#rankingList h1,
#start h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  padding: 1rem;
  text-align: center;
  margin: 0;
}

#rankingList dl {
  width: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #fff;
  font-size: 1.5rem;
  grid-auto-rows: max-content;
  margin: 0 4rem;
}

#rankingList dd {
  text-align: center;
}

.form-group {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  color: #fff;
  margin-right: 0.5rem;
}

.form-group input {
  height: 100%;
  padding: 0.5rem 1rem;
  line-height: 1.5;
  border-radius: 0.6rem;
  outline: none;
  border: 2px solid #b3328a;
  background: #fff;
}

#start {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper-start .error {
  color: red;
}
