
:root {
    --win-gray: #c0c0c0;
    --win-white: #ffffff;
    --win-dark-gray: #808080;
    --win-blue: #000080;
    --win-bright-blue: #0000ff;
    --desktop-teal: #008080;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Tahoma', sans-serif;
    background-color: var(--desktop-teal);
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.hidden {
    display: none !important;
}


.crt-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 10000000;
    pointer-events: none;
    opacity: 0.3;
}


#boot-screen {
    position: fixed;
    inset: 0;
    background: black;
    color: #aaa;
    font-family: 'Courier New', monospace;
    padding: 40px;
    z-index: 99999999;
    display: flex;
    align-items: flex-start;
}

.boot-text {
    font-size: 16px;
    line-height: 1.6;
    animation: glitchBIOS 0.2s infinite;
}

@keyframes glitchBIOS {
    0% {
        transform: skew(0deg);
        opacity: 1;
    }

    20% {
        transform: skew(3deg);
        opacity: 0.8;
    }

    40% {
        transform: skew(-2deg);
        color: #fff;
    }

    60% {
        transform: skew(0deg);
        opacity: 1;
    }

    80% {
        transform: skew(1deg);
        color: #0f0;
    }

    100% {
        transform: skew(0deg);
    }
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.1;
    }
}


#cat-asistan {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 150px;
    z-index: 1000002;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bubble {
    background: #ffffcc;
    border: 1px solid black;
    padding: 8px;
    border-radius: 10px;
    font-size: 11px;
    color: black;
    margin-bottom: 5px;
    position: relative;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.asistan-img {
    font-size: 40px;
    cursor: pointer;
    filter: drop-shadow(2px 2px 0 gray);
}

.cursor-pati {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="resim" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🐾</text></svg>'), auto !important;
}

.cursor-kedi {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="resim" width="64" height="64" viewBox="0 0 64 64"><text y="48" font-size="48">🐱</text></svg>'), auto !important;
}

.crt-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    animation: flicker 0.1s infinite;
    pointer-events: none;
}

@keyframes flicker {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.2;
    }
}


#desktop {
    width: 100vw;
    height: calc(100vh - 30px);
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-template-rows: repeat(auto-fill, 95px);
    grid-auto-flow: column;
    padding: 15px;
    box-sizing: border-box;
    gap: 15px;
}

.icon {
    width: 80px;
    height: 90px;
    text-align: center;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-pic {
    font-size: 36px;
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 1px black);
}

.icon-label {
    font-size: 11px;
    padding: 2px 4px;
    border: 1px solid transparent;
}

.selected .icon-label {
    background: var(--win-blue);
    border: 1px dotted white;
}


.win98 {
    position: absolute;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-white) var(--win-dark-gray) var(--win-dark-gray) var(--win-white);
    padding: 2px;
    min-width: 200px;
    max-width: 95vw;
}

.win-angry {
    animation: winShake 0.15s infinite;
}

@keyframes winShake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.win-angry {
    animation: winShake 0.2s infinite;
}

@keyframes winShake {
    0% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(2px, 1px);
    }

    50% {
        transform: translate(-1px, -2px);
    }

    75% {
        transform: translate(-2px, 1px);
    }

    100% {
        transform: translate(1px, -1px);
    }
}

.title-bar {
    background: var(--win-blue);
    color: white;
    padding: 3px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
}

.win98.active-win .title-bar {
    background: var(--win-bright-blue);
}

.win-content {
    padding: 20px;
    color: black;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}


#start-menu {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 200px;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-white) var(--win-dark-gray) var(--win-dark-gray) var(--win-white);
    z-index: 1000001;
    display: flex;
}

.hidden-menu {
    display: none !important;
}

.sidebar-text {
    background: var(--win-dark-gray);
    width: 25px;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    color: var(--win-gray);
    font-weight: bold;
    padding: 10px 5px;
    text-align: center;
}

.menu-items {
    flex-grow: 1;
    padding: 2px;
}

.menu-item {
    padding: 8px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--win-blue);
    color: white;
}


#bsod {
    position: fixed;
    inset: 0;
    background: #0000aa;
    color: white;
    z-index: 20000000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    padding: 50px;
}

.bsod-cats {
    font-size: 50px;
    margin-top: 50px;
    animation: bounce 0.5s infinite;
}


.cat-sticker {
    position: absolute;
    border: 4px solid white;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    background: white;
    z-index: 40;
}

.extreme-shake {
    animation: shake 0.1s infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px);
    }

    50% {
        transform: translate(-2px, -1px);
    }

    100% {
        transform: translate(1px, 1px);
    }
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

#taskbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: var(--win-gray);
    border-top: 2px solid var(--win-white);
    display: flex;
    align-items: center;
    padding: 0 5px;
    z-index: 1000000;
}

#start-btn {
    height: 22px;
    background: var(--win-gray);
    border: 2px solid;
    border-color: var(--win-white) var(--win-dark-gray) var(--win-dark-gray) var(--win-white);
    font-weight: bold;
    font-size: 12px;
    padding: 0 10px;
    cursor: pointer;
}

.clock {
    border: 1px inset white;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: auto;
}
