html, body {
    width: 100%;
    height: 100%;
    min-width: 816px;
    min-height: 624px;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    font: message-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.container {
    width: 100%;
    height: calc(100% - 24px);
    min-width: 816px;
    min-height: 624px;
    overflow: auto;
}

nav {
    font: small-caption;
    margin: 0px;
    padding: 0px;
    width: 100%;
    z-index: 100000;
}

nav ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}
nav ul li {
    display: inline-block;
    padding: 2px 8px;
    cursor: pointer;
}

nav hr {
    width: calc(100% - 4px);
    height: 1px;
    margin: 2px;
    padding: 0px;
}

nav ul li ul {
    position: absolute;
    display: none;
    margin-left: -4px;
    margin-top: 2px;
    margin-left: -8px;
    z-index: 10000;
    min-width: 120px;
}

nav ul li ul li {
    display: block;
    margin: 0px;
}

nav center {
    padding: 4px 0px;
    font-style: italic;
}

table {
    width: 100%;
}

table td {
    width: 50%;
}

h1, h2 {
    padding: 0px;
    margin: 0px;
}

h2 {
    text-align: center;
}

table tr td, #helpSection, #newParam, .fileselect, .win {
    vertical-align: top;
    text-align: center;
    padding: 8px;
    overflow: auto;
}

#c_files {
    height: calc(100% - 132px);
    display: block;
}

.win {
    text-align: left;
}

.fileselect {
    width: calc(100% - 20px);
    height: calc(100% - 1px);
    text-align: left;
}

input, textarea {
    width: calc(100% - 24px);
    padding: 4px;
    outline: none;
    border-radius: 5px;
    font: message-box;
}

textarea {
    font: message-box;
}

#fullTR {
    width: calc(100% - 16px);
}

#helpSection {
    position: absolute;
    height: calc(100% - 242px);
    width: calc(100% - 16px);
}

#helpSection textarea {
    height: calc(100% - 32px);
}

#right {
    float: right;
}

#c_params, #c_scripting, #c_main {
    display: none;
}

.bump {
    padding: 4px;
}

.bumplr {
    padding: 0px 4px;
}

#new_filename {
    width: calc(100% - 96px);
}

#file_list a:link, #file_list a:visited {
    display: block;
    padding: 8px;
    margin-top: 1px;
    padding: 12px 4px;
}

#file_list span {
    float: right;
    margin-right: 4px;
    font-size: 12px;
}

nav span {
    float: right;
}

#c_fileopen {
    display: none;
}

#c_files {
    position: absolute;
    width: 100%;
    z-index: 9999;
}

#filler {
    width: calc(100% - 185px);
    height: 24px;
    display: inline-block;
    position: absolute;
    left: 140px;
}

#sel_theme {
    position: absolute;
    right: 64px;
}

#p_note, #p_number, #p_file, #p_obj, #p_bool, #p_select, #p_combo, #p_struct, #p_variable, #p_switch {
    display: none;
}

#paramlist b {
    text-align: center;
}

#paramlist table, #paramlist tr, #paramlist td {
    text-align: left;
}

input[disabled], textarea[disabled] {
    border-radius: 0px;
    width: calc(100% - 8px);
 }

#ace_editor, #blocker {
    position: fixed;
    width: calc(70% - 28px);
    height: calc(100% - 40px);
    left: 30%;
    min-height: 580px;
    top: 32px;
}

@media screen and ( max-width: 816px ){
    #ace_editor, #blocker{
        left: 240px;
    }
}

#c_scripting {
    overflow: auto;
}

#qs_windowname, #qs_scenename, #qs_prototype {
    display: none;
}

#popup_bg, #popup {
    position: absolute;
    z-index: 999999;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: none;
}

#popup {
    width: 460px;
    background: Window;
    height: auto;
    padding: 4px;
    border: solid 1px ThreeDShadow;
    box-shadow: 0px 1px 1px ThreeDShadow;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#popup_buttons {
    background: Menu;
    width: calc(100% - 8px);
    text-align: right;
    padding: 4px 4px;
    position: absolute;
    border-top: solid 1px ThreeDShadow;
    margin-left: -4px;
    margin-top: 4px;
}

#guide {
    position: absolute;
    top: 0px;
    left: 0px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    z-index: 99999;
    padding: 16px;
    display: none;
}

#guide_content {
    position: absolute;
    overflow: auto;
    width: calc(100% - 40px);
    height: calc(100% - 124px);
    left: 16px;
    top: 108px;
    padding: 4px;
}

#help_goto {
    position: absolute;
    z-index: 100000;
}

#c_pcommands {
    display: none;
}

#cmd_code {
    width: 100%;
    height: 240px;
}

#cmd_codeeditor {
    width: calc(50% - 36px);
    margin-left: 8px;
    position: absolute;
    height: 240px;
}
button {
    padding-top: 2.5px;
    padding-bottom: 2.5px;
    margin-top: 2px;
}

#c_core {
    background: rgba(0, 0, 0, 0.5);
    display: none;
}

#c_corebuttons {
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    margin-top: -3px;
}
#c_corebuttons button {
    height: 24px;
    float: left;
    margin: 0px;
    padding: 0px;
    text-align: left;
    padding-left: 8px;
    padding-right: 8px;
}

#c_corebuttons table, #c_corebuttons tr, #c_corebuttons tr td {
    background: none;
    padding: 0px;
    margin: 0px;
}
#core_editor {
    width: 100%;
    height: calc(100% - 48px);
    position: absolute;
    top: 48px;
    left: 0px;
}

#c_files {
    background: rgba(0, 0, 0, 0.5);
}

.hidden_script {
    display: none;
}