/* =============== HOJA DE ESTILO JuegoDeReinas ========= */
/* JOC DE REINES 41_0 */

body {
    font-family: 'Times New Roman', serif;
    background-color: rgb(102, 102, 102);
    margin: 0;
    padding: 0;
    /*height: 100vh; */
    display: flex;
    flex-direction: column;
}
/* ===== HEADER ===== */
header{
    height: 10vh;
    text-align: center;
    align-items: center;
    background-color: rgb(179, 0, 89);
}
h1 {
    text-align: center;
    /*padding-top: 2.5vh;*/
    color: rgb(255, 255,255);
}
/* ===== WRAPPER ===== */
.wrapper {
    height: 90vh; /* Ajusta según sea necesario */
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    background-color: rgb(0, 0, 0);
}

.corona{
    /*border: solid 2px yellow;*/
    width: auto;
    /*background-color: rgb(179, 0, 89);*/
}
.corona img {
    width: fit-content;
    height: 50vh;
    margin: 0 0;
    padding: 0x;
}

.grid {
    /*border: solid 2px red;*/
    display: grid;
    grid-template-columns: repeat(6, 100px);
    /*grid-template-rows: repeat(5, 100px);*/
    grid-template-rows: repeat(5, auto);
    gap: 5px;
    justify-items: center;
    padding: 0;
    max-width: 50%;
    height: auto;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
}

/* ===== CELDAS DE LOS MARCADORES ===== */
#ok{
    font-size: 50px;
    /*color: rgb(0, 153, 51);
    background-color: rgb(204, 255, 221);*/
}

#ko{
    font-size: 50px;
    /*color: rgb(255, 0, 0);
    background-color: rgb(255, 204, 204);*/
}

#aciertos{
    font-size: 50px;
    font-weight: bolder;
    color: rgb(0, 153, 51);
    background-color: rgb(204, 255, 221);
}

#fallos{
    font-size: 50px;
    font-weight: bolder;
    color: rgb(255, 0, 0);
    background-color: rgb(255, 204, 204);
}

/* ===== CELDAS DE LA FOTO ===== */
.photo-container {
    grid-column: 3 / span 2;
    grid-row: 2 / span 3;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 25px;
}

/* ===== BOTONES ===== */

.buttons-container {
    text-align: center;
    margin: 20px 0;
    height: 10vh;
    color: rgb(255, 255,255);
}

button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    border-radius: 50px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.90);
    /*background: rgba(75, 0, 25, 0.90);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.green {
    color: #006400;
    background-color: #90EE90;
}

.red {
    color: #8B0000;
    background-color: #FF6347;
}
/* ========= FOOTER ========== */
footer {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #333;
    color: white;
}

.socials{
    display:flex;
    flex-flow: column;
    color: rgb(255, 255, 0);
}

.socials img {
    width: 32px;
    height: 32px;
    margin: 0 10px;
}

.developer-info {
    text-align: center;
}

.map iframe {
    width: 300px;
    height: 150px;
    border: 0;
    border-radius: 10PX;
}

/*
.placeholder {
    display: none;
}
*/
/* Estilo para el efecto de desvanecimiento */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease; /* Ajustar el tiempo según se desee */
}

/*   ========== MEDIA QUERY HASTA 1280 px  (TABLET) ==========   */

@media (max-width: 1280px) {
    .grid{
        max-width: fit-content;
    }
 
    .corona{
        display: none;
    }
    .corona img {
        display: none;  
    }
}


/*   ========== MEDIA QUERY HASTA 1024 px  (TABLET) ==========   */

@media (max-width: 1024px) {
    .grid{
        max-width: fit-content;
    }
 
    .corona{
        display: none;
    }
    .corona img {
        display: none;  
    }
}


/*   ========== MEDIA QUERY HASTA 768 px  (MÓVIL) ==========   */


@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(6, 62px); /* Mantener la estructura de 6 columnas */
        /*grid-template-rows: repeat(5, auto);*/   /* Ajustar las filas al contenido */
        grid-template-rows: repeat(5, 62px);
        gap: 3px;
    }

    .cell {
        padding: 3px;
        font-size: 0.75rem;
        width: 60px;
        height: 60px;
    }

    .photo-container {
        padding: 3px;
    }
    #aciertos, #fallos, #ok, #ko{
        font-size: 30px;
    }

    h1 {
        font-size: 1.25rem;
    }
    .corona, .corona img{
        display: none;
    }
    footer{
        display: flex;
        flex-direction: column;
        align-items: center; /* centra horizontalmente */
        justify-content: center; /* centra verticalmente */
    }
/*    .socials, .map iframe{
        justify-content: center;
    }*/
}








