body {
    margin: 0;
    padding: 0;
    font-family: 'Special Elite', monospace;
    background: url('../images/grunge-texture.jpg') center/cover no-repeat;
    color: #000000;  /* Cambiar el texto a negro */
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.qr-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;  /* Ajustar el espacio entre QR y footer */
}

.qr-section .message {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: black;  /* Cambiar color a negro */
}

#qrcode {
    margin: 20px 0;
}

#qrcode canvas {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

#qrcode canvas:hover {
    opacity: 1;
}

footer {
    font-size: 1rem;
    color: #000000;  /* Cambiar el texto a negro */
    margin-top: 10px;
    text-align: center;
    text-shadow: none;
}

footer p {
    margin: 5px;
    font-weight: bold;
}
/* Estilo general para la waiting room */
body {
    font-family: 'Press Start 2P', cursive;
    background-color: #111;  /* Fondo oscuro */
    color: #fff;  /* Letras blancas */
    margin: 0;
    padding: 0;
    overflow: hidden;  /* Evita scroll en la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Contenedor principal de la waiting room */
.waiting-room {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Lista de usuarios flotando */
.user-list {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2rem;
}

.user-name {
    display: inline-block;
    margin: 10px;
    animation: floatAnimation 10s infinite linear;
    opacity: 0.8;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);  /* Sombra para efecto grunge */
    transform: rotate(-10deg);
}

.user-name:nth-child(even) {
    animation-duration: 12s;
}

@keyframes floatAnimation {
    0% {
        transform: translateX(-100%) rotate(-10deg);
    }
    50% {
        transform: translateX(100%) rotate(10deg);
    }
    100% {
        transform: translateX(-100%) rotate(-10deg);
    }
}

/* Estilo para el botón "KAOS" */
.start-game-btn {
    font-size: 4rem;
    font-weight: bold;
    background-color: #000;
    color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 5px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    transition: background-color 0.3s ease;
}

.start-game-btn:hover {
    background-color: #FF0000;  /* Color rojo intenso */
    box-shadow: 0 0 40px rgba(255, 0, 0, 1);
}

/* Pie de página */
footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
}

footer p {
    margin: 0;
}

footer p:last-child {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* Hacemos que el diseño sea adaptable a dispositivos móviles */
@media only screen and (max-width: 768px) {
    .user-name {
        font-size: 1.5rem;
    }

    .start-game-btn {
        font-size: 2.5rem;
        padding: 15px 30px;
    }

    footer p {
        font-size: 1rem;
    }
}