body {
    margin: 0;
    background-image: url(background.jpg);
    /* background-size: cover; */
    background-repeat: repeat-x;
    background-color: #000;
    font-family: 'IBM Plex Sans', 'Roboto', sans-serif;
    user-select: none;
    -moz-user-drag: none;
    overscroll-behavior: none;
    color: #fff;
    font-size: 13px;
    overflow: hidden;
}

#undo_stack {
    left: 200px;
    top: 50px;
    height: 50px;
    border-radius: 8px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
    text-align: right;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

#undo_stack::-webkit-scrollbar {
    display: none;
}

#undo_stack {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#undo_stack img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
    margin: 0 2px;
    border: 1px solid transparent;
    cursor: pointer;
}

#undo_stack img:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#canvas {
    left: 200px;
    top: 110px;
    border-radius: 8px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
}

#level {
    left: 200px;
    top: 110px;
    border-radius: 8px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
}

#menu_frames {
    left: 200px;
    top: 50px;
    height: 50px;
    border-radius: 4px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
    text-align: left;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

#menu_frames::-webkit-scrollbar {
    display: none;
}

#menu-frames {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu_container {
    position: absolute;
    top: 50px;
    left: 0px;
    width: 240px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.menu_container::-webkit-scrollbar {
    display: none;
}

.menu_container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.right_menu_container, .far_right_menu_container {
    position: absolute;
    top: 50px;
    left: 0px;
    width: 216px;
}

.full_right_menu_container {
    position: absolute;
    top: 50px;
    left: 0px;
    width: 216px;
}

.full_left_menu_container {
    position: absolute;
    top: 50px;
    left: 0px;
    width: 222px;
}

.menu_sprite_item {
    width: 64px;
    height: 48px;
}

.menu_sprite_item img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    object-fit: contain;
}

.menu_sprite_item .drag_handle {
    display: block;
    width: 15px;
    height: 48px;
    position: absolute;
    right: 0;
    background-image: url(rough.png);
    opacity: 0.3;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    /* z-index: 100; */
}

.menu_state_item {
    display: block;
    width: 201px;
    height: 30px;
}

.menu_state_item img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    object-fit: contain;
    position: relative;
    top: 3px;
    left: 3px;
}

.menu_state_item .state_label {
    display: inline-block;
    position: absolute;
    left: 32px;
    top: 6px;
}

