:root {
  --size-wheel: 30rem;
}

html {
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
  background-color: #202020;
  font-family: 'Open Sans'
}

body {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  position: relative;
  padding: 0;
  margin: 1rem 0;
  width: var(--size-wheel);
  height: var(--size-wheel);
  border: 15px solid rgb(255, 214, 52);
  border-radius: 50%;
  list-style: none;
  overflow: hidden;
  transition: transform 7s cubic-bezier(0.075, 0.8, 0.2, 1);
  /* Transición definida */
  box-shadow: 0px 0px 23px -3px rgba(0, 0, 0, 0.5);


}

span {
  display: inline-block;
  position: relative;
  padding: 0.5rem;
}

span::before {
  content: '';
  position: absolute;
  top: 0rem;
  left: 50%;
  border-left: 2rem solid transparent;
  border-right: 2rem solid transparent;
  border-top: 4rem solid rgb(255, 217, 0);
  z-index: 2;
  transform: translateX(-50%);
  animation: arrow ease-out 0.6s infinite;
  text-shadow: -5px 2px 8px rgba(0,0,0,0.58);
}

@keyframes arrow {
  0% {
    top: -2rem;
  }

  80% {
    top: 0;
  }

  100% {
    top: -1.5rem;
  }
}

span::after {
  content: '';
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(255, 255, 255);
  border-radius: 50%;
}

li {
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  transform-origin: 0% 100%;
}

.text {
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  left: -100%;
  width: 200%;
  height: 200%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 1.7rem;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  background-size: cover;
  background-position: center;
  z-index: 10;
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.btn--wheel {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: #ffffff;
  color: #202020;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  position: absolute;
  transition: 0.5s;
  box-shadow: 0px 0px 23px -3px rgba(0, 0, 0, 0.5);
}

.btn--wheel:hover {
  transform: scale(1.05);
}

.btn--wheel:active {
  transform: scale(-0.005);
}


.contenedor-centrar{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 50%;
  margin: auto  ;
  height: 80vh;
}

.cont-btn{
  position: absolute;
  top: 120px;
  left: 30px;
}


/* =========================== MODAL BIENVENIDA ===================================================*/

/* Estilos de la modal */
.modal-bienvenida {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-bienvenida.activa {
  visibility: visible;
  opacity: 1;
  z-index: 999;
}

.modal-contenido {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-contenido img{
  width: 80%;
  height: auto;
  max-width: 300px;
  margin-bottom: -30px;
}

.modal-contenido p{
  width: 80%;
  margin-top: 40px;
}

.btn-cerrar-modal-b {
  background: rgb(0, 164, 49);
  color: white;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
}

/**            wdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa**/
/* Estilos para el modal */
.modal {
  z-index: 3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transform: scale(0.5);
  animation: pop 0.3s forwards;
}

@keyframes pop {
  100% {
    transform: scale(1);
  }
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
  position: relative;
}

.modal-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.btn-close{
  background-color: #ff4757;
  color: white;
  border: none;
  padding: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.btn-close:hover {
  background: #9c1602;
}

.modal-content h4{
  color: #ff4757;
}

.ruleta-logo{
  width: 450px;
  margin: auto;
  float: center;
  margin-top: 10%;
}

/* Contenedor del video */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.btn-volver{
  border-radius: 50%;
  background-color: #ff4646;
  color: #fff;
  text-decoration: none;
  border: none;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-volver:hover{
  cursor: pointer;
}
.cont-btn a{
  text-decoration: none;
}
.btn-volver i{
  text-decoration: none;
  margin: 0px;
  font-size: 30px;
}

/* Video de fondo */
video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; /* Asegura que el ancho mínimo sea 100% */
  min-height: 100%; /* Asegura que el alto mínimo sea 100% */
  width: auto; /* Escala horizontalmente si es necesario */
  height: auto; /* Escala verticalmente si es necesario */
  object-fit: cover; /* Mantiene la proporción del video */
  z-index: -1; /* Envía el video al fondo */
}

/* Contenido encima del video */
.content {
  position: relative;
  z-index: 1; /* Asegura que el contenido esté encima del video */
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
}


@media screen and (max-width: 700px) {
  :root {
    --size-wheel: 25rem;
  }
  .ruleta-logo{
    width: 300px;
    margin: auto;
    margin-left: 60px;
  }

  .modal-content {
    width: 80%;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transform: scale(0.5);
    animation: pop 0.3s forwards;
  }
  .modal-contenido {
    width: 80%;
  
  }
  .contenedor-centrar{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin: auto  ;
    height: 80vh;
  }
  .cont-btn{
    top: 100px;
    left: 10px;
  }

  .btn-volver{
    border-radius: 50%;
    background-color: #ff4646;
    color: #fff;
    text-decoration: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn-volver:hover{
    cursor: pointer;
  }
  .cont-btn a{
    text-decoration: none;
  }
  .btn-volver i{
    text-decoration: none;
    margin: 0px;
    font-size: 30px;
  }
  

}