* {
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

input {
    background-color: #e0e0e0;
    border: 2px inset #c0c0c0;
}

hr {
    border: 1px inset #ffffff;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 0px;
}

.game-container {
    position: fixed;
    z-index: 1;
    margin: auto;
    background-color: #c0c0c0;
    border: 2px solid #808080;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.header {
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 0px 0px 0px 0px;
    background-color: #c0c0c0;
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.controls input {
    width: 60px;
    padding: 5px;
}

button {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

button:active {
    border: 2px inset #c0c0c0
}

.game-board {
    display: grid;
    gap: 1px;
    background-color: #808080;
    border: 2px inset #c0c0c0;
    overflow: visible;
    max-width: 100%;
    justify-content: center
}

.cell {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.cell:active {
    background-color: #808080;
    border: 2px solid #808080;
}

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

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

.cell.mine {
    background-color: #c0c0c0;
}

.cell.mine:active {
    background-color: #c0c0c0;
}

.cell.flagged::after {
    content: "🚩";
}

.cell.flagged:active {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
}

.pixel-font {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.display {
    width: 75px;
    height: 45px;
    background-color: #404040;
    border: 2px inset #404040;
    padding: 5px 10px;
    margin: 10px auto;
    font-size: 30px;
    color: #ff0000;
}

.context-menu {
    display: flex;
    z-index: 2;
    flex-direction: column;
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 5px;
}

#smiley {
    width: 45px;
    height: 45px;
    font-size: 30px;
    padding-left: 2px;
    margin: 10px auto;
}