/* CSS that should apply to all webpages. */

/* Copied from XP.css since they don't seem to work by default */
:root {
    --sans-serif: "Pixelated MS Sans Serif", Arial;
    --surface: #ece9d8;
}

.window {
    max-height: 96%;
    max-width: 96%;
    width: fit-content;
    height: fit-content;
    min-width: 2%;
    min-height: 2%;
}

.windiv {
    position: absolute;
    z-index: 9;
    /* background-color: #f1f1f1;
			text-align: left;
			border: 1px solid #d3d3d3;
			width: 200px; */
}

.windivheader {
    padding: 10px;
    cursor: move;
    z-index: 10;
    text-wrap: nowrap;
    /* background-color: #2196F3;
  			color: #fff; */
}

.window>.title-bar {
    cursor: move;
}

.hide {
    display: none;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    max-height: 100%;
    overflow-y: hidden;
}

body {
    background-image: url('./media/heliotrox_background.png');
    background-size: 100% 100%;
}

.window-body {
    overflow: auto;
    height: calc(100% - 44px);
    /* (inherit-height 100%) - (title-bar 21px) - (title-bar-border 1px) - (title-bar-padding 2 x 3px) - (window-body-margin 2 x 8px) */
}

.ribbon+.window-body {
    height: calc(100% - 44px - 12px);
}

/* BSOD */

#bsod {
    z-index: 2147000000;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: blue;
    color: white;

    & pre {
        background-color: blue;
        font-size: xx-large;
    }
}

.body-bsod {
    background-image: initial;
    background-color: blue;
}

/* Title bar icon */
.title-bar-text>img {
    max-height: 25%;
    align-self: center;
    justify-self: center;
    margin-left: -8px;
}

/* Top ribbon */

.ribbon {
    margin: 0 3px;
    /* box-shadow: inset 0px 1px 2px var(--button-shadow); */
    padding: 2px 1px;
    /* gap: 0px; */
    /* display: flex;
    flex-direction: row; */
    height: 8px;
}

.ribbon-item {
    position: relative;
    display: inline-block;
    font-family: var(--sans-serif);
    background-color: var(--surface);
    padding: 0px 4px;
}

.ribbon-item-content {
    position: absolute;
    background-color: var(--surface);
    min-width: 160px;
    display: none;
    z-index: 1;
    padding: 2px 4px;
}

.ribbon-show {
    display: block;
}

/* --- */

footer {
    position: absolute;
    bottom: 0%;
    left: -5%;
    right: -5%;
    z-index: -1;
}