@font-face {
    font-family: gameFont;
    src: url(../assets/fonts/Sansation_Light.ttf)
}

@font-face {
    font-family: gameFont;
    src: url(../assets/fonts/Sansation_Regular.ttf);
    font-weight: bold
}

@font-face {
    font-family: hudFont;
    src: url(../assets/fonts/Aldrich_Regular.ttf)
}

body,
html {
    width: auto;
    height: auto;
    cursor: url(../assets/images/cursor.png) 6 6, auto
}

body {
    color: #ddd;
    background-color: #000;
    font-family: gameFont, Ubuntu light, Verdana, Geneva, sans-serif;
    font-size: 2.2vmin;
    margin: 0;
    padding: 0;
    border: 0;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none
}

@media screen and (orientation: portrait) {

    .innerContainer,
    .pageGhost,
    .fullScreenFix,
    .fullScreenContainer {
        display: none
    }
}

@media screen and (min-aspect-ratio: 2/1) {
    body {
        font-size: 2.5vmin
    }
}

img.orientation {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw
}

@media screen and (orientation: landscape) {
    img.orientation {
        display: none
    }
}

body.wait,
body.wait * {
    cursor: url(../assets/images/cursor.png) 6 6, wait
}

canvas {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none
}

.pageGhost {
    text-align: center;
    height: 100%;
    white-space: nowrap
}

.pageGhost:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em
}

.outerContainer {
    box-shadow: 0em 0em .5em lime;
    background-color: rgba(17, 17, 17, .8);
    box-sizing: border-box;
    border: .1em solid #333
}

.horizontallyCentered.innerContainer {
    box-shadow: 0em 0em .5em #000
}

.innerContainer {
    background-color: #222;
    border: none
}

.innerContainer:not(.horizontallyCentered) {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1em;
    white-space: normal
}

.pageContainer {
    padding: 1em;
    margin-bottom: 1em;
    margin-top: 1em;
    white-space: normal
}

.pageContent {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0a0 rgba(0, 0, 0, 0)
}

.pageContent::-webkit-scrollbar {
    width: .2vw;
    min-width: 2px;
    background: rgba(0, 0, 0, 0)
}

.pageContent::-webkit-scrollbar-thumb {
    background: #0a0
}

.withSmallBackgroundSign {
    background-image: url(../assets/images/empire_back_dark400.png);
    background-position: center .75em;
    background-repeat: no-repeat;
    background-size: contain
}

.horizontallyCentered {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center
}

.anyHeightCentered {
    display: inline-block;
    vertical-align: middle;
    margin-left: 1em;
    margin-right: 1em
}

.fullScreenFix {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: none
}

.fullScreenContainer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: none
}

.wideFluid {
    box-sizing: border-box;
    width: 100%;
    padding-left: 2em;
    padding-right: 2em
}

.narrowFix {
    width: 22em
}

@media screen and (max-width: 420px) {
    .narrowFix {
        width: 80%
    }
}

.contentWide {
    display: table;
    padding: 1em
}

.transparentContainer {
    padding: 0;
    border: none;
    background-color: rgba(0, 0, 0, 0)
}

.separatorBar {
    display: block;
    margin-left: 0;
    margin-right: 0;
    padding: .4em;
    background: url(../assets/images/empire_white_50.png) left 10px center, url(../assets/images/empire_white_50.png) right 10px center;
    background-color: #111;
    background-repeat: no-repeat;
    box-sizing: border-box;
    border: none
}

.footer {
    position: absolute;
    bottom: 1em;
    width: calc(100% - 2em)
}

table {
    margin-bottom: 1em
}

ul {
    display: table;
    padding: 1em
}

ul[hidden] {
    display: none
}

th,
td {
    padding: .5em
}

th {
    text-align: left;
    color: #fff
}

td {
    box-shadow: 0em 0em .5em #000;
    border: none;
    background-color: #222;
    font-size: .9em
}

li {
    list-style-type: none
}

a,
button {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-variant: small-caps
}

a {
    font-size: 1.1em;
    color: #42ff42
}

button {
    box-shadow: 0em 0em .5em #000;
    border: none;
    min-width: 8.8em;
    font-family: inherit;
    font-size: 120%;
    text-align: center;
    padding: .5em;
    background-color: #222
}

button:active,
button:focus {
    border: none;
    outline: none
}

