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

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

#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: 1.2rem;
}
#rotate img {
  display: block;
  width: 100px;
  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;
}

.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 #ffd700; /* Altura del triángulo */
}

.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;
}

#category-9,
#category-9.correct-1:after,
#category-9.correct-2:after,
#category-9.correct-2:before {
  color: #ffbf47;
}

#category-10,
#category-10.correct-1:after,
#category-10.correct-2:after,
#category-10.correct-2:before {
  color: #008000;
}

#category-11,
#category-11.correct-1:after,
#category-11.correct-2:after,
#category-11.correct-2:before {
  color: #00bcd4;
}

#category-12,
#category-12.correct-1:after,
#category-12.correct-2:after,
#category-12.correct-2:before {
  color: #ff4500;
}

#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 {
  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("../images/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("../images/answer1bar.png");
}

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

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

#question ul li:nth-child(4)::before,
#question ul li:nth-child(4)::after {
  background-image: url("../images/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("../images/right.png");
}
#answer p.incorrect {
  background-image: url("../images/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(../images/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;
}

#chart {
  transform-origin: center center;
}

#spin {
  margin-left: -132px;
  z-index: 100;
  background: none;
  border: none;
  color: #fff;
  background-color: #6c3c94;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  cursor: pointer;
}

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

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