.menu_state_item .drag_handle {
    display: block;
    width: 15px;
    height: 30px;
    position: absolute;
    right: 0;
    background-image: url(rough.png);
    opacity: 0.3;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.menu_level_item {
    display: block;
    width: 201px;
    height: 30px;
}

.menu_level_item .drag_handle {
    display: block;
    width: 15px;
    height: 30px;
    position: absolute;
    right: 0;
    background-image: url(rough.png);
    opacity: 0.3;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.menu_layer_item {
    background-color: brown;
    display: block;
    width: 201px;
    height: 30px;
    /* display: flex; */
    /* align-items: center; */
}

/* .menu_layer_item > * { */
    /* position: relative; */
    /* top: 2px; */
/* } */

.menu_layer_item .drag_handle {
    display: block;
    width: 15px;
    height: 30px;
    position: absolute;
    right: 0;
    background-image: url(rough.png);
    opacity: 0.3;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.menu_backdrop_item {
    display: block;
    width: 201px;
    height: 30px;
}

.menu_backdrop_item .drag_handle {
    display: block;
    width: 15px;
    height: 30px;
    position: absolute;
    right: 0;
    background-image: url(rough.png);
    opacity: 0.3;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.menu_frame_item {
    width: 64px;
    height: 48px;
}

.menu_frame_item img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    object-fit: contain;
}

.menu_frame_item .drag_handle {
    display: block;
    width: 15px;
    height: 48px;
    position: absolute;
    right: 0;
    background-image: url(rough.png);
    opacity: 0.3;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.menu_level_sprite_item {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin-right: 4px;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.menu_level_sprite_item:hover {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.1);
}

.menu_level_sprite_item.active {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
    outline: 2px solid #fff;
    border-radius: 4px;
}

.menu_level_sprite_item img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    object-fit: contain;
}

.menu h3, .menu h4 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 0.3em 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 0;
    background-color: rgba(255, 255, 255, 0.05);
    /* background-color: rgba(0, 0, 0, 0.1); */
    font-weight: normal;
    margin-top: -5px;
    border-top: none;
    margin-left: -5px;
    margin-right: -5px;
}

.menu h4 {
    font-size: 13px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 4px 1px 8px;
}

.menu {
    /* width: 152px; */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.menu-group .menu:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.menu-group .menu:not(:first-child) {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.menu hr {
    margin: 5px 0;
    border: none;
    height: 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}

.menu_container select {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3em;
    color: #fff;
    border-radius: 4px;
    margin: 1px 0;
}

.button {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    /* background-color: rgba(0,0,0,0.5); */
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: relative;
    margin: 2px;
    margin-bottom: -2.5px;
}

.button-3 {
    width: 48px;
    height: 48px;
    margin: 1px;
}

.button-5 {
    width: 23px;
    height: 23px;
    margin: 1.5px;
    margin-bottom: -2.5px;
}

.button-9 {
    width: 16px;
    height: 16px;
    margin: 1px;
    margin-bottom: -2.5px;
}

.button.active {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(0, 0, 0, 0);
    outline: 2px solid #fff;
    border-radius: 4px;
}

.toggle {
    display: inline-block;
    background-color: #222;
    color: rgba(255, 255, 255, 0.7);
    /* padding: 0.3em 0.5em; */
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    text-align: center;
}

.toggle i {
    position: relative;
    top: 1px;
}


.toggle .fa-eye-slash {
    opacity: 0.5;
}

.mono {
    font-family: 'IBM Plex Mono', 'Roboto Mono', monospace;
}

.key {
    display: inline-block;
    font-family: 'IBM Plex Mono', 'Roboto Mono', monospace;
    font-weight: bold;
    padding: 0.1em 0.5em;
    /* height: 1.4em; */
    text-align: center;
    background-color: #222;
    border-radius: 0.2em;
    font-size: 12px;
    box-shadow: 0 0 4px rgb(0 0 0 / 80%);
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.8em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.tooltip {
    position: absolute;
    top: 12px;
    left: 12px;
    display: none;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1.0);
    color: #eee;
}

.tooltip.tooltip_hint {
    top: 3px;
    left: unset;
    right: -1px;
    cursor: pointer;
}

.tooltip.tooltip_hint:hover {
    outline: 2px solid #ccc;
    box-shadow: 0 0 5px #fff;
}

#status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #aaa;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    overflow-x: auto;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

#status-bar::-webkit-scrollbar {
    display: none;
}

#status-bar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#status-bar b {
    font-weight: normal;
    color: #fff;
}

.status-bar-item {
    display: inline-block;
    padding: 0.5em 0.8em;
    margin: 0;
    cursor: pointer;
    /* background-color: rgba(0, 0, 0, 0.5); */
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    /* background-color: red; */
    /* min-height: 2.5em; */
}

.status-bar-button {
    cursor: pointer;
    transition: background-color 200ms;
    height: 20px;
}

.status-bar-button.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: none;
}

#main-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #aaa;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 15px;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
}

#main-nav::-webkit-scrollbar {
    display: none;
}

#main-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.main-nav-item {
    display: inline-block;
    padding: 0.7em 2em;
    margin: 0;
    cursor: pointer;
    width: 100px;
    /* border-right: 1px solid rgba(255, 255, 255, 0.3); */
}

@media (hover: hover) {
    .main-nav-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .button:hover {
        border: 1px solid #fff;
        /* outline: 1px solid #fff; */
    }

    .button.active:hover {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .status-bar-button:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transition: none;
    }

}

.main-nav-item.active {
    color: #fff;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 1.0);
}

.menu-body {
    padding: 0 0 2px 0;
    overflow-y: auto;
}

.menu-body::-webkit-scrollbar {
    display: none;
}

.menu-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* border: 1px solid green; */
}

