        body {
        margin: 0; /* Elimina el margen predeterminado */
        padding: 0; /* Elimina el relleno predeterminado */
        width: 100vw; /* Asegura que el ancho sea igual al ancho de la ventana */
        height: 100vh; /* Asegura que la altura sea igual al alto de la ventana */
         display: flex; /* Activa Flexbox */
        justify-content: center; /* Centra horizontalmente */
        align-items: center; /* Centra verticalmente */
        background-color: #d3ffdf; /* Fondo opcional */
        box-sizing: border-box; /* Incluye el padding y el borde en el tamaño total */
        overflow-x: hidden; /* Previene el desplazamiento horizontal no deseado */
        
        background-image: url(graficos/fondo-textura.jpg);
        background-size: cover; /* Escala la imagen para cubrir toda el área */
        background-position: center; /* Centra la imagen */
        background-repeat: no-repeat; /* Evita que la imagen se repita */
        }

        #logoTR {
            width: 15%;
            position: absolute; /* Posiciona el logo flotando en relación al body */
            top: 1.5%; /* Ajusta la posición vertical del logo */
            left: 50%; /* Centra horizontalmente */
            transform: translateX(-50%); /* Compensa el desplazamiento para centrar */
            filter:drop-shadow(5px 5px 18px rgba(0,0,0,.3));
            padding: 10px; /* Espaciado interno alrededor del logo */
            z-index: 10; /* Asegura que el logo esté delante de otros elementos */
        }
        #logoTR img {
            width: 100%; /* Tamaño del logo */
            object-fit: cover; /* Asegura que la imagen mantenga su proporción */
        }

        #areaJuego{
            width: 70%; /* Ajusta el ancho relativo a la ventana */
            height: 75%;
            max-width: 1170px; /* Limita el ancho máximo */
            border-radius: 50px; /* Bordes redondeados */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para un diseño atractivo */
            padding: 20px; /* Espaciado interno */
            box-sizing: border-box;
            background:linear-gradient(45deg, #7e00ff, transparent), linear-gradient(135deg, #2b0b3f, rgb(198 75 238 / 31%)), linear-gradient(90deg, #ff00b1, #df65ff);
            margin: auto;

            /* Centrar hijos como Flexbox */
            display: flex; /* Activa Flexbox */
            justify-content: center; /* Centra horizontalmente */
            align-items: center; /* Centra verticalmente */
            min-height: 300px; /* Altura mínima para garantizar espacio */
            overflow: hidden; /* Evita desbordamientos */

        }
        .instruc1{
             font-family: "nunito", serif;
             font-optical-sizing: auto;
             font-weight: 800;
             font-style: normal;
             color: #ffcc33;
             width: 30%;
             margin: auto;
             padding: 20px;
             font-size: 15pt;
             line-height: 19pt;
             min-width: 300px;
        }
        .hidden {
            display: none;
            visibility: hidden;
        }
        .visible{
            visibility: visible;
        }
        #setup{
            text-align: center;
            width: 90%;
        }
        #anaPla{
            width: 13%;
            height: 37px;
            background-color: #fcee21;
            border-radius: 18px;
            border:none;
            font-family: "nunito", sans-serif;
            font-weight: 800;
            font-style: normal;
            margin: 10px;
            color: #97510e;
            font-size: 18pt;
            line-height: 18pt;
            cursor: pointer;
            transition: transform 0.3s ease, background-color 0.3s ease; /* Suaviza las transiciones */

        }
        #anaPla:hover{
            background-color: #fcb221;
            transform: scale(1.05);

        }

        #new-player{
            border: none;
            width: 26%;
            height: 37px;
            background-color: rgb(250,250,250);
            font-family: "nunito", sans-serif;
            font-weight: 500;
            font-size: 12pt;
            margin:10px;
            min-width: 165px;
            border-radius: 15px 15px 15px 15px;
            color: #9d3ec8;
            text-align: center;
        }

        #new-player::placeholder{
            font-family: "nunito", sans-serif;
            font-weight: 600;
            font-size: 10pt;
            color: blue;
            opacity: .5;
            background-color: rgb(240,240,240);
            text-align: center;
        }
        #listoButt{
            width: 25%;
            height: 37px;
            background-color: #21e6fc;
            border-radius: 18px;
            border:none;
            font-family: "nunito", sans-serif;
            font-weight: 600;
            font-size: 12pt;
            font-style: normal;
            min-width: 165px;
            margin: 10px;
            color: #0d47a1;
            cursor:pointer;
            transition: transform 0.3s ease, background-color 0.3s ease; /* Suaviza las transiciones */

        }
        #listoButt:hover{
            background-color: #9feff8;
            
            transform: scale(1.05);

        }
        #player-list{
            margin: auto;
            width: 55%;
            background-color: rgba(250, 250, 250, .5);
            border-radius: 18px;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            text-align: center;
        }
        #whoPla{
            height: 30px;
            width: 40%;
            list-style: none;
            font-family: "nunito", sans-serif;
            font-size: 14pt;
            font-weight: 800;
            font-style: italic;
            color: #fff;
            display: flex;
            align-items: center;
            padding: 2%;
            justify-content: space-between;
            background-color: rgba(255, 255, 255, .2);
            box-sizing: border-box;
            margin: 1.5% 3%;
            border-radius: 10px;
        }
        #borrarPla{
            font-family: "nunito", sans-serif;
            font-size: 10pt;
            font-weight: 800;
            font-style: normal;
            color: #fafafacc;
            background-color: #8428c9;
            border-radius: 5px;
            border: none;
            cursor: pointer;
        }
        #start-game{
            width: 15%;
            height: 37px;
            background-color: rgb(97 222 43);
            border-radius: 18px;
            border:none;
            font-family: "nunito", sans-serif;
            font-weight: 600;
            font-size: 12pt;
            font-style: normal;
            min-width: 100px;
            margin: 10px;
            color: rgb(36 78 18);
            cursor:pointer;
            transition: transform 0.3s ease, background-color 0.3s ease; /* Suaviza las transiciones */
        }
        #start-game:hover{
            background-color: rgb(171 255 0);
            transform: scale(1.05);
        }
        #question {
            font-size: 1.5rem;
            margin-bottom: 20px;
        }
        #answers button {
            margin: 10px;
            padding: 10px 20px;
            font-size: 1rem;
        }
        #time {
            font-size: 3rem;
            margin-top: 10px;
        }
        #scores, #current-player {
            margin-top: 20px;
            font-size: 1.2rem;
        }

        #end-game-button {
        margin-top: 20px;
        padding: 10px 20px;
        font-size: 16px;
        background-color: #ff4d4d;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        display:none;
        position: absolute;
        top: 82%;
        
        }
        #end-game-button:hover {
        background-color: #ff1a1a;
        }
        #NomJue{
            font-size: 7rem;
            font-family: solway;
        }

         #transition-screen {
            width: 100%; /* Ajusta el ancho relativo a la ventana */
            max-width: 1170px; /* Limita el ancho máximo */ /* Fondo del área de juego */
            border-radius: 50px; /* Bordes redondeados */
            padding: 20px; /* Espaciado interno */
            box-sizing: border-box;
            height: 100%;
            background-color: rgb(255 255 255 / 17%);
            margin: auto;
        }

        #transition-screen h2{
            font-family: "nunito",sans-serif;
            font-size: 20pt;
            color: #fff;
        }

        #transDentro {
            display: flex;
            text-align: center;
            justify-content:center; 
            height: 90%;
            flex-direction: column;

        }


        #priPregu {
            width: 100%; /* Ajusta el ancho relativo a la ventana */
            max-width: 1170px; /* Limita el ancho máximo */ /* Fondo del área de juego */
            border-radius: 50px; /* Bordes redondeados */
            padding: 20px; /* Espaciado interno */
            box-sizing: border-box;
            height: 100%;
            background-color:rgb(255 255 255 / 17%);
            margin: auto;
        }
        #Ddentro{
            display: flex;
            text-align: center;
            justify-content:center; 
            height: 90%;
            flex-direction: column;

        }

        #priPregu h2{
            font-family: "nunito",sans-serif;
            font-size: 20pt;
            color: #fff;
        }

        .game-container {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            height: 100vh;
            width: 100%;
        }

        .penalty-bar-container {
            width: 65%;
            height: 5px;
            background-color: #ededed;
            border: none;
            position: absolute;
            top: 12%;
            overflow: hidden;
            display: flex;
            border-radius: 20px;
            align-items: flex-end;
            margin-top: auto;
        }

        .penalty-bar {
            width: 0%;
            height: 100%;
            background-color: red;
            transition: height 0.5s ease; /* Animación suave al llenar la barra */
        }

        .aviso-cont {
            position: absolute;
            vertical-align: middle;
            width: 23%;
            background-color: rgba(250,250,250,.95);
            border-radius: 20px;
            padding: 10px;
            display: none;
        }

         .dentro-aviso {
            width: 85%;
            font-family: "nunito", sans-serif;
            font-size: 10Pt;
            font-weight: 300;
            display: flex;
            align-items: center;
            flex-direction: column;
            text-align: center;
            margin:auto;            
        }
        .dentro-aviso button {
            border: none;
            border-radius: 18px;
            font-family: "nunito", sans-serif;
            font-size: 10Pt;
            font-weight: 700;
            height: 37px;
            width: 40%;
            margin: 0 30%;
            color: #662d91;
            cursor: pointer;
            background-color: rgb(152 245 216);
            transition: transform 0.3s ease, background-color 0.3s ease; /* Suaviza las transiciones */
        }

        .dentro-aviso button:hover{

            background-color: rgb(147 255 133);
            transform: scale(1.05);
            
        }

        .dentro-aviso h3 {
            
            font-family: "nunito", sans-serif;
            font-size: 16Pt;
            font-weight: 700;
            color: #662d91;
            margin-top: 5px;
        }

        #innerJuego{
            display:flow;
            width: 95%;
            margin: auto;
            text-align: center;
        }
        #game{
            width: 100%;
            margin:auto;
        }

        #current-player {
            width: 37%;
            background-color: rgb(56 255 172);
            border-radius: 5px;
            padding: 5px;
            font-family: "nunito", sans-serif;
            font-size: 14Pt;
            font-weight: 700;
            color: #1f9765;
            text-align: center;
        }
        #question {
            padding: 5px;
            font-family: "nunito", sans-serif;
            font-size: 20Pt;
            font-weight: 700;
            color: #fcee21;
        }
        #answers {
            width: 100%;
            margin: auto;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            align-content: center;

        }

        #answers button {
            width: 17%;
            height: 90px;
            background-color: #fff;
            border-radius: 5px;
            border: none;
            font-family: "nunito", sans-serif;
            font-size: 14Pt;
            font-weight: 700;
            line-height: 16pt;
            color: #662d91;
            cursor: pointer;
            transition: transform 0.3s ease, background-color 0.3s ease; /* Suaviza las transiciones */

        }
        #answers button:hover {
            background-color: #21e6fc;
            border:none;
            color: #662d91;
            transform: scale(1.05);
        }
        #time{
            font-family: "nunito", sans-serif;
            font-size: 42pt;
            font-weight: 1000;
            font-style: italic;
            color: rgb(255,255,255);
        }

        #marcador_cont {
            position: absolute;
            left: 5px;
            top:20%;
            background-color: rgba(255,255,255,.6);
            font-family: "nunito", sans-serif;
            width: 180px;
            padding: 10px;
            text-align: center;
            color: green;
            border-radius:0px 30px 30px 0px;
            display: none;
        }

        #scores p{
            font-size: 14pt;
            font-weight: 500;
            color: rgb(45, 45, 45);
        }
        #scores span{
            font-size: 16pt;
            font-weight: 800;
        }

        .cont-final{
            color: #19f1c3;
            width: 40%;
            height: 55%;           
        }
        #victoria {
            font-size: 14pt;
            font-weight: 400;
            color: #33233f;
            margin: 1px;
            line-height: 14pt;
        }

        #thax {
            width: 100%;
            font-family: "nunito", sans-serif;
            font-size: 20pt;
            font-weight: 900;
            line-height: 20pt;
            margin: 30px 20px;

        }
        #No-Ganador {
            color: #34174a;
            font-size: 32pt;
            font-weight: 1000;
            line-height: 32pt;
            margin: 0px;
        }

        .inside-Final button{
            width: 25%;
            top:85%;
            position: absolute;
        }

        #ptsFinals {
            width: 80%;
            height: 100%;
            margin: 10px;;
            box-sizing: border-box;
            display: flex;
            overflow: auto;
            justify-content: center;
            padding:0px;

        }

        #ptsFinals ul {
            display: flex;
            list-style: none;
            font-size: 14pt;
            padding: 0px;
            flex-direction: column;
            flex-wrap: nowrap;
            margin-top: 3px;
            
        }

        #ptsFinals ul li {
            list-style: none;
            font-size: 14pt;
            font-weight: 500;
            color: rgb(47, 47, 47);
        }
        #ptsFinals ul li span {
            list-style: none;
            font-size: 14pt;
            font-weight: 700;
            color: rgb(0, 98, 255);
        }
        #cambianteJug {
            font-size: 48pt !important; 
            font-weight: 800 !important;
            color: #fcee21 !important;
        }

        #unoJug{
            font-size: 48pt !important; 
            font-weight: 800 !important;
            color: #fcee21 !important;
        }


        #reporteError{
          position: absolute;
            width: 50px;
            height: 50px;
            right: 16%;
            top: 16%;
            display: flex;
            justify-content: center;
            align-items: center;
                }

        #botonQ{
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: yellow;
            color: black;
            font-weight: 900;
            font-family: "nunito", sans-serif;
            font-size: 14pt;
            border: none;
            cursor: pointer;
            margin: auto;
            box-shadow: 2px 3px 8px 1px rgb(0 0 0 / 37%);
        }
        #botonQ:hover{
            scale: 1.2;

        }
        .inside-final {
        width: 85%;
        font-family: "nunito", sans-serif;
        font-size: 10Pt;
        font-weight: 300;
        display: flex;
        align-items: center;
        flex-direction: row;
        text-align: center;
        margin:auto; 
        flex-wrap: wrap;  
        justify-content: space-between;
        height: 100%;
        }
        .filaPer {
            width: 40%;
        }
    
            #alerta-reporte {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #28a745;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 16px;
        display: none;
        z-index: 1000;
         }

        #alerta-reporte.mostrar {
            display: block;
            animation: fadeInOut 3s ease-in-out;
        }
        
        @keyframes fadeInOut {
            0% { opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 1; }
            100% { opacity: 0; }
        }

        .unoFil{
            
            display: flex;
            flex-direction: column;
            margin: auto;
        }

        #tristeUno{
            font-size: 15pt;
            color: #2082b1;
            text-transform: uppercase;
            font-weight: 900;
            margin: 0;
            line-height: 18pt;
        }

        #loserName{
            color: #856c8e;
            font-size: 32pt;
            font-weight: 1000;
            margin: 0px;
            line-height: 50pt;
        }
        #sorry{
            font-size: 12pt;
            font-weight: 600;
            color: #2082b1;
            margin: 0;
            line-height: 15pt;
        }
        #winneDor{
            font-weight: 1000;
            font-size: 20pt;
            color: #34174a;
            font-style: italic;
            margin: 0;
            line-height: 30pt;
        }

        #dosFila{
            margin: auto;
            width: 60%;
        }

