html,
body {
    border: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;

    background-color: #eff2f5;
    color: #506180;
    font-family: 'Arial Narrow', 'Arial', sans-serif;
    font-size: 20px;
}

.screen {
    position: fixed;
    width: 100%;
    height: 100%;
}

#workspace {
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

#header {
    flex: 0 0 56px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    box-sizing: border-box;
    border-bottom: 1px solid #bac2ce;
    user-select: none;
}

#header div {
    margin-right: 4px;
}

#header .title {
    background-color: #00897c;
    color: #eff2f5;
    padding: 8px 2px;
    padding-right: 14px;
    line-height: 20px;
}

#header .logo {
    background-color: #00897c;
    color: #eff2f5;
    min-width: 36px;
    height: 36px;
    padding: 10px 6px;
}

#header .button {
    box-sizing: border-box;
    height: 30px;
    padding: 4px 8px;
    padding-left: 4px;
    line-height: 20px;
    margin-bottom: 4px;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

#header .button:hover {
    background-color: #e1e5eb;
}

/* size 20px stroke 2px */
#header .button img {
    float: left;
    margin-right: 4px;
}

#tab-names {
    background-color: #e1e5eb;
    flex: 0 0 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    user-select: none;
}

#tab-names .close-tab {
    float: right;
    min-width: 20px;
    padding: 2px;
    margin-left: 7px;
    cursor: pointer;
}

#tab-names .tab {
    height: 32px;
    box-sizing: border-box;
    border: 0 solid #bac2ce;
    border-right-width: 1px;
    border-bottom-width: 1px;
    padding: 4px 8px;
    padding-right: 4px;
    transition: all 0.2s;
    line-height: 20px;
}

#tab-names .tab.active {
    background-color: #eff2f5;
    border-bottom-color: #eff2f5;
}

#tab-names .tab span {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.8em;
    cursor: pointer;
}

#tab-names .tab.active span {
    cursor: default;
}

#tab-filler {
    flex: 1 0 0px;
    border-bottom: 1px solid #bac2ce;
}

#tab-visual {
    flex: 1 1 400px;
    overflow: hidden;
    position: relative;
}

#readme {
    z-index: 15;
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    padding: 0 14px;
    font-size: 0.8em;
    overflow: auto;
}

#readme code {
    background-color: #e1e5eb;
    font-family: 'Courier New', 'Courier', 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;
    font-weight: bold;
    padding: 0 2px;
}

#control {
    position: absolute;
    left: 12px;
    bottom: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s;
}

#control.visible {
    pointer-events: auto;
    opacity: 1;
}

#control div {
    z-index: 15;
    background-color: #eff2f5;
    border: 0 solid #bac2ce;
    border-top-width: 1px;
    box-sizing: border-box;
}

#control .control-div {
    height: 48px;
    padding: 12px 8px;
    font-size: 1.1em;
}

#control-msg {
    position: absolute;
    left: 100%;
    bottom: 0;
    padding: 3px 8px 4px 6px;
    border-right-width: 1px !important;
    border-top-right-radius: 8px;
    line-height: 22px;
    min-height: 32px;
    font-size: 0.95em;
    white-space: nowrap;
    word-break: keep-all;
    opacity: 0;
    transition: all 0.2s;
}

#control-msg .bold {
    font-size: 93%;
    font-weight: bold;
}

#control-msg .italic {
    font-size: 93%;
    font-style: italic;
}

#control-msg .mono {
    font-family: 'Courier New', 'Courier', 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;
    font-weight: bold;
}

#control-msg.active {
    opacity: 1;
}

#control div:first-child {
    border-left-width: 1px;
    border-top-left-radius: 14px;
}

#control div:last-child {
    border-right-width: 1px;
    border-top-right-radius: 14px;
}

#control .control-button {
    padding: 10px 8px;
}

#control .control-button.active {
    cursor: pointer;
}

#control .control-button img {
    opacity: 0.3;
    transition: all 0.2s;
}

#control .control-button.active img {
    opacity: 1;
}

#control .control-button.active:hover {
    background-color: #e1e5eb;
}

#control-counter {
    min-width: 90px;
    text-align: center;
}

#tab-timeline {
    flex: 0 2 232px;
    overflow: auto;
    box-sizing: border-box;
    border-top: 1px solid #bac2ce;
}

#timeline {
    border-collapse: collapse;
    user-select: none;
}

#timeline tr {
    line-height: 24px;
}

#timeline tr.mark {
    background-color: #f4f6f8;
}

#timeline tr.mark th:nth-child(even),
#timeline tr.mark td:nth-child(even) {
    background-color: #eaedf1;
}

#timeline th,
#timeline td {
    min-width: 64px;
    box-sizing: border-box;
    padding: 4px 7px;
    text-align: center;
    border-style: solid;
    border-color: #bac2ce;
    border-width: 0 0 1px 0;
}

#timeline td.issue {
    background-color: #d1cfee !important;
}

#timeline td.exec {
    background-color: #c6ebca !important;
}

#timeline td.write {
    background-color: #e8d2ed !important;
}

#timeline td.branch,
#timeline td.jump {
    background-color: #f4e5c2 !important;
}

#timeline tr:first-child th {
    font-weight: normal;
}

#timeline tr:first-child th.cur {
    font-weight: bold;
}

#timeline tr th:nth-child(even),
#timeline tr td:nth-child(even) {
    background-color: #e1e5eb;
}

#timeline tr td:last-child,
#timeline tr th:last-child {
    border-right-width: 1px;
}

#timeline tr td:first-child,
#timeline tr th:first-child {
    font-family: 'Courier New', 'Courier', 'Lucida Sans Typewriter', 'Lucida Typewriter', monospace;
    font-weight: bold;
    font-size: 0.9em;
    text-align: left;
    border-left: 0;
    white-space: nowrap;
}

.modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s;
}

.modal.visible {
    pointer-events: auto;
    opacity: 1;
}

.modal .close {
    float: right;
    padding: 2px;
    margin-right: 6px;
}

.modal .dialog {
    background-color: #eff2f5;
    max-width: 85%;
    overflow: auto;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
}

.modal .dialog h1 {
    margin: 0;
    margin-bottom: 20px;
    margin-left: 18px;
    color: #00897c;
    font-size: 2em;
    font-weight: normal;
    text-align: left;
}

.modal .form {
    padding-bottom: 12px;
}

.modal .form tr td:nth-child(odd) {
    padding: 2px 6px;
    text-align: right;
    vertical-align: top;
}

.modal .form select {
    width: 100%;
}

.modal .button {
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.modal .button:hover {
    background-color: #e1e5eb;
    color: #3e5173;
}

.modal span.button {
    padding: 4px 8px;
}

/* 

.modal .dialog h2 {
    margin: 0;
    color: #506180;
    font-size: 1.1em;
    font-weight: normal;
    text-align: left;
}

.modal .dialog .content {
    width: 100%;
    box-sizing: border-box;
    padding-top: 8px;
    padding-bottom: 24px;
    padding-left: 18px;
} */
