/*
 * base.css — survivors of the legacy ui.css, extracted mechanically (CSS migration Phase B).
 * Every rule here was verified LIVE (removing it changes rendering) or confirmed by grep to be
 * needed for a state the audit tour could not trigger (hover, mid-combat, mid-dossier, toggled
 * button attributes) — see scripts/verify/ui-css-audit.mjs and its report for the methodology.
 * osada-theme.css loads AFTER this file and still overrides everything it needs to; this file
 * only supplies what osada-theme.css assumes already exists (fonts, panel display defaults,
 * sprite math, base document/canvas layout, tooltip/dialog infrastructure).
 */

/* ---- Fonts (@font-face) ---- */
@font-face {
    font-family: unitInfo;
    font-weight: bold;
    src: url("../resources/fonts/m04b.TTF") format("truetype");
}

@font-face {
    font-family: coreUnitFont;
    src: url("../resources/fonts/m04.ttf") format("truetype");
}

@font-face {
    font-family: osada;
    src: url("../resources/fonts/osada.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: osada-menu;
    src: url("../resources/fonts/osada-menu.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ---- Base document / canvas layout ---- */
.uiMessageBoxBody {
    border: 0px solid rgb(255, 255, 255);
    position: absolute;
    top: 30px;
    left: 5px;
    width: 340px;
    height: 135px;
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: normal;
    overflow: hidden auto;
}

#gameToolTipOk {
    position: absolute;
    top: 105px;
    left: 220px;
}

/* The stylesheet half of index.html's dark-mode-extension opt-out: this page is dark on purpose,
 * so native controls, scrollbars and any UA-level auto-darkening should treat it as already dark
 * rather than inverting it (and its sprite sheets) a second time. */
:root {
    color-scheme: dark;
}

body, html {
    margin: 0px;
    padding: 0px;
    border: 0px;
    height: 100%;
    overflow: hidden;
    background: url("../resources/ui/page/images/mainbg.png") black;
}

#game {
    position: relative;
    overflow: auto;
    margin: 0px auto;
    border: 0px solid black;
    outline: 0px;
    transform-origin: 0px 0px;
}

canvas, img {
    image-rendering: -webkit-optimize-contrast;
}

* {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    user-select: none;
}

/* ---- Start menu: panels, campaign/scenario browser, save-load ---- */
#startmenu {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    color: rgb(248, 224, 100);
    font-weight: bold;
    font-family: Arial;
    font-size: 12px;
    text-shadow: black 0.1em 0.1em 0.2em;
    z-index: 300;
    display: none;
    background-color: black;
}

.animatedBackground span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    animation: 120s linear 0s infinite normal none running backgroundAnimation;
}

.animatedBackground li:nth-child(1) span {
    background-image: url("../resources/ui/dialogs/startmenu/images/startmenu-1.jpg");
}

.animatedBackground li:nth-child(2) span {
    background-image: url("../resources/ui/dialogs/startmenu/images/startmenu-2.jpg");
    animation-delay: 20s;
}

.animatedBackground li:nth-child(3) span {
    background-image: url("../resources/ui/dialogs/startmenu/images/startmenu-3.jpg");
    animation-delay: 40s;
}

.animatedBackground li:nth-child(4) span {
    background-image: url("../resources/ui/dialogs/startmenu/images/startmenu-4.jpg");
    animation-delay: 60s;
}

.animatedBackground li:nth-child(5) span {
    background-image: url("../resources/ui/dialogs/startmenu/images/startmenu-5.jpg");
    animation-delay: 80s;
}

.animatedBackground li:nth-child(6) span {
    background-image: url("../resources/ui/dialogs/startmenu/images/startmenu-6.jpg");
    animation-delay: 100s;
}

.mainPanel {
    inset: 0px;
    margin: auto;
    position: absolute;
    padding: 10px;
    height: 80%;
    max-height: 720px;
    max-width: 850px;
    width: 85%;
    align-content: stretch;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid rgb(248, 224, 100);
    border-radius: 5px;
}

.mainPanelInner {
    right: 0px;
    bottom: 72px;
    left: 0px;
    margin: auto;
    position: absolute;
    padding: 10px;
    height: 50px;
    width: 85%;
    align-content: stretch;
}