.menu input[type="text"], .menu-body input[type="text"] {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
    width: calc(100% - 20px);
    margin: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.menu input[type="text"]:focus, .menu-body input[type="text"]:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.wide-menu-body {
    width: 30em;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    font-size: 15px;
}

button.btn {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100%;
    color: rgba(255, 255, 255, 0.8);
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    cursor: pointer;
    padding: 0;
    margin: 1px;
}

button.btn-checkbox {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100%;
    color: rgba(255, 255, 255, 0.8);
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    cursor: pointer;
    padding: 0;
    margin: 1px;
    background-image: url(icons/times-44.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px 16px;
}

button.btn-checkbox[data-state='true'] {
    background-image: url(icons/check-44.png);
}

.state-header {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    margin: 1px;
    padding: 8px 0 0 32px;
    position: relative;
    min-height: 24px;
    cursor: pointer;
}

.state-header.no-img {
    padding: 8px 0 0 8px;
    text-align: center;
    border: 1px solid transparent;
}

.state-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.state-header.active {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.state-header img {
    position: absolute;
    left: 3px;
    top: 3px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    width: 24px;
    height: 24px;
}

.editable-text {
    display: block;
    border: 1px solid red;
    padding: 5px 0;
}

.editable-text .bu {
    float: right;
}

/* .menu-body input[type="text"] {
background-color: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
display: block;
width: calc(100% - 20px);
margin: 1px;
padding: 4px 8px;
border-radius: 4px;
color: rgba(255, 255, 255, 0.8);
}
.menu-body input[type="text"]:focus {
background-color: rgba(255, 255, 255, 0.1);
outline: none;
border: 1px solid rgba(255, 255, 255, 0.7);
} */

.dndtest {
    display: inline-block;
    width: 46px;
    height: 46px;
}

._dnd_item {
    display: inline-block;
    position: relative;
    top: 0px;
    /* transition: border 300ms; */
    cursor: pointer;
    margin-right: 2px;
    /* background-color:#f00; */
    /* border: 1px dashed red!important; */
    /* margin: 1px; */
    line-height: 20px;
}

._dnd_item>div {
    /* border: 1px solid green; */
    position: relative;
    top: 0;
    left: 0;
    transition: left 0.2s, top 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    vertical-align: middle;
    /* pointer-events: none; */
    border-radius: 2px;
}

._dnd_item._no_anim>div {
    transition: none !important;
    outline: 1px solid blue;
}

._dnd_item>div:hover {
    border: 1px solid rgba(255, 255, 255, 0.4);
}

._dnd_item.active>div {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
}

._dnd_item.add>div {
    background-color: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

._dnd_item>div>.add {
    background-color: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
    height: 100%;
}

._dnd_item.add:hover>div {
    border: 1px dashed rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

._dnd_item.placeholder {
    /* border: 1px dashed rgba(255, 255, 255, 0.2); */
    /* border-radius: 8px; */
    opacity: 0;
}

._dnd_item.drop_target {
    /* top: -10px; */
    /* transform: scale(0.8); */
    /* outline: 1px dashed rgba(255, 255, 255, 0.8); */
    /* border-radius: 10px; */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 1);
    background-color: rgba(0, 0, 0, 0.1);
    /* opacity: 0; */
    /* outline: 1px solid green; */
}

._dnd_item.add>div.add_choice_container {
    padding: 4px;
    padding-top: 10px;
    border: none;
    display: flex;
    flex-flow: wrap;
    gap: 4px;
    justify-content: center;
    box-shadow: inset 0px 15px 10px -10px rgba(0, 0, 0, 1);
}

._dnd_item .add_choice {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}

._dnd_item .add_choice:hover {
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (max-height: 600px) {
    /* #undo_stack img {
width: 24px;
height: 24px;
} */
}

#trash {
    position: absolute;
    right: 10px;
    bottom: 50px;
    font-size: 24px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 300ms, transform 300ms, color 300ms, box-shadow 300ms;
    opacity: 0;
    transform: scale(0);
    color: rgba(255, 255, 255, 0.5);
}

#trash.showing {
    opacity: 1;
    transform: scale(1);
}

#trash.showing.hovering {
    color: rgba(255, 255, 255, 1.0);
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 20px #f00;
}

#save_notification {
    position: absolute;
    right: 10px;
    bottom: 50px;
    font-size: 24px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 300ms, transform 300ms, color 300ms, box-shadow 300ms;
    opacity: 0;
    transform: translateY(100px) scale(0) rotate(180deg);
    color: rgba(255, 255, 255, 0.5);
}

#save_notification.showing {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}

.modal-container {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background-color: #080808;
    background-image: url(paper.jpg?1);
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 60px 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    max-width: 90vw;
    /* min-height: 30vh; */
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    /* padding-bottom: 60px; */
}

.modal-sm {
    width: 50vw;
}

.modal h3 {
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    padding: 15px;
    font-size: 15px;
}

.modal > h3 {
    background-color: rgba(0, 0, 0, 0.5);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal .modal-body {
    flex-shrink: 1;
    /* background-color: #111; */
    height: 100%;
    padding: 15px;
    font-size: 15px;
    overflow: auto;
    position: relative;
}

#modal_load_game .modal-body td.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    /* padding: 4px; */
}

.modal .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 15px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: inset 0 10px 10px rgba(0, 0, 0, 0.2);
    text-align: right;
}

