
/* ==========================================
   BLEHH.EXE
   the pretty bits
========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --wallpaper: #7899AD;
    --window: #E5EAF0;
    --dark: #405D70;
    --accent: #A8C9DF;
    --paper: #F0E5D5;
    --taskbar: #496A80;
    --sticky: #E9D9BD;
    --text: #4A5055;
}

/* LOGIN */

#login-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, #ffffff22, transparent 35%),
        linear-gradient(135deg, #7899AD, #496A80);
}

.login-box {
    width: 340px;
    padding: 38px 30px;
    text-align: center;
    color: var(--dark);
    background: var(--paper);
    border: 2px solid #ffffff80;
    box-shadow: 8px 10px 25px #263d4b55;
}

.login-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.login-box h1 {
    font-family: Georgia, serif;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.login-box p {
    font-family: Georgia, serif;
    font-size: 13px;
    margin-bottom: 20px;
}

.small-text {
    display: block;
    margin-top: 20px;
    font-size: 10px;
    opacity: 0.65;
}

.login-box input {
    width: 100%;
    padding: 11px;
    margin-bottom: 12px;
    border: 1px solid #a8b9c3;
    background: #fffaf2;
    text-align: center;
    outline: none;
}

.login-box button {
    width: 100%;
    padding: 11px;
    border: none;
    background: var(--dark);
    color: white;
    cursor: pointer;
    letter-spacing: 2px;
}

#login-message {
    margin: 12px 0 0;
    color: #9b5555;
    font-size: 12px;
}


/* DESKTOP */

#desktop {
    display: none;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--wallpaper);

    background-image:
        radial-gradient(ellipse at 15% 20%, #dceaf022, transparent 35%),
        radial-gradient(ellipse at 85% 75%, #334e6025, transparent 40%),
        linear-gradient(135deg, #ffffff0b, #263f5018);
}


/* PAPER TEXTURE */

#desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    z-index: 0;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            #ffffff10 1px,
            transparent 2px,
            transparent 5px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            #263f5010 1px,
            transparent 2px,
            transparent 6px
        );
}


/* TOP BAR */

.desktop-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f4eee4;
    font-family: Georgia, serif;
    font-size: 15px;
    letter-spacing: 2px;
    border-bottom: 1px solid #ffffff35;
    background: #314e6030;
    z-index: 2;
}


/* DESKTOP FOLDERS */

.icons {
    position: absolute;
    top: 85px;
    left: 25px;
    display: grid;
    grid-template-columns: 120px 120px;
    gap: 22px 20px;
    z-index: 3;
}

.desktop-icon {
    width: 110px;
    min-height: 95px;
    padding: 8px;
    color: #fff8ed;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 12px;
    cursor: pointer;
    text-shadow: 1px 2px 4px #263f50;
    transition: 0.2s ease;
}

.desktop-icon:hover {
    background: #ffffff20;
    outline: 1px dotted #fff8ed;
    transform: translateY(-3px);
}

.folder-icon {
    font-size: 37px;
    margin-bottom: 7px;
}

.desktop-icon:nth-child(2n) .folder-icon {
    animation-delay: 0.5s;
}

@keyframes folderBounce {
    0%, 90%, 100% {
        transform: translateY(0);
    }

    95% {
        transform: translateY(-5px);
    }
}


/* STICKY NOTES */

.sticky-note {
    position: absolute;
    width: 145px;
    min-height: 105px;
    padding: 20px 12px;
    background: var(--sticky);
    color: #655542;
    font-family: Georgia, serif;
    font-size: 15px;
    text-align: center;
    box-shadow: 3px 5px 12px #263f5030;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.note-one {
    top: 13%;
    left: 46%;
    transform: rotate(-5deg);
}

.note-two {
    top: 53%;
    right: 7%;
    transform: rotate(5deg);
}


/* POLAROIDS */

.polaroid {
    position: absolute;
    width: 185px;
    padding: 10px 10px 27px;
    background: #f2e7d7;
    box-shadow: 4px 7px 17px #263f5040;
    text-align: center;
    pointer-events: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.06) !important;
    box-shadow: 7px 12px 22px #263f5060;
    z-index: 5;
}

.polaroid img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    background: #d4dce0;
}

.polaroid p {
    margin-top: 13px;
    color: #554638;
    font-family: Georgia, serif;
    font-size: 12px;
}

.photo-one {
    top: 10%;
    right: 12%;
    transform: rotate(7deg);
}

.photo-two {
    top: 45%;
    right: 36%;
    transform: rotate(-6deg);
}


/* WINDOWS */

