/*
	g2.css
	Root namespace styles

    * Reset Browser specific defaults
    * Import Fonts
    * Define General Application Styles
    * Give shell responsibility for header/main layout
    * Provide a slim margin around left/right/bottom of shell,
      so that resizing the browser any smaller will show scrollbar(s)
    * keep this margin to a minimum on all sides to maximize VM area (1360x850px)
*/

/*#region Browser Reset */

/*#region Eric Meyer Browser Reset */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, input, button,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* Colors */

:root {
    --tertiary-text-1: #CED2D4;
    --tertiary-text-2: #AEB1B2;
}
/* HTML5 display-role reset for older browsers */

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/*#endregion Eric Meyer Browser Reset */

/*#region Paul Irish border-box standardization */

/*  https://www.paulirish.com/2012/box-sizing-border-box-ftw/ */

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/*#endregion Paul Irish border-box standardization */

/*#region Gemini Resets */

main {
    display: block; /* IE should handle <main> like a <div>... */
}

* {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

input, textarea, .g2-selectable-text {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -o-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

span {
    cursor: inherit;
}

b, strong {
    font-weight: bold;
}

em, i {
    font-style: italic;
}

/*#endregion Gemini Resets */

/*#endregion Browser Reset */

/*#region Import Fonts */

@font-face {
    font-family: 'DIN';
    font-weight: normal;
    src: url("../fonts/DIN-Regular.eot"); /* EOT file for IE */
}

@font-face {
    font-family: 'DIN';
    font-weight: normal;
    src: url("../fonts/DIN-Regular.ttf"); /* TTF file for CSS3 browsers */
}

@font-face {
    font-family: 'DIN';
    font-weight: bold;
    src: url("../fonts/DIN-Bold.eot");
}

@font-face {
    font-family: 'DIN';
    font-weight: bold;
    src: url("../fonts/DIN-Bold.ttf");
}

@font-face {
    font-family: 'AngleBrackets'; /* DIN shows arrows instead of angle brackets */
    unicode-range: U+3C-3E; /* '<','=','>' */
    src: local('Arial'); /* should be on all machines (?) */
}

/*#endregion Import Fonts */

/*#region General Application Styles */

/*#region Font */

body {
    font-size: 13px;
    font-family: 'AngleBrackets','DIN', sans-serif;
    color: white;
    background-color: #222527;
    background-image: url('../img/bg.png');
}

::-webkit-input-placeholder {
    font-family: 'AngleBrackets','DIN', sans-serif;
    color: #888E94;
}

:-moz-placeholder {
    font-family: 'AngleBrackets','DIN', sans-serif;
    color: #888E94;
    opacity: 1;
}

::-moz-placeholder {
    font-family: 'AngleBrackets','DIN', sans-serif;
    color: #888E94;
    opacity: 1;
}

:-ms-input-placeholder {
    font-family: 'AngleBrackets','DIN', sans-serif;
    color: #888E94;
}

textarea {
    font-family: 'AngleBrackets','DIN', sans-serif;
    color: #888E94;
}

.g2-gray-font {
    color: var(--tertiary-text-1);
}

/*#endregion Font */

/*#region Buttons */

.g2-button-primary {
    cursor: pointer;
    background: #38D56A;
    background: -webkit-linear-gradient(#42E264, #2EC971); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(#42E264, #2EC971); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(#42E264, #2EC971); /* For Firefox 3.6 to 15 */
    background: linear-gradient(#42E264, #2EC971); /* Standard syntax */
    color: white;
    border: none;
    outline: 0;
    font-weight: bold;
}

    .g2-button-primary:hover,
    .g2-button-primary:focus {
        background: #28C75B;
        background: -webkit-linear-gradient(#2BD24F, #26BC67);
        background: -o-linear-gradient(#2BD24F, #26BC67);
        background: -moz-linear-gradient(#2BD24F, #26BC67);
        background: linear-gradient(#2BD24F, #26BC67);
    }

    .g2-button-primary:active {
        background: #169347;
    }

    .g2-button-primary:disabled {
        background: #3e5c49;
        color: #919191;
    }

.g2-button-secondary {
    cursor: pointer;
    color: #B6B6B6;
    background: #3B3E40;
    border: 1px solid #BFC0C1;
    outline: 0;
    font-weight: bold;
}

    .g2-button-secondary:hover,
    .g2-button-secondary:focus {
        color: white;
    }

    .g2-button-secondary:active {
        color: #939393;
        background: #2F3133;
    }

/* Green-to-Red:  see https://nixsensor.com/free-color-converter/
    (1) enter Hex RGB
    (2) enter CIELAB conversion
    (3) swap *a negative to positive
    (4) get Hex RGB conversion
*/
.g2-button-red {
    cursor: pointer;
    background: #FF8874;
    background: -webkit-linear-gradient(#FF9070, #FF8179); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(#FF9070, #FF8179); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(#FF9070, #FF8179); /* For Firefox 3.6 to 15 */
    background: linear-gradient(#FF9070, #FF8179); /* Standard syntax */
    color: white;
    border: none;
    outline: 0;
    font-weight: bold;
}

    .g2-button-red:hover,
    .g2-button-red:focus {
        background: #28C75B;
        background: -webkit-linear-gradient(#FF7F5D, #FF776F);
        background: -o-linear-gradient(#FF7F5D, #FF776F);
        background: -moz-linear-gradient(#FF7F5D, #FF776F);
        background: linear-gradient(#FF7F5D, #FF776F);
    }

    .g2-button-red:active {
        background: #CE5A4E;
    }

/*#endregion Buttons */

/*#region Checkboxes */

label.g2-checkbox {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input[type=checkbox].g2-checkbox {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

    input[type=checkbox].g2-checkbox + label.g2-checkbox {
        background-image: url('../img/checkbox.png');
        padding-left: 22px;
        height: 16px;
        display: inline-block;
        line-height: 16px;
        background-repeat: no-repeat;
        background-position: 0 0;
        vertical-align: middle;
        font-weight: normal;
        cursor: pointer;
    }

    input[type=checkbox].g2-checkbox:disabled + label.g2-checkbox {
        background-image: url('../img/checkbox_ro.png');
        cursor: default;
    }

    input[type=checkbox].g2-checkbox:checked + label.g2-checkbox {
        background-position: 0 -17px;
    }

    input[type=checkbox].g2-checkbox:checked + input[type=checkbox].g2-checkbox:disabled + label.g2-checkbox {
        background-position: 0 -17px;
        background-image: url('../img/checkbox_ro.png');
        cursor: default;
    }


label.g2-radio {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input.g2-radio {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

label.g2-radio {
    background-image: url('../img/radio.png');
    padding-left: 22px;
    height: 16px;
    line-height: 16px;
    background-repeat: no-repeat;
    background-position: 0 0;
    vertical-align: middle;
    font-weight: normal;
    cursor: pointer;
}

input[type=radio].g2-radio:checked + label.g2-radio {
    background-position: 0 -17px;
}

/*#endregion Checkboxes */

/*#endregion General Application Styles */

/*#region Application Host Layout */

#g2 {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto; /* center of page */
    margin-right: auto;
    overflow: visible; /* show scrollbars if resized smaller than height */
    /* 1360x850 VM*/
    width: 1380px; /* 10px padding around shell */
    height: 930px; /* header + main + bottom-margin = 70  + 850 + 10 = 930 */
}

@media (max-height: 930px) {
    #g2 {
        width: 1380px;
        height: 848px;
    }
}

@media (max-height: 848px) {
    #g2 {
        width: 1380px;
        height: 750px;
    }
}

@media (max-height: 750px) {
    #g2 {
        width: 1250px;
        height: 577px;
    }
}

/*#endregion Application Host Layout */

/*#region Classification Banner */

.g2-class-banner {
    position: fixed;
    width: 100%;
    text-align: center;
    font-weight: bold;
    padding: 3px 0;
    background: #38D56A;
    background: -webkit-linear-gradient(#42E264, #2EC971); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(#42E264, #2EC971); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(#42E264, #2EC971); /* For Firefox 3.6 to 15 */
    background: linear-gradient(#42E264, #2EC971); /* Standard syntax */
}

#g2-class-banner-top {
    top: 0;
    z-index: 1;
}

#g2-class-banner-bottom {
    bottom: 0;
}

.g2-class-banner-margin {
    margin-top: 19px;
}

/*#endregion Classification Banner */