@media (max-width: 1024px) {
    #areaJuego{
        width: 70%;
        min-height: 75%;
    }
    #logoTR {
            width: 25%;
    }
    .instruc1{
             font-family: "nunito", serif;
             font-optical-sizing: auto;
             font-weight: 800;
             font-style: normal;
             color: #ffcc33;
             width: 30%;
             margin: auto;
             padding: 20px;
             font-size: 14pt;
             line-height: 16pt;
             min-width: 200px;
    }
    #answers{
        flex-direction: row;
        flex-wrap: wrap;
    }
    #answers button{
        width: 45%;
        height: 37%;
    }
    #current-player{
        width: 60%;
        padding: 0PX;
        margin-top:10%;
    }
    #question {
        margin-top: 5%;
    }
    .inside-final button {
        width: 80%;
       
    }
    
}

@media (max-width: 769px) {
        #areaJuego{
            width: 90%;
            min-height: 570px;
            height: 84.5%;
         }
        #logoTR {
                width: 35%;
            }
        .instruc1{
             font-family: "nunito", serif;
             font-optical-sizing: auto;
             font-weight: 800;
             font-style: normal;
             color: #ffcc33;
             width: 30%;
             margin: auto;
             padding: 20px;
             font-size: 14pt;
             line-height: 16pt;
             min-width: 200px;
        }
        #whoPla{
            width: 90%;
            margin: 3% 6%;
            
        }
        #player-list{
            width: 90%;
            padding: 0px;
            width: 90%;
            justify-content: center;

        }
        #answers{
            flex-direction: column;
            
        }
        #answers button{
            width: 100%;
            height: 40%;
        }
        #current-player{
            width: 100%;
            padding: 0PX;
        }
        .cont-final {
            width: 65%;
            height: 66%;
        }
        .inside-Final button {
            width: 70%;
        }
        .penalty-bar-container {
            top: 8%;
            width: 65%;
        }
        #new-player{
            width: 90%;
        }
        #anaPla{
            width: 13.5%;
        }
        #marcador_cont {
            position: absolute;
            left: auto;
            top: 99.9%;
            background-color: rgba(255, 255, 255, .6);
            font-family: "nunito", sans-serif;
            width: 90%;
            padding: 10px;
            text-align: center;
            border-radius: 30px;
            display: none;
            margin: auto;
        }
        #end-game-button {
		top: 87.5%;
        }
        #cambianteJug {
            font-size: 30pt !important; 
            font-weight: 800 !important;
            color: #fcee21 !important;
        }
        #question {
            font-size: 1.3rem;
            margin-bottom: 20px;
        }
        .aviso-cont {
            width: 70%;
            height: 25%;
            align-items: center;
        }
        
        #juego-terminado{
            height: 60%;
        }
        .inside-Final{
            top:auto;
        }
        .dentro-aviso {
            text-align: center;
            vertical-align: middle;
            position: relative;
            top:20%;
        }
        #reporteError{
            right: 4%;
            top: 1%;
        }
}