body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #146B3A;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body,
icon {
    font-family: Helvetica, Arial, Sans-Serif
}

/* scrollbar styling */
body ::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background: 0 0
}

body ::-webkit-scrollbar-button,
body ::-webkit-scrollbar-thumb {
    width: 16px;
    height: 16px;
    background: silver;
    box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px gray;
    border: 1px solid;
    border-color: silver #000 #000 silver
}

body ::-webkit-scrollbar-track {
    image-rendering: optimizeSpeed;
    image-rendering: pixelated;
    image-rendering: optimize-contrast;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTAuNSAyIDIiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyI+CjxtZXRhZGF0YT5NYWRlIHdpdGggUGl4ZWxzIHRvIFN2ZyBodHRwczovL2NvZGVwZW4uaW8vc2hzaGF3L3Blbi9YYnh2Tmo8L21ldGFkYXRhPgo8cGF0aCBzdHJva2U9IiNjMGMwYzAiIGQ9Ik0wIDBoMU0xIDFoMSIgLz4KPC9zdmc+);
    background-position: 0 0;
    background-repeat: repeat;
    background-size: 2px
}

body ::-webkit-scrollbar-button {
    background-repeat: no-repeat;
    background-size: 16px
}

body ::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTAuNSAxNiAxNiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj4KPG1ldGFkYXRhPk1hZGUgd2l0aCBQaXhlbHMgdG8gU3ZnIGh0dHBzOi8vY29kZXBlbi5pby9zaHNoYXcvcGVuL1hieHZOajwvbWV0YWRhdGE+CjxwYXRoIHN0cm9rZT0iIzAwMDAwMCIgZD0iTTcgNWgxTTYgNmgzTTUgN2g1TTQgOGg3IiAvPgo8L3N2Zz4=)
}

body ::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTAuNSAxNiAxNiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj4KPG1ldGFkYXRhPk1hZGUgd2l0aCBQaXhlbHMgdG8gU3ZnIGh0dHBzOi8vY29kZXBlbi5pby9zaHNoYXcvcGVuL1hieHZOajwvbWV0YWRhdGE+CjxwYXRoIHN0cm9rZT0iIzAwMDAwMCIgZD0iTTQgNWg3TTUgNmg1TTYgN2gzTTcgOGgxIiAvPgo8L3N2Zz4=)
}

body ::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTAuNSAxNiAxNiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj4KPG1ldGFkYXRhPk1hZGUgd2l0aCBQaXhlbHMgdG8gU3ZnIGh0dHBzOi8vY29kZXBlbi5pby9zaHNoYXcvcGVuL1hieHZOajwvbWV0YWRhdGE+CjxwYXRoIHN0cm9rZT0iIzAwMDAwMCIgZD0iTTggM2gxTTcgNGgyTTYgNWgzTTUgNmg0TTYgN2gzTTcgOGgyTTggOWgxIiAvPgo8L3N2Zz4=)
}

body ::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTAuNSAxNiAxNiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj4KPG1ldGFkYXRhPk1hZGUgd2l0aCBQaXhlbHMgdG8gU3ZnIGh0dHBzOi8vY29kZXBlbi5pby9zaHNoYXcvcGVuL1hieHZOajwvbWV0YWRhdGE+CjxwYXRoIHN0cm9rZT0iIzAwMDAwMCIgZD0iTTYgM2gxTTYgNGgyTTYgNWgzTTYgNmg0TTYgN2gzTTYgOGgyTTYgOWgxIiAvPgo8L3N2Zz4=)
}

body ::-webkit-scrollbar-corner {
    background: silver
}

/* FOS Component Overrides */
fos-desktop {
    background-color: transparent
}

fos-bar {
    background-color: silver;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf
}

fos-menu[name=Start] {
    background-color: #fff;
    border: solid 1px #000;
    width: 70px;
    text-align: left;
}

fos-menu[name="Start"]>div {
    background: linear-gradient(to bottom, #d42424, #0f5217);
    color: #ffffff;
    font-weight: bold;
    padding: 4px 8px;
    min-width: 150px;
    margin: -2px -2px 0 -2px;
    text-align: center;
    border-bottom: 1px solid #fff;
}

fos-menu[name="Start"] hr {
    border: none;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    margin: 2px 0;
}

fos-icon {
    background-color: transparent;
    box-shadow: 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 2em;

    overflow: visible !important;
    contain: none !important;
}

fos-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 100;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;

    top: -15px;
    left: -10px;

    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.5));
}

