body {
    font-family: Arial, sans-serif;
    background-image:url('assets/fondo-escape-h.jpeg');
    background-position: bottom;
    background-size: 25px 50px;
    background-size: 100% 100%; 
    background-repeat: no-repeat;  
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-top: 20px;
}


.grids {
    display: grid;
    grid-template-columns: repeat(23, 30px);
    grid-template-rows: repeat(23, 30px);
    grid-gap: 1px;
    margin-right: 20px;
}

.grids div {
    width: 30px;
    height: 30px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    background-color: none;
}

div .filled {
    background-color: #000;
    color: #000000;
    border: 3px solid #c73939;
}
div .filled span{
    font-size: 10px;
    top:-6px
}
div.filled_C span{
    position: relative;
    font-size: 10px;
    top:-6px
}


div .filled_C {
    background-color: #ffffff;
    color: #000000;
    border: 3px solid #c73939;
    animation: aparecer 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes aparecer {
    to{
        opacity: 1;
        
    }
    from{
      opacity: 0;
     
    }
}

.clues {
    max-width: 400px;
}

.clues h2, .clues h3 {
    margin: 10px 0;
}

.clues ul {
    padding-left: 20px;
}

.clues li {
    margin-bottom: 10px;
}
@media only screen and (max-width: 600px) {
    .grids {
        display: grid;
        grid-template-columns: repeat(23, 16px);
        grid-template-rows: repeat(23, 16px);
        grid-gap: 1px;
        margin-right: 10px;
    }
    .grids div {
        width: 16px;
        height: 16px;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 8px;
        background-color: none;
    }
    div .filled {
        background-color: #000;
        color: #000000;
        border: 3px solid #801717;
    }

    div .filled_C {
        background-color: #ffffff;
        color: #000000;
        border: 3px solid #801717;
        animation: aparecer 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    }
    div .filled span{
        font-size: 6px;
        top:-3px
    }
    div.filled_C span{
        position: relative;
        font-size: 6px;
        top:-3px
    }
    
}


/*-----------------STYLOS PAG FINAL-------------------*/
/* The animation code */
@keyframes alertError {
    from {opacity: 1;
        visibility: visible;
    }
    to {opacity: 0;
    visibility: hidden;}
  }
.error{
    visibility: hidden;
    animation: 4s alertError cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
