html, body {
    /* The desktop is one screen - it never scrolls */
    height: 100%;
    overflow: hidden;
}
body {
    background: #008080;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    user-select: none;
    font-weight: 300;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

#start-bar {
    background: #c0c0c0;
    height: 2.5rem;
    position: absolute;
    bottom: 0;
    width: calc(100% - 1rem);
    display: flex;
    padding: 0.5rem;
    z-index: 999999999;
    justify-content: space-between;
    box-shadow: 0 -2px #fffdfc, 0 -4px #cce9eb;
}

#all-windows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999999;
    pointer-events: none;
    height: 100%;
}
#all-windows > div {
    pointer-events: all;
}
#all-windows > div {
    display: none;
}

#start-menu {
    bottom: 3.75rem;
    position: absolute;
    background: #c0c0c0;
    left: 0.25rem;
    width: 24rem;
    min-height: 3rem;
    display: none;
}
#start-button-input:checked ~ #start-bar > #start-menu {
    display: block;
}
#start-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#start-menu ul li label {
    height: 4rem;
    float: left;
    cursor: pointer;
    padding: 0 0.5rem 0 0.5rem;
    margin: 0 2.5rem;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    width: calc(100% - 3rem);
}

#start-menu > ul > li label:before {
    width: 10px;
    background: black;
    content: '';
    height: 1px;
    position: absolute;
    bottom: 20px;
    left: 3rem;
}
#start-menu > ul > li label:first-of-type:before {
    width: 14px;
}


#start-menu > ul > li label:hover:before {
    background: white;
}
#start-menu ul li.line label {
    box-shadow: 0 2px #808280, 0 4px white;
}
.line {
    box-shadow: 0 2px #808280, 0 4px white;
}
#start-menu ul li img {
    width: 2rem;
    height: auto;
    margin: 0 1rem 0 0;
}
#start-menu ul li label:hover {
    background: #0c1b98;
    color: white;
    box-shadow: -8px 0 #0c1b98, 8px 0 #0c1b98;
}
.windows-box-shadow {
    box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black;
}
.inverse-windows-box-shadow {
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}
#start-button {
    min-width: 104px;
    background-image: url(./images/StartBtn.png);
    width: 6.5rem;
    background-size: auto 80%;
    background-repeat: no-repeat;
    background-position: 0.25rem;
    cursor: pointer;
    height: 2.25rem;
}
#time-options {
    box-shadow: 0 2px white, 0 -2px #7d7d7d, -2px -2px #7d7d7d, 2px 2px white, -2px 2px #7d7d7d, 2px -2px white;
    min-width: 5rem;
    padding: 0 0.75rem;
    flex-shrink: 0;
    gap: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

#start-button:active {    
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}
label {
    display: block;
}
[type="checkbox"], [type="radio"] {
    display: none;
}

#start-button-input:checked ~ #start-menu {
    display: block;
}

#windows-start-menu-blue {
    color: white;
    font-weight: 900;
    position: absolute;
    transform: rotateZ(-90deg);
    width: 24rem;
    font-size: 1.25rem;
    font-family: "Arial Black", sans-serif;
    background: #011590;
    left: 0;
    transform-origin: 0 0;
    top: 24rem;
    box-sizing: border-box;
    padding: 0.125rem 0.75rem;
}
#windows-start-menu-blue span {
    font-weight: 100;
    font-family: "Arial", sans-serif;
}

.programs label:after {
    content: '';
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent black;
    position: absolute;
    top: 1.5rem;
    right: 0.25rem;
}
.programs label:hover:after {
    border-color: transparent transparent transparent white;
}
#desktop {    
    position: absolute;
    top: 0;
    padding: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    height: calc(100% - 3.75rem);
    left: 0;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.desktop-item {
    color: white;
    text-align: center;
    cursor: pointer;
    align-items: center;
    border: 1px solid transparent;
    flex-direction: column;
    max-width: 7rem;
    width: 7rem;
    justify-content: center;
    min-height: 6.25rem;
    margin: 0;
    padding: 0.25rem 0;
    user-select: none;
    transition: opacity 0.1s;
}
.desktop-item.dragging {
    opacity: 0.8;
    z-index: 1000;
    cursor: move;
}
.desktop-item .icon {
  display: block;
}
.desktop-item img {
    width: 3rem;
    margin: 0 0 0.75rem 0;
}
a.desktop-item {
  text-decoration: none;
}
.desktop-item .text {
    display: inline;
    margin: 0.5rem 0;
    text-align: center;
}

.desktop-item:active .text {
    background: #005959;
}

#login-screen {
    width: 100%;
    height: 100%;
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    background: #008080;
    z-index: 9999999999;
    align-items: center;
    justify-content: center;
}
#shutdown-screen {
    display: none;
    pointer-events: none;
}

#login-screen-input:checked ~ #login-screen, #shutdown-screen-input:checked ~ #shutdown-screen {
    display: flex;
    pointer-events: all;
}

.window {
    background: #b9b9b9;
    margin: 0.5rem;
    margin-top: -5rem;
    z-index: 999999;
    overflow: hidden;
    position: relative;
    width: 20rem;
    height: 21rem;
}
.window.ie {
    width: 60%;
    min-width: 20rem;
    left: 10%;
    margin-top: 0;
    position: absolute;
    top: 5rem;
    height: 20rem;
    min-height: 20rem;
}
.window.help {
    width: 35rem;
    left: 15%;
    margin-top: 0;
    position: absolute;
    top: 7.5rem;
    height: 25rem;
    min-height: 25rem;
}

