* {
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: 'arcade';
    src: url(assets/fuentes/arcade.TTF) format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'arcade1';
    src: url(assets/fuentes/arcade1.TTF) format('truetype');
    font-display: swap;
}

body {
    background-image: url('assets/images/fondo.jpg');
    /* Reemplaza 'ruta_de_tu_imagen.jpg' con la ruta de tu imagen */
    background-size: cover;
    /* Esto hace que la imagen de fondo cubra todo el área del body */
    background-position: center;
    /* Esto centra la imagen de fondo */
    user-select: none;
}

canvas {
    display: none;
    background: #eee;
    margin: 0 auto;
    border: 1px solid gray;
    border-radius: 10px;
    max-width: 90%;
    height: auto;
}

html,
body {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.container-final {
    z-index: 999;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-family: 'arcade';
    font-size: 5rem;
    color: black;
    text-align: center;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container-final.show {
    opacity: 0.7;
}

.controlers-container {
    width: 100%;
    height: 10vh;
    bottom: 10%;
    position: absolute;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control {
    width: 10vh;
    height: auto;
    margin: 0 5%;
    opacity: 0.5;
    user-select: none;
}

.control.active {
    opacity: 1;
}

.play-game, .close {
    width: 5rem;
    height: auto;
    margin-top: 1rem;
    cursor: pointer;
    user-select: none;
}

.enlace {
    position: absolute;
    font-family: arcade1;
    text-decoration: none;
}

.pc {
    color: #000000;
    bottom: 10%;
    font-size: 3rem;
}

.movile {
    color: white;
    top: 10%;
    font-size: 2rem;
}

.containerLogin {
    background-color: rgb(255, 251, 251, 0.15);
    color: #ffc6fe;
    font-family: 'arcade1';
    border: 5px #ffc6fe solid;
    border-radius: 10px;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.inputLogin {
    border-radius: 5px;
    background-color: #ffc6fe;
    border: 1px #ffc6fe solid;
    padding: 0.5rem;
    font-family: 'arcade1';
    margin: 0.5rem 0;
}

.inputLogin:focus {
    background-color: #7e98c4;
    color: #ffc6fe;
}

.butonLogin, .butonBack {
    border-radius: 5px;
    background-color: #7e98c4;
    border: 1px #7e98c4 solid;
    color: aliceblue;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: 0.1rem;
    width: 100%;
    margin: 0.25rem 0;
    font-family: 'arcade1';
    font-size: 2rem;
}

.butonLogin:hover, .butonBack:hover {
    background-color: #ffc6fe;
    color: #7e98c4;
}

.containerSingUp {
    /* background-color: red; */
    color: #ffc6fe;
    font-family: 'arcade1';
    border: 5px #ffc6fe solid;
    border-radius: 10px;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.inputSingUp {
    border-radius: 5px;
    background-color: #ffc6fe;
    border: 1px #ffc6fe solid;
    padding: 0.5rem;
    font-family: 'arcade1';
    margin: 0.5rem 0;
}

.inputSingUp:focus {
    background-color: #7e98c4;
    color: #ffc6fe;
}

.containerControl {
    position: fixed;
    top: 5%;
    right: 5%;
    background-color: #200346;
    width: 11rem;
    height: 4rem;
    border-radius: 10px;
    border: 3px #ffc6fe solid;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.buttonPlay,
.buttonPause,
.buttonLogOut {
    width: 3rem;
    cursor: pointer;
}

.loading {
    color: #F2BB5B;
    position: absolute;
    top: 10%;
    margin: 0 auto;
    font-size: 5rem;
    font-family: arcade1;
    text-shadow: 5px 5px 5px red;
}

.resetPass {
    font-size: 0.9rem;
    cursor: pointer;
}


/* Hover solo en dispositivos con mouse */
@media (hover: hover) and (pointer: fine) {
    .containerControl:hover {
        background-color: #7e98c4;
    }

    .resetPass:hover {
        color: white;
        text-shadow: 2px 2px 2px #f10775;
    }
}

@media (max-width: 500px) {
    .containerControl {
        top: auto;
        right: auto;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
    }

    .containerControl:active {
        background-color: #7e98c4;
    }

    .resetPass:active {
        color: white;
        text-shadow: 2px 2px 2px #f10775;
    }

    .loading {
        font-size: 3rem;
    }
}