button.menu {
    display: block;
    margin: .2em;
    min-width: 10em
}

button.menu[hidden] {
    display: none
}

button.separate {
    display: table;
    margin-top: .4em;
    margin-bottom: .4em
}

button.disabled {
    color: #aaa;
    background-color: #1a1a1a;
    cursor: url(../assets/images/cursor.png) 6 6, default;
    pointer-events: none
}

button:hover:not(.disabled):not(.menu),
button.selected {
    background-color: #333;
    transition: all 0s
}

div.horizontalMenu {
    border-spacing: .4em
}

div.horizontalMenu>button {
    display: table-cell;
    vertical-align: middle;
    margin: .4em
}

div.horizontalMenu>button[hidden] {
    display: none
}

a:hover,
button:hover:not(.disabled):not(.menu):not(.listElement),
button.selected {
    color: #fff;
    text-shadow: lime 0 0 .2em, lime 0 0 .2em;
    transition: all 0s
}

a,
button {
    transition: all .2s
}

a,
a:hover,
a:active,
button,
button:hover,
button:active {
    cursor: url(../assets/images/cursor-light.png) 6 6, pointer
}

.clickable:hover {
    color: #fff;
    background-color: #333;
    cursor: url(../assets/images/cursor-light.png) 6 6, pointer
}

.highlightedItem {
    box-shadow: 0em 0em .5em lime inset;
    color: #fff;
    background-color: #333;
    text-shadow: #888 .1em .1em .5em
}

.highlightedText {
    color: #42ff42;
    font-weight: bold
}

.fadedText {
    color: #909090
}

img {
    margin: .5em
}

img.menuHeaderImage {
    width: 15em;
    margin: .5em 0 .5em 0
}

div#splashBackground {
    position: absolute;
    padding: 0;
    margin: 0;
    border: 0;
    width: 100%;
    height: 100%
}

div#splashContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%)
}

@media screen and (max-width: 600px) {
    img#splashImage {
        width: 90%
    }
}

progress#splashProgress {
    margin-top: 1em;
    margin-bottom: 1em
}

p {
    font-size: 100%;
    text-align: left
}

p.centered {
    text-align: center
}

p.sub {
    margin: .5em 0 0 0;
    text-align: center
}

h1 {
    text-shadow: #888 .1em .1em .5em;
    text-align: center;
    font-variant: small-caps;
    font-size: 200%;
    height: 1em;
    margin: 0.2em 0 0.5em 0
}

h2 {
    text-shadow: #888 .1em .1em .5em;
    text-align: center;
    font-variant: small-caps
}

h3 {
    text-shadow: #000 0em 0em .4em;
    text-align: center;
    font-variant: small-caps;
    font-size: 140%;
    margin: .6em;
    padding: .6em
}

.clear:after {
    clear: both;
    content: "";
    display: table
}

.releaseNotes h2 {
    margin: 0
}

.releaseNotes ul {
    margin-top: 0;
    text-align: left
}

.releaseNotes li {
    list-style-type: square;
    margin-bottom: .3em
}

progress[value] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background-color: #444;
    box-shadow: 0 .15em .4em rgba(0, 0, 0, .75) inset;
    width: 18em;
    height: .5em
}

progress[value]::-webkit-progress-bar {
    background-color: #444;
    box-shadow: 0 .15em .4em rgba(0, 0, 0, .75) inset
}

