body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  /* background-color: var(--e); */
  background-image: url(../images/Fondo.jpg);
  background-attachment: fixed;
  font-family: sans-serif;
  color: white;
  position: relative;
}

:root {
  --yetox: #f2813a;
  --a: #eb5200e0;
  --b: #eda807;
  --c: #14455c;
  --d: #082936;
  --e: #051626;
  --f: #13747d;
  --g: #693bb8;
  --slide-transform: -880px;
  --transition: transform 5s ease-out;
}

.formulario {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 500px;
  margin: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .formulario {
    align-items: center; /* Centra horizontalmente */
    justify-content: center;
    margin: 0 auto; /* Centro horizontal */
    width: 50%; /* Ajuste del ancho según sea necesario */
  }
}

@media (max-width: 767px) {
  .formulario {
    flex-direction: column;
    align-items: center;
  }
}

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

.form {
  flex: 1;
  margin: 20px;
  max-width: 500px;
  width: 100%;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;
}

.botonEnviar {
  margin-top: 8px;
  padding: 12px;
  background-color: rgb(246, 132, 26);
  color: white;
  border: none;
  cursor: pointer;
  /* width: 100%; */
  box-sizing: border-box;
  text-align: center;
}

.input {
  padding: 12px;
  margin: 8px 0;
  box-sizing: border-box;
  width: 100%;
  border-radius: 15px 15px 15px 15px;
}

.container {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
}

.logo {
  max-width: 500px;
  height: auto;
  margin-bottom: 20px;
}

.imgCarnaval,
.imgCarnaval2,
.imgCarnaval3,
.imgCarnaval4 {
  position: absolute;
  z-index: -1;
  width: 100px;
  height: auto;
}

.imgCarnaval {
  top: 20%;
  left: 5%;
  width: 3rem;
}

.imgCarnaval2 {
  top: 35%;
  right: 6%;
  transform: rotate(45deg);
}

.imgCarnaval3 {
  bottom: 10%;
  left: 70%;
  transform: scale(0.8);
}

.imgCarnaval4 {
  top: 15%;
  left: 60%;
  transform: rotate(-20deg);
}

@media (min-width: 768px) {
  /* .formulario {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    } */
  .desktop-break {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 767px) {
  .logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
  }
  .ruleta,
  .form {
    margin: 10px 0;
  }
  .desktop-break {
    display: inline;
  }
}

.animated-text {
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.botonCasino {
  padding: 12px 20px;
  background-color: rgb(226 169 34);
  background-image: linear-gradient(
    to bottom,
    rgb(255, 51, 51),
    rgb(204, 0, 0)
  );
  color: white;
  border: 1px solid rgb(153, 0, 0);
  border-radius: 5px;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
}

.botonCasino:hover {
  background-color: rgb(226 169 34);
  background-image: linear-gradient(to bottom, rgb(204, 0, 0), rgb(153, 0, 0));
}

.botonCasino:focus {
  outline: none;
}

.form.hidden {
  display: none; /* Oculta el formulario por defecto */
}

.postInsta {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in;
}

img {
  max-width: 100%;
  height: auto;
}

.modal {
  display: none; /* Ocultar por defecto */
  position: fixed;
  z-index: 1000; /* Por encima de todo el contenido */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
  color: #000000;
  float: right;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.modal.show {
  display: flex;
  opacity: 1;
}

footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #2a182e;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
}

footer a {
  color: white;
}