#smNewGame, #smCamp, #smScen, #smState {
    display: none;
}

.settingContainer {
    width: 90%;
    min-height: 30px;
    padding-left: 5%;
}

.settingContainer:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.settingText {
    height: 32px;
    line-height: 30px;
    font-size: 14px;
    font-weight: normal;
}

.settingValue {
    font-family: osada-menu;
    font-size: 22px;
    font-weight: normal;
    text-align: center;
    color: rgb(255, 153, 0);
    margin-right: 85px;
    cursor: pointer;
}

.smBottomCenter {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    min-height: 75px;
    margin-left: auto;
    margin-right: auto;
}

.smMainButton, .smMainButtonLight {
    width: 115px;
    height: 40px;
    margin: 3px;
    border-radius: 5px;
    background-color: rgb(0, 0, 0);
    box-shadow: rgba(0, 0, 0, 0.75) 1px 2px 3px, rgba(0, 0, 0, 0.16) 0px 0px 0px 5px inset;
    border: 3px solid rgb(255, 153, 0);
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0) 48%, rgba(255, 255, 255, 0) 49%, rgba(255, 255, 255, 0.09) 49%, rgba(255, 255, 255, 0.2));
    font-family: Arial;
    font-size: 14px;
    font-weight: bold;
    color: rgb(255, 153, 0);
    line-height: 40px;
    text-align: center;
    letter-spacing: 0px;
    cursor: pointer;
    float: left;
}

.smMainButtonLight {
    border: 3px solid rgb(255, 255, 255);
    color: rgb(51, 204, 255);
}

.smMainButton input {
    position: relative;
    top: -50px;
    width: 125px;
    height: 40px;
    opacity: 0;
    cursor: pointer;
}

input[type="text"], input[type="search"] {
    width: 280px;
    height: 24px;
    border-radius: 5px;
    background-color: rgb(0, 0, 0);
    border: 1px solid rgb(255, 153, 0);
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    color: rgb(255, 255, 255);
    text-align: center;
    letter-spacing: 0px;
}

#smMiscButs {
    position: absolute;
    top: 99px;
    right: 0px;
    display: flex;
}

#smHelp, #smPlatform, #smFacebook, #smIssues {
    text-decoration: none;
    border-color: aliceblue;
    color: rgb(51, 204, 255);
    font-size: 18px;
    margin-right: 0px;
}

#smPlatform {
    font-size: 26px;
}

#smGBackBut, #smSPlayBut, #smCPlayBut, #smSetOkBut, #smStOkBut {
    position: absolute;
    bottom: 5px;
    right: 0px;
}

#smCFlowBut {
    position: absolute;
    bottom: 5px;
    right: 80px;
}

.smSelect {
    width: 90%;
    margin: 0px auto;
    padding-left: 15px;
    border: 1px solid rgb(85, 85, 85);
    background: url("../resources/ui/dialogs/startmenu/images/arrow-down.png") right center no-repeat;
    overflow: hidden;
    appearance: none;
    font-size: 14px;
    color: white;
}

.smSelect select {
    background: transparent;
    font-size: 14px;
    font-weight: bold;
    color: white;
    width: 100%;
    height: 35px;
    border: 0px;
    appearance: none;
}

.smSelect option:disabled {
    background-color: rgb(85, 85, 85);
    color: rgb(248, 224, 100);
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
}

#smCampInfo {
    width: 460px;
    margin: 0px auto;
    padding-top: 10px;
}

.smCampDetails {
    float: left;
    width: 110px;
    height: 60px;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
    color: white;
    line-height: 30px;
}

#smScenDesc {
    height: 45%;
}

#smCampDesc {
    height: 45%;
}

.smSideHeader {
    width: 80px;
    height: 20px;
    margin: 0px auto;
    font-size: 14px;
}

#smVS {
    width: 20px;
    float: left;
}

#smSide0, #smSide1 {
    float: left;
    width: 40%;
}

#smScenPlayers {
    padding-top: 5px;
    width: 470px;
    margin: 0px auto;
}

.smPlayerContainer {
    width: 200px;
    float: left;
    margin: 0px auto;
}

