:root{
    --ax-blue: #336699;
    --ax-active: #daa520;
    --ax-menuBackgrounds:#001133;
    --ax-menuText: #ffffff;
    --ax-menuBorders: #2244aa;
    --ax-headerText: #ffffff;
    --ax-consoleText: #ffffff;
    --ax-consoleWarnText: #daa520;
    --ax-consoleErrorText: #ff2244;
}

html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: 'Encode Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

input, text, textArea, select, .gameText{
    color: var(--ax-menuText);
    font-size: 1.25em;
    outline: none;
    opacity: 1;
}

a:link{
    text-decoration: none;
    color: var(--ax-active);
}

a:visited{
    text-decoration: none;
    color: var(--ax-active);
}
a:hover{
    text-decoration: none;
    color:var(--ax-active);
}
a:active{
    text-decoration: none;
    color:var(--ax-active);
}

/* Main Holder for the Canvas and Menu */
#renderCanvas {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0px;
    right: 0px;
    -webkit-tap-highlight-color: transparent;
    visibility: hidden;
}

/* Main Holder for the Canvas and Menu */
#swipeUICanvas {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0px;
    right: 0px;
    -webkit-tap-highlight-color: transparent;
    visibility: hidden;
}


#loadingMenu{
    position: absolute;
    top: 0px;
    right: 0px;
    height: 100%;
    width: 100%;
    background-image: url("../assets/2d/backgrounds/loadingScreen.jpg");
    background-size:cover;
    background-repeat:no-repeat;
    background-position:bottom center;
    overflow: wrap;
    overflow-y: auto;
    visibility: visible;
}

.menuFrame{
    position:absolute;
    display:flex;
    flex-wrap:wrap;
    top: 10%;
    right: 10%;
    width: 80%;
}

.menuFrameBG{
    position:absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
    background-color: var(--ax-menuBackgrounds);
    opacity: 0.5;
    border-radius: 1em;
    margin-bottom: -2em;
}

.leftMenuFrame{
    width:40%;
    flex: 1;
    margin-left: 1em;
    margin-right: 0.5em;
}

#sysWelcome{
    position: relative;
    top:1em;
    margin:10px;
    font-size: 1em;
    color: var(--ax-menuText);
}

#titleArea{
    position: relative;
    top:.25em;
    left:1em;
    right:1em;
    font-size: 1.25em;
    color: var(--ax-menuText);
    overflow:hidden;
}

.rightMenuFrame{
    flex:1;
    width:60%;
    margin-right: 2em;
}

#sysCk{
    position:relative;
    top: 1em;
    left: 1em;
    right: 1em;
    font-size: .75em;
    border: 2px solid var(--ax-menuBorders);
    border-radius: 1em;
    padding-left:1em;
    padding-bottom: 1em;
    padding-right: 1em;
    
}

#sysCk h1{
    font-size: 2em;
    color:var(--ax-menuText);
}

#launchButton{
    position: relative;
    top:0.2em;
    bottom: 0.2em;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    color: var(--ax-active);
    border: 2px solid var(--ax-active);
    border-radius: .25em;
}

/*-- In Game Main Menu --*/
#game2DMenu{
    position: absolute;
    left:0px;
    top:0px;
    width: 100%;
    height:100%;
    overflow:hidden;
    visibility: hidden;
}

#topBar{
    position: absolute;
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: center;
    align-items: flex-end;
    gap:2em;
    height:2em;
    width: 100%;
    opacity: 0.7;
    background-color: var(--ax-menuBackgrounds);
}

#inGameMainMenuButton{
    padding-left:1em;
    flex: 1;
    flex-grow: 1;
    width: 2em;
    height: 2em;
    opacity: 0.7;
}

#totalXP{
    padding-bottom: 0.3em;
    flex:1;
    flex-grow: 6;
    pointer-events: none;
    color: var(--ax-menuText);
    font-size: 1em;
    font-weight: 400;
    opacity: 0.7;
    mix-blend-mode: difference;
}