.window.minesweeper {
    width: 16rem;
    min-width: 16rem;
    height: 23rem;
    position: absolute;
    top: 7rem;
    left: 11rem;
    min-height: 11rem;
}
.window.notepad {
    width: 40%;
    min-width: 40%;
    left: 34%;
    margin-top: 0;
    position: absolute;
    top: 7rem;
    height: 20rem;
    min-height: 20rem;
}
.window.trash {
    width: 50%;
    min-width: 50%;
    left: 30%;
    margin-top: 0;
    position: absolute;
    top: 9rem;
    height: 20rem;
    min-height: 20rem;
}
.window.documents {
    width: 50%;
    min-width: 50%;
    left: 40%;
    margin-top: 0;
    position: absolute;
    top: 14rem;
    height: 20rem;
    min-height: 20rem;
}
.window.update {
    width: 40rem;
    min-width: 40rem;
    left: 20%;
    margin-top: 0;
    position: absolute;
    top: 11rem;
    height: 16rem;
    min-height: 16rem;
}
.window.update-successful {
    width: 19rem;
    min-width: 19rem;
    left: 30%;
    margin-top: 0;
    position: absolute;
    top: 16rem;
    height: 10rem;
    min-height: 10rem;
}
.window .header {
    background: linear-gradient(90deg, #000b7c, #377cc6);
    color: white;
    padding: 0.25rem;
    cursor: move;
    user-select: none;
}
.window .header label {
    cursor: move;
}
.window-content {
    padding: 0.5rem;
}
#login-window img {
    width: 14rem;
}
.select-box {
    background: white;
    margin: 1rem;
    padding-bottom: 3rem;
}
.select-box label {
    padding: 0.25rem;
}

.window.update-successful .content {
    margin: 1rem;
    width: calc(100% - 2rem);
}
.ok-cancel {
    text-align: right;
    float: left;
    width: calc(100% - 2rem);
    margin: 1rem;
}
.margin-input {
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
}
.ok-cancel > label {
    display: inline-block;
    margin: 0 0 0 0.5rem;
    padding: 0.25rem;
    cursor: pointer;
    min-width: 4rem;
    text-align: center;
}
.logout-prompt {
    display: none;
}

#login-screen:has(#login-window .select-box #zark-muckerberg:checked) ~ #start-bar .zark-muckerberg,
#login-screen:has(#login-window .select-box #donald-trump:checked) ~ #start-bar .donald-trump,
#login-screen:has(#login-window .select-box #spiderman:checked) ~ #start-bar .spiderman {
    display: inline;
    padding-left: 0.5rem;
}
.ok-cancel > label:active {
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}
input[type="text"], input[type="password"] {
    border: none;
}
input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
}
input[type="submit"], .submit-label {
    background: #b9b9b9;
    font-weight: 400;
    border: none;
}
#zark-muckerberg:checked ~ #zark-muckerberg-label,
#donald-trump:checked ~ #donald-trump-label,
#spiderman:checked ~ #spiderman-label {
    background: #0c1b98;
    color: white;
}
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: none;
    height: 100%;
    background: #ffffff;
}
.window.ie iframe[src="about:blank"] {
    background: #ffffff;
}
.content {
    position: relative;
    float: left;
    width: 100%;
    height: 100%;
}
.options {
    display: flex;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    position: relative;
}
.options:before, #items:before {
    content: '';
    width: 2px;
    height: calc(100% - 1rem);
    position: absolute;
    background: #f2f2f2;
    box-shadow: 1px 1px 0 #818181;
    left: 0.5rem;
    top: 0.5rem;
}
#items:before {
    top: 0;
    height: calc(100% - 2px);
}
.options > div {
    padding: 0 1rem 0 0;
    opacity: 0.5;
}
.options.padding {
    padding: 0.75rem 0.5rem 0.5rem 1.25rem;
}
.options.padding > input {
    width: 100%;
    padding: 0.25rem;
    box-sizing: border-box;
}
.window.ie .options.padding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.window.ie .options.padding > input {
    flex: 1;
    width: auto;
    min-width: 0;
}
.window.ie #ie-go-button {
    background: #c0c0c0;
    border: none;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    margin-left: 0;
}
.window.ie #ie-go-button:active {
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}
.options .item.float-right {
    position: absolute;
    top: 0;
    right: -1rem;
    opacity: 1;
}
.header-buttons {
    position: absolute;
    display: flex;
    top: 0.3rem;
    z-index: 9999;
    right: 0.3rem;
    cursor: pointer;
}
.header-buttons > label {
    background: #c0c0c0;
    width: 1rem;
    height: 1rem;
    font-family: "Arial Black", sans-serif;
    box-sizing: border-box;
    font-size: 0.75rem;
    position: relative;
    color: black;
    line-height: 1rem;
    margin: 0 0 0 0.55rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
}
.header-buttons {
    cursor: default;
}
.header-buttons > label.maximize:after,
.header-buttons > label.maximize:before {
    content: '';
    width: 0.3rem;
    border: 2px solid black;
    border-top: 3px solid black;
    background: #c0c0c0;
    height: 0.25rem;
    top: 5px;
    position: absolute;
    left: 1px;
    z-index: 2;
}
.header-buttons > label.maximize:before {
    top: 1px;
    left: 5px;
    z-index: 1;
    width: 0.3rem;
}
.header-buttons > label.minimize:before {
    content: '';
    background: black;
    width: 7px;
    position: relative;
    top: 3px;
    height: 3px;
}
.header-buttons > label:active {
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}
#start-button-items {
    display: flex;
    width: calc(100% - 4rem);
}
#items {
    margin: 0 0 0 1rem;
    padding: 0 0 0 2rem;
    display: flex;
    overflow: hidden;
    padding: 4px 0 0 2rem;
    position: relative;
    position: relative;
    top: -3px;
    height: calc(100% + -1px);
}

