html, body, button, h1, h2, h3, h4, h5 {
    font-family: "San Francisco", "Segoe UI", "Roboto", "Oxygen-Sans", "Fira Sans", "Droid Sans", "Ubuntu", "Cantarell", "Helvetica Neue", "Arial", "sans-serif";
    height: 100%;
    margin: 0;
    padding: 0;
    font-weight: 400;
    display: inline;
}

h1 {
    font-size: 64px;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 16px;
}

body {
    font-size: 12px;
}

:root {
    --color-primary: #7AC142;
    --color-secondary: #001C38;
    --color-secondary-70: rgba(0, 28, 56, .7);
    --color-secondary-40: rgba(0, 28, 56, .4);
    --color-tertiary: #1AA78C;
    --color-info: #15ABEC;
    --color-success: #B3EFB2;
    --color-warning: #F57B20;
    --color-danger: #DC382B;
    --color-dark: #000000;
    --color-light: #E9E9E9;
    --color-white: #FFFFFF;
    --color-gray-dark: #555555;
    --color-gray-mid2: #888888;
    --color-gray-mid: #BBBBBB;
    --color-disabled: #DDDDDD;
    --color-theme-dark-background: #000000;

    --filter-white: invert(100%);
    --filter-black: invert(0%);
    --filter-gray-dark: invert(100%) brightness(33%);
    --filter-gray-mid: invert(100%) brightness(73%);
    --filter-danger: invert(29%) sepia(22%) saturate(7470%) hue-rotate(346deg) brightness(91%) contrast(90%);
    --filter-disabled: var(--filter-gray-mid);

    /** OPACITY FOR COLOR GRAY **/
    --color-gray-90: rgba(85, 85, 85,.9);
    --color-gray-70: rgba(85, 85, 85,.7);
    --color-gray-50: rgba(85, 85, 85,.5);
    --color-gray-30: rgba(85, 85, 85,.3);
    --color-gray-10: rgba(85, 85, 85,.1);
  
    /** OPACITY FOR COLOR WHITE **/
    --color-white-90: rgba(255, 255, 255,.9);
    --color-white-70: rgba(255, 255, 255,.7);
    --color-white-50: rgba(255, 255, 255,.5);
    --color-white-30: rgba(255, 255, 255,.3);
    --color-white-10: rgba(255, 255, 255,.1);

    /** OPACITY FOR TERTIARY COLOR **/
    --color-tertiary-90: rgba(26, 167, 140,.9);
    --color-tertiary-70: rgba(26, 167, 140,.7);
    --color-tertiary-50: rgba(26, 167, 140,.5);
    --color-tertiary-30: rgba(26, 167, 140,.3);
    --color-tertiary-10: rgba(26, 167, 140,.1);

    /** -------- CUSTOM COMPONENT COLORS --------
    STATIC COLORS CONSTANT REGARDLESS OF THEME **/
    --color-sequence-class: var(--color-white);
    --color-text-sequence-class: var(--color-dark);
    --color-container-background: var(--color-white);
}

.theme-light {
    --color-container-text: var(--color-dark);
    --color-container-background: var(--color-white);
    --color-container-border: var(--color-gray-dark);
    --color-statusbar-background: var(--color-white);
    --color-statusbar-items: var(--color-secondary);
    --color-container-background-90: var(--color-white-90);
    --color-container-background-70: var(--color-white-70);
    --color-container-background-50: var(--color-white-50);
    --color-container-background-30: var(--color-white-30);
    --color-container-background-10: var(--color-white-10);
    
    --filter-icon: var(--filter-black);
}

.theme-dark {
    --color-container-text: var(--color-white);
    --color-container-background: var(--color-gray-dark);
    --color-container-border: var(--color-gray-mid);
    --color-statusbar-background: var(--color-gray-dark);
    --color-statusbar-items: var(--color-white);
    --color-container-background-90: var(--color-gray-90);
    --color-container-background-70: var(--color-gray-70);
    --color-container-background-50: var(--color-gray-50);
    --color-container-background-30: var(--color-gray-30);
    --color-container-background-10: var(--color-gray-10);

    --filter-icon: var(--filter-white);
}

/** -------- VBOX COMPONENT: the top parent element for all UI components -------- **/
/** -------- which is layout the four basic UI components in column order -------- **/
#vbox {
    display: flex;
    flex-flow: column;
    height: 100%;
    justify-content: space-between;
    overflow: hidden;
}

