
@font-face {
    font-family: 'win95';
    src: url('src/W95FA/w95fa.woff2') format('woff2'); 
}

@font-face {
    font-family: 'lucon';
    src: url(src/LuCon/lucon.woff2) format('woff2'); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background-color: #008080;
    overflow: hidden;
    height: 100vh;
    cursor: default;
}

#win95-desktop {
    height: calc(100vh - 40px); 
    background-color: #008080;
    position: relative;
    padding-left: 20px;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 15px;
}

.desktop-icon {
    width: 75px;
    min-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 5px 5px 10px 5px; 
    user-select: none;
    flex-shrink: 0;
}

.desktop-icon img {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    margin-bottom: 2px;
}

.desktop-icon span {
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px 1px #000000;
    word-wrap: break-word;
    line-height: 1.2;
    max-width: 70px;
    min-width: 70px;
}

/* taskbar */
#win95-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, #c0c0c0 0%, #808080 100%);
    border-top: 2px solid #dfdfdf;
    display: flex;
    align-items: center;
    padding: 2px;
    box-sizing: border-box;
    z-index: 1000;
}

#win95-taskbar > span {
    height: 36px;
    padding: 2px 10px;
    background: linear-gradient(to bottom, #c0c0c0 0%, #808080 100%);
    border: 2px solid transparent;
    border-color: #ffffff #000000 #000000 #ffffff; 
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin-right: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#win95-taskbar > span img { 
    width: 20px;
    height: 20px;
}

#taskbar-items {
    flex: 1;
    display: flex;
    gap: 2px;
}

.taskbar-clock {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 15px; 
    margin-right: 5px;
    font-family: 'win95', 'MS Sans Serif', sans-serif; 
    font-size: 16px;
    background-color: #c0c0c0;
    border: 2px inset #ffffff;
}

.taskbar-clock::before { 
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 2px -2px 0 0; 
    padding-right: 5px;
    background-image: url('src/icons/loudspeaker_rays.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.taskbar-item {
    height: 30px;
    padding: 2px 8px;
    background-color: #c0c0c0;
    border: 2px inset #ffffff;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    margin-right: 2px;
    width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-item:hover {
    background: linear-gradient(to bottom, #d0d0d0 0%, #909090 100%);
}

.taskbar-item.active {
    border: 2px inset #808080;
    background: repeating-conic-gradient(
        #ffffff 0% 25%,
        #c0c0c0 25% 50%, 
        #ffffff 50% 75%,
        #c0c0c0 75% 100%
    );
    background-size: 3px 3px;
}

/* basic windows */
.window {
    position: absolute;
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    border-top: 2px outset #ffffff;
    border-left: 2px outset #ffffff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    min-height: 200px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 300px;
}

.window.hidden {
    display: none;
}

.window.active {
    z-index: 200;
}

/* default window sizes */
.text-window {
    width: 500px;
    height: 500px;
}

.file-explorer-window {
    width: 450px;
    height: 250px;
}

.contact-window {
    width: 420px;
    height: 380px;
}

.image-window {
    width: 400px;
    height: 500px;
}

.pdf-window {
    width: 525px;
    height: 625px;
}

.msn-window {
    width: 300px;
    height: 395px;
}

.sitemap-window {
    width: 400px;
    height: 475px;
}

.media-window {
    width: 520px; 
    height: 380px;
}

/* window items */
.window-header {
    background-color: #000080;
    border-bottom: 2px outset #ffffff;
    color: white;
    padding: 2px 4px 2px 5px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: move;
    flex-shrink: 0;
}

.window-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-controls button {
    width: 16px;
    height: 14px;
    border: 1px outset #c0c0c0;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-minimize {
    background: #c0c0c0;
}

.window-minimize:hover {
    background: #d0d0d0;
}

.window-minimize:active {
    border: 1px inset #c0c0c0;
    background: #a0a0a0;
}

.window-close {
    background: #c00000; 
    color: white;
}

.window-close:hover {
    background: #ff5252;
}

.window-close:active {
    background: #e53935;
}

.window-controls button img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.window-download,
.window-open-tab {
    font-size: 8px;
}

.window-menu-bar {
    background-color: #c0c0c0;
    border-top: 1px solid #ffffff; 
    border-bottom: 2px solid #808080;
    border-left: 2px inset #c0c0c0;
    padding: 2px 8px;
    font-size: 14px;
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

/* content */
.window-content {
    padding: 8px;
    background-color: #c0c0c0;
    flex: 1;
    overflow: auto;
    min-height: 0;
}

.text-content {
    background-color: white;
    border: 1px inset #c0c0c0;
    padding: 8px;
    font-family: 'lucon', 'Times New Roman', serif;
    font-size: 12px;
    line-height: 1.4;
    height: 100%;
    box-sizing: border-box;
}

/* contact form */
.contact-content {
    background-color: #c0c0c0;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
}

.window-banner {
    background-color: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 4px 8px;
    flex-shrink: 0;
}

.fake-icons {
    display: flex;
    overflow: hidden;
    gap: 15px;
    font-size: 12px;
}

.fake-icons .icon {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 4px;
}

.fake-icons .icon:active {
    border: 2px inset #808080;
}

#contactForm {
    font-size: 11px;
}

#contactForm label {
    font-weight: bold;
    margin-bottom: 2px;
    display: inline-block;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 2px 4px;
    border: 1px inset #c0c0c0;
    font-family: 'lucon', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    margin-bottom: 8px;
    overflow: auto;
}

#contactForm button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 12px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

#contactForm button:hover {
    background: #d0d0d0;
}

#contactForm button:active {
    border: 2px inset #c0c0c0;
    background: #a0a0a0;
}

