
.slot {
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    position: relative;
    text-align: center;
    text-justify: center;
}

.slot.hidden {
    visibility: hidden;
 }

.slot::after {
    content:' ';
    background-color: grey;
    z-index: 2;
    padding: 14px;
    position: absolute;
    left: 0;
    top: 0;
}

.slot[data-safe="true"]::after {
    background-color: darkgreen;
}

.slot[data-flag="true"]::after {
    background-color: red;
}

.slot[data-opened="true"]::after {
    background-color: transparent;
}

#minefield-container {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    /* padding: 1rem; */

    flex: 1 1 auto;
    min-height: 0;
}

#minefield-container *{
    user-select: none;
}

#minefield {
    display: grid;
    gap: 10px;
    overflow: auto;
    min-height: 0;
    width: 100%;
    margin-block: 1rem;
    padding-inline: auto;
    flex: 1 1 auto;
    justify-content: safe center;
}

.grid * {
    text-justify: center;
    text-align: center;
}

div.btn-container {
    position: fixed;
    right: 0;
    bottom: 0;
}

output {
    user-select: all;
}

html, body, main{
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}