* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #8EBADA;

    cursor: default;
}

body.w95-crashed {
    cursor: none;
}


#w95-splash {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #94BDDC url("win95-splash.1787417804.jpg") center center / cover no-repeat;
}


#w95-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    color: #000000;

    width: 41em;
    background: #C0C0C0;
    padding: 0.25em;

    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #DFDFDF;
}

@media (min-width: 1600px) {
    #w95-dialog {
        font-size: 16px;
    }
}

@media (min-width: 2400px) {
    #w95-dialog {
        font-size: 21px;
    }
}

.w95-titlebar {
    background: #000080;
    color: #FFFFFF;
    font-weight: bold;
    text-align: center;
    padding: 0.2em 0.4em;
    margin-bottom: 0.6em;
    user-select: none;
}

.w95-body {
    display: flex;
    gap: 1.1em;
    padding: 0.3em 0.6em 0.6em;
}

.w95-art {
    flex: 0 0 auto;
    align-self: flex-start;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
}

.w95-art img {
    display: block;
    width: 10.5em;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.w95-main {
    flex: 1 1 auto;
    min-width: 0;
}

.w95-heading {
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 1.85em;
    font-weight: bold;
    margin: 0 0 0.7em;
    line-height: 1.1;
}

.w95-main p {
    margin: 0 0 1em;
}

.w95-progress-label {
    margin-bottom: 0.25em;
}

.w95-progress {
    position: relative;
    height: 1.5em;
    background: #C0C0C0;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    overflow: hidden;
}

.w95-progress-layer {
    position: absolute;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.w95-progress-trough {
    color: #000000;
}

.w95-progress-bar {
    color: #FFFFFF;
    background-image: repeating-linear-gradient(
        to right,
        #000080 0,
        #000080 0.62em,
        #C0C0C0 0.62em,
        #C0C0C0 0.75em
    );
    background-size: 0.75em 100%;
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
}

#w95-status {
    margin: 0.5em 0 0;
    height: 1.3em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.w95-footer {
    border-top: 1px solid #FFFFFF;
    box-shadow: inset 0 1px 0 #808080;
    margin-top: 0.5em;
    padding: 0.8em 0.6em 0.4em;
    display: flex;
    justify-content: flex-end;
    gap: 0.5em;
}

.w95-btn {
    font-family: inherit;
    font-size: 1em;
    min-width: 6.2em;
    padding: 0.3em 0.8em;
    background: #C0C0C0;
    color: #000000;
    cursor: default;

    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #DFDFDF;
}

.w95-btn:active {
    border-top-color: #404040;
    border-left-color: #404040;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    box-shadow: inset 1px 1px 0 #808080;
}

.w95-btn[disabled] {
    color: #808080;
    text-shadow: 1px 1px 0 #FFFFFF;
}

.w95-btn.w95-btn-default {
    outline: 1px solid #000000;
    outline-offset: 1px;
}


#w95-bsod {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;

    background: #0000AA;
    color: #AAAAAA;
    font-family: "Courier New", Courier, "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", monospace;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.45;

    padding: 6vh 4vw;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1600px) {
    #w95-bsod {
        font-size: 19px;
    }
}

@media (min-width: 2400px) {
    #w95-bsod {
        font-size: 25px;
    }
}

body.w95-crashed #w95-bsod {
    display: flex;
}

body.w95-crashed #w95-splash,
body.w95-crashed #w95-dialog,
body.w95-crashed #w95-hint {
    display: none;
}

#w95-bsod pre {
    margin: 0;
    font: inherit;
    white-space: pre-wrap;
    max-width: 72ch;
}

.w95-bsod-title {
    display: block;
    text-align: center;
    margin-bottom: 1.5em;
}

.w95-bsod-title span {
    background: #AAAAAA;
    color: #0000AA;
    padding: 0 0.5em;
}

.w95-bsod-prank {
    color: #FFFFFF;
}

.w95-bsod-continue {
    display: block;
    text-align: center;
    margin-top: 1.5em;
}

#w95-cursor {
    animation: w95-blink 1s steps(1, end) infinite;
}

@keyframes w95-blink {
    50% {
        opacity: 0;
    }
}


#w95-hint {
    position: fixed;
    left: 50%;
    bottom: 1.5em;
    transform: translateX(-50%);
    z-index: 4;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 20px;
    padding: 9px 18px;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: opacity 0.6s ease;
}

#w95-hint kbd {
    font-family: inherit;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 1px 6px;
}

#w95-hint.w95-hint-gone {
    opacity: 0;
    pointer-events: none;
}


@media (max-width: 760px) {
    #w95-dialog {
        font-size: 11px;
        width: 94vw;
    }

    .w95-art {
        display: none;
    }

    #w95-bsod {
        font-size: 12px;
        padding: 4vh 4vw;
    }
}