fos-icon:hover::after {
    animation: wiggle 0.5s ease-in-out;
}

fos-icon[href="thispc"]::after {
    background-image: url('https://cdn-icons-png.flaticon.com/512/3132/3132707.png');
    width: 60px;
    top: 35px;
    left: 32px;
}

fos-icon[href="aboutme"]::after {
    background-image: url('https://cdn-icons-png.flaticon.com/512/744/744546.png');
    top: -14px;
    left: 32px;
    transform: rotate(25deg);
}

fos-icon[href="games"]::after {
    background-image: url('https://cdn-icons-png.flaticon.com/512/3247/3247624.png');
    width: 55px;
    top: 35px;
    left: 25px;
}

fos-icon[href="radio"]::after {
    background-image: url('https://cdn-icons-png.flaticon.com/512/13114/13114593.png');
    width: 400px;
    height: 50px;
    top: 52px;
    left: 9px;
    image-rendering: pixelated;
}

fos-icon[href="art3d"]::after {
    background-image: url('https://cdn-icons-png.flaticon.com/512/9004/9004844.png ');
    width: 45px;
    top: -10px;
    left: -10px;
}

fos-icon[href="browser"]::after {
    background-image: url('https://cdn-icons-png.flaticon.com/512/2336/2336287.png');
    transform: rotate(10deg);
    top: 41px;
    left: 55px;
    image-rendering: pixelated;
}

#mainDesktop>fos-icon>img {
    width: 100%;
    -webkit-filter: drop-shadow(5px 5px 3px rgba(0, 0, 0, .5));
    filter: drop-shadow(5px 5px 3px rgba(0, 0, 0, .5));
    image-rendering: pixelated;
    image-rendering: crisp-edges
}

#gamesIcons>fos-icon>img {
    width: 80%;
    -webkit-filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, .5));
    filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, .5));
    object-fit: contain
}

#gamesIcons>fos-icon {
    color: #000
}

.viewer>img {
    width: 100%
}

fos-window {
    border-color: silver
}

fos-window::part(top) {
    background: linear-gradient(90deg, #0f5217 0%, #8a0e0e 100%);
    color: #fff;
    font-weight: 700;
    line-height: 1.2em;
    text-shadow: 1px 1px 0 #000;
}

fos-window::part(buttons) {
    background-color: silver;
    font-weight: 700
}

fos-menu {
    background-color: silver
}

fos-menu-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    color: #000;
    text-decoration: none;
    gap: 8px;
}

fos-menu-item:hover {
    background: #0f5217;
    color: #ffffff;
}



fos-menu-item>img {
    vertical-align: middle;
    margin-right: 10px
}

fos-menu::part(title) {
    text-align: right;
    padding-right: 10%;
    background-image: url(../favicon.png);
    background-repeat: no-repeat;
    background-size: 30%;
    background-position: 10% 45%;
    background-color: silver;
    line-height: 30px;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf
}

fos-menu::part(title):active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey
}

fos-menu::part(window) {
    background-color: silver
}

/* global Classes */
.zero {
    left: 0;
    top: 0;
    width: 640px;
    height: 480px;
    max-width: 100%;
    max-height: 100%
}

.invaderz {
    left: 0;
    top: 0;
    width: 400px;
    height: 520px;
    max-width: 100%;
    max-height: 100%
}

.santy {
    left: 0;
    top: 0;
    width: 1280px;
    height: 720px;
    max-width: 100%;
    max-height: 100%
}

.secret_santa {
    left: 0;
    top: 0;
    width: 500px;
    height: 500px;
    max-width: 100%;
    max-height: 100%
}

#clock {
    position: absolute;
    right: 10px;
    line-height: 30px;
    border: solid 1px #000;
    width: 60px;
    text-align: center;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey
}

#fgbg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("../bg.png");
    background-blend-mode: multiply;
    z-index: 9999;
    pointer-events: none;
}