.smPlayerContainer > img {
    float: right;
}

.playerName {
    float: left;
    margin-top: 5px;
    margin-right: 10px;
    margin-left: 5px;
    font-weight: normal;
    font-size: 14px;
    color: white;
}

.playerCountry {
    margin-top: 5px;
    height: 14px;
    width: 22px;
    background-image: url("../resources/ui/flags/eqp-adlerkorps/flags_med.png");
    background-repeat: no-repeat;
    background-position: -147px 0px;
    float: left;
}

.smStateDesc {
    width: 400px;
    height: 55px;
    margin: 0px auto;
    padding-top: 2px;
    padding-bottom: 5px;
    font-weight: normal;
    font-size: 14px;
    color: white;
    text-align: center;
}

.smMainButton {
    width: 113px;
    height: 40px;
    margin: 2px;
    border-radius: 5px;
    background-color: rgb(0, 0, 0);
    box-shadow: rgba(0, 0, 0, 0.75) 1px 2px 3px, rgba(0, 0, 0, 0.16) 0px 0px 0px 3px inset;
    border: 1px solid rgb(255, 153, 0);
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0) 48%, rgba(255, 255, 255, 0) 49%, rgba(255, 255, 255, 0.09) 49%, rgba(255, 255, 255, 0.2));
    font-family: Arial;
    font-size: 14px;
    font-weight: bold;
    color: rgb(255, 153, 0);
    line-height: 40px;
    text-align: center;
    letter-spacing: 0px;
    cursor: pointer;
    float: left;
}

/* ---- Equipment window (buy/upgrade/sell) ---- */
#container-unitlist {
    border: 0px solid rgb(255, 255, 255);
    position: fixed;
    width: 840px;
    margin-left: -420px;
    left: 50%;
    top: 30px;
    color: rgb(255, 255, 255);
    font-size: 12px;
    z-index: 98;
    display: none;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

#equipment {
    position: fixed;
    width: 840px;
    left: 50%;
    margin-left: -420px;
    top: 125px;
    color: rgb(255, 255, 255);
    font-weight: normal;
    font-family: Arial;
    font-size: 12px;
    text-shadow: black 0.1em 0.1em 0.2em;
    background: no-repeat rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    z-index: 98;
    display: none;
    overflow: hidden;
    float: left;
}

#eqSortButtonsContainer {
    height: 30px;
    float: left;
    margin-top: 1px;
}

#eqInfoText {
    height: 20px;
    float: left;
    margin-top: 7px;
    margin-left: 10px;
    font-size: 14px;
    color: rgb(248, 224, 100);
    overflow: hidden;
}

#eqSelClass {
    border: 0px solid rgb(255, 255, 255);
    overflow: hidden;
    width: 360px;
    float: right;
    margin-top: 1px;
    margin-left: 50px;
    z-index: 100;
}

.eqCostText img {
    margin-left: 1px;
    vertical-align: middle;
    white-space: nowrap;
}

#eqHeaderSpacer {
    float: left;
    width: 100%;
    height: 0px;
    margin-top: 5px;
    border-bottom: 1px solid rgb(248, 224, 100);
}

#eqButtonsContainer {
    float: right;
    min-height: 40px;
    width: 100%;
    border-top: 1px solid rgb(248, 224, 100);
}

#eqSortOptions {
    position: relative;
    display: none;
    z-index: 101;
    min-height: 40px;
    width: 100%;
    top: 0px;
    border-top: 1px solid rgb(248, 224, 100);
    float: right;
    font-size: 14px;
}

#eqSortInfo {
    float: left;
    margin-top: 10px;
    margin-left: 5px;
    width: 30%;
    overflow: hidden;
}

#eqSortOptionsContainer {
    float: left;
    margin-top: 5px;
}

#eqSelCountry {
    position: relative;
    top: 6px;
    left: 2px;
    height: 26px;
    width: 22px;
    background-image: url("../resources/ui/flags/eqp-adlerkorps/flags_med.png");
    background-repeat: no-repeat;
    background-position: -147px 0px;
    z-index: 100;
}

#eqSellBut, #eqNewBut, #eqUpgradeBut, #eqSortCloseBut, #eqCloseBut, #eqSelCountryButton {
    float: right;
    margin-top: 5px;
}

