/* GENERAL SETTINGS */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-y: scroll;
    background: #006d6d;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #006d6d;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* MAIN LAYOUT */

.website-container {
    width: 60%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 25px 0;
    position: relative;
    background: transparent;

    display: flex;
    flex-direction: column;
}

/* WINDOWS 95 WINDOW */

.window {
    width: 100%;
    min-height: calc(100vh - 50px);
    flex: 1;

    background: #c0c0c0;

    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    box-shadow:
        2px 2px 0 #000000,
        -1px -1px 0 #dfdfdf;

    display: flex;
    flex-direction: column;
}

/* TITLE BAR */

.title-bar {
    height: 30px;
    min-height: 30px;
    flex-shrink: 0;

    background: #000080;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 3px 4px;
    font-size: 14px;
    font-weight: bold;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.window-icon {
    font-size: 16px;
}

/* TITLE BAR BUTTONS */

.title-buttons {
    display: flex;
    gap: 3px;
}

.window-button {
    width: 22px;
    height: 22px;
    padding: 0;

    background: #c0c0c0;
    color: #000000;

    font-size: 15px;
    font-weight: bold;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.window-button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

.close {
    font-size: 19px;
}

/* MENU BAR */

.menu-bar {
    height: 28px;
    min-height: 28px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 5px;

    font-size: 13px;
    color: black;
}

.menu-item {
    cursor: default;
    padding: 3px 8px;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: #d4d0c8;
    border-top: 1px solid white;
    border-left: 1px solid white;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

.menu-item:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
}

/* TOOLBAR */

.toolbar {
    display: flex;
    align-items: center;
    gap: 5px;

    padding: 5px;
    border-top: 1px solid white;
    border-bottom: 1px solid #808080;

    flex-shrink: 0;
}

.toolbar-button {
    background: #c0c0c0;
    padding: 5px 10px;
    font-size: 12px;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    cursor: pointer;
}

.toolbar-button:hover {
    background: #d4d0c8;
}

.toolbar-button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;

    padding: 6px 9px 4px 11px;
}

.toolbar-divider {
    height: 25px;
    border-left: 1px solid #808080;
    border-right: 1px solid white;
    margin: 0 5px;
}

/* ADDRESS BAR */

.address-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;

    font-size: 12px;
    border-bottom: 1px solid #808080;

    flex-shrink: 0;
}

.address-input {
    flex: 1;
    height: 24px;
    background: white;

    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid white;
    border-bottom: 2px solid white;

    padding: 4px;
}

/* MAIN CONTENT */

.content {
    flex: 1 0 auto;
    min-height: 600px;

    margin: 8px;
    padding: 20px 30px 30px;

    background: white;

    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid white;
    border-bottom: 2px solid white;

    color: #000000;
    font-size: 14px;
    line-height: 1.6;
}

.content h1 {
    font-size: 25px;
    margin-top: 0;
}

.content h2 {
    font-size: 19px;
}

.content h3 {
    font-size: 15px;
}

.content hr {
    border: none;
    border-top: 1px solid #808080;
}

/* INNER CONTENT BOX */

.content-box {
    margin-top: 30px;
    padding: 20px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
}

/* CLASSIC BUTTON */

.classic-button {
    background: #c0c0c0;
    padding: 7px 20px;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    font-size: 13px;
    cursor: pointer;
}

.classic-button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

/* STATUS BAR */

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 25px;
    min-height: 25px;
    flex-shrink: 0;

    margin: 4px;
    margin-top: auto;

    padding: 3px 6px;
    font-size: 12px;

    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
}

/* MEDIA BROWSER */

.media-content {
    position: relative;
    overflow: visible;
}

.media-category {
    margin-bottom: 25px;
}

.folder-title {
    font-size: 17px;
    font-weight: bold;
    color: #000000;

    border-bottom: 1px solid #808080;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.folder-heading {
    padding-top: 0;
    margin-top: 0;
}