.window {
    position: absolute;
    width: 440px;
    max-width: 90vw;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    background: var(--window);
    border: 2px solid var(--dark);
    box-shadow: 8px 12px 28px #172d3b55;
    overflow: hidden;
    animation: windowOpen 0.2s ease-out;
    z-index: 10;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window.maximized {
    top: 8px !important;
    left: 8px !important;
    width: calc(100% - 16px);
    height: calc(100% - 55px);
    max-width: none;
    max-height: none;
}

.window-header {
    min-height: 38px;
    padding: 7px 9px 7px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    color: white;
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 1px;
}

.window-buttons {
    display: flex;
    gap: 5px;
}

.window-buttons button {
    width: 23px;
    height: 22px;
    border: 1px solid #ffffff70;
    background: var(--paper);
    color: var(--dark);
    cursor: pointer;
    font-weight: bold;
}

.window-buttons button:hover {
    background: #d4e6ef;
}

.window-content {
    padding: 18px;
    overflow: auto;
    color: var(--text);
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100px;
}

.window-content h2 {
    color: var(--dark);
    font-size: 19px;
    margin-bottom: 12px;
}

.window-content p {
    margin-bottom: 10px;
}


/* GALLERIES */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gallery-item {
    padding: 8px;
    background: #f7f0e6;
    box-shadow: 2px 3px 8px #263f5020;
    text-align: center;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #e5eaf0;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.025);
}


/* MORE COLUMNS WHEN MAXIMISED */

.window.maximized .gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}


/* PHOTO VIEWER */

.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 95000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: #172d3bd9;
    backdrop-filter: blur(4px);
}

.photo-viewer.active {
    display: flex;
    animation: viewerFade 0.18s ease-out;
}

@keyframes viewerFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.photo-viewer-window {
    width: min(900px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--window);
    border: 2px solid var(--dark);
    box-shadow: 0 15px 45px #00000070;
}

.photo-viewer-header {
    min-height: 40px;
    padding: 7px 10px 7px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--dark);
    color: white;
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 1px;
}

.photo-viewer-close {
    width: 25px;
    height: 24px;
    border: 1px solid #ffffff70;
    background: var(--paper);
    color: var(--dark);
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.photo-viewer-close:hover {
    background: #d4e6ef;
}

.photo-viewer-image-area {
    min-height: 200px;
    max-height: 75vh;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d4dfe5;
}

.photo-viewer-image {
    display: block;
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 15px #263f5030;
}

.photo-viewer-footer {
    min-height: 48px;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #f7f0e6;
    color: var(--dark);
    font-family: Georgia, serif;
    font-size: 12px;
}

.photo-viewer-nav {
    display: flex;
    gap: 8px;
}

.photo-viewer-nav button {
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #9aabb4;
    background: #e5eaf0;
    color: var(--dark);
    font-size: 17px;
    cursor: pointer;
}

.photo-viewer-nav button:hover {
    background: var(--accent);
}

.photo-viewer-nav button:disabled {
    opacity: 0.35;
    cursor: default;
}


/* CLASSIFIED FILES */

.classified-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.classified-item {
    width: 100%;
    padding: 12px;
    border: 1px dashed #9aabb4;
    background: #f7f0e6;
    color: var(--dark);
    font-family: Georgia, serif;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}

.classified-item:hover {
    background: #d9e7ed;
    transform: translateX(4px);
}


/* LETTERS */

.letter {
    padding: 22px;
    background: #f8eddb;
    border: 1px solid #c7b49c;
    color: #514638;
    font-family: Georgia, serif;
    line-height: 1.9;
}


/* SPOTIFY */

.spotify-frame {
    width: 100%;
    height: 352px;
    border: none;
    border-radius: 12px;
    margin-top: 10px;
}

.music-note {
    text-align: center;
    color: #617d8d;
    font-size: 12px;
    margin-bottom: 10px;
}


/* TASKBAR */

#taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #405D70e8;
    border-top: 1px solid #ffffff55;
    z-index: 9000;
}

.taskbar-start {
    min-width: 100px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent);
    color: var(--dark);
    font-family: Georgia, serif;
    font-weight: bold;
    cursor: pointer;
}

#taskbar-windows {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.taskbar-tab {
    max-width: 150px;
    height: 32px;
    padding: 0 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid #ffffff50;
    background: #ffffff20;
    color: white;
    font-size: 11px;
    cursor: pointer;
}

.taskbar-tab:hover,
.taskbar-tab.active {
    background: #a8c9df;
    color: var(--dark);
}

.taskbar-clock {
    color: white;
    font-family: Georgia, serif;
    font-size: 12px;
    padding: 0 8px;
}


/* ==========================================
   TEXT FILES / NOTEPAD
========================================== */

/* THE FILE ICON INSIDE HAIR PROPAGANDA */

.hair-file-area {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #a9b8c0;
}

.hair-file-heading {
    margin-bottom: 12px;
    color: #718897;
    font-family: Georgia, serif;
    font-size: 10px;
    letter-spacing: 2px;
}

.text-file-icon {
    width: 105px;
    min-height: 105px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--dark);
    font-family: Georgia, serif;
    cursor: pointer;
    transition: 0.2s ease;
}

.text-file-icon:hover {
    background: #d7e4e9;
    border: 1px dotted #7899ad;
    transform: translateY(-3px);
}

