@font-face {
    font-family: 'Wilson';
    src: url('Wilson.otf') format('opentype');
}

body {
    margin: 0;
    font-family: "MS Sans Serif", sans-serif;
    background-color: #939393;
    overflow: hidden;
}

#desktop {
    width: 100vw;
    height: 100vh;
    transform: perspective(1000px) rotateX(3deg) scale(0.98) translateZ(0) skewY(0.2deg);
    position: relative;
    overflow: hidden;
    background-color: #58fb94;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.5);
}

#desktop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.3) 100%);
    transform: perspective(1000px) rotateX(5deg) scale(1.05) translateZ(0) skewY(0.2deg);
    mix-blend-mode: multiply;
}

#desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('glitch_background.gif') repeat;
    opacity: 0.4;
    z-index: 9999;
}

.icon {
    width: 80px;
    text-align: center;
    position: absolute;
    cursor: pointer;
    user-select: none;
}

.icon img {
    width: 48px;
    height: 48px;
}

.window {
    min-width: 300px;
    min-height: 200px;
    position: absolute;
    top: 50px;
    left: 50px;
    background-color: #c0c0c0;
    border: 2px solid #000;
    display: none;
    box-shadow: 5px 5px #404040;
}

.window-header {
    background-color: #000080;
    color: #fff;
    padding: 5px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-title {
    font-weight: bold;
}

.close-btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.window-content {
    padding: 10px;
    background-color: #ffffff;
}

textarea {
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    padding: 5px;
    background-color: #ffffff;
    color: #000;
}


.text-editor-content {
    font-family: "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-line;
    word-wrap: break-word;
    border: 1px solid #808080;
    padding: 10px;
    background-color: #fff;
    max-width: 250px;
    color: #000;
}

.window-content a {
    color: #0000EE;
    text-decoration: none;
}

.window-content a:hover {
    text-decoration: underline;
}

.iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    overflow: hidden;
}

.iframe-container iframe {
    border: none;
    width: 100%;
    height: 300px;
}


.window-content h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.window-content p {
    margin: 5px 0;
    font-family: "Courier New", monospace;
}

.window-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.window-content a {
    color: #0000EE;
    text-decoration: none;
}

.window-content a:hover {
    text-decoration: underline;
}

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #C0C0C0;
    border-top: 2px solid #808080;
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.5);
}

.start-button {
    display: flex;
    align-items: center;
    background-color: #C0C0C0;
    border: 1px solid #808080;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
}

.taskbar-icon {
    height: 24px;
    margin-right: 5px;
}

.start-button span {
    font-family: "MS Sans Serif", sans-serif;
    font-size: 14px;
    color: black;
}

.modal {
    filter: brightness(0.9) blur(0.5px);
    font-family: Wilson, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#acceptButton {
    font-family: Wilson, serif;
    padding: 10px 20px;
    background-color: #C0C0C0;
    border: 1px solid #808080;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

#acceptButton:hover {
    background-color: #A0A0A0;
}

#audioPlayer {
    position: fixed;
    bottom: 50px;
    left: 10px;
    background-color: #C0C0C0;
    padding: 10px;
    border: 2px solid #808080;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-family: "MS Sans Serif", sans-serif;
    font-size: 14px;
    color: black;
    width: 20vw;
}

audio {
    margin-top: 5px;
    width: 100%;
    background-color: #C0C0C0;
    border-radius: 3px;
}

