@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@font-face {
    font-family: 'Miedinger-Regular';
    src: url('/ttf/Miedinger-Regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}
@font-face {
    font-family: 'Miedinger-Bold';
    src: url('/ttf/Miedinger-Bold.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}
@font-face {
    font-family: 'Asap-Regular';
    src: url('/ttf/Asap-Regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}
@font-face {
    font-family: 'Asap-Bold';
    src: url('/ttf/Asap-Bold.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

html, html > body {
    height: 100%;
}

.map > #loading-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    background-image: url("/img/3.5/ui/loading-gfx.gif");
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: 200px 150px;
    z-index: 10000;
}
.map > #loading-banner > span {
    display: inline-block;
    color: #000;
    font-family: 'Roboto Mono', monospace;
    position: absolute;
    animation: FadeIn 4s ease-in forwards;
    animation-iteration-count: infinite;
    top: calc(50% - 11px);
    left: calc(50% - 150px);
}

.map > canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    background-size: cover;
    background-position: center center;
}

.map canvas#map {
    z-index: 0;
}
.map canvas#hud {
    z-index: 1;
    background-color: transparent;
    display: none;
}
.map > .top-left-panel {
    position: absolute;
    z-index: 1111;
    top: 0;
    left: 0;
    padding-left: 0;
    padding-bottom: 0;
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    font-size: smaller;
    display: inline-block;
}
.map > .top-left-panel-normal {
    width: 70%;
    height: calc(100% - 20px);
}
.map > .top-left-panel-minimized {
    width: 1%;
    height: 68px;
}
.map > .top-left-panel-maximized {
    width: 100%;
    height: 100%;
}
.map > .top-left-panel-maximized .folder-left {
    background: none;
    padding: 0;
    height: 100%;
}
.map > .top-left-panel-maximized .folder-left .icon {
    display: none;
}
.map .folder-left .close-map {
    display: none;
}
.map > .top-left-panel-maximized .folder-left .close-map {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url('/img/3.5/ui-icons/cross-close-icon.svg') no-repeat no-repeat;
    background-size: contain;
    cursor:pointer;
    z-index: 1000;
}
.hud {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 2s cubic-bezier(0, 0.72, 0, 1);
    display: inline-block;
}
.hud:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transition: background-color 2s cubic-bezier(0, 0.72, 0, 1);
}

.map > .top-left-panel-maximized .count-down-list { display: block; }
.map > .top-left-panel-normal .count-down-list { display: none; }
.map > .top-left-panel-minimized .count-down-list { display: none; }

.map > .top-left-panel .count-down-list {
    position: absolute;
    left: 30px;
    top: 30px;
    z-index: 1200;
}

.map > .top-left-panel .count-down-list { font-family: 'Asap-Regular', serif; color: #868686; }
.map > .top-left-panel .count-down-list .count-down-element { padding-bottom: 4px; }
.map > .top-left-panel .count-down-list .count-down-element:first-child { padding-bottom: 14px; color: #c2c2c2; }
.map > .top-left-panel .count-down-list .count-down-element:hover { color: #ffffff; }
.map > .top-left-panel .count-down-list .count-down-element:first-child > timer { font-size: 30px; line-height: 52px; }
.map > .top-left-panel .count-down-list .count-down-element:first-child > timer > span > span { font-size: 45px; }
.map > .top-left-panel .count-down-list .count-down-element:first-child .count-down-message { font-size: 20px; }

.map > .top-left-panel .count-down-list timer {
    font-family: 'Miedinger-Bold';
    font-size: 20px;
}
.map > .top-left-panel .count-down-list timer > span > span {
    font-family: 'Miedinger-Bold';
    font-size: 15px;
}

.map .control-panel {
    z-index: 1;
    position: absolute;
    top: 10px;
    left: 10px;
}

.map > .right-panel {
    position: absolute;
    z-index: 1111;
    top: 0;
    right: 0;
    width: 540px;
    padding-right: 10px;
    height: 100%;
    background-color: transparent;
    color: #0082c5;
    /*overflow-y: scroll;*/
    /*font-family: 'Roboto Mono', monospace;*/
    font-family: 'Asap-Regular', serif;
    animation: appear 0.3s ease-in;
    display: flex;
    flex-direction: column;
}

.map > .right-panel .top-section { width: 100%; height: 24vh; }
.map > .right-panel .bottom-section { width: 100%; height: calc(100% - 20vh); display: flex; flex-direction: row; }
.map > .right-panel .working-section { width: calc(100% - 50px); }
.map > .right-panel .working-section > div { height: 100%; }
.map > .right-panel .working-section > div > .folder { height: 100%; }
.map > .right-panel .tab-section { width: 50px; }
.map > .right-panel .tab { height: 64px; }
.map > .right-panel .working-section .folder .icon { cursor: pointer; }
.map > .right-panel .tab-section .folder .icon { cursor: pointer; }
.map > .right-panel .bottom-section .folder-content {
    height: 100%;
    padding: 1ch 2ch 0 2ch;
    overflow: hidden;
    transition: background-color 2s cubic-bezier(0, 0.72, 0, 1);
    margin-top: 1px;
}
.map > .right-panel .bottom-section:hover .folder-content {
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 2s cubic-bezier(0, 0.72, 0, 1);
}

.map > .right-panel .working-section .folder-content {
    font-family: 'Asap-Regular', serif;
}
.map > .right-panel .working-section .folder-content > .text {
    display: inline-block;
    color: white;
}
.map > .right-panel .working-section .folder-content > .text > .value {
    display: inline-block;
    font-family: 'Asap-Bold', serif;
    font-size: 2em;
}
.map > .right-panel .working-section .folder-content > .text > .units {
    display: inline-block;
    font-weight: normal;
    font-size: 1.1em;
}

span.planet-icon { display: inline-block; line-height: 20px; vertical-align: middle; height: 20px; width: 20px; background-position: center center; background-repeat: no-repeat; }
.own span.planet-icon { background-image: url('/img/basic_planet.png'); }
.ally span.planet-icon { background-image: url('/img/basic_planet_yellow.png'); }
.enemy span.planet-icon { background-image: url('/img/basic_planet_red.png'); }
.unknown span.planet-icon { background-image: url('/img/basic_planet_white.png'); }

span.ship-icon { display: inline-block; line-height: 20px; vertical-align: middle; height: 30px; width: 20px; background-position: center center; background-repeat: no-repeat; }
.own span.ship-icon { background-image: url('/img/basic_ship.png'); }
.enemy span.ship-icon { background-image: url('/img/basic_ship_red.png'); }
.ally span.ship-icon { background-image: url('/img/basic_ship_yellow.png'); }


.map > .right-panel .owner,
.map > .right-panel .planet .geography,
.map > .right-panel .planet .settlers,
.map > .right-panel .planet .natives,
.map > .right-panel .block-panel {
    padding-top: 5px;
    padding-bottom: 5px;
}

.map > .right-panel .owner > span {
    font-family: 'Asap-Regular', serif;
    display: inline-block;
    font-size: 2em;
}
.map > .right-panel .owner > img { display: inline-block; width: 90px; height: 90px; }
.map > .right-panel .own .owner > img { border: 1px solid #5555FF; }
.map > .right-panel .enemy .owner > img { border: 1px solid #ff5555; }
.map > .right-panel .unknown .owner > img { border: 1px solid #aaaaaa; }

.map > .right-panel > .planet, .map > .right-panel > .ship { height: 100%; }
.map > .right-panel .planet .own, .map > .right-panel .planet .own td { color: #ffffff; }
.map > .right-panel .planet .own td.border { border: 1px solid #ffffff; }
.map > .right-panel .planet .enemy, .map > .right-panel .planet .enemy td { color: #ff5555; }
.map > .right-panel .planet .enemy td.border { border: 1px solid #ff5555; }
.map > .right-panel .planet .unknown, .map > .right-panel .planet .unknown td { color: #aaaaaa; }
.map > .right-panel .planet .unknown td.border { border: 1px solid #aaaaaa; }
.map > .right-panel .planet .ally, .map > .right-panel .planet .ally td { color: #ffff55; }
.map > .right-panel .planet .ally td.border { border: 1px solid #ffff55; }

.map > .right-panel .planet .own .starbase, .map > .right-panel .planet .own .starbase td { color: #5555FF; }

.map > .right-panel .planet .orbiting-ships { padding-top: 10px; }
.map > .right-panel .planet .orbiting-ships ul { list-style: none; padding-left: 15px; }
.map > .right-panel .planet .orbiting-ships .ship a { text-decoration: none; cursor: pointer; font-weight: bold; line-height: 25px; vertical-align: center; }
.map > .right-panel .planet .orbiting-ships .ship .own { color: #00aa00; }
.map > .right-panel .planet .orbiting-ships .ship .enemy { color: #aa0000; }
.map > .right-panel .planet .orbiting-ships .ship .unknown { color: #555555; }
.map > .right-panel .planet .orbiting-ships .ship .ally { color: #aaaa00; }
.map > .right-panel .planet .orbiting-ships .ship .own:hover { color: #55ff55; }
.map > .right-panel .planet .orbiting-ships .ship .enemy:hover { color: #ff5555; }
.map > .right-panel .planet .orbiting-ships .ship .unknown:hover { color: #aaaaaa; }
.map > .right-panel .planet .orbiting-ships .ship .ally:hover { color: #ffff55; }

.map > .right-panel .ship .own, .map > .right-panel .ship .own td { color: #00AAAA; }
.map > .right-panel .ship .own td.border { border: 1px solid #00AAAA; }

.map > .right-panel span.warning { color: yellow; }
.map > .right-panel span.danger { color: #aa0000; }

.map > .right-panel td.border {
    padding-right: 3px;
}
.map > .right-panel .ship td > input, .map > .right-panel .taxes {
    width: 100%;
    display: inline-block;
    padding: 0;
    border: none;
    background-color: transparent;
    color: #00AAAA;
    text-align: right;
}
.map > .right-panel .ship td > input {
    height: 14px;
}
.map > .right-panel .taxes {
    height: 45px;
}

.map > .right-panel .infrastructures td > input, .map > .right-panel .taxes input {
    max-width: 50%;
    width: 60px;
    display: inline-block;
    padding: 2px 0 2px 0;
    border: none;
    background-color: transparent;
    color: #00AAAA;
    text-align: right;
}
.map > .right-panel .infrastructures td > input {
    height: 14px;
}
.map > .right-panel .infrastructures td > input:focus, .map > .right-panel .taxes input:focus {
    border: none;
}

.map .selection-list > ul {
    padding-top: 5px;
    padding-left: 5px;
    list-style: none;
}

.map .selection-list > ul > li {
    padding-top: 1px;
    padding-bottom: 1px;
}

.map .selection-list > ul > li > div {
    display: inline-block;
    cursor: pointer;
}

.map .selection-list > ul > li > div:hover {
    color: #00aaff;
}

.map .selection-list > ul > li > div > img {
    padding-right: 5px;
}

.map .selected-element > div {
    padding-top: 10px;
}

.map .selected-element table {
    font-size: 14px;
}

.map .selected-element td {
    text-align: right;
}

.custom-button:hover {
    cursor: pointer;
}

.map-label {
    display: inline;
    cursor: default;
    padding: .2em .6em .3em;
    font-family: 'Asap-Bold', serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 1px #000000;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.map-description {
    margin-top: 138px;
    min-height: 300px;
    width: 200px;
    /*border: 1px solid #cccccc;*/
    padding: 45px 15px 50px 15px;
    font-family: 'Asap-Bold', serif;
    font-size: 12px;
    /*background-color: #2a2d2c;*/
    background-image: url('/img/3.5/ui-icons/preview-selection.svg');
    background-position: top center;
    background-repeat: no-repeat no-repeat;
    background-size: contain;
    color: white;
}

.map-description .owner span {
    display: block;
}
.map-description .owner img {
    display: block;
    height: 40px;
    width: 40px;
}
.map-description .own .owner > span { color: #1ec8ec; }
.map-description .enemy .owner > span { color: #ff3300; }
.map-description .unknown .owner > span { color: #aaaaaa; }
.map-description .own .owner > img { border: 2px solid #1ec8ec; }
.map-description .enemy .owner > img { border: 2px solid #ff3300; }
.map-description .unknown .owner > img { border: 2px solid #aaaaaa; }
.map-description .resources,
.map-description .buildings,
.map-description .owner,
.map-description .technology,
.map-description .cargo {
    background-repeat: no-repeat no-repeat;
    background-size: 25px 25px;
    background-position: 0 5px;
    position: relative;
    padding-left: 35px;
}
.map-description .cargo {
    background-image: url('/img/3.5/ui-icons/production.svg');
    min-height: 70px;
}
.map-description .technology {
    background-image: url('/img/3.5/ui-icons/technology.svg');
    min-height: 60px;
}
.map-description .owner {
    background-image: url('/img/3.5/ui-icons/colony.svg');
    min-height: 70px;
}
.map-description .resources {
    background-image: url('/img/3.5/ui-icons/production.svg');
    min-height: 80px;
}
.map-description .buildings {
    background-image: url('/img/3.5/ui-icons/building.svg');
    min-height: 70px;
}
.map-description .cargo > span.warning {
    color: orangered;
}

.map-description button {
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    background-color: #273116;
    color: #4a5b2d;
    border: 1px solid white;
    font-size: 20px;
    border-radius: 4px;
    margin-top: 10px;
}

.map-description button:hover {
    background-color: #a7c47d;
    color: #292f20;
}

.movement-preview {
    padding: 3px;
}
.movement-preview table tbody tr td, .movement-preview table thead tr th {
    border: 1px solid #00aaff;
    padding: 4px;
}
.movement-preview table tbody tr:hover {
    background-color: #00aaff;
}
.movement-preview table tbody tr:hover td {
    color: black;
    cursor: pointer;
}
.movement-preview table .speed {
    text-align: left;
}
.movement-preview table .cost, .movement-preview table .time {
    text-align: right;
}

.landing-background {
    padding-top: 10px;
    background-image: url('/img/3.5/ui/stars_4k.jpg');
    image-rendering: smooth;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-size: 400%;
    background-color: #000000;
    display: inline-block;
    height: 100%;
    width: 100%;
    animation: pulse 300s infinite;
    -webkit-font-smoothing: antialiased;
}
@keyframes pulse {
    0% {
        background-size: 400%;
    }
    50% {
        background-size: 600%;
    }
    100% {
        background-size: 400%;
    }
}

.landing-background > .container > div.title {
    position: absolute;
    top: calc(50% - 200px);
    left: calc(50% - 200px);
    background-image: url('/img/3.5/ui/moon_400x400.png');
    width: 400px;
    height: 400px;
    background-color: transparent;
    animation: appear 10s ease-in;
    font-family: 'Miedinger-Regular', monospace;
}
@keyframes appear {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.landing-background > .container > div.title > div {
    position: relative;
    width: 400px;
    height: 400px;
}
.landing-background > .container > div.title > div > a {
    position: absolute;
    display: inline-block;
    text-align: center;
    top: 130px;
    width: 400px;
    height: 400px;
    color: white;
    text-decoration: none;
    font-size: 28px;
}
.landing-background .footer {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #a3a3a3;
    font-size: 14px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.check-margin10 { margin-left: 10px; }

.map {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.map > #preview {
    position: absolute;
    z-index: 1111;
    width: 30%;
    height: 50%;
    border: none;
    background:none!important;
}

.map > #preview:focus {
    border: none;
}

.map > .bottom-panel {
    position: absolute;
    z-index: 1111;
    bottom: 0;
    left: 0;
    padding-left: 10px;
    padding-bottom: 5px;
    color: #00aaff;
    font-family: 'Roboto Mono', monospace;
    font-size: smaller;
    max-height: 400px;
    max-width: 500px;
}

@keyframes FadeIn {
    0% { color: #ffffff; }
    90% { color: #005e6f; }
    95% { color: #224421; }
    100% { color: transparent; }
}
.map > .bottom-panel > .system-messages span {
    color: #ffffff;
    animation: FadeIn 8s ease-in forwards;
}

/* -- AUDIO -- */

.map > .bottom-panel > .now-playing span {
    display: inline-block;
    text-align: right;
    width: 100%;
}
.map > .bottom-panel > .now-playing span.track-name {
    font-family: 'Miedinger-Bold';
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
    color: white;
}
.map > .bottom-panel > .now-playing span.track-artist {
    font-family: 'Asap-Bold', serif;
    display: inline-block;
    font-weight: normal;
    font-size: 1em;
    color: white;
}
.now-playing-container {
    padding-top: .5em;
}
/* -- SVG ICONS -- */
.right-panel .row  {
    position: relative; display: block; width: 100%; height: .9em; margin: 4px 0 4px 0;
}
.right-panel .lg {
    height: .9em;
    font-size: 34px;
}
.right-panel .row > .icon {
    position: absolute; left: 0; bottom: 0;
    display: inline-block;
    width: .8em;
    height: .9em;
    background-repeat: no-repeat;
    background-position: center center;
}
.right-panel .row > .text {
    position: absolute; bottom: 0; left: 1.1em;
    display: inline-block;
    color: white;
}
.right-panel .row > .text > .value {
    font-family: 'Asap-Bold', serif;
    display: inline-block;
    font-weight: bold;
    font-size: .6em;
}
.right-panel .row > .text > .units {
    font-family: 'Asap-Regular', serif;
    display: inline-block;
    font-size: 0.4em;
}

.icon-radius { background-image: url('/img/3.5/ui-icons/radius.svg'); }
.icon-temperature { background-image: url('/img/3.5/ui-icons/temperature.svg'); }
.icon-alert { background-image: url('/img/3.5/ui-icons/alert.svg'); }
.icon-natives { background-image: url('/img/3.5/ui-icons/native.svg'); }
.icon-colonists { background-image: url('/img/3.5/ui-icons/colony.svg'); }
.icon-buildings { background-image: url('/img/3.5/ui-icons/building.svg'); }
.icon-production { background-image: url('/img/3.5/ui-icons/production.svg'); }
.icon-fleet { background-image: url('/img/3.5/ui-icons/fleet.svg'); }
.icon-starbase { background-image: url('/img/3.5/ui-icons/hangar.svg'); }
.planet-name { font-family: 'Miedinger-Bold'; color: white; font-size: 16px; text-wrap: nowrap; }

.header-separator { display: inline-block; width: 100%; height: 20px; }
.multi-cols { position: relative; margin-top: 8px; }
.first-col, .second-col { position: absolute; top: 0; width: 50%; height: 100%; padding-right: 5px; }
.first-col { left: 0; }
.second-col { right: 0; text-align: right; }

.folder-left {
    background-image: url('/img/3.5/ui-icons/folder-left.svg');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 283px;
    min-height: 64px;
    padding-right: 50px;
    padding-top: 2px;
    position: relative;
}
.top-left-panel .folder-left > .icon {
    position: absolute;
    right: 7px; top: 7px;
    display: inline-block;
    font-size: 34px;
    width: 1.2em;
    height: 1.2em;
    background-repeat: no-repeat;
    background-position: center center;
}

.folder {
    background-image: url('/img/3.5/ui-icons/folder.svg');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 283px;
    min-height: 64px;
    padding-left: 50px;
    position: relative;
    padding-top: 2px;
}
.right-panel .folder > .icon {
    position: absolute; left: 7px; top: 7px;
    display: inline-block;
    font-size: 34px;
    width: 1.2em;
    height: 1.2em;
    background-repeat: no-repeat;
    background-position: center center;
}
.map > .right-panel .planet .owner {
    height: 115px;
}

.planet .bar-container { display: inline-block; width: 100%; height: 18px; }
.planet .bar-container > .bar {
    display: inline-block;
    height: 100%;
    background-image: url('/img/3.5/ui-icons/population-bar.png');
    background-repeat: repeat-x;
    background-position: left center;
}
.planet .bar-container > .Happy { background-color: #15b200; }
.planet .bar-container > .Calm { background-color: #a3f000; }
.planet .bar-container > .Unhappy { background-color: #e7fc01; }
.planet .bar-container > .Angry { background-color: #fe8500; }
.planet .bar-container > .Rioting { background-color: #ff0101; }
.planet .bar-container > .CivilWar { background-color: #b32e43; }

span.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    width: 100%;
    overflow: hidden;
}