.text-file-picture {
    font-size: 43px;
    filter: drop-shadow(2px 3px 2px #263f5030);
}

.text-file-name {
    font-size: 11px;
    text-align: center;
}


/* NOTEPAD DOCUMENT */

.notepad-document {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #f8f5ed;
    border: 1px solid #aab8bd;
    box-shadow: 2px 3px 8px #263f5015;
}

.notepad-menu {
    min-height: 29px;
    padding: 5px 10px;
    display: flex;
    gap: 18px;
    background: #e7edf0;
    border-bottom: 1px solid #c3cdd1;
    color: #526876;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.notepad-filename {
    padding: 7px 12px;
    background: #f0eee7;
    border-bottom: 1px solid #dedbd2;
    color: #84939a;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.notepad-paper {
    min-height: 290px;
    padding: 25px 23px;
    background-color: #fffdf7;

    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 27px,
            #dce3e5 28px
        );

    /* ALIGN THE LINES WITH THE TEXT */
    background-position: 0 16px;
}

.notepad-message {
    color: #514c45;
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 28px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.notepad-status {
    min-height: 25px;
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    background: #e7edf0;
    border-top: 1px solid #c3cdd1;
    color: #71818a;
    font-family: Arial, sans-serif;
    font-size: 10px;
}


/* ==========================================
   RESPONSIVE DESKTOP
========================================== */


/* MEDIUM SCREENS */

@media (max-width: 900px) {

    .icons {
        grid-template-columns: repeat(3, 100px);
        left: 12px;
        top: 78px;
        gap: 12px;
    }

    .desktop-icon {
        width: 95px;
        min-height: 82px;
        font-size: 11px;
    }

    .folder-icon {
        font-size: 33px;
    }

    .desktop-title {
        padding: 16px 18px;
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .photo-one {
        right: 5%;
        top: 13%;
    }

    .photo-two {
        right: 8%;
        top: 48%;
    }

    .note-one {
        left: 48%;
    }
}


/* SMALL SCREENS */

@media (max-width: 700px) {

    .icons {
        grid-template-columns: repeat(3, 85px);
        left: 8px;
        top: 75px;
        gap: 8px 6px;
    }

    .desktop-icon {
        width: 82px;
        min-height: 76px;
        padding: 5px;
        font-size: 10px;
    }

    .folder-icon {
        font-size: 30px;
        margin-bottom: 4px;
    }

    .desktop-title {
        height: 55px;
        padding: 12px;
        font-size: 11px;
        letter-spacing: 1px;
        gap: 10px;
    }

    .polaroid {
        width: 125px;
        padding: 7px 7px 18px;
    }

    .polaroid img {
        height: 95px;
    }

    .polaroid p {
        font-size: 9px;
    }

    .photo-one {
        right: 5%;
        top: 17%;
    }

    .photo-two {
        right: 8%;
        top: 43%;
    }

    .sticky-note {
        width: 105px;
        min-height: 75px;
        font-size: 11px;
        padding: 10px;
    }

    .note-one {
        left: 48%;
    }

    .photo-viewer {
        padding: 10px;
    }

    .photo-viewer-image-area {
        padding: 10px;
    }

    .photo-viewer-image {
        max-height: 65vh;
    }

    .photo-viewer-footer {
        font-size: 10px;
    }

    .notepad-paper {
        min-height: 260px;
        padding: 20px 15px;
    }

    .notepad-message {
        font-size: 13px;
    }

    .notepad-menu {
        gap: 12px;
        font-size: 10px;
    }

    .window {
        max-width: calc(100vw - 16px);
    }

    .window:not(.maximized) {
        left: 8px !important;
        top: 70px !important;
    }

    .window.maximized {
        top: 6px !important;
        left: 6px !important;
        width: calc(100% - 12px);
        height: calc(100% - 51px);
    }

    .window-content {
        padding: 12px;
    }

    .gallery {
        gap: 9px;
    }

    .gallery-item img {
        height: 140px;
    }

    #taskbar {
        padding: 4px 6px;
        gap: 5px;
    }

    .taskbar-start {
        min-width: 72px;
        font-size: 11px;
    }

    .taskbar-tab {
        max-width: 105px;
        padding: 0 7px;
        font-size: 10px;
    }

    .taskbar-clock {
        font-size: 10px;
        padding: 0 4px;
    }
}


/* VERY NARROW SCREENS */

@media (max-width: 380px) {

    .icons {
        grid-template-columns: repeat(2, 82px);
        gap: 6px;
    }

    .desktop-icon {
        width: 80px;
    }

    .desktop-title {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .sticky-note {
        display: none;
    }

    .photo-one {
        right: 4%;
        top: 20%;
    }

    .photo-two {
        right: 4%;
        top: 55%;
    }
}


/* SHORT SCREENS */

@media (max-height: 600px) and (min-width: 701px) {

    .icons {
        top: 72px;
        gap: 8px 12px;
    }

    .desktop-icon {
        min-height: 72px;
    }

    .folder-icon {
        font-size: 30px;
        margin-bottom: 3px;
    }
}
