body {
    background-image: url("/./images/background/fondo.jpg");
    background-repeat: repeat; 
    background-size: auto;
    font-size: 1rem;
    display:flex; 
    flex-direction: column; 
    align-items: center;
}
           /* ESTILOS DEL TITULO */
h1 {
    text-align: center;
    font-size: 3rem;
    padding: 2px;
    border-radius: 20px;
    font-family: "Bitcount Prop Double Ink",system-ui, -apple-system, BlinkMacSystemFont;
    animation: retroColors 6s linear infinite;
}

.instrucciones {
display: flex;
position: absolute;
align-self: flex-start;
width: 300px;
border: 3px solid #333;
border-radius: 10px;
}

.instrucciones p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-align: center;
}
.resaltar {
    color: red;
    font-weight: bold;
    font-size: 1rem;
}
.resaltar2 {
    color: rgb(9, 201, 9);
    font-weight: bold;
    font-size: 1rem;
}

.controles {
position: absolute;
font-size: 0.9rem;;
align-self: flex-end;
width: 300px;
border: 3px solid #333;
border-radius: 10px;
}

.controles h3 {
    text-align: center;
}




/* =============== ANIMACION CON COLORES RETRO ============= */
@keyframes retroColors {
    0%   { background-color: #E63946; } /* rojo retro */
    25%  { background-color: #F1FAEE; } /* beige casi blanco */
    50%  { background-color: #A8DADC; } /* turquesa retro suave */
    75%  { background-color: #457B9D; } /* azul retro */
    100% { background-color: #E63946; } /* vuelve al rojo */
}
                          /* ESTILOS DEL CONTENEDOR ENCABEZADO */

#mainContainer {                   /* PROPIEDADES DEL CONTENEDOR PRINCIPAL */
    display: flex;
    align-content: flex-start;
    width: 90%; 
    height: fit-content;
    margin: 3px;
}

canvas {                           /*PROPIEDADES PARA CENTRAR EL CANVAS*/
    display: flex;
    position: relative;
    flex-direction:column;
    align-content: flex-start;
    border: 1px solid #333;
    border-radius: 10px;
    image-rendering: pixelated;
}

footer { 
    display: flex;
    font-weight: bold;
}
/* configuracion responsiva*/
@media (max-width: 1000px) {
body {
    flex-direction: column;
    }

.instrucciones {
    position: relative;
    float: center;
    left: 0px;
}
}