
html, body {
    height: 100%;
}

* {
    font: 14px "Courier New", Courier, monospace;
    scroll-behavior: smooth;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

body {
    background-color: #2a2a2a;
    background-image: url("../img/terrain/ground.jpg");
    background-size: 200px 136px;
    margin: 0;
    padding: 0;
}

button {
    padding: 3px 7px 3px 7px;
    border: 1px solid;
    border-radius: 3px;
}

div, td, input, select, button {
    position: relative;
    box-sizing: border-box;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 30px;
}

/*-----------------------*/
.empty-item {
    opacity: .5;
}

/*-----------------------*/
.dialog, .notification, .news {
    box-shadow: 5px 5px 5px rgba(51, 51, 51, 0.4);
    border: 1px solid #eee;
    z-index: 1000;
}

.dialog tr:nth-child(1) td, .notification tr:nth-child(1) td {
    background-color: #b6b6b6;
}

.dialog tr:nth-child(2) td, .notification tr:nth-child(2) td {
    background-color: #bbbbbb;
}

.dialog {
}

.notification {
    display: none;
    position: fixed;
    top: 75px;
    left: 400px;
    width: 350px;
    height: 250px;
    background-color: #bbbbbb;
    z-index: 100000000;
}
/*-----------------------*/
.news {
    position: fixed;
    top: calc(50vh - 225px);
    left: calc(50vw - 225px);
    width: 450px;
    height: 450px;
    background-color: #bbbbbb;
    z-index: 100000000;
}
.news .news-content {
    background-color: #fff;
    padding: 10px;
}

/*-----------------------*/
.end-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: auto;
    color: gold;
    font-size: 40px;
    align-content: center;
    text-align: center;
    z-index: 5000;
}

/*-----------------------*/
.function {
    background-color: #bb9696;
    color: #fff;
}

/*-----------------------*/
.map {
    width: 15000px;
    height: 10000px;
    display: grid;
    grid-template-columns: repeat(162, 100px);
    z-index: 100;
}

/* Generelt look */
.map > div {
    width: 200px;
    height: 200px;
    position: absolute;
    /*color: transparent;*/
    align-content: center;
    text-align: center;
    text-transform: capitalize;
    opacity: 1;
    transition: opacity 5s linear; /* fade over 10 sek */
    padding-bottom: 30px;

}

.map > div.decompose {
    opacity: 0;
}

/*-----------------------*/
/* Development */
.dev .map > div {
    outline: 1px dashed rgba(255, 215, 0, 0.1);
    background-color: rgba(211, 211, 211, 0.01);
    color: gold;
}

.dev .icon {
    color: gold;
}

.dev .action,
.dev .object-library {
    display: block;
}

/*-----------------------*/
.action {
    display: none;
    align-content: center;
    background-color: rgba(0, 0, 0, 0.55);
    color: gold;
    left: 0;
    height: 45px;
    position: fixed;
    top: 0;
    text-align: center;
    width: 300px;
}

/*-----------------------*/
.ticks {
    align-content: center;
    background-color: rgba(0, 0, 0, 0.55);
    color: gold;
    text-align: center;
    height: 45px;
    width: 300px;
    position: fixed;
    left: calc(50vw - 150px);
    bottom: 10px;
    border-radius: 10px;
    z-index: 1000;
}

.glow-once {
    animation: glow 5s ease-in-out forwards;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 0px rgba(0, 255, 0, 0);
    }
    50% {
        box-shadow: 0 0 20px rgb(255, 255, 255);
    }
    100% {
        box-shadow: 0 0 0px rgba(0, 255, 0, 0);
    }
}

/*-----------------------*/
.equipment {
    border: 3px solid #efefef;
    background-color: rgba(0, 0, 0, 0.55);
    color: gold;
    text-align: left;
    height: 330px;
    width: 200px;
    position: fixed;
    align-content: start;
    left: 15px;
    top: 15px;
    gap: 5px;
    overflow: auto;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    z-index: 1000;
}

.equipment > div {
    background-color: rgba(0, 0, 0, 0.47);
    background-size: 200%;
    background-position: bottom -16px right -13px;
    border: 1px solid;
    height: 50px;
    width: 50px;
    font-size: 10px;
    overflow: clip;
    margin: 3px;
    text-align: center;
    align-content: end;
}

/*-----------------------*/
.equipment-focus {
    background-image: url('../img/people/advanture.png');
    background-size: 322% !important;
    background-position: bottom -18px right -73px !important;
}

.equipment-info {
    background-image: url('../img/objects/question.00.png')
}
.equipment-shelter {
    background-image: url('../img/objects/shelter.00.png')
}

/*-----------------------*/
.bag {
    border: 3px solid #efefef;
    background-color: rgba(0, 0, 0, 0.55);
    color: gold;
    text-align: left;
    height: 400px;
    width: 200px;
    position: fixed;
    align-content: start;
    left: calc(100vw - 215px);
    top: calc(100vh - 410px);
    gap: 5px;
    overflow: auto;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    z-index: 1000;
}

.bag > div {
    background-color: rgba(0, 0, 0, 0.47);
    background-size: 200%;
    background-position: bottom -10px right -13px;
    border: 1px solid;
    height: 55px;
    width: 50px;
    font-size: 10px;
    overflow: clip;
    margin: 3px;
    text-align: center;
    text-align: center;
    align-content: end;
}

.bag > div > sup {
    font-size: 11px;
    position: absolute;
    top: 0;
    right: 0;
}

/*-----------------------*/
.object-library {
    font-size: 31px;
    display: none;
}

/*-----------------------*/
.adventure {
    position: absolute;
    background-image: url("../img/people/advanture.png");
    width: 200px;
    height: 200px;
    z-index: 500;
}

.adventure.dead {
    background-image: url("../img/people/advanture.00.png");
}

.adventure-health-bar {
    position: fixed;
    bottom: 60px;
    border-radius: 7px;
    width: 300px;
    min-width: 5px !important;
    background-color: rgba(0, 0, 0, 0.51);
    left: calc(50vw - 150px);
    padding: 5px;
    z-index: 1000;
}

.adventure-health-bar-slider {
    border-radius: 5px;
    width: 100%;
    background-color: gold;
    height: 100%;
    padding: 3px 2px 1px 4px;
    white-space: nowrap;
}

/*-----------------------*/
.icon, .icon_a, .icon_b {
    background-image: url("../img/cursor/default.png");
    width: 200px;
    height: 136px;
    position: absolute;
    pointer-events: none;
    background-size: 100% 100%;
    top: 210px;
    left: 900px;
    align-content: end;
    text-align: center;
    color: transparent;
    z-index: 1;
}

.icon_a, .icon_b {
    background-image: url("../img/th0.png");
    width: 200px;
    height: 200px;
    z-index: 1;
    display: none;
}

.icon_b {
    background-image: url("../img/th1.png");
    z-index: 100;
}

/*-----------------------*/