#eqSortOrderBut, #eqSortOptionsBut {
    float: left;
    margin-left: 3px;
    margin-right: 3px;
}

#eqUserSel {
    z-index: 0;
    display: none;
    width: 0px;
    height: 0px;
}

.eqUnitBox {
    border: 0px solid rgb(255, 255, 255);
    width: 94px;
    height: 78px;
    background-image: url("../resources/ui/dialogs/equipment/images/unit-box.png");
    background-repeat: no-repeat;
    margin-top: 0px;
    margin-bottom: 3px;
    margin-right: 8px;
    overflow: hidden;
    position: relative;
    float: left;
    font-weight: normal;
    font-family: sans-serif;
    font-size: 12px;
}

.eqUnitBox:hover {
    background-image: url("../resources/ui/dialogs/equipment/images/unit-box-pressed.png");
    background-repeat: no-repeat;
}

.eqUnitBox[selectedunit] {
    background-image: url("../resources/ui/dialogs/equipment/images/unit-box-pressed-over.png");
    background-color: rgba(41, 41, 41, 0.9);
    border-radius: 5px;
}

.eqUnitBox[coreunit] {
    background-image: url("../resources/ui/dialogs/equipment/images/unit-box-core.png");
    color: rgb(248, 224, 100);
}

.eqUnitBox > img:first-child {
    position: absolute;
    left: -240px;
    clip: rect(0px, 320px, 50px, 240px);
}

.eqUnitBox img {
    margin-left: 2px;
    vertical-align: middle;
}

.eqUnitBoxIconsMenu {
    font-family: osada-menu;
    font-size: 18px;
    color: rgb(51, 204, 255);
}

.eqUnitBoxIcons {
    font-family: osada;
    font-size: 14px;
    color: rgb(51, 204, 255);
}

.eqUnitBox div {
    border: 0px solid rgb(255, 255, 255);
    position: relative;
    top: 50px;
    text-shadow: none;
    text-align: center;
    white-space: nowrap;
}

/* ---- Unit info card (legacy shell — OSADA repositions via osada-theme.css) ---- */
#unit-context {
    position: fixed;
    z-index: 97;
    border-top: 1px solid rgb(248, 224, 100);
    top: 100%;
    margin-top: -110px;
    background: rgba(0, 0, 0, 0.7);
    padding-top: 3px;
    padding-bottom: 5px;
    float: left;
    left: 50%;
    margin-left: -22px;
    display: none;
    border-radius: 5px;
}

#unit-info {
    position: fixed;
    z-index: 90;
    border: 0px solid white;
    width: 840px;
    top: 100%;
    margin-top: -70px;
    left: 50%;
    margin-left: -420px;
    padding: 0px;
    display: none;
    font-family: Arial;
    font-size: 12px;
    font-weight: bold;
    text-shadow: black 0.1em 0.1em 0.2em;
    color: rgb(248, 224, 100);
}

.statsGlyph {
    font-family: osada-menu;
    font-size: 26px;
    font-weight: normal;
    text-align: center;
    color: rgb(255, 181, 6);
    text-shadow: rgba(0, 0, 0, 0.7) -1px -1px 0px, rgba(0, 0, 0, 0.7) 1px -1px 0px, rgba(0, 0, 0, 0.7) -1px 1px 0px, rgba(0, 0, 0, 0.7) 1px 1px 0px;
    float: left;
    margin-top: 3px;
}

.statsText {
    min-width: 30px;
    font-family: Arial;
    font-size: 12px;
    font-weight: bold;
    text-shadow: black 0.1em 0.1em 0.2em;
    color: rgb(248, 224, 100);
    text-align: center;
}

.nameRow {
    float: left;
    border: 0px solid yellow;
    width: 100%;
    padding: 0px;
}

.statsRow {
    width: 100%;
    height: 70px;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 5px;
    border-top: 1px solid rgb(248, 224, 100);
    margin: 0px auto;
}

#uImageBg {
    float: left;
    border: 0px solid yellow;
    width: 80px;
    height: 50px;
    background-image: url("../resources/ui/dialogs/equipment/images/unit-box-pressed.png");
    background-repeat: no-repeat;
}

