* {
    image-rendering: auto;
}

.title-bar img {
    height: 16px;
    width: 16px;
    object-fit: contain;
    object-position: center;
    margin-top: -2px;
    margin-left: -1px;
    margin-bottom: -4px;
    margin-right: 1px;
}

body {
    background: url("/img/Old_Space_1999.gif");
    overflow: hidden;
    /* position: relative; */
}

#page {
    /* background-color: aqua; */
    width: 1280px;
    height: 768px;
    margin: auto;
    /* margin-top: 8px; */
    /* padding-bottom: 16px; */
    display: flex;
}

#content .window-body {
    height: 100%;
}

#content>div.title-bar {
    overflow: hidden;
}

#content>div.title-bar>div.title-bar-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 500px;
    overflow: hidden;
    margin: -15px;
    padding: 15px;
}

.column>.window:not(:first-of-type) {
    margin-top: 10px;
}

.column {
    margin-left: 16px;
    position: relative;
}

.column {
    box-sizing: border-box;
}

.column:nth-of-type(1),
.column:nth-of-type(3) {
    width: 256px !important;
}

.column:nth-of-type(2) {
    width: 700px;
    padding: 0 24px
}

.column:last-of-type {
    margin-right: 16px;
}

#content .window-body {
    overflow: auto;
    height: 668px;
    background-color: white;
    padding-left: 24px;
    padding-right: 24px;
}


#menu>div.window-body.has-space>ul>li:nth-child(1) {
    margin-top: 0;
}

iframe {
    height: fit-content;
}

#image-viewer .window-body img {
    width: 100%;
    margin-bottom: -3px;
}

ul>li {
    text-overflow: clip;
    text-wrap: nowrap;
}


ul.has-container {
    overflow: auto;
}

#menu ul.tree-view {
    height: 444px;
}

#toc .window-body {
    max-height: 169px;
    text-wrap: nowrap;
    overflow: auto;
}

#TableOfContents ul {
    padding-left: 24px;
    list-style: circle;
}

#TableOfContents>ul {
    margin-top: 0;
    margin-bottom: 0;
}

.window#waifu {
    position: absolute;
    bottom: 10px;
    width: 100%;
    left: -54px;
    z-index: 5;
}

.window#waifu .window-body img {
    width: max-content;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.window#content {
    z-index: 2;
}

.window#menu {
    top:18px;
    left: 50px;
    z-index: 3;
}

.window#image-viewer {
    top: 24px;
    left: 34px;
}

.window#toc {
    z-index: 4;
    left:32px;
}

.window#buttons {
    position: absolute;
    top: 48px;
    left: -54px;
    width: 100%;
}

.window#links {
    left: -28px;
    top: 13px;
}

.title-bar {
    user-select: none;
}

#content * {
    text-wrap: wrap;
}

#content .window-body ul {
    padding-left: 18px;
}

#content ul>li>ul {
    padding-left: 9px;
}

#content .window-body ol {
    padding-left: 28px;
}

#content .window-body ol>li {
    padding-left: 12px;
}

.storm::before,
.storm>.title-bar {
    background-color: #800080;
}

.window-body h2 {
    font-weight: normal;
    color: #003399;
    font-size: 12pt;
}

.window-body h3,
h4,
h5,
h6 {
    font-weight: bold;
    font-size: 9pt;
}

.window-body h3{
    font-size: 12pt;
}

.window-body h5{
    font-style: italic;
}


#content .window-body>p>img {
    width: 86%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    image-rendering: auto;
}

#content .window-body>p>img+em {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

#menu a>img {
    display: inline;
    height: 8px;
    object-fit: none;
    overflow: initial;
    padding-right: 8px;
}

.dreams-nav {
    display: flex;
    justify-content: space-between;
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery>* {
    width: calc(33% - 5px);
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

table#simfiles{
    border: 1px solid black;
    width: 100%;
}

#simfiles th, td {
    border: 1px solid black;
    text-align: center;
    min-width: 32px;
  }

#simfiles>tbody>tr>th:nth-of-type(2){
    min-width: 100px;
}

#simfiles>tbody>tr>th:nth-of-type(4){
    width: 69px;
}

#simfiles>tbody>tr>th:nth-of-type(5){
    width: 80px;
}