:root {
    --d-green: #002F2F;
    --l-green: #E4E9E9;
    --l-green-text: #86d195;
    --akzent: #ff9900;
    --select: #ff0000;
    --popup: #009999;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

div.background-image {
    position: absolute;
    width: 100vw;
    height: 100dvh;
    background-image: url(../img/bg.jpg);
    background-size: cover;
    z-index: -1;
}

body {
    width: 100vw;
    /*height: 100vh;*/
    height: 100dvh;
    overflow: hidden;

    background-color: var(--l-green);
    font-size: 1.1em;

    display: grid;
    grid-template-columns: auto 1fr 6px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "r1c1  r1c2 r1c3" "r2c1 r2c2 r2c3" "r3c1 r3c2 r3c3";
}


.corner-top-left {
    grid-area: r1c1;
    position: relative;
    
    /* top | right | bottom | left */
    border-style: solid;
    border-image: url(../img/bg-ctt.png);
    border-width: 6px 18px 18px 6px;
    border-image-slice: 6 18 18 6 fill;
}

.corner-top-right {
    grid-area: r1c3;
    
    /* top | right | bottom | left */
    border-style: solid;
    border-image: url(../img/bg-tr.png);
    border-width: 6px 6px 18px 0px;
    border-image-slice: 6 6 18 0 fill;
}

body > header {
    grid-area: r1c2;
    font-family: "Arial Rounded MT Bold", 'Helvetica Rounded', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color:var(--akzent);

    border-style: solid;
    border-image: url(../img/bg-tm.png);
    border-width: 6px 0px 18px 0px;
    border-image-slice: 6 0 18 0 fill;

    user-select: none;
}

body > header h1 {
    font-weight: bold;
    font-size: 2em;
    text-shadow: 3px 3px 5px #000000;
}

body > header h5 {
    padding-left: 30px;
}

.logo {
    position: absolute;
    width: 140px;
    height: 105px;
    left: calc(50% - 70px);
    top: 20px;
    user-select: none;
}

.logo img {
    width: 100%;
    height: auto;
}

body > nav {
    grid-area: r2c1;
    min-width: 180px;
    
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
}

section.nav {
    padding: 60px 0px 15px;
    /* top | right | bottom | left */
    border-width: 2px 18px 15px 6px;

    border-style: solid;
    border-image: url(../img/bg-ctb.png); /*44x24*/
    border-image-slice: 2 18 15 6 fill;

    user-select: none;
}

nav > footer {
    height: 18px;

    border-style: solid;
    border-image: url(../img/bg-cbt.png);
    border-width: 10px 18px 0px 6px;
    border-image-slice: 10 18 0 6 fill;

    user-select: none;
}

main {
    grid-area: r2c2;
    background-color: #ffffff90;
    border-radius: 5px;
    box-shadow: 0px 0px 10px #00000088;
    /*margin: 0px 0px 2px 0px;*/
    /*overflow-y: auto;*/
    /*padding-left: 10px;*/
    position: relative;
    overflow: hidden;
}

.corner-bottom-left {
    grid-area: r3c1;
    border-style: solid;
    border-image: url(../img/bg-cbb.png);
    border-width: 0px 18px 6px 6px;
    border-image-slice: 0 18 6 6 fill;

    user-select: none;
}

body > footer {
    grid-area: r3c2;
    padding: 16px 5px 5px;
    text-align: center;
    font-weight: bold;
    font-size: 0.6em;
    color: var(--l-green-text);

    border-style: solid;
    border-image: url(../img/bg-bm.png);
    border-width: 0px 0px 6px 0px;
    border-image-slice: 0 0 6 0 fill;

    user-select: none;
}

.corner-bottom-right {
    grid-area: r3c3;
    
    /* top | right | bottom | left */
    border-style: solid;
    border-image: url(../img/bg-br.png);
    border-width: 0px 6px 6px 0px;
    border-image-slice: 0 6 6 0 fill;
}


nav ul {
    padding-left: 0px;
    list-style: none;
    font-size: 1em;
}

nav ul li {
    position: relative;
    min-width: 220px;
    border-left: 3px solid red;
}

nav ul li ul li {
    border: none;
    color: #000000;
}

nav ul span,
nav ul button {
    display: block;
    width: 100%;
    text-align: left;
    text-wrap: nowrap;
    /*background-color: antiquewhite;*/
    padding: 5px 7px;
    font-size: 1em;
    color: var(--akzent);
    background: none;
    border: none;
}

nav ul li ul span,
nav ul li ul button {
    color: #000000;
}

nav ul li > span {
    margin-right: 10px;
}

nav ul.vertical li > span::after {
    content: "▸";
    font-size: 1.3em;
    position: absolute;
    top: 3px;
    right: 0px;
}

nav ul button {
    cursor: pointer;
}

nav ul li ul {
    position: absolute;
    left: calc(100% - 3px);
    top: 40%;
    min-width: 160px;
    background-color: var(--popup);
    border: 2px solid   #000000;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: all 200ms linear;
}

nav ul button:active {
    background-color: red;
}

nav ul button.selected {
    background-color: #ffffff10;
}

nav ul span:hover,
nav ul button:hover {
    color: #000000;
    background-color: var(--akzent);
    text-shadow: none;
} 

nav ul li:hover ul {
    opacity: 1;
    visibility: visible;
}

.showImage {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 100dvh;
    padding: 100px;
    background-color: #ffffffab;
    opacity: 1;
    visibility: visible;
    transition: all 250ms linear;
}

.showImage div {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.showImage.hide {
    opacity: 0;
    visibility: hidden;
}

img[data-img] {
    cursor: pointer;
}

