@import url("https://fonts.googleapis.com/css2?family=Handjet:wght@700&family=Roboto&display=swap");

* {
    font-family: Handjet, Roboto, serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}
body {
    background: #000;
}
.wrapper {
    padding: 10px;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.scroller {
    margin: 10px;
    max-width: 100%;
    padding: 20px;
    overflow: auto;
}
.content {
    width: fit-content;
    margin: 20px auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #b6b6b6;
}
.stats {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.buttons {
    display: flex;
    justify-content: space-between;
}
.stats-box {
    padding: 5px;
    background: #000;
    color: #1be21b;
    text-align: right;
    width: 50%;
    font-size: 24px;
    letter-spacing: 3px;
    box-shadow: inset -15px -5px 10px #1be21b5b;
}
.button {
    font-size: 18px;
    letter-spacing: 1px;
    width: 100px;
    height: 30px;
    border: #000 solid 1px;
    background: #b6b6b6;
    display: flex;
    justify-content: center;
    align-items: center;
}
.button:hover {
    box-shadow: 0px 0px 5px #505050;
}
.button:active {
    box-shadow: inset 0px 0px 5px #505050;
}
.dropdown-menu-container {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
}
.dropdown-menu ul {
    list-style: none;
}
.dropdown-menu.visible {
    display: block;
}
.dropdown-menu li {
    margin-top: 2px;
}
.dropdown-menu li.button {
    background-color: #d6d6d6;
}
#board {
    min-width: 100px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: inline-block;
    vertical-align: top;
    background-color: #707070;
    position: relative;
}
.row {
    display: flex;
}
.cell {
    margin: 1px;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    background-color: #909090;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}
.cell.closed {
    background-color: #707070;
}
.cell-box {
    border-style: solid;
    border-width: 2px;
    border-left-color: #707070;
    border-top-color: #707070;
    border-bottom-color: #b0b0b0;
    border-right-color: #b0b0b0;
}
.cell-box.closed {
    border-style: solid;
    border-width: 3px;
    border-left-color: #909090;
    border-top-color: #909090;
    border-bottom-color: #505050;
    border-right-color: #505050;
}
.cell.closed:hover,
.cell.closed:active {
    background-color: #909090;
}
.cell-box.closed:hover {
    border-left-color: #b0b0b0;
    border-top-color: #b0b0b0;
    border-bottom-color: #707070;
    border-right-color: #707070;
}
.cell-box.closed:active {
    border-left-color: #707070;
    border-top-color: #707070;
    border-bottom-color: #b0b0b0;
    border-right-color: #b0b0b0;
}
.flag {
    height: 20px;
    width: 16px;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top-right-radius: 10%;
    border-top-left-radius: 10%;
    border: #002466 1px solid;
    background-color: #4b7fe0;
    box-shadow: inset -5px 0px 3px #1f61dd;
}
.bomb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: #000 1px solid;
    background-color: #505050;
    box-shadow: inset -4px -4px 5px #000;
    position: relative;
}
.bomb::after {
    position: absolute;
    display: block;
    content: "";
    top: -3px;
    right: -3px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: radial-gradient(#ffc401 0%, #ff7301 30%, #c2471700 100%);
    box-shadow: 0px 0px 3px #f59f00;
}
.digit--1 {
    color: #186b8b;
}
.digit--2 {
    color: #228d22;
}
.digit--3 {
    color: #b91d1d;
}
.digit--4 {
    color: #6f33cf;
}
.digit--5 {
    color: #d237e7;
}
.digit--6 {
    color: #596116;
}
.digit--7 {
    color: #47241a;
}
.digit--8 {
    color: #084088;
}

.splash {
    overflow: hidden;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    opacity: 1;
    transition: opacity 1s ease-in;
}
.splash.hidden {
    opacity: 0;
}
.splash > p {
    letter-spacing: 1px;
    font-size: 40px;
    text-transform: uppercase;
    transition: transform 1s 0.5s ease-in, font-size 1s 0.5s ease-in;
    transform: translateY(0);
}
.splash.hidden > p {
    transform: translateY(200px);
    font-size: 10px;
}

.loose {
    background-color: #ad2525a6;
}
.loose > p {
    color: #f30707;
}
.win {
    background-color: #0e720ea6;
}
.win > p {
    color: #1be21b;
}
