body {
    background-color: #282c34;
    color: #bec0b5;
    font-family: Arial, sans-serif;
    
}

button {
    padding: 5px 8px;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    background: #d3d3d3;
    color:#14161a;
    transition: border-color 0.2s, box-shadow 0.2s;
}
button:hover{
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    border: 2px solid black;
}
#tierlist-title {
    min-width: 600px;
    field-sizing: content;
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    resize: none;
    overflow: hidden;
    background-color: transparent;
    color: #d3d3d3;
    margin: 10px auto;
    margin-bottom: 10px;
    display: block;
    transition: border-color 0.2s;
}

#tierlist-title:focus {
    border-color: #df4751;
}

#expanding-zones-container {
    width: 100%;
    padding:4px;
    border-radius:2px;
}

#tiers-container {
    border-radius:2px;
    width: 100%;
    padding:0px;
}
li {
    list-style: none;
}
.tier {
    display:flex;
    min-height: 110px;
    padding:3px;
    margin:2px;
    
    border-radius: 4px;
    background-color: #d3d3d3;
    color: black;
}
.tier .tier-label {
    align-self: center;
    width: 8%;
    font-size: 22px;
    font-weight: bold;
    background-color: inherit;
    border: none;
    resize: none;
    overflow: hidden;

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

    field-sizing: content;

    text-align: center;
    white-space: pre-wrap;
    padding: 0;
    margin: 0;

}

.tier .item-container {
    display: flex;
    border-radius: 4px;
    
    width:90%;
    height: auto;
    padding-left:2px;
    padding-bottom:2px;
    padding-top: 2px;

    position: relative;
    flex-wrap:wrap;
    background-color: #14161a;
}   

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    background: #14161a;
    color: #bec0b5;
    border-radius: 4px;
    cursor: grab;
    margin:1px;
    font-size:1px;
    font-weight: bold;
}
.item img {
    height: 80%;
    width: 100%;
    border: 0px;
    border-radius: 4px;
    user-select: none;
}
.item p {
    padding:0px;
    margin:0px;
    font-size: inherit;
    color: inherit;
    width: 100%;
    height: 20%;
    overflow: hidden;
    text-align: center;
    word-wrap: break-word;
}
.item.overlap {
    position: relative;
    display: block;
}
.item.overlap img {
    height: 100%;
    width: 100%;
    display: block;
}
.item.overlap p {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0%;
    width: 100%;
    /*border-top: 1px solid black;*/
    background: rgba(0, 0, 0, 0.5);
    color: #bec0b5;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.item.no-img {
    border: 1px solid white;
}
.item.no-img img {
    display: none;
}
.item.no-img p {
    height: 100%;
    justify-content: center;
    align-items: center;
}
.item.no-label p {
    height: 0%;
    overflow: hidden;
    display: none;
}

.side-button-container {
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height:auto;
    width:2%;
    padding:0px;
}
.side-button-container .handle {
    margin:auto;
    cursor: grab;
}
.side-button-container .color-picker {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  height: 32px;
  cursor: pointer;
}
button {
    cursor: pointer;
}
#tier-buttons-container {
    display: flex;
    justify-content: center;
    user-select: none;
}
.tier-button {
    border-radius: 2px;
    border: 1px solid black;
}
#add-tier-button {
    background-color: #95d567;
    border-radius: 5px;
}
#add-tier-button:hover{
    background-color:#acf777;
}
#remove-tier-button {
    background-color: #df4751;
    border-radius: 5px;
}
#remove-tier-button:hover{
    background-color:#ff4f5b;
}
#queue {
    width: 99.4%;
    justify-self: center;
    border: 2px solid black;
    display: flex;
    padding: 0px;
    background-color: #14161a;
    border-radius: 4px;
    min-height: 110px;
    flex-wrap:wrap;
    user-select: none;
}
#clear-queue-button {
    float: right;
    border: 2px solid red;
}
#deletion-zone {
    width: 13%;       
    height: auto;  
    border: 2px dashed red;
    
    color: #fd4f5c;
    text-align: center;
    text-justify: center;
    border-radius: 8px;
    user-select: none;
    font-weight: bold;
}
#bottom-of-screen-container {
    width: 100%;
    height: 400px;
    user-select: none;
}
#item-preview-container {
    display: flex;
}
#item-preview-visible-buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: center;

    
}
#font-size-option {
    width: 4ch;
    text-align: center;
    
    padding: 3px 4px;
    font-size: 15px;
    font-weight: bold;
    border: 1px solid black;
    border-radius: 6px;

    background-color: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
#font-size-option:hover {
    border-bottom: 2px solid #51b1ff;
    border-right: 1px solid #51b1ff;
    border-left: 1px solid #51b1ff;
    border-top: 1px solid #51b1ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.hide-spinner::-webkit-outer-spin-button,
.hide-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hide-spinner {
    -moz-appearance: textfield;
}
#toggle-size-settings {
    background: transparent;
    border: 0px;
    cursor: pointer;
    align-self:baseline;
}
#item-height-and-width-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #14161a;
    color: #fd4f5c;
    border-radius: 15px;
    border: 4px solid black;
    height: 100px;
    padding: 5px;
}
#item-height-and-width-container .item-size-container input{
    border: 2px solid black;
    border-radius: 4px;
    background: #bec0b5;
    width: 6ch;
    text-align: center;
}
#item-height-and-width-container h3 {
    margin-top: 0px;
    padding: 0px;
    color: #51b1ff;
}
.hidden {
    display: none !important;
}
#item-preview {
    cursor: default;
    border: 2px solid #bec0b5;
}
#item-adder {
    display: flex;
    flex-direction: column;
    padding: 5px;
}
#image-upload {
    margin: 5px;
    display:none;
}
#image-upload-label {
    display: inline-block;
    padding: 4px 6px;
    cursor: pointer;
    border: 1px solid black;
    background-color: #d3d3d3;
    color: black;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#image-upload-label:hover {
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
#json-upload {
    display: none;
}
#json-upload-label {
    display: inline-block;
    padding: 4px 6px;
    cursor: pointer;
    border: 1px solid black;
    background-color: #d3d3d3;
    color: black;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#json-upload-label:hover {
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
#label-input {
    padding: 3px 4px;
    font-size: 15px;
    font-weight: bold;
    border: 1px solid black;
    border-radius: 6px;

    background-color: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}
#label-input:hover {
    border-bottom: 2px solid #51b1ff;
    border-right: 1px solid #51b1ff;
    border-left: 1px solid #51b1ff;
    border-top: 1px solid #51b1ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}   

#add-item-button {
    width: 11ch;
    margin-bottom: 40px;
}
#label-img-height-percentage-container {
    display: flex;
    flex-direction: column;
}
#label-img-height-percentage {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 30px;
    height: 150px;
}
#bulk-file-upload {
    display: none;
}
#bulk-file-upload-label {
    display: inline-block;
    padding: 4px 6px;
    cursor: pointer;
    border: 1px solid black;
    background-color: #d3d3d3;
    color: black;
    border-radius: 5px;
    font-weight: bold;
}
#bulk-file-upload-label:hover {
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.sortable-chosen {
    opacity: 1 !important;
    z-index: 1000;
}
.sortable-ghost {
    opacity: 0 !important;
    pointer-events: none !important;
}