#uImage, .uImageAnimation {
    border: 0px solid rgb(255, 255, 255);
    width: 80px;
    height: 50px;
    animation: 2s steps(9) 0s infinite alternate none running unitanim;
    background: url("../resources/units/images/pa924.png");
}

.uSpacer {
    min-width: 15px;
    font-size: 0px;
    height: 10px;
    line-height: 0;
    display: inline-block;
}

.uSmallFlag {
    height: 12px;
    width: 22px;
    background-image: url("../resources/ui/flags/eqp-adlerkorps/flags_med.png");
    background-repeat: no-repeat;
    background-position: -147px 0px;
    display: inline-block;
}

#uName {
    border: 0px solid rgb(255, 255, 255);
    text-align: left;
    font-size: 14px;
    text-shadow: rgb(0, 0, 0) -1px -1px 0px, rgb(0, 0, 0) 1px -1px 0px, rgb(0, 0, 0) -1px 1px 0px, rgb(0, 0, 0) 2px 2px 0px;
}

#uFlag {
    width: 60px;
    height: 34px;
    margin-top: 5px;
    margin-left: 5px;
    background-image: url("../resources/ui/flags/eqp-adlerkorps/flag_big_18.png");
    background-repeat: no-repeat;
    padding-top: 31px;
    line-height: 8px;
    float: left;
}

/* ---- Tooltips (hover info + small map pins) ---- */
.toolTip {
    display: none;
    position: absolute;
    float: left;
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    color: rgb(51, 204, 255);
    z-index: 9;
}

.toolTip[type="game"] {
    width: 250px;
    height: 120px;
    border: 3px solid rgb(248, 224, 100);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
}

.toolTip[type="ui"] {
    width: 200px;
    height: 20px;
    border-radius: 5px;
    padding: 5px;
    background: rgb(21, 21, 21);
}

.toolTip::after {
    content: "";
    position: absolute;
    border-style: solid;
    border-color: transparent rgb(0, 0, 0);
    display: block;
    width: 0px;
    z-index: 11;
    top: 50%;
}

.toolTip[type="game"]::after {
    margin-top: -15px;
}

.toolTip[type="ui"]::after {
    margin-top: -5px;
}

.toolTip[type="game"][orientation="right"]::after {
    border-width: 15px 0px 15px 15px;
    right: -15px;
}

.toolTip[type="game"][orientation="left"]::after {
    border-width: 15px 15px 15px 0px;
    left: -15px;
}

.toolTip[type="ui"][orientation="right"]::after {
    border-width: 5px 0px 5px 5px;
    right: -5px;
}

.toolTip[type="ui"][orientation="left"]::after {
    border-width: 5px 5px 5px 0px;
    left: -5px;
}

.toolTip::before {
    content: "";
    position: absolute;
    border-style: solid;
    border-color: transparent rgb(248, 224, 100);
    display: block;
    width: 0px;
    z-index: 10;
    top: 50%;
}

.toolTip[type="game"]::before {
    margin-top: -17px;
}

.toolTip[type="ui"]::before {
    margin-top: -5px;
}

.toolTip[type="game"][orientation="right"]::before {
    border-width: 17px 0px 17px 17px;
    right: -20px;
}

.toolTip[type="game"][orientation="left"]::before {
    border-width: 17px 17px 17px 0px;
    left: -20px;
}

.toolTip[type="ui"][orientation="right"]::before {
    border-width: 5px 0px 5px 5px;
    right: -5px;
}

.toolTip[type="ui"][orientation="left"]::before {
    border-width: 5px 5px 5px 0px;
    left: -5px;
}

.smallToolTip {
    display: none;
    position: absolute;
    width: 101px;
    height: 15px;
    border-radius: 5px;
    padding: 2px;
    background: rgba(0, 0, 0, 0.7);
    font-family: Arial;
    font-weight: normal;
    color: rgb(51, 204, 255);
    z-index: 9;
    font-size: 12px;
    text-align: center;
}

.smallToolTip::after {
    content: "";
    position: absolute;
    border-style: solid;
    border-color: transparent rgb(0, 0, 0);
    display: block;
    width: 0px;
    z-index: 11;
    top: 50%;
}