.media-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.media-entry {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* FILE NAMES */

.media-link {
    display: flex;
    align-items: center;
    gap: 9px;

    width: 100%;
    padding: 5px 8px;

    color: #006400;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    cursor: pointer;
}

.media-link:hover {
    background: #dce8dc;
    outline: 1px dotted #006400;
}

.media-icon {
    font-size: 16px;
}

.media-name {
    overflow-wrap: anywhere;
}

.media-type {
    font-size: 10px;
    color: #555555;
    font-weight: normal;
    margin-left: 5px;
}

.media-date {
    margin-left: auto;
    padding-left: 15px;

    color: #555555;
    font-size: 11px;
    font-weight: normal;
    white-space: nowrap;
}

/* HOVER PREVIEW */

.media-preview {
    display: none;
    position: fixed;

    width: auto;
    height: auto;

    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);

    padding: 8px;
    box-sizing: border-box;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    box-shadow: 2px 2px 0 black;

    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.media-entry:hover .media-preview {
    display: block;
}

.media-preview img,
.media-preview video {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(100vh - 80px);

    object-fit: contain;
    background: #000000;
}

.preview-caption {
    margin-top: 5px;
    padding: 4px;

    font-size: 11px;
    font-weight: bold;
    color: #000000;

    overflow-wrap: anywhere;
}

/* MEDIA PLAYER AND GALAXY VIEWER LAYOUT */

.media-windows {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 20px 0;
}

.media-player-window {
    flex: 0 1 700px;
    width: 100%;
    max-width: 700px;
    min-width: 0;
    margin: 0;
}

.galaxy-viewer-window {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* GALAXY VIEWER BLACK DISPLAY */

.galaxy-viewer-screen {
    background-color: #000000;

    width: 100%;
    height: 300px;
    min-height: 300px;

    display: block;
    flex: 1 0 300px;

    border: 2px solid;
    border-color: #404040 #ffffff #ffffff #404040;

    box-sizing: border-box;
}

.galaxy-viewer-screen {
    position: relative;
    background: #000;
    width: 100%;
    height: 300px;
    min-height: 300px;
    flex-shrink: 0;
    border: 2px solid;
    border-color: #404040 #ffffff #ffffff #404040;
    overflow: hidden;
}

.galaxy-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.galaxy-rain span {
    position: absolute;
    left: var(--x);
    top: -20px;
    color: #00ff41;
    font-family: monospace;
    font-size: 14px;
    opacity: 0;
    text-shadow: 0 0 5px #00ff41;
    animation: galaxy-fall var(--speed) linear var(--delay) infinite;
}

@keyframes galaxy-fall {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    85% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(630px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .galaxy-rain span {
        animation: none;
        display: none;
    }
}


/* FOR WHEN THE SITE SIZES GET BUSTED*/

/* =========================================================
   RESPONSIVE LAYOUT
   Original-Desktop-Design bleibt unverändert
========================================================= */

/* Überlaufen verhindern */
.content,
.media-windows,
.media-player-window,
.galaxy-viewer-window {
    min-width: 0;
}

/* Media Player und Galaxy Viewer */
.media-windows {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.media-player-window {
    flex: 1 1 700px;
    min-width: 0;
    max-width: 100%;
}

.galaxy-viewer-window {
    flex: 1 1 320px;
    min-width: min(320px, 100%);
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet und schmale Browserfenster */
@media (max-width: 850px) {
    .website-container {
        width: 90%;
    }

    .content {
        padding: 15px 20px 25px;
    }

    .toolbar {
        flex-wrap: wrap;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .website-container {
        width: 96%;
        padding: 8px 0;
    }

    .content {
        margin: 5px;
        padding: 12px;
        min-height: 0;
    }

    .content h1 {
        font-size: 21px;
    }

    .media-windows {
        flex-direction: column;
        align-items: stretch;
    }

    .media-player-window,
    .galaxy-viewer-window {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .toolbar {
        flex-wrap: wrap;
    }

    .toolbar-button {
        padding: 5px 7px;
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 360px) {
    .content {
        padding: 9px;
    }

    .toolbar-button {
        font-size: 10px;
        padding: 4px 5px;
    }
}