body
{
    background: rgb(63, 58, 52);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}
nav
{
    position:fixed;
    z-index: 300;
    top:10px;
    width: 100%;
    height: 100px;


    display: flex;
    justify-content: space-around;
}
.commonStyle
{
    font-size: larger;        
    color:gold;
    background: brown;
    padding:10px;
    box-shadow: rgba(0, 0, 0, 0.664) 1px 1px 6px ;
}
#toast
{
    position: fixed;
    top:120px;
    background: rgb(37, 6, 6);
    color:white;
    box-shadow: rgba(0, 0, 0, 0.664) 1px 1px 6px ;
    padding: 10px;
    visibility: hidden;
    z-index: 301;
}
#toast::before
{
    content: "⚠️";
    display: inline;
}


.show
{
    visibility: visible!important;
}
.hide
{
    animation: hidding 1s ease-out ;
    opacity: 0;
    visibility: hidden;
}
@keyframes hidding {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}
#mask
{
    position: fixed;
    z-index: 100;
    top:0px;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    visibility: hidden;
}
#info
{
    width: 30%;
    font-size: 0.8em;
}


#gameField
{
    z-index: 3;
    width: calc(100% - 80px);
    position: relative;

}
#grid
{
    width: 100%;
    top:0px;
    margin: 0;
    z-index: 5;
}



.clickable:hover
{
    z-index: 8;
    cursor: pointer;
    position: absolute;
}
.clickable:hover::after
{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 9;
    content:"";
    border: 2px red solid;
    top:-2px;
    left:-2px;
}
.buildable:hover
{
    z-index: 8;
    cursor: grab;
    position: absolute;
}
.selected::after
{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 99;
    content:"";
    border: 2px green solid;
    background: rgba(0, 128, 0, 0.294);
    top:-2px;
    left:-2px;
}
#storageDisplay
{
    width: 40%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    border: darkred 3px inset;
    background: rgb(139, 51, 0);
}
.storageItem
{
    margin:2px;
    padding:4px;
    text-align: center;
    max-height: 40%;
    font-size: 0.8em;
    box-shadow: rgba(0, 0, 0, 0.589) 1px 1px 4px ;
    color:white;
    text-shadow:black 0px 0px 3px;
}
.infoPanel
{
    position: absolute;
    visibility:hidden;
    width: 150px;
    min-height: 100px;
    z-index: 200;
    top:0px;
    left:0px;
    background: wheat;
}
.tooltip
{
    position: absolute;
    left:120px;
    width: 190px;
    min-height: 100px;
    background: wheat;
}
.tooltip h2
{
    font-size: 1.1em;
    margin:0;
}
.tooltip p
{
    border-top: 1px solid black;
    margin:2px;
    padding: 0 3px;
}
#buildInfoPanel
{
    border: red 1px solid;
}
#buildPanel
{
    border: blue 1px solid;
}

.energyConsumption
{
    position: absolute;
    font-size: 1.1em;
    color:gold;
    z-index: 7;
    text-shadow:black 0px 0px 3px;
    animation: consumption 1s ease-out ;
}
@keyframes consumption {
    from {transform: translateY(0px);}
    to {transform: translateY(-10px);}
}


.depthMarker
{
    position: absolute;
    right: -80px;
    font-size: 1.2em;
    padding: 3px 0;
    font-weight: bold;
    z-index: 6;
    width: 80px;
    text-align: right;
    background: black;
    color:white;
}
.errorMsg
{
    background: rgb(90, 6, 23);
    color:red;
    animation: magmaGlow 2s ease-in-out infinite alternate;
}
.energyLow
{
    background: rgb(90, 6, 23);
    color:red;
    animation: enegergyLowAnimation 0.5s ease-in infinite alternate;
}
@keyframes enegergyLowAnimation {
    from {
        box-shadow: red 0px 0px 1px;
        color:red;
        background: rgb(90, 6, 23);
    }
    to {
        box-shadow: red 0px 0px 10px;
        color:white;
        background: red;
    }
}
#fade
{
    position: absolute;
    width: calc(100% + 4px);
    height: 300px;

    z-index: 20;
    left:0px;
    top:0px;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,1) 10%, rgba(255,255,255,0) 100%);
    
}

.destroyButton
{
    background: red;
}

#endGame
{
    position: fixed;
    width: 50%;
    height: auto;
    top:150px;
    left: 25%;
    right: 25%;
    z-index: 400;
    visibility: hidden;
    max-height: 70vh;
    overflow: auto;
}
#endGame h1,h2
{
    text-align: center;
}
#endGame div::first-letter
{
    text-transform: uppercase;
}
#endGame table
{
    border-spacing: 5px;
}

#endGame table td,th
{
    text-align: right;
}
#endGame table td:first-child::first-letter
{
    text-transform: uppercase;
    text-align: left;
}
#endGame table td:last-child
{
    text-align: left;
}
.minielement
{
    display: inline-block;
    width: 1em;
    height: 1em;
    box-shadow: rgba(0, 0, 0, 0.589) 1px 1px 4px ;
}
.elevator
{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content:space-around;
}
#lock
{
    position: fixed;
    z-index: 100;
    top:0px;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    visibility: hidden;
}