.viewer>img {
    max-width: 100% !important;
    max-height: 650px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.viewer {
    height: auto !important;
}

/* browser window */
fos-window[name="browser"] {
    width: 750px;
    height: 630px;
    min-width: 320px;
    min-height: 400px;
}

.browser-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

#browser-toolbar {
    flex: 0 0 auto;
    background: linear-gradient(to bottom, #dae4f5 0%, #bed0ea 100%);
    padding: 6px 8px;
    border-bottom: 1px solid #999;
    display: flex;
    gap: 6px;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    flex-wrap: wrap;
}

#browser-frame {
    flex: 1 1 auto;
    width: 100%;
    border: none;
    display: block;
    background: white;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: linear-gradient(to bottom, #fff, #e6e6e6);
    border: 1px solid #999;
}

#url-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #7e9bbd;
    border-radius: 3px;
    padding: 2px 4px;
    height: 24px;
    min-width: 150px;
}

#url-input {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    margin-left: 4px;
}

.go-btn {
    margin-left: 4px;
    background: linear-gradient(to bottom, #f5fcf0, #dcebc9);
    border: 1px solid #94b168;
    border-radius: 2px;
    color: #4e7518;
    font-weight: bold;
    font-size: 11px;
    padding: 0 8px;
    height: 26px;
    cursor: pointer;
}

/* about me window */
.w95-container {
    padding: 20px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 13px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    
    background-color: #1b5e20;
    background-image: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px, 
            rgba(139, 0, 0, 0.3) 15px,
            rgba(139, 0, 0, 0.3) 25px
        );
}

.w95-fieldset {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #0fb823 #b71c1c #b71c1c #0fb823 !important;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    color: #000;
    text-shadow: none;
}

.w95-fieldset > div[style*="border"] {
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #b71c1c #0fb823 #b71c1c #0fb823 !important;
    background-color: #fff;
}

.w95-legend {
    margin-left: 5px;
    padding: 0 4px;
    color: #000;
}

.w95-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.w95-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: black;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

.w95-button:active {
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translate(1px, 1px);
}

.w95-button img {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.w95-avatar-frame {
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background: white;
    width: 120px;
    height: 160px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* game */
.game-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-color: #c0c0c0;
    border: 2px inset #c0c0c0;
    text-align: center;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 13px;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.game-placeholder p {
    margin: 0 0 15px 0;
    color: #000;
    font-weight: normal;
}

.game-placeholder button {
    padding: 8px 16px;
    background-color: #c0c0c0;
    color: #000;
    border: 2px outset #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 13px;
    cursor: pointer;
    min-width: 75px;
}

.game-placeholder button:hover {
    background-color: #d0d0d0;
}

.game-placeholder button:active {
    border: 2px inset #c0c0c0;
    background-color: #a0a0a0;
}

fos-window[name="cmiyc"] #content,
fos-window[name="genius"] #content,
fos-window[name="invaderz"] #content,
fos-window[name="scramble"] #content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* album and img-viewer */

/* folder style */
.folder-menubar {
    background-color: #c0c0c0;
    padding: 3px 5px;
    border-bottom: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 11px;
    display: flex;
    gap: 15px;
    box-shadow: inset 1px 1px 0 #dfdfdf;
}

.folder-menubar span {
    cursor: default;
    padding: 2px 5px;
    color: #000;
}

.folder-menubar span:hover {
    color: #fff;
    background-color: #000080;
}

.folder-statusbar {
    background-color: #c0c0c0;
    border-top: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 3px 8px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000;
    box-shadow: inset -1px -1px 0 #dfdfdf;
    display: none !important;
}

/* style for window album */
fos-window[name="art3d"] {
    min-width: 450px;
    min-height: 350px;
}

fos-window[name="art3d"] #content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

#art3dicons {
    background-color: #fff !important;
    padding: 8px;
    flex: 1;
    border: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
}

#art3dicons fos-icon {
    width: 80px !important;
    height: 85px !important;
    background-color: transparent !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    margin: 8px !important;
    border: 1px solid transparent;
    box-shadow: none !important;
    cursor: pointer;
    pointer-events: auto !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

#art3dicons fos-icon[fixed="true"],
#art3dicons fos-icon {
    position: static !important;
    cursor: pointer !important;
}

#art3dicons fos-icon img {
    width: 60px !important;
    height: 70px !important;
    max-width: 60px !important;
    max-height: 70px !important;
    object-fit: cover;
    background-color: #fff;
    border: none;
    padding: 3px 3px 8px 3px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
    filter: none !important;
    pointer-events: none;
    -webkit-user-drag: none;
    transform: rotate(-2deg);
    transition: all 0.2s ease;
}

#art3dicons fos-icon::after {
    display: none !important;
}