.smallToolTip[orientation="bottom"]::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.7);
    top: 100%;
    left: 46%;
}

.smallToolTip[shape="pin"] {
    width: 36px;
    height: 20px;
    border-radius: 5px;
    padding: 2px;
    background: rgba(0, 0, 0, 0.7);
    font-family: Arial;
    font-weight: normal;
    color: rgb(51, 204, 255);
    z-index: 9;
    font-size: 16px;
    text-align: center;
    line-height: 20px;
}

/* ---- Turn Report + Dossier (legacy internals still in use) ---- */
#combatLogButton {
    position: fixed;
    width: 40px;
    height: 13px;
    top: 25px;
    left: 50%;
    margin-left: -20px;
    font-family: osada-menu;
    font-size: 22px;
    font-weight: normal;
    text-align: center;
    color: rgb(248, 224, 100);
    line-height: 7px;
    background: rgba(0, 0, 0, 0.7);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    z-index: 201;
    cursor: pointer;
}

.combatLogInfoButton {
    font-size: 30px;
    min-width: 30px;
    min-height: 30px;
    position: absolute;
    top: 25px;
}

#combatLog {
    position: fixed;
    width: 800px;
    height: 400px;
    overflow-y: auto;
    margin-left: -400px;
    left: 50%;
    top: 25px;
    color: rgb(248, 224, 100);
    text-align: center;
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    background: rgba(0, 0, 0, 0.8);
    z-index: 202;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    display: none;
}

.combatLogHeader {
    text-align: center;
    padding-top: 10px;
    vertical-align: text-bottom;
    font-size: 16px;
    color: rgb(51, 204, 255);
    font-weight: bold;
}

.combatLogNum {
    color: rgb(51, 204, 255);
    font-weight: bold;
}

#dossier {
    position: fixed;
    width: 800px;
    height: 400px;
    overflow-y: auto;
    margin-left: -400px;
    left: 50%;
    top: 25px;
    color: rgb(248, 224, 100);
    text-align: center;
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    display: none;
}

.counterBox {
    position: relative;
    left: 50%;
    bottom: 30px;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    border: 1px solid rgb(140, 140, 124);
    border-radius: 2px;
    color: rgb(249, 245, 225);
    font-size: 11px;
    line-height: 17px;
    background-color: rgb(33, 33, 33);
    white-space: nowrap;
    padding: 0px 5px;
}

/* ---- Message box ---- */
.uiMessageBox {
    position: fixed;
    width: 350px;
    height: 201px;
    left: 50%;
    margin-left: -175px;
    top: 50%;
    margin-top: -100px;
    color: rgb(248, 224, 100);
    font-weight: bold;
    font-family: Arial;
    font-size: 12px;
    text-shadow: black 0.1em 0.1em 0.2em;
    background-image: url("../resources/ui/dialogs/ui-message/images/ui-message.png");
    display: none;
}

.uiMessageBoxTitle {
    border: 0px solid rgb(255, 255, 255);
    position: absolute;
    top: 10px;
    left: 5px;
    width: 340px;
    text-align: center;
}

.uiMessageBoxButton {
    position: absolute;
    top: 165px;
    left: 305px;
}

/* ---- In-game HUD: top bar, sidebar rail ---- */
#statusbar-extension {
    position: fixed;
    float: left;
    width: 300px;
    margin-left: -150px;
    height: 20px;
    left: 50%;
    top: 25px;
    color: rgb(255, 255, 255);
    text-align: center;
    line-height: 20px;
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    border: 0px solid rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    z-index: 202;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    display: none;
}

.statusbar-extension-animation {
    animation: 2s linear 0s 1 normal none running statusbar-extension-anim;
}

.statusbar-extension-animation-reverse {
    animation: 2s linear 0s 1 normal none running statusbar-extension-anim-rev;
}

#statusBarButton, #unitsBarButton {
    position: fixed;
    width: 40px;
    height: 13px;
    top: 15px;
    left: 50%;
    margin-left: -20px;
    font-family: osada-menu;
    font-size: 22px;
    font-weight: normal;
    text-align: center;
    line-height: 7px;
    z-index: 201;
    cursor: pointer;
    display: none;
}