/* file explorers */
.file-explorer-content {
    background-color: white;
    border: 1px inset #c0c0c0;
    padding: 8px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.internal-icon {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
}

.internal-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.internal-icon span {
    font-size: 12px;
    word-wrap: break-word;
    line-height: 1.2;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.5em;
}

.internal-icon.custom-tooltip {
    position: relative;
}

.internal-icon.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 120%;
    transform: translateX(-50%);
    background: #ffffcc;
    border: 1px solid #000000;
    padding: 2px 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

.internal-icon.custom-tooltip:hover::after {
    opacity: 1;
}

/* socials/msn */
.socials-content {
    background-color: white;
    border: 1px inset #c0c0c0;
    padding: 108px 0 0 60px; 
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background-image: url('src/backgrounds/msn-simplified-nohead.png');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.msn-button {
    background: transparent;
    border: none;
    text-decoration: none;
    color: #000080;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 4px; 
    width: fit-content;
}

.msn-button:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #b0b0b0 0%, #d0d0d0 100%);
}

/* media center */
.media-controls {
    background-color: #c0c0c0;
    border-top: 1px solid #808080;
    padding: 4px 8px;
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.media-button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 8px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.media-button:hover {
    background: #d0d0d0;
}

.media-button:active {
    border: 2px inset #c0c0c0;
    background: #a0a0a0;
}

.media-player-interface {
    display: flex;
    height: 100%;
    background: white;
    border: 1px inset #c0c0c0;
}

.media-playlist {
    width: 40%;
    background: #f0f0f0;
    border-right: 1px solid #808080;
    padding: 8px;
    overflow-y: auto;
}

.media-playlist h3 {
    font-size: 12px;
    margin-bottom: 8px;
    color: #000080;
    border-bottom: 1px solid #808080;
    padding-bottom: 4px;
}

.playlist-item {
    padding: 4px 8px;
    margin: 2px 0;
    cursor: pointer;
    border: 1px outset #c0c0c0;
    font-size: 11px;
    background: white;
}

.playlist-item:hover {
    background: #e0e0ff;
    border: 1px outset #d0d0d0;
}

.playlist-item.active {
    background: #000080;
    color: white;
    border: 1px inset #808080;
}

.playlist-item span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 10px;
    line-height: 1.2;
}

.media-display {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

.media-content {
    background-color: white;
    border: 1px inset #c0c0c0;
    padding: 0; 
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#media-placeholder {
    text-align: center;
    color: #808080;
    font-size: 11px;
}

#media-placeholder p {
    margin-top: 8px;
}

.audio-player {
    width: 100%;
    max-width: 300px;
}

.audio-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
}

.audio-info img {
    margin-right: 12px;
}

.audio-details h4 {
    font-size: 12px;
    color: #000080;
    margin-bottom: 4px;
}

.audio-details p {
    font-size: 9px; 
    color: #666666; 
    word-break: break-word; 
    max-width: 180px;
}

.audio-player audio {
    width: 100%;
    background: #c0c0c0;
    border: 1px inset #808080;
}

.video-player {
    width: 100%;
    text-align: center;
}

.video-player video {
    background: #000000;
    border: 2px inset #c0c0c0;
}

.video-info {
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
}

.video-info h4 {
    font-size: 12px;
    color: #000080;
    margin: 0;
}

.video-container {
    background: #000000;
    border: 2px inset #c0c0c0;
    margin-bottom: 10px;
}

iframe {
    display: block;
}

.external-media-controls {
    text-align: center;
    padding: 15px;
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
    margin-top: 10px;
}

.external-media-controls p {
    font-size: 11px;
    margin-bottom: 10px;
    color: #000080;
}

.media-link-button {
    display: inline-block;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 6px 12px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    text-decoration: none;
    color: #000000;
    cursor: pointer;
    margin: 2px;
}

.media-link-button:hover {
    background: #d0d0d0;
}

.media-link-button:active {
    border: 2px inset #c0c0c0;
    background: #a0a0a0;
}

/* PDFs and images */
.pdf-content,
.image-content {
    background-color: white;
    border: 1px inset #c0c0c0;
    padding: 8px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.image-viewer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
}

