﻿body {
    overflow-y: auto;
}

#minesweeper-page {
    width: 100%;
    height: 100%;
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
}

#mnsw-ui {
    display: flex;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    justify-content: space-between;
}

    #mnsw-ui input {
        max-width: 100px;
    }

#mnsw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(164, 175, 178, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

#mnsw-overlay-modal {
    box-shadow: 11px 11px 27px -13px rgba(0,0,0,0.7);
}

#mnsw-board {
    display: flex;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    flex-grow: 1;
}

.mnsw-row {
    display: flex;
    flex-grow: 1;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    min-height: 30px;
}

.mnsw-cell {
    border: black 1px solid;
    flex-grow: 1;
    background: #74b9ff; /*#79a8c9 GAETANO - background cella*/
    text-align: center;
    min-width: 30px;
    width: 30px; /* hack to stop firefox from resizing cell when the text inside it is visible */
    min-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}

    .mnsw-cell:not(.mnsw-reveal) .mnsw-cell-content {
        display: none;
    }

    .mnsw-cell:hover:not(.mnsw-reveal) {
        background: #dfe6e9;/*#6a97b7;GAETANO background cella quando ci passo su*/
    }

    .mnsw-cell .mnsw-cell-guess {
        color: #960000;
    }

    .mnsw-cell.mnsw-reveal {
        background: #81ecec; /*#c4d7e5;GAETANO - background cella indovinata*/
    }

    .mnsw-cell.mnsw-mine.mnsw-reveal {
        background: #ff7675;/*#e37171; GAETANO - background cella con la mina */
    }

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}
