body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(15, 30px);
    grid-template-rows: repeat(15, 30px);
    gap: 2px;
}

#gnomo{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;;
    margin-right: 608px;
    height: 30px;
    width: 30px;
    background-image: url('gnomo.png');
    background-size: cover;
}

.cell {
    width: 30px;
    height: 30px;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cell.revealed {
    background-color: #eee;
}
.cell.mark {
    background-size: cover;
    background-image: url('bandera.png')
}
.cell.mine {
    background-size: cover;
    background-position: center;
    background-image: url('mina.png');
    background-color: rgb(202, 1, 1);
}

/* Estilos comunes para ambos sidebars */
#sidebar, #sidebar2 {
    width: 200px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    height: 100vh;
    transition: transform 0.3s ease;
}

/* Sidebar 1: A la derecha */
#sidebar {
    right: 0;
    border-radius: 10px 0 0 10px;
}

/* Sidebar 2: A la izquierda */
#sidebar2 {
    left: 0;
    border-radius: 0px 10px 10px 0px;
    border-right: 1px solid #ccc;
}

/* Clase para ocultar los sidebars moviéndolos fuera de la vista */
#sidebar.hidden {
    transform: translateX(100%); /* Mueve el sidebar derecho fuera de la vista (hacia la derecha) */
}

#sidebar2.hidden {
    transform: translateX(-100%); /* Mueve el sidebar izquierdo fuera de la vista (hacia la izquierda) */
}

/* Estilos del botón para mostrar/ocultar */
#botonocultar {
    position: fixed;
    top: 0vh;
    left: 0vw;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    background-color: transparent;
}

#botonocultar:hover {
    background-color: #c5c5c5;
}

h2{
    text-align: center;
}
.speech-bubble {
    position: absolute;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 16px;
    color: black;
    width: auto;
    max-width: 200px;
    text-align: center;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Se oculta inicialmente */
}

.speech-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;  
    z-index: 1000; /* Asegúrate de que esté por encima de todo */
    display: none; /* Oculto por defecto */
    pointer-events: none; /* Evita interacción con el overlay */
}