.secret-image {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    border: 1px solid #808080;
    object-fit: contain;
}

.pdf-viewer-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
}

.pdf-toolbar {
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 12px;
    color: #000080;
    flex-shrink: 0;
}

.pdf-toolbar button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 2px 6px;
    font-size: 10px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    cursor: pointer;
    height: 20px;
}

.pdf-toolbar button:hover {
    background: #d0d0d0;
}

.pdf-toolbar button:active {
    border: 2px inset #c0c0c0;
    background: #a0a0a0;
}

.pdf-toolbar button:disabled {
    color: #808080;
    background: #e0e0e0;
    cursor: default;
    border: 2px outset #e0e0e0;
}

.pdf-toolbar button:disabled:hover {
    background: #e0e0e0;
}

.pdf-toolbar input {
    border: 1px inset #c0c0c0;
    padding: 1px 4px;
    font-size: 10px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    background: white;
    height: 18px;
}

.pdf-toolbar span {
    color: #000000;
    font-weight: normal;
}

.pdf-canvas-container {
    flex: 1;
    overflow: auto;
    background: white;
    text-align: center;
    padding: 10px;
    border: 1px inset #808080;
    margin: 2px;
}

.pdf-canvas {
    border: 1px solid #808080;
    max-width: 100%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
    background: white;
}

.pdf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: white;
    border: 1px inset #c0c0c0;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
}

.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: white;
    border: 1px inset #c0c0c0;
    color: #800000;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    text-align: center;
    padding: 20px;
}

.pdf-error img {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.pdf-error h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #000080;
}

.pdf-error p {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 15px;
    max-width: 300px;
}

.pdf-error .pdf-download-btn {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 8px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 11px;
    cursor: pointer;
    color: #000000;
}

.pdf-error .pdf-download-btn:hover {
    background: #d0d0d0;
}

.pdf-error .pdf-download-btn:active {
    border: 2px inset #c0c0c0;
    background: #a0a0a0;
}

/* status bar */
.window-status-bar {
    background-color: #c0c0c0;
    border-top: 1px solid #808080;
    padding: 2px 8px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 18px;
    flex-shrink: 0;
}

.window-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: repeating-linear-gradient(
        135deg,
        #808080 0px, #808080 2px,
        #c0c0c0 2px, #c0c0c0 4px
    );
    cursor: se-resize;
    z-index: 10;
}

.window:has(.window-status-bar) .window-resize-handle {
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
}

/* sitemap */
.sitemap-content {
    background-color: white;
    border: 1px inset #c0c0c0;
    padding: 8px;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    flex: 1;
}

.sitemap-container {
    height: 100%;
}

.sitemap-tree {
    height: 100%;
    background: white;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
    font-size: 14pt;
}

.sitemap-item {
    display: flex;
    align-items: center;
    padding: 3px 4px;
    margin: 1px 0;
    border-radius: 0;
    transition: background-color 0.1s;
    user-select: none;
}

.clickable-sitemap-item {
    cursor: pointer;
}

.sitemap-name {
    font-size: 14px;
    font-family: 'win95', 'MS Sans Serif', sans-serif;
}

.sitemap-item::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 4px;
}

/* mobile/tablet */
@media (max-width: 800px) {
    .media-player-interface {
        flex-direction: column;
    }
    
    .media-playlist {
        width: 100%;
        height: 40%;
        border-right: none;
        border-bottom: 1px solid #808080;
    }
}

@media (max-width: 600px) {
    .desktop-container {
        padding-bottom: 80px;
    }

    .sitemap-tree {
        padding: 6px;
    }
    
    .sitemap-item {
        padding: 2px 3px;
    }
    
    .sitemap-name {
        font-size: 12px;
    }
    
    .window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 40px) !important;
        min-width: unset !important;
        min-height: unset !important;
        border-radius: 0 !important;
    }
    
    .file-explorer-window {
        width: 90vw !important;
        height: 40vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
    }

    .msn-window {
        width: 85vw !important;
        height: 52vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
    }

    .msn-window .socials-content {
        padding-top: 120px !important;
        padding-left: 68px !important;
    }

    .msn-window .msn-button {
        font-size: 16px !important; 
        margin-bottom: 7px !important;
    }

    .window-resize-handle {
        display: none !important;
    }
    
    .window-header {
        cursor: default !important;
    }

    .window-content {
        padding: 12px !important;
    }
    
    .window-controls button {
        width: 24px !important;
        height: 20px !important;
        font-size: 12px !important;
    }
    
    #contactForm input,
    #contactForm textarea {
        padding: 8px !important;
        font-size: 16px !important; 
    }
    
    .internal-icon {
        padding: 8px !important;
        min-height: 60px !important;
    }
    
    .internal-icon img {
        width: 40px !important;
        height: 40px !important;
    }
}