progress[value]::-webkit-progress-value {
    background-image: -webkit-linear-gradient(top, #00ee00, #00aa00);
    box-shadow: 0em 0em .4em #00db00
}

progress[value]::-moz-progress-bar {
    background-image: -moz-linear-gradient(top, #00ee00, #00aa00);
    box-shadow: 0em 0em .4em #00db00
}

input[type=text],
input[type=email],
input[type=password],
textarea {
    color: #ddd;
    font-family: gameFont, Ubuntu light, Verdana, Geneva, sans-serif;
    font-size: 2.2vmin;
    background: #111;
    margin: 0 .5em;
    box-sizing: border-box;
    border: .1em solid #333;
    outline: none
}

input[type=text]:active,
input[type=text]:focus,
input[type=text].focusing,
input[type=email]:active,
input[type=email]:focus,
input[type=email].focusing,
input[type=password]:active,
input[type=password]:focus,
input[type=password].focusing,
textarea:active,
textarea:focus,
textarea.focusing {
    box-shadow: 0em 0em .5em lime;
    outline: none
}

@media screen and (min-aspect-ratio: 2/1) {

    input[type=text],
    input[type=email],
    input[type=password],
    textarea {
        font-size: 2.5vmin
    }
}

input[type=password],
input.password {
    padding-right: 1.4em
}

textarea {
    resize: none;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0a0 rgba(0, 0, 0, 0)
}

textarea::-webkit-scrollbar {
    width: .2vw;
    min-width: 2px;
    background: rgba(0, 0, 0, 0)
}

textarea::-webkit-scrollbar-thumb {
    background: #0a0
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: rgba(0, 0, 0, 0);
    height: 2.5em;
    margin: .25em 0 0 .25em;
    padding: 0;
    cursor: url(../assets/images/cursor.png) 6 6, pointer
}

input[type=range]:hover {
    cursor: url(../assets/images/cursor-light.png) 6 6, pointer
}

input[type=range]:focus {
    outline: none
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 2.4em;
    width: 1.1em;
    margin-top: -0.9em;
    background-color: #333;
    border: .15em solid #555;
    box-shadow: 0em 0em .5em #000
}

input[type=range]::-webkit-slider-thumb:hover {
    background-color: #555;
    border: .15em solid #777
}

input[type=range]::-moz-range-thumb {
    height: 2em;
    width: .7em;
    border-radius: 0;
    background-color: #333;
    border: .15em solid #555;
    box-shadow: 0em 0em .5em #000
}

input[type=range]::-moz-range-thumb:hover {
    background-color: #555;
    border: .15em solid #777
}

input[type=range]::-ms-thumb {
    height: 2.4em;
    width: 1.1em;
    border-radius: 0;
    background-color: #333;
    border: .15em solid #555;
    box-shadow: 0em 0em .5em #000
}

input[type=range]::-ms-thumb:hover {
    background-color: #555;
    border: .15em solid #777
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 1em;
    border: .15em solid #333;
    background-color: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .75) inset
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: .6em;
    border: .15em solid #333;
    background-color: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .75) inset
}

input[type=range]::-ms-track {
    width: 100%;
    height: 1em;
    border: .15em solid #333;
    background-color: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .75) inset
}

.fullscreenButton {
    position: fixed;
    right: .5em;
    bottom: .5em;
    width: 4em;
    height: 4em;
    border: 0;
    margin: 0;
    padding: 0;
    background-image: url(../assets/images/fullscreen.png);
    background-size: cover;
    background-color: rgba(0, 0, 0, 0)
}

.fullscreenButton:hover:not(.disabled) {
    background-color: rgba(0, 0, 0, 0)
}

input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: url(../assets/images/cursor-light.png) 6 6, default;
    height: 1.5em;
    width: 1.1em;
    margin: .5em .5em -0.2em .5em;
    background-color: #333;
    border: .15em solid #555
}

div:hover>input[type=checkbox] {
    background-color: #555;
    border: .15em solid #777
}

input[type=checkbox]:checked {
    background-color: lime;
    background-image: -webkit-radial-gradient(#55ff55, #00aa00);
    box-shadow: 0em 0em .4em #00db00
}

div:hover>input[type=checkbox]:checked {
    box-shadow: 0em 0em .5em lime
}

label {
    cursor: url(../assets/images/cursor.png) 6 6, default
}

div.wrapper {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0
}

span.passwordEye {
    display: block;
    position: absolute;
    right: .3em;
    top: .75em;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
    border: 0;
    background: url(../assets/images/eye.png);
    background-size: cover
}

span.passwordEye.crossed {
    background-position-y: 100%
}

.topRight {
    position: absolute;
    top: 1em;
    right: 1em
}

div.helpButton {
    width: 1.2em;
    height: 1.2em;
    box-sizing: border-box;
    padding: .1em;
    border-radius: .6em;
    background-color: #ddd;
    color: #000;
    font-weight: bold;
    z-index: 1000
}

div.helpButton::after {
    content: "?"
}

div.helpButton:hover {
    background-color: #fff
}

.popupBackground {
    background-color: rgba(64, 64, 64, .5)
}

.gameVersion {
    font-family: hudFont;
    font-size: .5em;
    position: absolute;
    left: 1em;
    bottom: 1em
}