@keyframes shake {
    0% { transform: translate(3px, 0); }
    25% { transform: translate(-1px, 0); }
    50% { transform: translate(2px, 0); }
    75% { transform: translate(-3px, 0); }
    100% { transform: translate(0, 0); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes slide-up {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.slide-up {
    animation: slide-up 0.5s step-end;
}

@keyframes slide-down {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.slide-down {
    animation: slide-down 0.5s step-end;
}

.slide-left {
    animation: slide-left 0.5s step-end;
}

.slide-right {
    animation: slide-right 0.5s step-end;
}

body.vhs-effect {
    overflow: hidden;
}

body.vhs-effect #desktop {
    filter: brightness(0.9) contrast(1.2) blur(0.5px);
    position: relative;
    z-index: 1;
}

body.vhs-effect::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 3;
    pointer-events: none;
}

@keyframes distortion {
    0%, 100% {
        transform: translateX(0) skewX(0);
    }
    50% {
        transform: translateX(-2px) skewX(0.3deg);
    }
}

@keyframes distortion2 {
    0%, 100% {
        transform: translateX(0) skewX(0);
    }
    50% {
        transform: translateX(-3px) skewX(-0.5deg);
    }
}

@keyframes distortion3 {
    0%, 100% {
        transform: translateY(0) scale(1) skewY(0);
    }
    20% {
        transform: translateY(-1px) scale(1.02) skewY(-0.1deg);
    }
    50% {
        transform: translateY(2px) scale(0.98) skewY(0.3deg);
    }
    80% {
        transform: translateY(-3px) scale(1.01) skewY(-0.2deg);
    }
}


@keyframes distortion4 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0);
    }
    20% {
        transform: translate(-2px, 1px) scale(1.03) rotate(0.2deg);
    }
    50% {
        transform: translate(2px, -3px) scale(0.97) rotate(-0.3deg);
    }
    80% {
        transform: translate(-1px, 2px) scale(1.02) rotate(0.1deg);
    }
}


@keyframes distortion5 {
    0%, 100% {
        transform: skew(0, 0) scale(1);
    }
    25% {
        transform: skew(0.5deg, -0.2deg) scale(1.02);
    }
    50% {
        transform: skew(-0.3deg, 0.4deg) scale(0.98);
    }
    75% {
        transform: skew(0.2deg, -0.3deg) scale(1.01);
    }
}

@keyframes distortion6 {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    25% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(3px);
    }
    75% {
        transform: translateX(-1px);
    }
}


@keyframes distortion7 {
    0%, 100% {
        transform: translate(0) rotate(0) scale(1);
    }
    20% {
        transform: translate(-2px, 2px) rotate(0.3deg);
    }
    50% {
        transform: translate(3px, -1px) rotate(-0.4deg);
    }
    80% {
        transform: translate(-1px, 1px) rotate(0.1deg);
    }
}


@keyframes distortion8 {
    0%, 100% {
        transform: translateY(0) skewY(0);
    }
    20% {
        transform: translateY(2px) skewY(0.3deg);
    }
    50% {
        transform: translateY(-3px) skewY(-0.2deg);
    }
    80% {
        transform: translateY(1px) skewY(0.1deg);
    }
}


@keyframes distortion9 {
    0%, 100% {
        transform: translate(0) skewX(0) scale(1);
    }
    25% {
        transform: translate(-2px) skewX(0.4deg);
    }
    50% {
        transform: translate(4px) skewX(-0.5deg) scale(0.98);
    }
    75% {
        transform: translate(-3px) skewX(0.3deg);
    }
}

@keyframes distortion10 {
    0%, 100% {
        transform: translate(0, 0) scale(1) skew(0);
    }
    20% {
        transform: translate(-1px, 1px) scale(1.03) skew(-0.2deg);
    }
    40% {
        transform: translate(2px, -1px) scale(0.98) skew(0.3deg);
    }
    60% {
        transform: translate(-3px, 3px) scale(1.02) skew(-0.4deg);
    }
    80% {
        transform: translate(1px, -2px) scale(1) skew(0.2deg);
    }
}

#window1 {
    animation: distortion 1s infinite step-end;
}

#window2 {
    animation: distortion2 2s infinite step-end;
}
#window3 {
    animation: distortion3 2s infinite step-end;
}

#window4 {
    animation: distortion4 1s infinite step-end;
}

#window5 {
    animation: distortion5 2s infinite step-end;
}

#window6 {
    animation: distortion6 2s infinite step-end;
}

#window7 {
    animation: distortion7 2s infinite step-end;
}
#window8 {
    animation: distortion8 1s infinite step-end;
}

#window9 {
    animation: distortion9 2s infinite step-end;
}

#window10 {
    animation: distortion10 1s infinite step-end;
}
