body
{
    font-family: "Share";
    font-size: 14px;
    color: gold;
    cursor: default;
    background: black url("background.jpg");
    image-rendering: pixelated;
}

body:before
{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse farthest-corner at top, rgba(0, 0, 0, 0.5) 0%, black 75%);
}

::selection
{
    color: black;
    background-color: gold;
}

::placeholder
{
    color: rgba(255, 215, 0, 0.5);
}

a:link
{
    color: inherit;
    text-decoration: none;
    transition: color 500ms;
}

a:visited
{
    color: inherit;
}

a:hover
{
    color: gold;
    transition: color 100ms;
}

input
{
    margin: 0;
    font: inherit;
    color: gold;
    padding: 2px 6px 2px 6px;
    border: 1px solid gold;
    background-color: rgba(77, 65, 0, 0.5);
}

input:focus
{
    outline: none;
}

textarea
{
    font-family: "Share Tech Mono";
    font-size: 14px;
    color: gold;
    outline: 0;
    margin: 0;
    border: none;
    resize: none;
    background: transparent;
    -webkit-font-variant-ligatures: none;
    -webkit-font-feature-settings: 'liga' 0, 'onum' 1, 'kern' 1;
}

button
{
    margin: 0;
    font: inherit;
    color: gold;
    border: 1px solid gold;
    background-color: rgba(77, 65, 0, 0.5);
    box-shadow: 0 0 0 gold inset;
    transition: box-shadow 500ms;
}

button:hover:enabled
{
    box-shadow: 0 0 10px gold inset;
    transition: box-shadow 100ms;
}

button:active:enabled
{
    color: black;
    text-shadow: none;
    background: gold none !important;
}

button:disabled
{
    color: rgba(255, 215, 0, 0.5);
}

button:focus
{
    outline: none;
}

table, caption, tbody, tfoot, thead, tr, th, td
{
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    line-height: 19px;
    text-align: left;
    vertical-align: baseline;
}