.update .content {
    margin: 1rem;
    width: calc(100% - 2rem);
}

.update .content .ok-cancel label:after {
    content: "Cancel"
}

#update-input:checked ~ #all-windows .update .content .ok-cancel label:after {
    content: "Close";
}
#update-input:checked ~ #desktop .update,
#update-input:checked ~ #start-bar #start-menu .update {
    display: none;
}
#update-input:checked ~ #start-bar #time-options:after {
    content: '4:20 PM'
}
#update-input:checked ~ #background {
    background-color: black;
    background-repeat: no-repeat;
    background-image: url(../images/windows98-future-edition.jpg);
    background-size: 100% auto;
}
.update .ok-cancel {
    margin: 1rem 0;
    width: 100%;
}
#install-bar {
    border: 2px inset;
    height: 1.5rem;
    margin: 1rem 0;
    display: flex;
}
#install-bar > div {
    background: #000b7c;
    height: calc(100% - 4px);
    width: 1.28rem;
    margin: 0.125rem;
}
#items > label {
    height: calc(100% - 4px);
    display: flex;
    width: 10.5rem;
    align-items: center;
    cursor: pointer;
    display: none;
    box-sizing: border-box;
    margin: 0 1rem 0 0;
    font-weight: 600;
    padding: 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#items > label span {
    display: block;
    overflow: hidden;
    min-width: 2rem;
    text-overflow: ellipsis;
}

.file {
    cursor: pointer;
    margin: 0 1rem 0 0;
    text-align: center;
    min-width: 6rem;
}

.file .image {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 0 1rem 0;
}
.file .text {
    white-space: nowrap;
    padding: 2px;
}

#windows-11:checked ~ .windows-11 .text,
#macos:checked ~ .macos .text,
#itunes:checked ~ .itunes .text,
#secret-codes:checked ~ .secret-codes .text,
#diary:checked ~ .diary .text {
    background: #000a7c;
    color: white;
}
#items > label:active {
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}

#items > label img {
    width: 1.75rem;
    padding: 0 0.5rem 0 0;
}

textarea {
    width: 100%;
    position: relative;
    padding: 1.5rem;
    box-sizing: border-box;
    top: 2px;
    height: 100%;
    border: none;
    appearance: none;
}
textarea:focus {
    outline: none;
}

.content.white {
    background: white;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    margin-top: 2px;
}

#windows-ie-input-max:checked ~ #all-windows .ie,
#windows-notepad-input-max:checked ~ #all-windows .notepad,
#windows-trash-input-max:checked ~ #all-windows .trash,
#windows-documents-input-max:checked ~ #all-windows .documents,
#windows-minesweeper-input-max:checked ~ #all-windows .minesweeper,
#windows-update-input-max:checked ~ #all-windows .update,
#windows-help-input-max:checked ~ #all-windows .help {
    /* !important beats the inline position/size left behind by dragging or resizing */
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: calc(100% - 3.75rem) !important;
    max-width: none;
    max-height: none;
    z-index: 9999999;
}
#windows-ie-input:checked ~ #all-windows .ie,
#windows-notepad-input:checked ~ #all-windows .notepad,
#windows-trash-input:checked ~ #all-windows .trash,
#windows-documents-input:checked ~ #all-windows .documents,
#windows-minesweeper-input:checked ~ #all-windows .minesweeper,
#windows-update-input:checked ~ #all-windows .update,
#windows-help-input:checked ~ #all-windows .help {
    display: block;
}
#windows-ie-input:checked ~ #start-bar .ie-tab,
#windows-notepad-input:checked ~ #start-bar .notepad-tab,
#windows-trash-input:checked ~ #start-bar .trash-tab,
#windows-documents-input:checked ~ #start-bar .documents-tab,
#windows-minesweeper-input:checked ~ #start-bar .minesweeper-tab,
#windows-update-input:checked ~ #start-bar .update-tab,
#windows-help-input:checked ~ #start-bar .help-tab {
    display: flex;
}
#windows-ie-input-min:checked ~ #all-windows .ie,
#windows-notepad-input-min:checked ~ #all-windows .notepad,
#windows-trash-input-min:checked ~ #all-windows .trash,
#windows-documents-input-min:checked ~ #all-windows .documents,
#windows-minesweeper-input-min:checked ~ #all-windows .minesweeper,
#windows-update-input-min:checked ~ #all-windows .update,
#windows-help-input-min:checked ~ #all-windows .help {
    display: none;
}
#windows-ie-input:checked ~ #start-bar .ie-tab,
#windows-notepad-input:checked ~ #start-bar .notepad-tab,
#windows-trash-input:checked ~ #start-bar .trash-tab,
#windows-documents-input:checked ~ #start-bar .documents-tab,
#windows-minesweeper-input:checked ~ #start-bar .minesweeper-tab,
#windows-update-input:checked ~ #start-bar .update-tab,
#windows-help-input:checked ~ #start-bar .help-tab {
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}
#windows-ie-input-min:checked ~ #start-bar .ie-tab,
#windows-notepad-input-min:checked ~ #start-bar .notepad-tab,
#windows-trash-input-min:checked ~ #start-bar .trash-tab,
#windows-documents-input-min:checked ~ #start-bar .documents-tab,
#windows-minesweeper-input-min:checked ~ #start-bar .minesweeper-tab,
#windows-update-input-min:checked ~ #start-bar .update-tab,
#windows-help-input-min:checked ~ #start-bar .help-tab {
    box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black;
}
#windows-ie-input-on-top:checked ~ #all-windows .ie,
#windows-notepad-input-on-top:checked ~ #all-windows .notepad,
#windows-trash-input-on-top:checked ~ #all-windows .trash,
#windows-documents-input-on-top:checked ~ #all-windows .documents,
#windows-minesweeper-input-on-top:checked ~ #all-windows .minesweeper,
#windows-update-input-on-top:checked ~ #all-windows .update,
#windows-help-input-on-top:checked ~ #all-windows .help {
    z-index: 9999999;
}

