:root {
    --cell-size: 1vmin;
    --layout-width: 50vmin;
    --layout-height: 50vmin;
}
*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body {
    padding: 0;
    margin: 0;
}
h1, h2, h3 {
    font-weight: bold;
    padding: 0;
    margin: 0;
    line-height: 120%;
}
h1 {
    font-size: 2rem;
    margin-left: 0.75rem;
    margin-bottom: 0.5rem;
}
h2 { 
    font-size: 1.5rem; 
}
h3 { 
    font-size: 1rem;
}
a, a:visited, a:active {
    text-decoration: underline;
    color: navy;
}
p {
    padding: 0;
    margin: 0 0 0.25rem 0;
}
ul {
    margin: 0;
}

#bastion {
    position: relative;
    width: var(--layout-width);
    height: var(--layout-height);
}
#bastion>div {
    position: absolute;
    width: var(--layout-width);
    height: var(--layout-height);
}
#room-details {
    width: var(--layout-width);
    margin-top: 1rem;
    padding: 0 0.5rem;
}
#rules {
    width: calc(var(--layout-width) - 1rem);
    padding: 0.25rem;
    margin: 0.5rem 0;
    background: lightgray;
    border: 1px solid black;
}
#rules-list {
    display: none;
}
#floor-select {
    width: fit-content;
    font-size: 1.5rem;
    line-height: 100%;
    padding: 0.25rem;
}
#floor-select>span {
    padding: 0 0.5rem;
    margin: 0 0.5rem;
    border: 1px solid black;
    cursor: pointer;
}
#floor-select>span.active {
    background-color: black;
    color: white;
}

.floor {
    border-collapse: separate;
    border-spacing: 0px;
    background-color: black;
}
.floor td {
    width: var(--cell-size);
    height: var(--cell-size);
    border-style: solid;
    border-width: 1px;
}

.cell-selected {
    background-image: url(./assets/selected.svg);
}
.decoration {
    position: absolute;
    pointer-events: none;
}

@media print {
    #bastion-name, #floor-select, #room-details {
        display: none;
    }
}