html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.game-board {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

.cell {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin: 1px;
    user-select: none;
}

.cell-hidden {
    background-color: #c0c0c0;
    border-color: #808080 #ffffff #ffffff #808080;
}

    .cell-hidden:hover {
        background-color: #d0d0d0;
    }

.cell-revealed {
    background-color: #e0e0e0;
    border: 1px solid #808080;
}

.cell-mine {
    background-color: #ffcccc;
    color: red;
}

.mines-1 {
    color: blue;
}

.mines-2 {
    color: green;
}

.mines-3 {
    color: red;
}

.mines-4 {
    color: darkblue;
}

.mines-5 {
    color: darkred;
}

.mines-6 {
    color: teal;
}

.mines-7 {
    color: black;
}

.mines-8 {
    color: gray;
}

.flagged {
    background-color: #ffcc00 !important;
}

.btn-flag {
    position: absolute;
    width: 15px;
    height: 15px;
    padding: 0;
    font-size: 10px;
    line-height: 1;
    margin-left: -25px;
    margin-top: 25px;
    opacity: 0.7;
}

    .btn-flag:hover {
        opacity: 1;
    }

.row.g-0 {
    --bs-gutter-x: 0;
}