.hard-show {
    display: block !important;
}

/* Minesweeper */
.minesweeper .score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem 0.75rem 0 0.75rem;
    padding: 0.25rem 0.4rem;
    border: 3px inset;
}
.minesweeper .scoreboard {
    background: black;
    color: red;
    border: 2px inset;
    font-family: "Courier New", monospace;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 1px;
    padding: 0.1rem 0.2rem;
    min-width: 3rem;
    text-align: center;
}
.minesweeper .smiley-face {
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    background-color: #b9b9b9;
    background-image: url(./images/minesweeper-smiley-face.png);
    background-size: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: -2px -2px white, 2px 2px #818181, 2px -2px #b9b9b9, -2px 2px #b9b9b9, 0 0 0 3px #818181;
}
.minesweeper .smiley-face:active {
    box-shadow: inset 2px 2px #818181, 0 0 0 3px #818181;
    background-position: calc(50% + 1px) calc(50% + 1px);
}
.minesweeper .smiley-face.dead {
    background-image: url(./images/minesweeper-ded-face.png);
}
.minesweeper .smiley-face.won::after {
    content: '😎';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.3rem;
    background: #b9b9b9;
}
.minesweeper .content {
    display: grid;
    grid-template-columns: repeat(9, 1.25rem);
    grid-auto-rows: 1.25rem;
    width: max-content;
    margin: 0.75rem;
    border: 3px inset;
    user-select: none;
}
.ms-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    background: #b9b9b9;
    box-shadow: inset 2px 2px white, inset -2px -2px #818181;
}
.ms-cell.flag::after {
    content: '🚩';
    font-size: 0.7rem;
}
.ms-cell.open {
    cursor: default;
    box-shadow: inset 1px 1px #818181;
}
.ms-cell.mine {
    background-image: url(./images/minesweeper-mine.png);
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}
.ms-cell.boom { background-color: red; }
.ms-cell.wrong-flag::after {
    content: '✕';
    color: red;
    font-size: 1rem;
}
.ms-cell[data-n="1"] { color: #0000ff; }
.ms-cell[data-n="2"] { color: #008000; }
.ms-cell[data-n="3"] { color: #ff0000; }
.ms-cell[data-n="4"] { color: #000080; }
.ms-cell[data-n="5"] { color: #800000; }
.ms-cell[data-n="6"] { color: #008080; }
.ms-cell[data-n="7"] { color: #000000; }
.ms-cell[data-n="8"] { color: #808080; }
#all-windows .update #install-bar > div {
    opacity: 0;
}
@keyframes show {
    0% {
        opacity: 0;
        pointer-events: none;
    }
    100% {
        opacity: 1;
        pointer-events: all;
    }
}
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(1) { animation: show 0.01s forwards 1 0s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(2) { animation: show 0.01s forwards 1 1s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(3) { animation: show 0.01s forwards 1 2s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(4) { animation: show 0.01s forwards 1 3s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(5) { animation: show 0.01s forwards 1 4s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(6) { animation: show 0.01s forwards 1 5s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(7) { animation: show 0.01s forwards 1 6s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(8) { animation: show 0.01s forwards 1 7s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(9) { animation: show 0.01s forwards 1 8s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(10) { animation: show 0.01s forwards 1 9s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(11) { animation: show 0.01s forwards 1 10s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(12) { animation: show 0.01s forwards 1 11s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(13) { animation: show 0.01s forwards 1 12s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(14) { animation: show 0.01s forwards 1 13s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(15) { animation: show 0.01s forwards 1 14s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(16) { animation: show 0.01s forwards 1 15s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(17) { animation: show 0.01s forwards 1 16s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(18) { animation: show 0.01s forwards 1 17s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(19) { animation: show 0.01s forwards 1 18s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(20) { animation: show 0.01s forwards 1 19s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(21) { animation: show 0.01s forwards 1 20s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(22) { animation: show 0.01s forwards 1 21s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(23) { animation: show 0.01s forwards 1 22s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(24) { animation: show 0.01s forwards 1 23s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(25) { animation: show 0.01s forwards 1 24s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(26) { animation: show 0.01s forwards 1 25s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(27) { animation: show 0.01s forwards 1 26s; }
#windows-update-input:checked ~ #all-windows .update #install-bar > div:nth-of-type(28) { animation: show 0.01s forwards 1 27s; }
#windows-update-input:checked ~ #all-windows .update-successful { animation: show 0.01s forwards 1 27s; }
#all-windows .update img {
    width: 20rem;
}
#all-windows .update .content, #all-windows .update {
    background: #c0c0c0;
}

#all-windows .update .title {
    margin: 1rem 0 0 0;
}

#windows-update-input:checked ~ #all-windows .update-successful {
    display: block;
    opacity: 0;
    pointer-events: none;
}
#update-input:checked ~ #start-bar #windows-start-menu-blue {
    width: 20rem;
    top: 20rem;
}
#update-input:checked ~ #all-windows .update-successful {
    display: none;
}

#background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.programs {
    position: relative;
}
#start-bar .programs > ul { 
    /* Hidden with visibility (not display) so it can stay open briefly after the
       mouse leaves - lets you move diagonally across to the submenu, like real Windows */
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(9, auto);
    visibility: hidden;
    transition: visibility 0s linear 0.5s;
    position: absolute;
    top: 4rem;
    left: calc(100% - 6px);
    background: silver;
    list-style: none;
    padding: none;
    margin: 0;
}
.programs > ul label:after,
.programs > ul label:before {
    display: none;
}

#start-menu .programs ul img {
    width: 1rem;
    margin: 0 0.5rem 0 0;
}
#start-menu .programs ul label {
    margin: 0;
    width: 100%;
    padding: 0;
    height: auto;
    padding: 0.5rem;
    width: 14rem;
}
#start-bar .programs:hover > ul { 
    visibility: visible;
    transition-delay: 0s;
}
#start-bar .programs > ul {
    /* Columns of 9 that grow upward from the Programs row, so a long list stays on screen.
       The Programs <li> has no height (its label floats one row down), so its box sits
       one row above the label: -8rem puts the submenu's bottom level with the Programs row */
    top: auto;
    bottom: -8rem;
}
#start-menu .programs ul li label:hover {
    box-shadow: none;   
}

#shutdown-screen [for="shutdown-screen-input"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    z-index: 99999999999;
    background-repeat: no-repeat;
    background-color: black;
    background-position: 50% 50%;
}
.tab-box {
    min-width: 30%;
}
.tab-header {
    box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px 0 white, 0 -4px white, 2px 0 #818181, 2px -2px #818181, 4px 0 black;
    float: left;
    padding: 0.25rem;
}
.tab-box img {
    width: 1rem;
    float: left;
    padding: 0 0.25rem 1rem 0;
}
.tab-box .box {
    width: 100%;
    background: white;
    float: left;
    border: 2px inset;
    padding: 0;
    position: relative;
    left: -4px;
    list-style: none;
    margin: 0;
}

.tab-box .box label {
    padding: 0.25rem;
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;
    float: left;
}

.help .content {
    background: white;
    width: calc(100% - 2rem);
    border: 2px inset;
    margin: 0 0 0 1rem;    
    min-height: 16rem;
    overflow: scroll;
    max-height: 16rem;
    top: 1.6rem;
}
.help .tab-box-content {
    display: flex;
    margin: 1rem;
}
.tab-box-content .content > div {
    display: none;
}
.tab-box-content #topic-1:checked ~ .content .topic-1-content,
.tab-box-content #topic-2:checked ~ .content .topic-2-content,
.tab-box-content #topic-3:checked ~ .content .topic-3-content,
.tab-box-content #topic-4:checked ~ .content .topic-4-content,
.tab-box-content #topic-5:checked ~ .content .topic-5-content {
    display: block;
}
.tab-box-content #topic-1:checked ~ .tab-box ul label[for="topic-1"],
.tab-box-content #topic-2:checked ~ .tab-box ul label[for="topic-2"],
.tab-box-content #topic-3:checked ~ .tab-box ul label[for="topic-3"],
.tab-box-content #topic-4:checked ~ .tab-box ul label[for="topic-4"],
.tab-box-content #topic-5:checked ~ .tab-box ul label[for="topic-5"] {
    background: #000a7c;
    color: white;
}
h2 {
    margin: 0;
}
.tab-box-content .content > div {
    padding: 1rem;
    box-sizing: border-box;
}

.minesweeper-in-win {
    text-decoration: none; color: black;
}
.minesweeper-in-win:hover {
    color: white;
}
/* Game windows (see games.js) */
.window.game-window {
    position: absolute;
    top: 3rem;
    left: 18%;
    width: 42rem;
    height: 33rem;
    min-width: 16rem;
    min-height: 12rem;
    margin-top: 0;
}
.game-window .game-screen {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: black;
    overflow: hidden;
}
.game-window .game-view {
    position: absolute;
    overflow: hidden;
}
.game-window .game-screen iframe {
    transform-origin: 0 0;
    background: black;
}
body.dragging-window iframe {
    pointer-events: none;
}

/* Windows can never grow bigger than the screen (above the taskbar) */
#all-windows > .window {
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 4.25rem);
}

/* Greyed-out Start menu item that does nothing when clicked */
#start-menu ul li.disabled label {
    pointer-events: none;
    color: #808080;
    text-shadow: 1px 1px white;
}
#start-menu ul li.disabled img {
    opacity: 0.5;
}

/* Log Off: MS-DOS prompt (see dos.js) */
#dos-screen {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 9999999999;
    background: black;
    color: #c0c0c0;
    font-family: "Courier New", Consolas, monospace;
    font-size: 1.25rem;
    line-height: 1.3;
    padding: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
    cursor: default;
    overflow-y: auto;
    box-sizing: border-box;
}
#login-screen-input:checked ~ #dos-screen {
    display: block;
}
.dos-cursor {
    animation: dos-blink 1s steps(1) infinite;
}
@keyframes dos-blink {
    50% { visibility: hidden; }
}

/* Resize handles on every edge and corner (see window-resize.js).
   Big hotspots so they're easy to grab; the title-bar buttons sit above them, so the corner
   handles never block Minimise / Maximise / Close. */
.resize-handle {
    position: absolute;
    z-index: 10;
}
.resize-handle.n, .resize-handle.s { left: 16px; right: 16px; height: 8px; cursor: url(./images/cursors/ns.png) 16 16, ns-resize; }
.resize-handle.e, .resize-handle.w { top: 16px; bottom: 16px; width: 8px; cursor: url(./images/cursors/ew.png) 16 16, ew-resize; }
.resize-handle.n { top: 0; height: 6px; }
.resize-handle.s { bottom: 0; }
.resize-handle.e { right: 0; }
.resize-handle.w { left: 0; }
.resize-handle.ne, .resize-handle.nw { width: 16px; height: 16px; }
.resize-handle.se, .resize-handle.sw { width: 28px; height: 28px; }
.resize-handle.ne { top: 0; right: 0; cursor: url(./images/cursors/nesw.png) 16 16, nesw-resize; }
.resize-handle.sw { bottom: 0; left: 0; cursor: url(./images/cursors/nesw.png) 16 16, nesw-resize; }
.resize-handle.nw { top: 0; left: 0; cursor: url(./images/cursors/nwse.png) 16 16, nwse-resize; }
.resize-handle.se { bottom: 0; right: 0; cursor: url(./images/cursors/nwse.png) 16 16, nwse-resize; }
/* Win95-style size grip (diagonal ridges) in the bottom-right corner */
.resize-handle.se::after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg,
        transparent 0 45%, white 45% 50%, #808080 50% 60%,
        transparent 60% 70%, white 70% 75%, #808080 75% 85%, transparent 85%);
    pointer-events: none;
}
body.resizing-window, body.resizing-window * {
    user-select: none;
}
body.resizing-window iframe {
    pointer-events: none;
}

/* Invisible bridge over the gap between the Programs row and its submenu,
   so moving the mouse across doesn't close the submenu */
#start-bar .programs > ul::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 16px;
}

#taskbar-modem {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
    cursor: default;
}

/* VIRUS.EXE flash (see dos.js) */
#virus-flash {
    position: fixed;
    inset: 0;
    z-index: 99999999999;
    cursor: none;
}

/* Terminal.exe window (same prompt as Log Off, see dos.js) */
.window.terminal {
    position: absolute;
    top: 4rem;
    left: 22%;
    width: 40rem;
    height: 26rem;
    min-width: 16rem;
    min-height: 10rem;
    margin-top: 0;
}
.window.terminal .dos {
    position: absolute;
    top: 30px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: black;
    color: #c0c0c0;
    font-family: "Courier New", Consolas, monospace;
    font-size: 1rem;
    line-height: 1.3;
    padding: 0.4rem;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-y: auto;
    cursor: text;
}
#windows-terminal-input:checked ~ #all-windows .terminal { display: block; }
#windows-terminal-input-min:checked ~ #all-windows .terminal { display: none; }
#windows-terminal-input-on-top:checked ~ #all-windows .terminal { z-index: 9999999; }
#windows-terminal-input-max:checked ~ #all-windows .terminal { left: 0 !important; top: 0 !important; margin: 0 !important; width: 100% !important; height: calc(100% - 3.75rem) !important; max-width: none; max-height: none; z-index: 9999999; }
#windows-terminal-input:checked ~ #start-bar .terminal-tab { display: flex; box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white; }
#windows-terminal-input-min:checked ~ #start-bar .terminal-tab { box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black; }

/* Documents window files (see documents.js) */
.window.documents .content.white {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem 0;
    overflow-y: auto;
}
.window.documents .file {
    width: 8.5rem;
    min-width: 8.5rem;
}
.window.documents .file .text {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
}
.window.documents .file.selected .text {
    background: #000a7c;
    color: white;
}

/* Recycle Bin (see recycle-bin.js) */
.desktop-item.in-bin {
    display: none !important;
}
.desktop-item.drop-target .icon img {
    filter: brightness(1.3) drop-shadow(0 0 4px white);
}
.desktop-item.drop-target .text {
    background: #000a7c;
}
.bin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
}
.bin-actions button, .bin-confirm-buttons button {
    background: #c0c0c0;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
}
.bin-actions button:disabled {
    color: #808080;
    text-shadow: 1px 1px white;
    cursor: default;
}
.window.trash .content.white {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem 0;
    overflow-y: auto;
    height: calc(100% - 7rem);
}
.window.trash .file {
    width: 7rem;
    min-width: 7rem;
}
.window.trash .file .image img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}
.window.trash .file.selected .text {
    background: #000a7c;
    color: white;
}
.bin-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bin-confirm {
    background: #c0c0c0;
    width: 24rem;
}
.bin-confirm .header {
    background: linear-gradient(90deg, #000b7c, #377cc6);
    color: white;
    padding: 0.25rem;
}
.bin-confirm-body {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}
.bin-confirm-body img {
    width: 2rem;
}
.bin-confirm-body p {
    margin: 0;
}
.bin-confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 0 1rem;
}
.bin-confirm-buttons button {
    min-width: 5rem;
}

/* Dial-up Connection box (see dialup.js) */
.dialup-dialog {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 22rem;
    background: #c0c0c0;
    z-index: 99999999999;
}
.dialup-dialog .header {
    background: linear-gradient(90deg, #000b7c, #377cc6);
    color: white;
    padding: 0.25rem;
}
.dialup-body {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}
.dialup-body img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}
.dialup-body p {
    margin: 0;
}
.dialup-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem 1rem;
}
.dialup-buttons button {
    background: #c0c0c0;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 0.3rem 0.9rem;
    min-width: 5rem;
    cursor: pointer;
}

/* Netscape Navigator window (same browser as IE, see ie-navigation.js) */
.window.netscape {
    width: 60%;
    min-width: 20rem;
    left: 16%;
    margin-top: 0;
    position: absolute;
    top: 7rem;
    height: 20rem;
    min-height: 20rem;
}
.window.netscape .options.padding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.window.netscape .options.padding > input {
    flex: 1;
    width: auto;
    min-width: 0;
}
.window.netscape #ns-go-button {
    background: #c0c0c0;
    border: none;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    margin-left: 0;
}
.window.netscape #ns-go-button:active {
    box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white;
}
.window.netscape .ns-logo {
    right: 0;
    top: 2px;
}
.window.netscape .ns-logo img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    display: block;
}
#windows-netscape-input:checked ~ #all-windows .netscape { display: block; }
#windows-netscape-input-min:checked ~ #all-windows .netscape { display: none; }
#windows-netscape-input-on-top:checked ~ #all-windows .netscape { z-index: 9999999; }
#windows-netscape-input-max:checked ~ #all-windows .netscape { left: 0 !important; top: 0 !important; margin: 0 !important; width: 100% !important; height: calc(100% - 3.75rem) !important; max-width: none; max-height: none; z-index: 9999999; }
#windows-netscape-input:checked ~ #start-bar .netscape-tab { display: flex; box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white; }
#windows-netscape-input-min:checked ~ #start-bar .netscape-tab { box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black; }

/* Big resize cursor while hovering the grab band outside a window, or while resizing (window-resize.js) */
html.resize-cursor-ns, html.resize-cursor-ns * { cursor: url(./images/cursors/ns.png) 16 16, ns-resize !important; }
html.resize-cursor-ew, html.resize-cursor-ew * { cursor: url(./images/cursors/ew.png) 16 16, ew-resize !important; }
html.resize-cursor-nwse, html.resize-cursor-nwse * { cursor: url(./images/cursors/nwse.png) 16 16, nwse-resize !important; }
html.resize-cursor-nesw, html.resize-cursor-nesw * { cursor: url(./images/cursors/nesw.png) 16 16, nesw-resize !important; }

/* Browsers open at 800 x 600 (shrunk to fit on smaller screens) */
.window.ie, .window.netscape {
    width: 800px;
    height: 600px;
    min-width: 20rem;
    min-height: 20rem;
}
.window.ie { top: 2rem; left: 12%; }
.window.netscape { top: 3.5rem; left: 15%; }

/* VirusScan 95 window (see virus-scan.js) */
.window.virusscan {
    position: absolute;
    top: 6rem;
    left: 30%;
    width: 30rem;
    height: 22rem;
    min-width: 22rem;
    min-height: 18rem;
    margin-top: 0;
}
.vs-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.vs-top {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.vs-top img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}
.vs-title {
    font-weight: bold;
}
.vs-file {
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 24rem;
}
.vs-bar {
    height: 1.25rem;
    background: white;
    padding: 2px;
}
#vs-bar-fill {
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(90deg, #000a7c 0 10px, transparent 10px 12px);
}
.vs-result {
    min-height: 4.5rem;
    white-space: pre-wrap;
}
.vs-result.found {
    color: #c00000;
}
.vs-result .vs-question {
    color: black;
    font-weight: bold;
    display: block;
    margin-top: 0.5rem;
}
.vs-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
.vs-buttons button {
    background: #c0c0c0;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
}
.vs-buttons button:disabled {
    color: #808080;
    text-shadow: 1px 1px white;
    cursor: default;
}
#windows-virusscan-input:checked ~ #all-windows .virusscan { display: block; }
#windows-virusscan-input-min:checked ~ #all-windows .virusscan { display: none; }
#windows-virusscan-input-max:checked ~ #all-windows .virusscan { left: 0 !important; top: 0 !important; margin: 0 !important; width: 100% !important; height: calc(100% - 3.75rem) !important; max-width: none; max-height: none; }
#windows-virusscan-input:checked ~ #start-bar .virusscan-tab { display: flex; box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white; }
#windows-virusscan-input-min:checked ~ #start-bar .virusscan-tab { box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black; }

/* "You found the virus" box over the black screen (see detectives.js) */
.detective-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26rem;
    background: #c0c0c0;
    z-index: 999999999999;
}
.detective-dialog .header {
    background: linear-gradient(90deg, #000b7c, #377cc6);
    color: white;
    padding: 0.25rem;
}
.detective-body {
    padding: 1rem 1rem 0.5rem;
}
.detective-body p {
    margin: 0 0 0.75rem;
}
.detective-big {
    font-size: 1.2rem;
    font-weight: bold;
}
.detective-body input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.35rem;
    font-size: 1rem;
    border: none;
    background: white;
}
.detective-message {
    min-height: 1.2em;
    margin-top: 0.5rem !important;
    color: #000a7c;
}
.detective-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}
.detective-buttons button {
    background: #c0c0c0;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 0.3rem 0.9rem;
    min-width: 5rem;
    cursor: pointer;
}