#menu {
    position: fixed;
    float: left;
    width: 35px;
    right: 10px;
    top: 50%;
    margin-top: -140px;
    border: 0px solid rgb(0, 0, 0);
    color: white;
    background-color: transparent;
    z-index: 200;
}

#slidemenu {
    display: none;
}

#weathermsg {
    font-family: osada;
    font-size: 20px;
    width: 4%;
    min-width: 35px;
    cursor: help;
    float: left;
    color: rgb(51, 204, 255);
    padding-top: 1px;
    padding-left: 5px;
}

#statusmsg {
    width: 48%;
    height: 18px;
    max-height: 18px;
    float: left;
    padding: 5px 0px 0px 1px;
    overflow: hidden;
    display: flex;
}

#locmsg {
    width: 42%;
    height: 18px;
    max-height: 18px;
    text-align: right;
    float: right;
    padding: 5px 5px 0px 0px;
    overflow: hidden;
}

/* ---- Buttons (round brass / sub-menu / generic) ---- */
.smallButton {
    min-width: 26px;
    min-height: 26px;
    line-height: 26px;
    border: 3px solid rgb(255, 153, 0);
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.75) 1px 2px 3px, rgba(0, 0, 0, 0.16) 0px 0px 0px 5px inset;
    margin-right: 10px;
    margin-left: 10px;
    font-family: osada-menu;
    font-weight: normal;
    font-size: 18px;
    text-align: center;
    text-shadow: none;
    background-color: rgb(0, 0, 0);
    background-repeat: no-repeat;
    color: rgb(248, 224, 100);
    cursor: pointer;
}

.smallButtonMenu {
    min-width: 28px;
    min-height: 28px;
    line-height: 28px;
    border-radius: 50%;
    border: 2px solid rgb(255, 181, 6);
    box-shadow: rgb(0, 0, 0) 0px 0px 0px 1px inset, rgba(0, 0, 0, 0.6) -4px 2px 6px 2px;
    margin-right: 5px;
    margin-left: 5px;
    font-family: osada-menu;
    font-size: 24px;
    font-weight: normal;
    text-align: center;
    background-color: rgb(255, 181, 6);
    background-repeat: no-repeat;
    color: rgb(0, 0, 0);
    cursor: pointer;
    text-shadow: none;
    float: left;
}

.smallButtonMenu[selected] {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 181, 6);
}

.smallButtonMenu[confirmation] {
    animation: 0.5s linear 0s 6 normal none running button-confirm-anim;
}

.smallButtonSubMenu {
    min-width: 26px;
    min-height: 26px;
    line-height: 26px;
    border: 3px solid rgb(255, 153, 0);
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.75) 1px 2px 3px, rgba(0, 0, 0, 0.16) 0px 0px 0px 5px inset;
    margin-right: 7px;
    margin-left: 5px;
    font-family: osada-menu;
    font-weight: normal;
    font-size: 20px;
    text-align: center;
    text-shadow: none;
    background-color: rgb(0, 0, 0);
    background-repeat: no-repeat;
    color: rgb(248, 224, 100);
    cursor: pointer;
    float: left;
}

.smallButtonAlert {
    width: 26px;
    color: rgb(51, 204, 255);
    margin-left: 4px;
    animation: 1000ms ease-in-out 0s infinite normal none running colorchange;
}

.blackBoxBorder {
    border-radius: 5px;
    background-color: rgb(0, 0, 0);
    border: 1px solid rgb(255, 153, 0);
    font-size: 16px;
    color: rgb(255, 255, 255);
    text-align: center;
    letter-spacing: 0px;
}

/* ---- Misc animations ---- */
.textBounceRed {
    position: absolute;
    z-index: 200;
    border: 1px solid rgb(220, 20, 60);
    border-radius: 4px;
    margin-left: 10px;
    min-width: 12px;
    min-height: 10px;
    padding: 2px;
    font-family: Arial;
    font-size: 13px;
    color: white;
    background-color: rgba(140, 0, 0, 0.9);
    animation: 2s linear 0s 1 normal none running jump;
    white-space: nowrap;
    font-variant: small-caps;
    letter-spacing: 2px;
}