.modal-footer button, .modal-footer input {
    margin-right: 5px;
}

.modal-footer input {
    background-color: #222;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5em 1em!important;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal .modal-status {
    display: none;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 15px;
    background-color: #822;
    color: #fff;
    font-size: 15px;
}

button {
    background-color: #222;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5em 1em;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background-color: #444;
    color: rgba(255, 255, 255, 1.0);
}

button.green {
    background-color: #16884a;
}

button.green:hover {
    background-color: #16884a;
}

.table-container {
    /* border: 1px solid red; */
    max-width: 100%;
    overflow-x: auto;
}

table {
    display: table;
    user-select: none;
    border-collapse: collapse;
    width: 100%;
}

table td,
table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    text-align: left;
    max-width: 12em;
}

table td.right, table th.right {
    text-align: right;
}

table th {
    background-color: rgba(255, 255, 255, 0.1);
}

table tr.clickable_row:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown_menu div.item {
    color: #fff;
    font-size: 13px;
    padding: 5px;
    cursor: pointer;
    font-weight: normal;
    position: relative;
}

.dropdown_menu div.item.has_submenu::after {
    font: normal normal normal 14px/1 ForkAwesome;
    content: "\f105";
    position: absolute;
    color: #888;
    right: 5px;
    transition: all ease 200ms;
}

.dropdown_menu div.item.has_submenu.open::after {
    transform: rotate(90deg);
}

.dropdown_menu div.item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

hr {
    border: none;
    height: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.palette-swatches {
    width: 185px;
    cursor: pointer;
}

.palette-swatches>div.active {
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.palette-swatches h3 {
    padding: 5px 5px 10px 5px;
}

.palette-swatches>div {
    border: 1px solid #444;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 5px;
}

.palette-swatches:hover>div {
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.1);
}


.palette-swatches div.swatch {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    display: inline-block;
    margin-right: 2px;
    margin-bottom: -2px;
}


input:not([type='range']) {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: #fff;
    /* text-align: center; */
    padding: 0.4em 0.2em;
}

.modal-dialogs {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav-item {
    position: relative;
}

.menu .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.item .separator {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.2);
    width: 100%;
    padding: 5px;
    margin: 5px -5px;
    font-weight: bold;
    box-shadow: 0 0 5px rgb(0 0 0 / 50%);
}

.wide-menu-body .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.color-dot {
    display: inline-block;
    width: 24px !important;
    height: 24px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px !important;
    padding: 0 !important;
    cursor: pointer;
    color: transparent !important;
}

.color-dot:hover {
    border: 1.5px solid rgba(255, 255, 255, 1.0);
}


.clr-large .clr-swatches button {
    width: 22px;
    height: 22px;
    padding: 0;
}

.clr-large .clr-swatches button:hover {
    border: unset;
    outline: 2px solid #fff;
}

input.clr-color {
    font-family: 'IBM Plex Mono', monospace;
}

.backdrop-swatch {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    outline: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.backdrop-swatch:hover {
    border: 2px solid rgba(255, 255, 255, 1.0);
    /* outline: 1px solid rgba(0, 0, 0, 0.5); */
}

.play_container {
    margin-top: 50px;
    padding: 10px;
    box-sizing: border-box;
    overflow: auto;
    max-width: 100%;
    height: calc(100vh - 100px);
    /* display: flex; */
}

.play_container_inner {
    background-color: #023;
    border-radius: 15px;
    box-shadow: 0 0 10px #000;
    max-width: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    aspect-ratio: 16/9;
    overflow: hidden;
}

#play_iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.scroll-helper {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
}

.scroll-helper::-webkit-scrollbar {
    display: none;
}

#error_curtain {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 150%;
}