/* Pictures and Picture Viewer windows (see pictures.js) */
.window.pictures {
    position: absolute;
    top: 5rem;
    left: 25%;
    width: 44rem;
    height: 26rem;
    min-width: 20rem;
    min-height: 14rem;
    margin-top: 0;
}
.window.pictures .content.white {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem 0;
    overflow-y: auto;
    height: calc(100% - 4.5rem);
}
.window.pictures .file {
    width: 8.5rem;
    min-width: 8.5rem;
}
.window.pictures .file .image {
    margin-bottom: 0.4rem;
}
.window.pictures .file .image img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #808080;
    background: #e0e0e0;
}
.window.pictures .file .text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.window.pictures .file.selected .text {
    background: #000a7c;
    color: white;
}
.pictures-message {
    color: #606060;
    margin: 0;
}
.window.viewer {
    position: absolute;
    top: 3rem;
    left: 20%;
    width: 44rem;
    height: 34rem;
    min-width: 20rem;
    min-height: 14rem;
    margin-top: 0;
}
.window.viewer .viewer-image {
    position: absolute;
    top: 30px;
    left: 4px;
    right: 4px;
    bottom: 3rem;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}
.window.viewer .viewer-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.window.viewer .viewer-bar {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}
#viewer-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.viewer-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.viewer-buttons button {
    background: #c0c0c0;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
}
#windows-pictures-input:checked ~ #all-windows .pictures { display: block; }
#windows-pictures-input-min:checked ~ #all-windows .pictures { display: none; }
#windows-pictures-input-max:checked ~ #all-windows .pictures { left: 0 !important; top: 0 !important; margin: 0 !important; width: 100% !important; height: calc(100% - 3.75rem) !important; max-width: none; max-height: none; }
#windows-pictures-input:checked ~ #start-bar .pictures-tab { display: flex; box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white; }
#windows-pictures-input-min:checked ~ #start-bar .pictures-tab { box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black; }
#windows-viewer-input:checked ~ #all-windows .viewer { display: block; }
#windows-viewer-input-min:checked ~ #all-windows .viewer { display: none; }
#windows-viewer-input-max:checked ~ #all-windows .viewer { left: 0 !important; top: 0 !important; margin: 0 !important; width: 100% !important; height: calc(100% - 3.75rem) !important; max-width: none; max-height: none; }
#windows-viewer-input:checked ~ #start-bar .viewer-tab { display: flex; box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white; }
#windows-viewer-input-min:checked ~ #start-bar .viewer-tab { box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black; }

