body {
    margin: 0;
    padding: 0;
    display: flex;
    /* sidebar + classroom side by side */
    height: 100vh;
    font-family: sans-serif;
}


/* Sidebar on the left */
#sidebar {
    background-color: #f0f0f0;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /*    gap: 10px; */
    border-right: 2px solid #ccc;
}

.hidden {
    display: none;
}

.wall-horizontal>span {
    width: calc(var(--classroom-width)*.8);
    margin-left: calc(var(--classroom-width)*.1)
}

.wall-vertical>span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: pre;
    height: calc(var(--classroom-height)*.8);
    margin-top: calc(var(--classroom-height)*.1);
}

.sidebar-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

:root {
    --classroom-width: 800px;
    --classroom-height: 1050px;
}

/* Classroom section */
#classroom {
    /* 
    "user-select: none" disables text highlighting. Consider adding this/removeing this only when
    the user is dragging something around. Maybe they do want to sometimes select
    certain names
    */
    user-select: none;
    background-color: #c5d0d6;
    background-image: linear-gradient(#727471 1px, transparent 1px),
        linear-gradient(90deg, #727471, 1px, transparent 1px);
    border-radius: 10px;
    background-size: 50px 50px;
    border: 2px solid #888;
    position: relative;
    height: var(--classroom-height);
    width: var(--classroom-width);
    /* for absolutely positioned tables inside */
}

/*
#classroom * {
    -webkit-user-drag: none;
}
    */

#classroom.pdf-export {
    background-image: none !important;
    background-color: #ffffff !important;
}

blockquote {
    color: #555;
    border-left: 4px solid #aaa;
    padding-left: 5em;
    margin: 2em 0;
    /*    background-color: #f9f9f9; */
    border-radius: 4px;
    /*    padding: 3em;*/
}


/* General table style */
.seat-table {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;

    margin: 10px;
    padding: 5px;
    background-color: #AFDA9F;
    border: 2px solid #555;

    width: max-content;
    touch-action: none;
}

.table-handle {
    position: absolute;
    top: -32px;
    /* sticks above the table */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
    width: 50px;
    height: 32px;

    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #555;
    background-color: #AFDA9F;
    border-radius: 4px 4px 0 0;
    /* rounded top corners only */
    cursor: grab;
    z-index: 10;
    /* above table */
}

/* srow is a seat row (don't use "row" becuase bootstrap already defines row)*/
.seat-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.seat.is-locked {
    /*    background-color: #e4c8c8;*/
    background-color: #d4a9a9;
}

.seat.is-swap-pending {
    background-color: #989dca;
}

.seat {
    transition: background-color 0.2s ease;
    flex: 0 0 auto;
    background-color: #dfe4c8;
    border-radius: 5px;
    border: 1px solid #333;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 50px;
    min-height: 30px;
    padding: 0 5px;
}

/* Invisible layout spacer */
.seat-spacer {
    flex: 0 0 auto;
    /* participate in sizing */
    min-width: 50px;
    /* same as a seat */
    min-height: 30px;
    /* same as a seat */
}


.delete-warning {
    position: relative;
}

.delete-warning::before,
.delete-warning::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 50%;
    width: 4px;
    height: 80%;
    background: red;
    transform-origin: center;
    pointer-events: none;
}

.delete-warning::before {
    transform: translateX(-50%) rotate(45deg);
}

.delete-warning::after {
    transform: translateX(-50%) rotate(-45deg);
}

.debug-border div {
    border: 1px solid black;
}

.rule {
    border: 3px solid transparent;
    box-shadow: inset 0 0 0 1.5px black;
    border-radius: .5rem;
    padding: 5px;
}

.saved-rule>div {
    flex: 0 0 33.333%;
    text-align: center;
    font-size: 20px;
}

.student-input-box {
    border: 3px solid transparent;
    box-shadow: inset 0 0 0 1.5px black;
    border-radius: .5rem;
    padding: 5px;
}

.wall-inputs-grid .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em 1em;
}

.wall-inputs-grid .row {
    display: contents;
}

.text-center {
    text-align: center;
}

input.wall-input-box::placeholder {
    text-align: center;
}

.click-mode-pair {
    border-style: solid;
    border-width: 2px;
    padding: 1px;
    border-radius: 7px;
}