#xpPointsLabel{
    flex:1;
}
#xpAmount{
    flex:1;
}

#currency{
    padding-bottom: 0.3em;
    padding-right: 1em;
    flex:1;
    flex-grow: 3;
    pointer-events: none;
    color: var(--ax-menuText);
    font-size: 1em;
    font-weight: 500;
    opacity: 0.7;
    mix-blend-mode: difference;
}

#currencyLabel{
    flex: 1;
}

#currencyAmount{
    flex: 1;
}

#inGameMessageTop{
    position: absolute;
    top:2em;
    left:0px;
    width: 100%;
    overflow: none;
    margin:0 auto;
    pointer-events: none;
}

#inGameMessageTop p{
    color: var(--ax-menuText);
    font-size: 1em;
    font-weight: 900;
}

#inGameMessageMiddle{
    position: absolute;
    top:45%;
    left:0px;
    width: 100%;
    margin:0 auto;
    pointer-events: none;
}

#inGameMessageMiddle p{
    color: var(--ax-menuText);
    font-size: 1em;
    font-weight: 900;
}

#inGameInspector{
    position: absolute;
    top:2em;
    left:0px;
    width: 100%;
    bottom:3em;
    visibility: hidden;
}

/* On Screen Console Mirror */
#inGameConsole{
    position: absolute;
    left: 0px;
    top: 2em;
    width: 100%;
    bottom:3em;
    display: flex;
    flex-direction: column-reverse;
    pointer-events: none;
    visibility: hidden;
    overflow: scroll;
    opacity: 0.7;
}

#inGameConsoleContentContainer{
    left:0; /* not needed but prevents a VSCode no CSS warning */
}

#ingameConsole div{
    margin:0;
    font-size: .5em;
}
.consoleInfo{
    color: var(--ax-consoleText);
}

.consoleWarn{
    color:var(--ax-consoleWarnText);
}

.consoleError{
    color:var(--ax-consoleErrorText);
}

/* In Game Main Menu */
#inGameMainMenu{
    position: relative;
    top: 3em;
    background-color: var(--ax-menuBackgrounds);
    border-radius: 1em;
    visibility: hidden;
    color: var(--ax-menuText);
    font-size: 1em;
    font-weight: 500;
    opacity: 0.7;
    mix-blend-mode: difference;
}

#debugOptions{
    position:relative;
}

#gameCommand{
    position: relative;
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: left;
    align-items: flex-end;
    gap:2em;
    height:2em;
    width: 100%;
}

#returnToLobby{
    flex:1;
    flex-grow: 3;
    padding-left: 1em;
    color: var(--ax-menuText);
    font-size: 1em;
    font-weight: 400;
    opacity: 0.7;
    mix-blend-mode: difference;
}
#gameCommandQuit{
    flex:1;
    flex-grow: 3;
    color: var(--ax-menuText);
    font-size: 1em;
    font-weight: 400;
    opacity: 0.7;
    mix-blend-mode: difference;
}


/* TOOLBOX */
#toolBox{
    position:absolute;
    bottom: 0em;
    height:3em;
    width: 100%;
    display:flex;
    flex-direction: row;
    flex-wrap:wrap;
    justify-content: center;
    align-items: flex-end;
    opacity: 0.9;
    background-color: var(--ax-menuBackgrounds);
}

.toolBoxItem {
    padding-left:1em;
    flex: 1;
    flex-grow: 1;
    width: 3em;
    height: 3em;
    opacity: 0.7;
}

.toolBoxItem * {
    position: relative;
    height: 100%;
    width: 100%;
}

/** Overlays the active tool's controls on the screen */
#toolUI{
    position:absolute;
    bottom: 3em;
    top:2em;
    width: 100%;
    pointer-events: none;
}

#copyrightInfo{
    position: absolute;
    width: 160px;
    left: 20px;
    bottom: 10px;
    font-size: 0.75em;
    color: var(--ax-menuText);
}