/*
Doc Wide CSS
*/
:root {
    --list-item-height: 100px;
}
body {
    background-color: gray;
}
h1 {
    text-align: center;
    width: calc(var(--list-item-height) * 8);
    margin: 24px auto;
}
img {
    max-width: 100%;
    max-height: 100%;
}

/*
Tier list relevant CSS
*/
table {
    margin: auto;
}
table, tr, td {
    height: 100%;
    border-collapse: collapse;
}
tr {
    /* NTS: The row height should be list-item-height + row border*/
    height: calc(var(--list-item-height) + 2px);
    border: 2px solid black;
}
td {
    padding: 30px;
}

.row-label {
    overflow: clip;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    border-right: 2px solid black;
}
.row-label > textarea {
    resize: none;
    overflow: hidden;
    border: none;
    min-height: 10px;
    text-align: center;
    background-color: inherit;
}
.row-items {
    display: flex;
    flex-wrap: wrap;
    width: calc(var(--list-item-height) * 8);
    height: 100%;
    padding: 0;
    background-color: rgb(68, 68, 68);
    border-right: 2px solid black;
}
.row-options {
    padding: 16px;
    background-color: black;
}
.row-options-cont {
    display: flex;
    align-items: center;
    justify-content: center;
}
.row-settings-btn,
.move-row-up-btn,
.move-row-down-btn {
    color: white;
}
.row-settings-btn:hover,
.row-settings-btn:focus,
.move-row-up-btn:hover,
.move-row-down-btn:hover,
.move-row-up-btn:focus,
.move-row-down-btn:focus {
    cursor: pointer;
    text-decoration: none;
    color:#888;
}

/*
Modal relevant CSS
*/
#create-item-modal {
    position: fixed;
    z-index: 1;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
#row-options-modal {
    position: fixed;
    z-index: 1;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
#modal-content {
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    background-color: #fefefe;
    text-align: center;
}
.modal-close-button {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
}
.modal-close-button:hover,
.modal-close-button:focus {
    cursor: pointer;
    text-decoration: none;
    color: black;
}

/*
List items relevant CSS
*/
#items-section{
    margin: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
#unlisted-list-items{
    min-height: calc(var(--list-item-height)*2);
    width: calc(var(--list-item-height) * 12);
    display: flex;
    flex-wrap: wrap;
    background-color: rgb(68, 68, 68);
}
#item-manage-section{
    display: inline-block;
}
#add-items-section{
    border-radius: 20px;
    margin: 5px;
    padding: 5px;
    height: calc(var(--list-item-height) - 20px);
    width: calc(var(--list-item-height) - 20px);
    background-color: white;
}
#add-items-section:hover,
#add-items-section:focus {
    cursor: pointer;
    text-decoration: none;
    background-color: rgb(225, 225, 225);
}
#garbage-section{
    height: var(--list-item-height);
    width: var(--list-item-height);
}
.list-item{
    height: var(--list-item-height);
    width: 100px;
    background-color: black;
    cursor: pointer;
}
.dragging{
    opacity: 0.6;
}