html {
    color: #d8d8d8;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin: 0;
    background-color: #1d181a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(20, 20px);
    grid-template-rows: repeat(20, 20px);
    gap: 2px;
    margin-bottom: 20px;
}

.cell {
    width: 20px;
    height: 20px;
    background-color: #363938;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.cell.default-room {
    background-color: #767676;
}

.cell.special-room {
    background-color: #767676;
    background-image: url("./special-room.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}

.cell.ultra-secret-room {
    background-color: #050504;
    background-image: url("./ultra-secret-room.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;

    color: #FF0000;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
    font-size: 12px;
}

.cell.exception-room {
    background-color: #767676;
    position: relative;
}

.cell.exception-room::before,
.cell.exception-room::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            transparent 44%,
            red 44%,
            red 56%,
            transparent 56%);
}

.cell.exception-room::after {
    background: linear-gradient(45deg,
            transparent 44%,
            red 44%,
            red 56%,
            transparent 56%);
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #191919;
    color: #d8d8d8;
    border: #212121 2px solid;
    width: 100%;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.legend-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}

.legend-color {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid #000;
}

.legend-text {
    font-size: 14px;
    margin: 0;
}

.legend-explanation {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