table
{
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

tbody tr:nth-child(odd)
{
    background-color: rgba(255, 215, 0, 0.1);
}

th
{
    font-family: "Amatic SC";
    font-size: 20px;
    line-height: 25px;
    color: rgba(255, 215, 0, 0.5);
    margin: 7px 0 7px 0;
    cursor: default;
    transition: color 500ms;
}

th:hover
{
    color: gold;
    transition: color 100ms;
}

th:first-child, td:first-child
{
    padding-left: 7px;
}

th:last-child, td:last-child
{
    padding-right: 7px;
    text-align: right;
}

::-webkit-scrollbar
{
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track
{
    border-left: 1px solid gold;
    box-shadow: 0 0 10px gold inset;
}

::-webkit-scrollbar-thumb
{
    background-color: gold;
}

::-webkit-scrollbar-corner
{
    background-color: gold;
}

#gui
{
    position: relative;
    width: 800px;
    height: 534px;
    margin: 0 auto 0 auto;
    border: 1px solid gold;
}

#title
{
    position: relative;
    font-family: "Amatic SC";
    font-size: 50px;
    line-height: 75px;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 10px black;
}

#footer
{
    position: relative;
    height: 50px;
    overflow: hidden;
    font-family: "Amatic SC";
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    color: rgba(255, 215, 0, 0.5);
}

#navPanel
{
    position: absolute;
    height: 21px;
    top: -21px;
    right: -1px;
    font-size: 0;
    transition: opacity 500ms;
}

#navPanel:hover
{
    opacity: 1 !important;
    transition: opacity 100ms;
}

#navHeader
{
    height: 0;
    line-height: 21px;
    display: inline-block;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 14px;
    color: black;
    border-left: 21px solid transparent;
    border-bottom: 21px solid gold;
}

#loadFrame
{
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("loader1.jpg"), url("loader2.jpg"), url("loader3.jpg"), url("loader4.jpg");
    background-size: 0 0;
}

#progressFrame
{
    position: absolute;
    width: 270px;
    top: 0;
    left: 0;
    font-family: "Amatic SC";
    font-size: 33px;
    text-shadow: 0 0 5px black;
    text-align: center;
    visibility: hidden;
}

#progressBar
{
    width: 100%;
    height: 10px;
    margin-top: 10px;
    border: 1px solid gold;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

#progressValue
{
    width: 0;
    height: 100%;
    background-color: gold;
    transition: width 500ms;
}

#mapTypeSelector
{
    display: flex;
    width: 100%;
    height: 19px;
    border-bottom: 1px solid gold;
}

#mapListPanel
{
    position: relative;
    float: left;
    width: 170px;
    height: 100%;
    border-right: 1px solid gold;
    overflow: hidden;
}

#mapListSlider
{
    position: absolute;
    width: 800px;
    height: 514px;
    left: 0;
    transition: left 250ms;
}

#mapDetails
{
    position: relative;
    height: 100%;
    overflow-y: scroll;
}

#mapStartButton
{
    width: 100%;
    height: 50px;
    font-family: "Amatic SC";
    font-size: 33px;
    border: none;
}

#mapScreen
{
    float: left;
    width: 400px;
    height: 225px;
    background-size: cover;
}

#mapMission
{
    height: 225px;
    overflow: hidden;
    border-left: 1px solid gold;
}

#homeFrame
{
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 250px 25px rgba(77, 65, 0, 0.25) inset;
}

#helpFrame
{
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 250px 25px rgba(77, 65, 0, 0.25) inset;
    overflow-y: scroll;
}

#playFrame
{
    position: absolute;
}

#soldierPanel
{
    position: relative;
    display: flex;
    width: 100%;
    height: 64px;
    border-top: 1px solid gold;
    box-shadow: 0 25px 25px rgba(255, 215, 0, 0.25) inset;
}

.soldierPanelSide
{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.soldierPanelRamp
{
    display: inline-block;
    width: 100%;
    height: 0;
    line-height: 21px;
    text-align: center;
    color: black;
    border-bottom: 19px solid gold;
    box-sizing: border-box;
}

#soldierPanelLeftMeterFrame
{
    margin-right: 19px;
}

#soldierPanelLeftRamp
{
    border-right: 19px solid transparent;
}

#soldierPanelRightMeterFrame
{
    margin-left: 19px;
}

#soldierPanelRightRamp
{
    border-left: 19px solid transparent;
}

#healthBar
{
    width: 100%;
    height: 100%;
    /*border: 1px solid gold;
    background: rgba(255, 215, 0, 0.5);*/
    box-sizing: border-box;
}

.meterFrame
{
    flex: 1;
    position: relative;
    overflow: hidden;
}

.meterScale
{
    width: 100%;
    height: 100%;
}

.meterLight
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px;
    height: 50px;
    color: gold;
    margin: auto;
    width: 125px;
    border-radius: 125px;
    box-shadow: 0 0 40px;
    transition: color 1s;
}

.meterPointer
{
    position: absolute;
    bottom: -150px;
    left: 0;
    right: 0;
    margin: auto;
    width: 3px;
    height: 185px;
    background-color: gold;
    box-shadow: 0 1px 5px black;
    transition: all 250ms ease-out;
    transform: rotate(-30deg);
    transform-origin: 0 100%;
}

.meterShadow
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 95%;
    box-shadow: 0 0 3px 1px black;
}

#inventoryPanel
{
    display: table;
    table-layout: fixed;
    border-spacing: 10px;

    width: 285px;
    height: 100%;
    /*background-color: rgba(77, 65, 0, 0.5);
    backdrop-filter: blur(5px);*/
    /*background-color: rgba(255, 215, 0, 0.25);*/
}

#inventorySelector
{
    position: absolute;
    border: 1px solid gold;
    box-shadow: 0 0 10px gold inset;
    box-sizing: border-box;
}

.inventorySlot
{
    /*display: inline-block;*/
    /*width: 45px;
    height: 45px;*/
    /*margin: 10px;*/

    /*background:
            linear-gradient(to right, gold 1px, transparent 1px) 0 0,
            linear-gradient(to right, gold 1px, transparent 1px) 0 100%,
            linear-gradient(to left, gold 1px, transparent 1px) 100% 0,
            linear-gradient(to left, gold 1px, transparent 1px) 100% 100%,
            linear-gradient(to bottom, gold 1px, transparent 1px) 0 0,
            linear-gradient(to bottom, gold 1px, transparent 1px) 100% 0,
            linear-gradient(to top, gold 1px, transparent 1px) 0 100%,
            linear-gradient(to top, gold 1px, transparent 1px) 100% 100%;

    background-repeat: no-repeat;
    background-size: 5px 5px;*/
    display: table-cell;
    overflow: hidden;
    background-color: rgba(255, 215, 0, 0.1);
}

#infoPanel
{
    position: relative;
    overflow: hidden;
    width: 100%;
    line-height: 19px;
    color: black;
    background-color: gold;
}

#lobbyRightColumn
{
    flex: 2;
}

#leaderboardPanel
{
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    border-right: 1px solid gold;
}

#hostedMapsPanel
{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50%;
}

#hostMapButton
{
    height: 50px;
    font-family: "Amatic SC";
    font-size: 33px;
    border: none;
    border-top: 1px solid gold;
}

#chatPanel
{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50%;
}

#chatHistory
{
    flex: 1;
    overflow-y: scroll;
}

#chatInputFrame
{
    display: flex;
    border-top: 1px solid gold;
}

#chatInput
{
    flex: 1;
    padding: 2px 7px;
    border: none;
}

#chatSendButton
{
    width: 60px;
    border: none;
    border-left: 1px solid gold;
}

#missionLabel
{
    position: absolute;
    left: 7px;
}

#fpsLabel
{
    width: 25%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#creditsLabel
{
    position: absolute;
    right: 7px;
}

#infoPanelLeftFlasher
{
    left: 0;
    color: transparent;
    box-shadow: -300px 0 100px 50px
}

#infoPanelRightFlasher
{
    right: 0;
    color: transparent;
    box-shadow: 300px 0 100px 50px
}

.infoPanelFlasher
{
    position: absolute;
    width: 50%;
    height: 1px;
    bottom: 0;
}

#emptyMarker
{
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    background-color: rgba(255, 215, 0, 0.25);
}

#arrowLeft
{
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-right: 5px solid gold;
}

#arrowRight
{
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-left: 5px solid gold;
}

#mapWindow
{
    position: relative;
    width: 800px;
    height: 450px;
    overflow: hidden;
    background-color: black;

    /* prevents graphic glitches during transition */
    transform: translateZ(0);
}

#mapFrame
{
    position: relative;
    overflow: hidden;
}

#mapList
{
    float: left;
    width: 170px;
    height: 100%;
    overflow-y: scroll;
    border-right: 1px solid gold;
}

#mapList > .mapButton:not(.hidden)
{
    border: none;
}

/* complicated workaround because last-child can't be combined with class selector yet (2022) */
#mapList > .mapButton:not(.hidden) ~ .mapButton:not(.hidden)
{
    border-top: 1px solid gold;
}

#bgCanvas
{
    position: absolute;
    z-index: 0;
}

#shapeLayer
{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/*#shapeLayer > div
{
    image-rendering: pixelated;
}*/

#fxCanvas
{
    position: absolute;
    z-index: 2;
}

#markerLayer
{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

#ctCanvas
{
    position: absolute;
    z-index: 5;
}

#dialogGlass
{
    position: absolute;
    top: -1px;
    right: -1px;
    left: -1px;
    bottom: -1px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.5);
}

#dialogFrame
{
    position: absolute;
    width: 270px;
    top: 0;
    left: 0;
    z-index: 7;
    visibility: hidden;
}

#dialogHeader
{
    height: 0;
    line-height: 19px;
    display: inline-block;
    padding-left: 7px;
    padding-right: 7px;
    color: black;
    border-right: 19px solid transparent;
    border-bottom: 19px solid gold;
}

#dialogSub
{
    position: relative;
    width: 100%;
    line-height: 19px;
    margin-bottom: -1px;
    border: 1px solid gold;
    background-color: rgba(77, 65, 0, 0.5);
    backdrop-filter: blur(5px);
}

#dialogSubName
{
    position: relative;
    width: 50%;
    padding-left: 6px;
}

#dialogSubSplitter
{
    position: absolute;
    width: 50%;
    top: 0;
    right: 0;
    border-left: 19px solid transparent;
    border-top: 19px solid gold;
}

#dialogSubValue
{
    position: absolute;
    width: 50%;
    top: 0;
    right: 0;
    padding-right: 6px;
    text-align: right;
    color: black;
}

#dialogContent
{
    position: relative;
    width: 100%;
    /*
        scrolling should not be necessary because
        the menu can tolerate 42 different shapes

        min-height: 45px;
        max-height: 225px;
        overflow: auto;
    */
    border: 1px solid gold;
    background-color: rgba(77, 65, 0, 0.5);
    backdrop-filter: blur(5px);
}

#dropInfo
{
    position: relative;
    top: 50%;
    text-align: center;
    transform: translateY(-50%);
}

.tableWrapper
{
    flex: 1;
    overflow-y: scroll;
}

.hidden
{
    visibility: hidden;
    opacity: 0;
}

.linkButton
{
    cursor: pointer;
    transition: color 500ms;
}

.linkButton:hover
{
    color: gold;
    transition: color 100ms;
}

.navButton
{
    width: 60px;
    height: 100%;
    font-size: 14px;
    margin-left: -1px;
}

.mapButton
{
    position: relative;
    width: 160px;
    height: 90px;
    padding: 0;
    font-family: "Amatic SC";
    font-size: 33px;
    /*text-shadow: 1px 1px 1px black, 1px 1px 3px black, 1px 1px 5px black;*/
    text-shadow: 0 0 5px black;
    background-position: 0 0;
}

.mapButton:disabled
{
    color: black;
    text-shadow: none;
    background-color: gold;
    background-image: none !important;
}

.mapButton.hidden
{
    display: none;
}

.mapButton.locked
{
    color: transparent;
    text-shadow: none;
    pointer-events: none;
}

.mapButton.locked:before
{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("lock.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15%;
    filter: drop-shadow(0 0 5px black);
}

.mapButton.tiny
{
    flex-grow: 1;
    width: 33%;
    height: 45px;
    font-family: "Share";
    font-size: 14px;
    border-right: 1px solid gold;
}

.mapButton.tiny:nth-child(3n)
{
    border-right: none;
}

.mapButton.tiny:nth-last-child(-n+3)
{
    border-bottom: none;
}

.invitationList
{
    height: 200px;
    overflow-y: scroll;
    font-family: 'Amatic SC';
    font-size: 20px;
}

.invitationList div
{
    padding: 0 6px;
    height: 25px;
    display: flex;
    white-space: nowrap;
}

.invitationList div:nth-child(even)
{
    background-color: rgba(255, 215, 0, 0.1);
}

.invitationPlayerId
{
    overflow: hidden;
    text-overflow: ellipsis;
}

.invitationButton
{
    cursor: pointer;
    flex-grow: 1;
    text-align: right;
}

.invitationButton.disabled
{
    pointer-events: none;
}

.invitationButton:not(.disabled)
{
    opacity: 0.5;
    transition: opacity 500ms;
}

.invitationButton:hover:not(.disabled)
{
    opacity: 1;
    transition: opacity 100ms;
}

.framePanelHeader
{
    line-height: 19px;
    padding: 0 7px 0 7px;
    color: black;
    background-color: gold;
}

.mapDetailsContent
{
    padding: 7px;
}

.helpEntryHeader
{
    line-height: 19px;
    padding: 0 7px 0 7px;
    color: black;
    background-color: gold;
}

.helpEntryContent
{
    position: relative;
    min-height: 45px;
}

.helpEntryIconHolder
{
    position: absolute;
    width: 45px;
    height: 100%;
    border-right: 1px solid gold;
    box-shadow: 0 0 40px gold inset;
}

.helpEntryIcon
{
    width: 35px;
    height: 35px;
    margin: 5px;
}

.helpEntryText
{
    margin-left: 46px;
    padding: 7px;
}

.helpEntryButton
{
    width: 75px;
    margin: -1px 7px 0 0;
}

.helpEntryBorder
{
    display: inline-block;
    height: 15px;
    margin: 1px 7px 1px 0;
    text-align: center;
    border: 1px solid gold;
}

.helpEntryMode
{
    display: inline-block;
    width: 21px;
    height: 13px;
    vertical-align: -2px;
    background-image: url("icons.png");
}

.dialogSelector
{
    position: absolute;
    width: 45px;
    height: 45px;
    border: 1px solid gold;
    box-shadow: 0 0 10px gold inset;
    box-sizing: border-box;
    transition: top 100ms, left 100ms;
    z-index: 0;
}

.dialogItem
{
    position: relative;
    float: left;
    width: 35px;
    height: 35px;
    margin: 5px;
    z-index: 1;
}

.dialogText
{
    margin: 6px;
}

.dialogValue
{
    float: right;
}

.dialogInput
{
    width: 100%;
    border: none;
    border-top: 1px solid gold;
    background-color: transparent;
    box-sizing: border-box;
}

.dialogButtonBar
{
    height: 19px;
    border-top: 1px solid gold;
    display: flex;
    align-content: stretch;
}

.dialogButton
{
    flex-grow: 1;
    border: none;
    background-color: transparent;
}

.dialogButton:not(:last-child)
{
    border-right: 1px solid gold;
}

.dialogScrollWrapper
{
    display: flex;
    flex-wrap: wrap;
    height: 225px;
    overflow-y: scroll;
}

.inventoryItem
{
    position: relative;
    width: 35px;
    height: 35px;
    margin: 5px 0 0 5px;
    /*left: 0;*/
    transform: scale(0, 0);
}

.itemInfo
{
    position: absolute;
    bottom: 0;
    right: 0;
    text-shadow: 0 1px 1px black;
}

.icon
{
    display: inline-block;
    width: 21px;
    height: 13px;
    vertical-align: -2px;
    background-image: url("icons.png");
}

.icon.CARTRIDGES
{
    background-position-y: -13px;
}

.icon.GRENADES
{
    background-position-y: -26px;
}

.icon.INFINITE
{
    background-position-y: -39px;
}

.icon.HEART
{
    width: 13px;
    margin-left: -1px;
    margin-right: 1px;
    background-position-y: -104px;
}

.volumeBar
{
    display: inline-block;
    font-weight: bold;
    width: 4px;
}

.message
{
    position: absolute;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 1px black;
    transition: top 100ms; /* for smooth positioning along with different markers */
    z-index: 4;
}

.alarmBlinker
{
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}

@-webkit-keyframes blinker
{
    from
    {
        color: red;
        text-shadow: 0 0 0 red;
    }
    to
    {
        color: black;
        text-shadow: 0 0 10px red;
    }
}