#error_curtain div.robot {
    background-image: url(robot.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
    height: 50vh;
    margin-top: 15vh;
    transition: transform 0.5s ease;
    transform: scale(0) rotate(90deg);
}

#error_curtain p {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    max-width: 500px;
    display: inline-block;
    border-radius: 1em;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translate(0, -10em);
    opacity: 0;
}

#main_div_settings {
    margin-top: 40px;
    /* padding-bottom: 300px; */
    /* max-width: 800px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
    /* font-size: 120%; */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

#main_div_settings::-webkit-scrollbar {
    display: none;
}

#main_div_help {
    margin-top: 60px;
    padding-bottom: 300px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 120%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

#main_div_help::-webkit-scrollbar {
    display: none;
}

#main_div_help a {
    color: #aaa;
}

#main_div_help a:hover {
    color: #fff;
}

#main_div_help a.link_button, #main_div_playtesting a.link_button {
    background-color: rgba(255, 255, 255, 0.1);
    /* background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1)); */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 0.4em 0.8em;
    border-radius: 4px;
    text-decoration: none;
    color: #eee;
}

#main_div_help a.link_button:hover, #main_div_playtesting a.link_button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.help-tiles-3 {
    /* display: flex; */
}

.help-tiles-3 div {
    width: calc(48% - 20px);
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 20px;
}

.help-tiles-3 div img {
    display: block;
    width: 100%;
    margin-top: 5px;
    border-radius: 10px;
}

a, a:visited {
    color: #55beed;
}

#main_div_playtesting {
    margin-top: 60px;
    padding-bottom: 300px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 120%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

#main_div_playtesting::-webkit-scrollbar {
    display: none;
}

@keyframes blink {
    50% {
        border-color: rgba(255, 255, 255, 1.0);
    }
}

.tooltip.key {
    border: 1px solid rgba(255, 255, 255, 0);
    animation: blink 3s infinite;
}

.sprite-sq-thumb {
    cursor: pointer;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 0, 0, 0);
    outline: rgba(255, 255, 255, 0.5) solid 1px;
    border-radius: 2px;
    margin: 2px;
    object-fit: contain;
}

.sprite-sq-thumb:hover {
    outline: rgba(255, 255, 255, 1.0) solid 1px;
}

#game_code {
    text-align: center;
    font-size: 200%;
    font-family: 'IBM Plex Mono', 'Roboto Mono', monospace;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.2em;
    margin: 10px 0;
    user-select: text;
}

#game_code_div {
    display: none;
}

#games_sublist_graph {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin: 1em auto;
}

#games_sublist_graph svg {
    max-width: 100%;
}

#games_sublist_graph svg g.node {
    cursor: pointer;
}

:root {
    --graph-highlight-color: rgba(229, 24, 93, 1.0);
}

#games_sublist_graph svg g.node.highlight ellipse {
    fill: var(--graph-highlight-color);
    stroke: var(--graph-highlight-color);
}

#games_sublist_graph svg g.edge.highlight path, #games_sublist_graph svg g.edge.highlight polygon {
    fill: var(--graph-highlight-color);
    stroke: var(--graph-highlight-color);
}

#games_sublist_graph svg g.node:hover ellipse {
    fill: var(--graph-highlight-color);
    stroke: var(--graph-highlight-color);
}