/** -------- TITLE COMPONENT -------- **/
#titleBar {
    height: 65px;
    width: 100%;
    position: sticky;
    top: 0;
    flex: 0 0 65px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: var(--color-secondary);
    z-index: 30;
}

/** -------- STATUS BAR COMPONENT -------- **/
#statusBar {
    height: 75px;
    width: 100%;
    position: fixed;
    bottom: 0;
    background-color: var(--color-statusbar-background);
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--color-statusbar-items);
    z-index: 25;
}

/** -------- SECTION VIEW COMPONENT -------- **/

/* job list screen ui component */
#jobListView {
    position: absolute;
    width: inherit;
    height: inherit;
    overflow-y: auto;
    overflow-x: hidden;
}

#jobListView.theme-light {
    background-color: var(--color-gray-mid);
}

#jobListView.theme-dark {
    background-color: var(--color-theme-dark-background);
}

/* hide scrollbar on Chrome */
#jobListView::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* hide scrollbar on Firefox */
@-moz-document url-prefix() {
    #jobListView {
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }
}

/* the css for the loading screen and the spinning icon */
#loadingScreen {
    display:block;
    position: absolute;
    background-color: var(--color-secondary);
    opacity:0.2;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index:200;
    visibility: hidden;
}

#loadingScreen img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left:-12px;
    width:24px;
    height:24px;
    animation: 1s linear infinite loadspin;
}

@keyframes loadspin {
    100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); }
}

#ecn4Message {
    color: var(--color-white);
    font-size: 16px;
    background-color: var(--color-secondary);
    width: 768px;
    height: auto;
    min-height: 36px;
    margin: auto;
    z-index: 20;
    position: fixed;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, 0%);
}

#closeMessageButton {
    margin: 6px 3px 6px 0;
    filter: var(--filter-white);
    right: 0px;
    position: absolute;
}

#ecn4MessageText {
    margin: auto 0;
    padding: 6px 12px;
    word-break: break-word;
}

#ecn4Message.slide-in {
    position: absolute;
    bottom: 0;
    height: auto;
    -webkit-animation: slide-in 0.5s forwards;
    animation: slide-in 0.5s forwards;
}

#ecn4Message.slide-out {
    position: absolute;
    bottom: 75px;
    width: 768px;
    height: auto;
    -webkit-animation: slide-out 0.5s forwards;
    animation: slide-out 0.5s forwards;
}

@-webkit-keyframes slide-in {
    100% { bottom: 75px; }
}

@keyframes slide-in {
    100% { bottom: 75px; }
}

@-webkit-keyframes slide-out {
    100% { bottom: 0; }
}

@keyframes slide-out {
    100% { bottom: 0; }
}

button {
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 25px;
    opacity: 1 !important;
    color: var(--color-white);
    height: 48px;
    width: 150px;
    font-size: 16px;
}

button.primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
}

button.primary img {
    filter: var(--filter-white);
}

button.primary:disabled {
    background-color: var(--color-disabled);
    color: var(--color-gray-mid);
    cursor: not-allowed;
}

button.primary:disabled img {
    filter: var(--filter-disabled);
}

button.secondary {
    background-color: var(--color-gray-dark);
    color: var(--color-white);
    border: none;
    cursor: pointer;
}

button.secondary img {
    filter: var(--filter-white);
}

button.secondary:disabled {
    background-color: var(--color-disabled);
    color: var(--color-gray-mid);
    cursor: not-allowed;
}

button.secondary:disabled img {
    filter: var(--filter-disabled);
}

button.tertiary {
    background-color: var(--color-white);
    color: var(--color-gray-dark);
    border-color: var(--color-gray-dark);
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
}

button.tertiary img {
    filter: var(--filter-gray-dark);
}

button.tertiary:disabled {
    background-color: var(--color-disabled);
    color: var(--color-gray-mid);
    border-color: var(--color-gray-mid);
    cursor: not-allowed;
}

button.tertiary:disabled img {
    filter: var(--filter-disabled);
}

button.tertiary:hover:enabled, button.tertiary.active {
    background-color: var(--color-tertiary);
    color: var(--color-white);
    border-style: none;
}

button.tertiary:hover:enabled img, button.tertiary.active img {
    filter: var(--filter-white);
}