#art3dicons fos-icon:hover {
    background-color: transparent !important;
}

#art3dicons fos-icon:hover img {
    transform: rotate(0deg) scale(1.05);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(0, 0, 0, 0.23),
        3px 3px 8px rgba(0, 0, 0, 0.4);
}

#art3dicons fos-icon:focus,
#art3dicons fos-icon:active {
    background-color: #000080 !important;
    border: 1px dotted #fff;
    outline: none;
}

#art3dicons fos-icon:focus::after,
#art3dicons fos-icon:active::after {
    display: none !important;
}

#art3dicons fos-icon:focus img,
#art3dicons fos-icon:active img {
    opacity: 1;
    filter: brightness(0.95);
    transform: rotate(0deg);
}

/* img-viewer window */
fos-window[name="imgviewer"] {
    width: 650px;
    height: 550px;
    min-width: 400px;
    min-height: 350px;
}

fos-window[name="imgviewer"][style*="display: block"] {
    z-index: 1000 !important;
}

fos-window[name="imgviewer"] #content {
    padding: 0 !important;
    background-color: #c0c0c0;
}

.viewer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.viewer-toolbar {
    padding: 6px 10px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 2px solid;
    border-color: #808080 #fff #fff #808080;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: inset 1px 1px 0 #fff;
}

.viewer-toolbar button {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    font-weight: normal;
    padding: 5px 12px;
    min-width: 70px;
    background-color: #c0c0c0;
    color: #000;
    border: 2px solid;
    border-color: #fff #000 #000 #fff;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
    cursor: pointer;
    outline: none;
}

.viewer-toolbar button:hover {
    background-color: #d4d4d4;
}

.viewer-toolbar button:active {
    border-color: #000 #fff #fff #000;
    box-shadow: inset -1px -1px 0 #dfdfdf, inset 1px 1px 0 #808080;
    padding: 6px 11px 4px 13px;
}

.viewer-toolbar button:focus {
    outline: 1px dotted #000;
    outline-offset: -4px;
}

/* counter display */
#img-counter {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    background-color: #fff;
    color: #000;
    padding: 3px 10px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    box-shadow: inset -1px -1px 0 #dfdfdf, inset 1px 1px 0 #000;
    min-width: 60px;
    text-align: center;
}

/* content area with frame */
.viewer-content {
    flex: 1;
    background-color: #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 2px solid;
    border-color: #000 #fff #fff #000;
    box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#main-display-img {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    background-color: #fff;
    border: 1px solid #000;
    box-shadow:
        0 0 0 1px #808080,
        3px 3px 8px rgba(0, 0, 0, 0.4);
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* statusbar */
.viewer-statusbar {
    background-color: #c0c0c0;
    border-top: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 3px 8px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    color: #000;
    text-align: center;
    box-shadow: inset -1px -1px 0 #dfdfdf;
}

/* loading animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

#art3dicons>div {
    animation: pulse 1.5s infinite;
}

#art3dicons fos-icon {
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}

#art3dicons fos-icon img {
    transition: all 0.2s ease;
}

#art3dicons::-webkit-scrollbar {
    width: 16px;
}

#art3dicons::-webkit-scrollbar-track {
    background: #fff;
}

#art3dicons::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 1px solid #808080;
}

#art3dicons::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* placeholder for fault loading img */
#main-display-img[alt="Image not found"] {
    background: linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    min-height: 300px;
}

/* focus visible for accessibility */
#art3dicons fos-icon:focus-visible {
    outline: 2px dotted #000;
    outline-offset: 2px;
}

.viewer-toolbar button:focus-visible {
    outline: 2px dotted #000;
    outline-offset: -4px;
}

@media (max-width: 800px) {
    fos-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 42px !important;

        min-width: 0 !important;
        min-height: 0 !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
        border: 2px outset #fff !important;
        border-radius: 0 !important;
    }

    fos-window[name="browser"] {
        min-width: 0 !important;
        width: 100% !important;
    }

    #browser-toolbar {
        padding: 5px !important;
        flex-wrap: wrap;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    fos-window[name="browser"] iframe,
    #browser-frame {
        width: 100% !important;
        height: calc(100% - 90px) !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    fos-window::part(top) {
        width: 100% !important;
        box-sizing: border-box !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: normal !important;
        font-size: 14px !important;
    }

    fos-window::part(buttons) button {
        height: 32px !important;
        width: 45px !important;
        margin-top: 4px !important;
        font-size: 18px !important;
        padding: 0 !important;
        text-align: center !important;
    }

    fos-window::part(buttons) button:first-child {
        display: none !important;
    }

    #art3dicons {
        justify-content: center !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    fos-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 42px !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
    }

    fos-menu {
        bottom: 42px !important;
    }
}