/* Text for search engines and screen readers, not shown on screen */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* "Open in a new tab" button on website windows (see games.js) */
.header-buttons > label.popout {
    width: auto;
    padding: 0 0.4rem;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Long file names on the desktop break mid-word to fit, like Windows 95 did */
.desktop-item .text.long-name {
    overflow-wrap: anywhere;
    /* At most two lines, then "..." (the full name shows on hover) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0; /* line up with the one-line names (their margin doesn't apply because they're inline) */
}

/* Movies folder window (see folders.js) */
.window.movies {
    position: absolute;
    top: 4rem;
    left: 22%;
    width: 46rem;
    height: 34rem;
    min-width: 20rem;
    min-height: 14rem;
    margin-top: 0;
}
.window.movies .content.white {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem 0;
    overflow-y: auto;
    height: calc(100% - 4.5rem);
}
.window.movies .file {
    width: 8rem;
    min-width: 8rem;
}
.window.movies .file .image img {
    width: 2rem;
    height: 2rem;
    image-rendering: pixelated;
}
.window.movies .file .text {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.window.movies .file.selected .text {
    background: #000a7c;
    color: white;
}
#windows-movies-input:checked ~ #all-windows .movies { display: block; }
#windows-movies-input-min:checked ~ #all-windows .movies { display: none; }
#windows-movies-input-max:checked ~ #all-windows .movies { left: 0 !important; top: 0 !important; margin: 0 !important; width: 100% !important; height: calc(100% - 3.75rem) !important; max-width: none; max-height: none; }
#windows-movies-input:checked ~ #start-bar .movies-tab { display: flex; box-shadow: -2px -2px #818181, -2px 0 #818181, 0 -2px #818181, -4px -4px black, -4px 0 black, 0 -4px black, 2px 2px #e0dede, 0 2px #e0dede, 2px 0 #e0dede,  2px -2px #818181, -2px 2px #e0dede, -4px 2px black, -4px 4px white, 4px 4px white, 4px 0 white, 0 4px white, 2px -4px black, 4px -4px white; }
#windows-movies-input-min:checked ~ #start-bar .movies-tab { box-shadow: -2px -2px #e0dede, -2px 0 #e0dede, 0 -2px #e0dede, -4px -4px white, -4px 0 white, 0 -4px white, 2px 2px #818181, 0 2px #818181, 2px 0 #818181,  2px -2px #e0dede, -2px 2px #818181, -4px 2px white, -4px 4px black, 4px 4px black, 4px 0 black, 0 4px black, 2px -4px white, 4px -4px black; }