.textBounceGreen {
    position: absolute;
    z-index: 200;
    border: 1px solid rgb(0, 255, 127);
    border-radius: 4px;
    margin-left: 10px;
    min-width: 12px;
    min-height: 10px;
    padding: 2px;
    font-family: Arial;
    font-size: 13px;
    color: white;
    background-color: rgba(0, 102, 0, 0.9);
    animation: 2s linear 0s 1 normal none running jump;
    white-space: nowrap;
    font-variant: small-caps;
    letter-spacing: 2px;
}

/* ---- Keyframes ---- */
@keyframes backgroundAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }
    5% {
        opacity: 1;
        animation-timing-function: ease-out;
        transform: scale(1.1);
    }
    60% {
        opacity: 1;
        transform: scale(1.7) translateY(100px);
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes unitanim {
    0% {
        background-position: 0px 50%;
    }
    100% {
        background-position: 112% 50%;
    }
}

/* unitanim's own unprefixed @keyframes duplicate lives in osada-theme.css (fixed in an earlier
 * session — modern browsers don't run an unprefixed `animation:` off a @-webkit-keyframes-only
 * declaration, so the vendor-prefixed-only originals below were ALL silently non-animating; this
 * migration is what surfaced it for these three, so the same fix — an unprefixed duplicate — is
 * applied here directly instead of leaving latent no-op animations in the freshly-extracted file). */
@-webkit-keyframes jump {
    0%, 100% {
        bottom: 0px;
        animation-timing-function: ease-out;
    }
    50% {
        bottom: 40px;
        animation-timing-function: ease-in;
    }
}

@keyframes jump {
    0%, 100% {
        bottom: 0px;
        animation-timing-function: ease-out;
    }
    50% {
        bottom: 40px;
        animation-timing-function: ease-in;
    }
}

@keyframes colorchange {
    0% {
        color: rgb(51, 204, 255);
    }
    50% {
        color: rgb(255, 255, 255);
    }
    100% {
        color: rgb(51, 204, 255);
    }
}

@-webkit-keyframes statusbar-extension-anim {
    0% {
        top: -20px;
    }
    100% {
        top: 25px;
    }
}

@keyframes statusbar-extension-anim {
    0% {
        top: -20px;
    }
    100% {
        top: 25px;
    }
}

@-webkit-keyframes statusbar-extension-anim-rev {
    0% {
        top: 25px;
    }
    100% {
        top: -20px;
    }
}

@keyframes statusbar-extension-anim-rev {
    0% {
        top: 25px;
    }
    100% {
        top: -20px;
    }
}

@-webkit-keyframes button-confirm-anim {
    0% {
        background-color: rgb(0, 0, 0);
        color: rgb(255, 181, 6);
    }
    100% {
        background-color: rgb(255, 181, 6);
        color: rgb(0, 0, 0);
    }
}

@keyframes button-confirm-anim {
    0% {
        background-color: rgb(0, 0, 0);
        color: rgb(255, 181, 6);
    }
    100% {
        background-color: rgb(255, 181, 6);
        color: rgb(0, 0, 0);
    }
}

/* ---- Uncategorized (review placement) ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    border: 1px solid rgb(0, 100, 0);
    height: 8px;
    background-color: rgba(248, 224, 100, 0.6);
}

#smSettings {
    color: rgb(248, 224, 100);
    font-weight: bold;
    font-family: Arial;
    font-size: 12px;
    text-shadow: black 0.1em 0.1em 0.2em;
    z-index: 300;
    display: none;
}

#leaderInfo {
    font-family: Arial;
    font-size: 12px;
    font-weight: normal;
    text-shadow: none;
    color: rgb(248, 224, 100);
}

.hscroll-container {
    width: 98%;
    margin: 0px auto;
    overflow: auto;
    z-index: 0;
}

#currentPrestigeAmount img {
    margin-left: 1px;
    vertical-align: middle;
}

#unitsBarButton {
    top: 95px;
}

.message {
    color: rgb(248, 224, 100);
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    text-shadow: black 0.1em 0.1em 0.2em;
}

a, a:visited {
    color: white;
}

.flexcenterrow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.hcenter {
    margin: 0px auto;
}

.right {
    float: right;
}