fos-icon img {
    filter: drop-shadow(5px 5px 3px rgba(0, 0, 0, .5)) brightness(1.1);
}

/* --- CHRISTMAS SNOW EFFECT --- */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(4px 4px at 10% 10%, #fff, transparent),
        radial-gradient(6px 6px at 20% 30%, #fff, transparent),
        radial-gradient(3px 3px at 40% 70%, #fff, transparent),
        radial-gradient(4px 4px at 50% 10%, #fff, transparent),
        radial-gradient(3px 3px at 80% 40%, #fff, transparent),
        radial-gradient(6px 6px at 90% 80%, #fff, transparent),
        radial-gradient(4px 4px at 15% 60%, #fff, transparent);
    background-size: 550px 550px;
    animation: snowfall 10s linear infinite;
    opacity: 0.8;
}

@keyframes snowfall {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 50px 550px, -20px 550px, 30px 550px, -40px 550px, 10px 550px, -30px 550px, 20px 550px;
    }
}

fos-window,
fos-icon,
fos-bar {
    z-index: 10;
}

.w95-avatar-frame {
    position: relative;
    border: 4px solid transparent !important;
    background: linear-gradient(#fff, #fff) padding-box,
        repeating-linear-gradient(45deg, #ff0000 0, #ff0000 10px, #ffffff 10px, #ffffff 20px) border-box;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.w95-avatar-frame::after {
    content: '❄️';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 24px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}

.w95-legend {
    background-color: #d32f2f !important;
    color: #fff !important;
    border: 2px outset #ffcccc !important; 
    box-shadow: 2px 2px 0px #000 !important; 
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-weight: bold;
    padding: 2px 8px;
    text-shadow: 1px 1px 0 #000;
    margin-left: 10px;
}

ul.xmas-list {
    list-style-image: none !important;
}

ul.xmas-list li::before {
    content: '🎄';
    margin-right: 8px;
    margin-left: -20px;
}

.w95-button {
    background: #d32f2f !important;
    color: #fff !important;
    border-top-color: #ffcdd2 !important;
    border-left-color: #ffcdd2 !important;
    border-right-color: #880e4f !important;
    border-bottom-color: #880e4f !important;
    font-weight: bold;
    box-shadow: 1px 1px 0px #000;
    transition: none !important; 
    position: relative;
}

.w95-button:hover {
    background: #2e7d32 !important;
    transform: none !important; 
}

.w95-button:active {
    border-top-color: #880e4f !important;
    border-left-color: #880e4f !important;
    border-right-color: #ffcdd2 !important;
    border-bottom-color: #ffcdd2 !important;
    transform: translate(1px, 1px) !important;
    box-shadow: none !important;
}

.w95-fieldset a[href^="mailto"] {
    color: #d32f2f !important;
    font-weight: bold;
    background-color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
}

.pixel-lights {
    position: absolute;
    top: -6px;
    left: 4px;
    right: 4px;
    height: 12px;
    z-index: 20;
    pointer-events: none;

    background-image:
        linear-gradient(to bottom, transparent 4px, #333 4px, #333 6px, transparent 6px),
        linear-gradient(to right,
            #ff0000 0%, #ff0000 50%,
            #00ff00 50%, #00ff00 100%
        );

    background-size:
        100% 100%,
        30px 10px;
    background-repeat: no-repeat, repeat-x;
    background-position: 0 0, 0 1px;
    animation: blink-pixel 1s steps(2) infinite;
}

@keyframes blink-pixel {
    0% {
        background-image:
            linear-gradient(to bottom, transparent 4px, #333 4px, #333 6px, transparent 6px),
            linear-gradient(to right, #ff0000 0%, #ff0000 50%, #00ff00 50%, #00ff00 100%);
    }

    50% {
        background-image:
            linear-gradient(to bottom, transparent 4px, #333 4px, #333 6px, transparent 6px),
            linear-gradient(to right, #00ff00 0%, #00ff00 50%, #ff0000 50%, #ff0000 100%);
    }
}