*{
  padding: 0px;
  margin: 0px;
}

:root{

  --azul-loterias: #0079c0;
  --bonoloto-color: #768828;
  --elgordo-color: #dc3f47;
  --eurodreams-color: #6e368c;
  --euromillones-color: #160b8b;
  --laprimitiva-color: #008547;
  --loterianacional-color: #007ac0;
  --laquiniela-color: #cb1517;
  --quinigol-color: #40bccf;
  --lototurf-color: #ed691f;
  --quintupleplus-color: #fbba33;
}

/*
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 3px grey;
}

::-webkit-scrollbar-thumb {
  border: solid 2px black;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #000;
}*/



@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("/fonts/Ubuntu.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

body {
  color: var(--azul-loterias);
  font-family: 'Ubuntu';
}

body a{
  text-decoration: none;
  color: white;
}

body a:hover{
  color: var(--azul-loterias);
}

body.dark-mode {
  background-color: #121212 !important;
  color: #f1f1f1 !important;
}


body.transicion-activa {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.flexbox-close{
  position: absolute;
  right: 10px;
  font-size: 25px;
  cursor: pointer;
  color: white;
  z-index: 1;
}

.juego-flexbox-close{
  position: absolute;
  right: 10px;
  font-size: 25px;
  cursor: pointer;
  color: white;
  z-index: 1;
  top: 4px;
}

.flexbox-close-wrapper{
  position: relative;
}

.flexbox-close:hover{
  filter: drop-shadow(0px 0px 4px black);
}

.juego-flexbox-close:hover{
  filter: drop-shadow(0px 0px 4px black);
}

.juegos-flexbox-wrapper{
  background: #000000ad;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s;
}

.juegos-flexbox{
  text-align: center;
  background: white;
  margin: 10%;
}

.juegos-flexbox-title{
  background: var(--azul-loterias);
  padding: 5px;
  font-weight: bold;
  display: flex;
  font-size: 20px;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-transform: uppercase;
}

.juegos-flexbox-p-text{
  color: var(--azul-loterias);
  padding: 10px;
  font-weight: bold;
}

.juegos-flexbox-p-subtext{
  color: var(--azul-loterias);
  padding: 0px 10px;
}

.juegos-flexbox-buttons-wrapper{
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 10px;
}

.juegos-flexbox-button-jugar-wrapper{
  display: flex;
  flex-direction: column;
  color: var(--azul-loterias);
}

.juegos-flexbox-button-registro-wrapper{
  display: flex;
  flex-direction: column;
  color: var(--azul-loterias);
}

.juegos-flexbox-button-jugar{
  background: var(--bonoloto-color);
  padding: 10px;
  font-weight: bold;
  border-radius: 10px;
  font-size: 25px;
  width: 150px;
  margin-top: 5px;
  /*transition: all 0.2s;*/
}


.juegos-flexbox-button-jugar:hover{
  color: white;
  box-shadow: inset 0px 0px 10px 2px black;
  text-shadow: 0 0 5px black;
}


.juegos-flexbox-button-registro:hover{
  color: white;
  box-shadow: inset 0px 0px 10px 2px black;
  text-shadow: 0 0 5px black;
}


.juegos-flexbox-button-registro{
  background: #008800;
  padding: 10px;
  font-weight: bold;
  border-radius: 10px;
  font-size: 25px;
  width: 150px;
  margin-top: 5px;
}

.nav-wrapper{
    background: #000000c9;
}

.nav-content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  margin: auto;
}

.nav-redes{
  display: flex;
}

.nav-redes a{
  text-decoration: none;
}

.nav-redes a:hover{
  filter: drop-shadow(0px 0px 5px var(--azul-loterias));
}

.nav-redes-logo{
  width: 40px;
  margin: 0px 10px;
}

.nav-section-right{
  display: flex;
  align-items: center;
}

.fa-sun{
  color: #ffde00;
}

.fa-moon{
  color: #01ffc3;
}

#btn-modo-oscuro {
  cursor: pointer;
  font-size: 30px;
  padding: 10px;
}

