html, body {
    background: white;
    margin: 0;
    padding: 0;
    font-family: helvetica, sans-serif;
    min-width: 1100px;
}

#header {
    padding: 10px;
    background: #333;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

#main {
    overflow: auto;
}

#editor_left {
    padding-top: 30px;
    margin-left: 200px;
}






#toolbar {
    float: left;
    width: 200px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

#toolbar_inner {
    padding: 30px 20px;
}

#toolbar button {
    border: none;
    background: #333;
    text-decoration: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    width: 160px;
    padding: 8px 10px;
    text-align: left;
    border-radius: 2px;
    margin: 0 0 10px 0;
}

#toolbar .disabled {
    background: #bbb;
    cursor: default;
}






#editor {
    float: left;
    background: #000;
    
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.cell_row {
    height: 30px;
    float: left;
    clear: left;
}

.cell {
    width: 30px;
    height: 30px;
    float: left;
    cursor: pointer;
    font-size: 10px;
    text-align: center;
    position: relative;
}

.cell img {
    width: 30px;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
}








#swatches {
    position: absolute;
    left: 700px;
    /*float: left;*/
    width: 205px;
    height: 580px;
    overflow: auto;
}

.swatch {
    float: left;
    width: 40px;
    height: 40px;
    margin: 0px 5px 5px 0;
    position: relative;
    cursor: pointer;
    border: 3px solid white;
    text-align: center;
}

.swatch:not(.swatch_selected):hover {
    border: 3px solid #eee;
}

.swatch_selected {
    border: 3px solid #1d77e4;
}

.swatch img {
    width: auto;
    height: 38px;
    margin: 1px auto;
}

.swatch_shortcut {
    position: absolute;
    width: 16px;
    height: 15px;
    background: #222;
    /*margin-top: -45px;*/
    font-size: 12px;
    padding-top: 1px;
    font-weight: bold;
    text-align: center;
    color: white;
}




#notes {
    float: left;
    width: 205px;
    box-sizing: border-box;
    clear: both;
    margin-top: 10px;
    background: #eee;
    padding: 8px 13px 13px 13px;
    font-size: 14px;
    line-height: 1.3;
}

#stats p {
    margin: 1px 0;
    padding: 3px 6px;
    width: 166px;
}

.red {
    background: #e9233f;
    font-weight: bold;
    color: white;
}

.green {
    background: #13ca69;
    font-weight: bold;
    color: white;
}



#notes_master {
    float: left;
    width: 205px;
    clear: both;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
}



#details {
    float: left;
    clear: left;
    width: 480px;
    margin-top: 20px;
}

.input_item {
    display: block;
    margin-bottom: 5px;
}

#details input {
    font-size: 16px;
}

input[type='checkbox'] {
    margin-top: 8px;
}

#details label {
    cursor: pointer;
    font-size: 16px;
    text-align: right;
    margin-right: 6px;
    padding-top: 6px;
    width: 120px;
    display: block;
    float: left;
}

label, .world {
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none;      
}

#world_boxes {
    height: 30px;
}

.world {
    float: left;
    margin-right: 0px;
    border: 3px solid white;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    text-align: center;
    font-size: 16px;
    line-height: 1;
    padding-top: 7px;
    cursor: pointer;
}

.world:hover {
    opacity: 0.5;
}

#world_1, .world_1 .p_1   { background-color: #ffb700 !important; }
#world_2, .world_2 .p_1   { background-color: #e0ff2e !important; }
#world_3, .world_3 .p_1   { background-color: #24f296 !important; }
#world_4, .world_4 .p_1   { background-color: #29f2f2 !important; }
#world_5, .world_5 .p_1   { background-color: #66bdff !important; }
#world_6, .world_6 .p_1   { background-color: #6378ff !important; }
#world_7, .world_7 .p_1   { background-color: #d28aff !important; }
#world_8, .world_8 .p_1   { background-color: #ffa6cd !important; }
#world_9, .world_9 .p_1   { background-color: #ff5633 !important; }
#world_10, .world_10 .p_1 { background-color: #999999 !important; }

.world_selected {
    border: 3px solid black;
}





/*
select {
    font-size: 18px;
    margin-top: 4px;
}
*/




#map_string_textarea {
    margin: 15px 0 0 0;
    width: 470px;
    height: 40px;
    padding: 5px;
    background: #eee;
    font-family: monaco;
    font-size: 10px;
}

#plist_textarea {
    margin: 0;
    width: 470px;
    height: 80px;
    padding: 5px;
    background: #fff;
    font-family: monaco;
    font-size: 10px;
}






#saved_levels {
    border-left: 1px solid gray;
    width: 244px;
    padding-left: 4px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: white;
    overflow: auto;
    
      -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */

}

#saved_levels h3 {
    margin: 10px 3px;
}



.saved_level {
    height: 32px;
    padding: 4px;
    cursor: pointer;
    font-size: 14px;
    float: left;
}

.saved_level:not(.saved_level_selected):hover {
    background: #eee;
}

.saved_level_selected {
    background: #1d77e4;
    color: white;
}

/*
.saved_level h4 {
    font-weight: normal;
    margin: 8px 0 0 0;
}

.saved_level h5 {
    position: absolute;
    right: 8px;
    top: 14px;
    margin-top: 0;
    opacity: 0.5;
    font-weight: normal;
}
*/

.saved_level_preview {
    width: 32px;
    height: 32px;
    background: #111;
}

.saved_level_preview .p_0, .saved_level_preview .p_1 {
    width: 2px;
    height: 2px;
    float: left;
}

.saved_level_preview .p_1 {
    background: black;
}

.inactive_level .saved_level_preview {
    background: #888;
}

.inactive_level .p_1 {
    background: #ccc !important;
}
.inactive_level h4 {
    color: #bbb;
}



#message {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 15px 20px;
}

.message_normal {
    background: #eee;
}

.message_error {
    background: red;
    color: white;
}



#blackout {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}


#alert {
    position: absolute;
    top: 200px;
    left: 50%;
    width: 400px;
    height: 100px;
    margin-left: -225px;
    background: white;
    padding: 50px;
    text-align: center;
}

#alert h3 {
    margin: 0 0 30px 0;
    line-height: 1.4;
}

#alert button {
    border: none;
    background: #ddd;
    margin: 0 10px 10px 0;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    color: black;
}

.button_default {
    background: #1d77e4 !important;
    color: white !important;
    font-weight: bold;
}

#alert input {
    display: block;
    font-size: 21px;
    margin: -20px 0 15px 0;
    padding: 5px;
    width: 380px;
}

.input_caution {
    background: yellow;
}







