:root {
    --font: 'Red Hat Mono';
    --bg-color: #666666;
    --font-size: 5mm;
    --min-width: 400px;
}

body {
    background-color: var(--bg-color);
}

sidemenu {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width: 160px;
    background-color: var(--bg-color);
    position: fixed;
    top: 40px;
    left: 10px;
    height: calc(100% - 78px);
    overflow: auto;
    font-family: var(--font), monospace;
    font-size: var(--font-size);
    transform: scale(1.2, 1);
}

itemyellow a {
    display: block;
    color: yellow;
    padding: 5px 10px;
    cursor: none;
    height: 7mm;
    user-select: none;
    text-decoration: none;
    outline: none;
}

itemyellow a:hover {
    background-color: yellow;
    color: var(--bg-color);
}

itemcyan a {
    display: block;
    color: cyan;
    padding: 5px 10px;
    cursor: none;
    height: 7mm;
    user-select: none;
    text-decoration: none;
    outline: none;
}

itemcyan a:hover {
    background-color: cyan;
    color: var(--bg-color);
}

viewport {
    cursor: crosshair;
    display: block;
    position: fixed;
    top: 20px;
    left: 165px;
    background-color: black;
    color: gold;
    border: 1px solid white;
    width: calc(100% - 267px);
    height: calc(100% - 160px);
    margin: 20px;
    padding: 40px;
    overflow: auto;
    user-select: none;
}

statusbar {
    cursor: default;
    display: block;
    background-color: var(--bg-color);
    color: cyan;
    position: fixed;
    bottom: 8px;
    left: 190px;
    font-family: var(--font), monospace;
    font-size: var(--font-size);
    user-select: none;
}

header {
    cursor: default;
    display: block;
    color: var(--bg-color);
    background-color: cyan;
    border-radius: 20px;
    position: fixed;
    top: 8px;
    left: 190px;
    font-family: var(--font), monospace;
    font-size: var(--font-size);
    user-select: none;
}

title {
    cursor: default;
    display: block;
    background-color: var(--bg-color);
    color: red;
    position: fixed;
    top: 8px;
    left: 10px;
    font-family: var(--font), monospace;
    font-size: var(--font-size);
    user-select: none;
}

div.logo {
    max-width: 100%;
    display: block;
    width: 25%;
    height: auto;
    margin-top: 12%;
    margin-left: auto;
    margin-right: auto;
}

csys {
    display: block;
    position: fixed;
    width: 25mm;
    height: auto;
    left: 55mm;
    bottom: 14mm;
    opacity: 0.5;
    cursor: crosshair;
}
csys:hover {
    opacity: 1.0;
}

div.tbwindow {
    display: block;
    border: 3px white;
    margin: auto;
    width: 80%;
/*
    max-width: 1024px;
*/
    min-width: 400px;
    padding-left: 2mm;
    padding-right: 2mm;
    padding-top: 2mm;
    padding-bottom: 20mm;
    border-style: hidden double double double;
    color: white;
    background-color: blue;
    cursor: default;
    animation: StretchAnimation linear 0.5s;
    animation-iteration-count: 1; 
    animation-fill-mode: forwards; 
}

@keyframes StretchAnimation { 
    0% { 
        max-height: 0px;
    } 
    100% { 
        max-height: 600px;
    } 
} 

div.tbtext {
    font-family: var(--font), monospace;
    font-size: var(--font-size);
    max-height: inherit;
    overflow-y: hidden;
}

tbtitle {
    display: block;
    margin: auto;
    margin-top: 3%;
    border: 3px solid white;
    width: 80%;
/*
    max-width: 1024px;
*/
    min-width: 400px;
    color: blue;
    background-color: white;
    padding-left: 2mm;
    padding-right: 2mm;
    text-align: center;
    font-family: var(--font), monospace;
    font-size: var(--font-size);
    cursor: default;
}

tbbutton {
    display: block;
    border: 3px outset gray;
    margin-top: 7mm;
    width: 40mm;
    height: 8mm;
    color: black;
    background-color: white;
    padding-left: 2mm;
    padding-right: 2mm;
    text-align: center;
    font-family: var(--font), monospace;
    font-size: var(--font-size);
    padding-top: 1.5mm;
    cursor: default;
    text-decoration: none;
    outline: none;
}

tbbutton:active {
    border: 3px inset gray;
    background-color: lightgray;
    padding-left: 2.5mm;
    padding-right: 1.5mm;
    padding-top: 2.0mm;
    height: 7.5mm;
}

hr {
    border: 1px solid white;
    width: 95%;
}

appendix {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
}