.page-wrapper{
  display: flex;
  width: 100%;
  justify-content: center;
}

.page{
  margin: 0% 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1500px;
}

.page-background-wrapper{
  position: relative;
  text-align: center;
}

.page-background-logo{
  position: absolute;
  width: 90%;
  left: 40px;
}

.page-background{
  width: 90%;
}

.juegos-h1-title{
  text-align: center;
  margin: 10px 0px;
  font-size: clamp(1rem, 4vw, 2.4rem);
}

.juegos{
  display: flex;
  flex-wrap: wrap;
  background: #ffffff26;
  padding: 7px;
  justify-content: center;
}

.juego{
  height: 90px;
  cursor: pointer;
  margin: 0px 5px;
}

.bonoloto-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--bonoloto-color));
}

.elgordo-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--elgordo-color));
}

.eurodreams-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--eurodreams-color));
}

.euromillones-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--euromillones-color));
}

.laprimitiva-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--laprimitiva-color));
}

.loterianacional-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--loterianacional-color));
}

.laquiniela-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--laquiniela-color));
}

.quinigol-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--quinigol-color));
}

.lototurf-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--lototurf-color));
}

.quintupleplus-logo:hover{
  filter: drop-shadow(0px 0px 6px var(--quintupleplus-color));
}

.footer{
  background-color: #000000c9;
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.footer-elements-wrapper{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1500px;
}

.footer-element{
  margin: 30px;
  font-size: 15px;
  color: white;
}

.footer-element-left{
  width: 20%;
}

.footer-element-left img{
  width: 100%;
}

.footer-element-center{
  width: 40%;
}

.footer-element-right{
  width: 40%;
  text-align: right;
}

.footer-aviso-legal:hover{
  color: var(--azul-loterias);
  cursor: pointer;
}

.footer-politica-cookies:hover{
  color: var(--azul-loterias);
  cursor: pointer;
}

.footer-aviso-legal{
  cursor: pointer;
}

.footer-politica-cookies{
  cursor: pointer;
}

.footer-element li{
  list-style: none;
  margin-bottom: 5px;
}

.footer-icons{
  position: absolute;
  margin-left: -20px;
  margin-top: 2px;
}

.aviso-legal-text{
  width: auto;
  max-width: 500px;
  color: var(--azul-loterias);
  text-align: left;
  max-height: 90%;
  overflow-y: scroll;
  padding: 15px;
}

.aviso-legal-text ul{
  list-style: none;
}

.aviso-legal-text a{
  color: var(--azul-loterias);
}

.aviso-legal-text a:hover{
  text-decoration: underline;
}

.aviso-legal-text p{
  margin-bottom: 10px;
}

.hidden{
  pointer-events: none;
  opacity: 0;
}

/* Contenedor flotante del banner de cookies */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 650px;
  background-color: #222222;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: none; /* Se oculta por defecto hasta que JS compruebe la cookie */
  font-family: inherit;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ffffff;
}

.cookie-content a {
  color: #4da6ff;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-content a:hover {
  color: #80c1ff;
}

.cookie-btn {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.cookie-btn:hover {
  background-color: #0056b3;
}

/* Adaptación para pantallas pequeñas (móviles) */
@media (max-width: 650px) {
  .cookie-banner {
    bottom: 10px;
    width: 95%;
    padding: 12px 15px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 650px) {
  .footer-elements-wrapper {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    word-wrap: break-word;
  }

  .footer-element-right{
    width: auto;
    text-align: center;
  }
  .footer-element-center{
    width: auto;
  }
  .footer-element-left{
    width: auto;
  }
}

@media (max-width: 350px) {
  .juegos-flexbox-buttons-wrapper {
    flex-direction: column;
  }
}