 @import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

 html {
     height: 100%;
 }

 body {
     overflow: hidden;
     background-color: #0a0a0a;
     background-image: url("");
     color: #00ffcc;
     font-family: 'Share Tech Mono', monospace;
     margin: 0;
     padding: 2rem;
 }


 body[data-page="main"]::before {
     content: "";
     position: absolute;
     top: 0;
     bottom: 0;
     left: 0;
     right: 0;
     z-index: 0;
     opacity: 0;
     background-image: url("../images/book-background.png");
     background-repeat: no-repeat;
     background-position: right calc(100% - 40px);
     transition: opacity 2s ease;
 }

 body[data-page="main"].loaded::before {
     opacity: 1;
 }

 .desktop {
     display: flex;
     flex-wrap: wrap;
     flex-direction: column;
     align-content: baseline;
     gap: 5px;
     margin: 0;
     padding: 0;
     width: 100%;
     height: calc((100vh - 40px) - 4rem);
 }

 .desktop-icon {
     padding: 5px;
     position: relative;
     display: flex;
     flex-direction: column;
     justify-items: center;
     align-items: center;
     gap: 5px;
     width: 120px;
     max-width: 120px;
     border: 1px solid transparent;
     background-color: #ffffff00;
     height: auto;
     border-radius: 4px;
     transition: border 0.2s ease, background 0.3s ease, transform 0.2s ease-out;
     user-select: none;
 }

 .desktop-icon:hover {
     border: 1px solid #ffffff61;
     background-color: #ffffff17;
     ;
 }

 .desktop-icon .icon {
     --background: url("");
     border-radius: 5px;
     width: 48px;
     height: 48px;
     background-image: var(--background);
     background-size: cover;
     background-position: center center;
 }

 .desktop-icon .icon.shortcut::after {
     content: "";
     height: 22px;
     width: 22px;
     position: absolute;
     top: 35px;
     left: 35px;
     background-image: url("../images/icons/shortcut.png");
 }

 .desktop-icon .icon.folder {
     --background: url('../images/icons/icon-folder.png')
 }

 .desktop-icon .icon.file-text {
     --background: url('../images/icons/icon-text.png')
 }

  .desktop-icon .icon.file-empty {
     --background: url('../images/icons/icon-empty.png')
 }


 .desktop-icon .text {
     left: 50%;
     font-size: 11px;
     color: #ffffff;
 }

 #context-menu {
     display: none;
     position: absolute;
     background: #202020;
     color: #eee;
     border: 1px solid #555;
     border-radius: 4px;
     width: 200px;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     font-size: 14px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
     z-index: 10000;
 }

 #context-menu ul {
     list-style: none;
     margin: 0;
     padding: 8px 0;
 }

 #context-menu .context-menu-item {
     padding: 8px 20px;
     cursor: pointer;
     user-select: none;
 }

 .centered {
     max-width: 720px;
     margin: 20px auto;
     padding: 2rem;
     position: relative;
 }

 #terminal {
     background-color: #060606;
     border: 1px solid #ffffff44;
     box-shadow: 0 0 5px #ffffff22;
     border-radius: 6px;
     font-size: 1rem;
     line-height: 1.2;
     position: relative;
     color: #00ffcc;
     padding: 2rem;
     width: auto;
     height: 423px;
 }

 #typed-text-terminal::after,
 #text-terminal::after {
     content: "_";
     animation: blink 0.9s step-start infinite;
 }

 @keyframes blink {
     50% {
         opacity: 0;
     }
 }

 a {
     color: #00ffcc;
     text-decoration: underline;
 }

 .warning {
     color: #ff6060;
     margin-top: 2rem;
     font-size: 0.95rem;
 }

 #typed-text-terminal {
     text-shadow: 0 0 6px #00ffcc66;
     white-space: pre-wrap;
 }

 #text-terminal {
     padding-top: 30px;
     text-shadow: 0 0 6px #00ffcc66;
 }


 #help-links {
     opacity: 0;
     transition: opacity 0.5s ease;
 }

 .terminal-header {
     display: flex;
     align-items: center;
     background-color: #181818;
     position: absolute;
     border-radius: 6px 6px 0 0;
     border-bottom: 1px solid #ffffff44;
     top: 0;
     left: 0;
     display: flex;
     gap: 0.5rem;
     width: 100%;
 }

 .dot {
     width: 10px;
     height: 10px;
     border-radius: 50%;
     display: inline-block;
     opacity: 0.3;
     margin: 15px 5px 15px 15px;
 }

 #terminal-greeting {
     text-align: center;
     min-height: 30px;
     width: 100%;
     margin: 10px auto;
     position: relative;
     color: #00ffcc;
     font-family: 'Share Tech Mono', monospace;
     font-size: 1.4rem;
     letter-spacing: 0.08em;
     opacity: 0.85;
     text-shadow: 0 0 6px #00ffcc66;
 }

 #identity {
     color: #ff3300;
     text-shadow: 0 0 6px #ff440066;
 }

 .red {
     background-color: #ff5f56;
 }

 .yellow {
     background-color: #ffbd2e;
 }

 .green {
     background-color: #27c93f;
 }

 @keyframes flicker {

     0%,
     18%,
     22%,
     25%,
     53%,
     57%,
     100% {
         opacity: 0.9;
         text-shadow: 0 0 6px #00ffcc66, 0 0 12px #00ffcc33;
     }

     20%,
     24%,
     55% {
         opacity: 0.8;
         text-shadow: none;
     }
 }

 .dissolve-char {
     display: inline-block;
     color: #ff3333;
     transition: opacity 0.4s ease-out;
 }

 #hidden-trigger {
     position: absolute;
     bottom: 10%;
     left: 3%;
     width: 5px;
     height: 5px;
     background-color: rgba(255, 255, 255, 1);
     border-radius: 50%;
     transform: translate(-50%, -50%);
     cursor: pointer;
     transition: opacity 0.5s ease;
     animation: pulse 3s ease-in-out infinite;
 }

 #hidden-trigger:hover {
     opacity: 1;
     animation: none;
 }

 @keyframes pulse {

     0%,
     100% {
         opacity: 0.0;
     }

     99% {
         opacity: 0.3;
     }

     97% {
         opacity: 0.01;
     }

     70% {
         opacity: 0.001;
     }
 }

 #memory_YOU_img {
     position: absolute;
     right: -6%;
     bottom: -8%;
     width: 200px;
     transform: rotate(7deg);
     transition: all 0.5s ease;

 }

 #memory_YOU_img:hover {
     position: absolute;
     right: -5%;
     bottom: -6%;
     width: 255px;
     transform: rotate(20deg);
     cursor: pointer;
 }

 .audioPlayer-container,
 .imageViewer-container,
 .textViewer-container {
     width: 602px;
     height: 440px;
     position: absolute;
     top: 120px;
     left: 120px;
     z-index: 10;
     box-sizing: border-box;
 }

 .audioPlayer-container {
     height: 55px;
 }

 .audio-player,
 .image-viewer,
 .text-viewer,
 .folder-viewer,
 .pdf-viewer {
     position: relative;
     display: block;
     background-color: #ffffff;
     border: 1px solid #666;
     box-shadow: 0 0 2px #ffffff44;
     color: #00ffcc;
     font-family: 'Share Tech Mono', monospace;
     font-size: 0.95rem;
     border-radius: 0 0 6px 6px;
     height: 100%;
     padding: 15px;
     user-select: none;
 }

 .pdf-viewer {
     padding: 0;
     width: 100%;
     height: calc(100% - 30px);
     min-height: 600px !important;
     min-width: 800px !important;
     overflow: hidden !important;
 }

 .pdf-document {
     overflow-y: auto;
     height: 100%;
     padding: 10px;
     background: #fff;
     border: 1px solid #ccc;
 }

 .pdf-document img {
     display: block;
     border: 1px solid #ddd;
     box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
     user-select: none;
 }

 .folder-viewer {
     padding: 0;
     width: 700px;
     height: 400px;
 }

 .folder-details {
     margin-bottom: 40px;
     color: #000;
     font-family: sans-serif;
     background: white;
 }

 .folder-header,
 .folder-item {
     display: grid;
     grid-template-columns: 2fr 2fr;
     padding: 4px 8px;
     align-items: center;
     user-select: none;
 }

 .folder-header {
     position: sticky;
     background: #f3f3f3;
     font-weight: bold;
     border-bottom: 1px solid #ccc;
     top: 0;
     width: inherit;
 }

 .folder-item {
     padding-left: 15px;
 }

 .error-empty-folder {
     color: #797979;
     text-align: center;
     padding: 20px;
 }

 .folder-item .name::before {
     display: inline-block;
     content: "";
     width: 14px;
     height: 14px;
     margin-right: 5px;
     background-image: var(--icon);
     background-repeat: no-repeat;
     background-position: center center;
     background-size: contain;
     filter: invert();
 }

 .folder-item:hover {
     background: #e6f2ff;
 }

 .col {
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .audio-player {
     padding: 0;
 }

 .resizable {
     overflow: auto;
     resize: both;
     min-width: 200px;
     min-height: 150px;
     max-width: 1280px;
     max-height: 720px;
     box-sizing: border-box;
     cursor: default;
 }

 .resizeable:after {
     content: "";
     position: absolute;
     right: 2px;
     bottom: 2px;
     width: 16px;
     height: 16px;
     background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%23aaa" stroke-width="2"><path d="M0 16 L16 0 M4 16 L16 4 M8 16 L16 8"/></svg>') no-repeat center center;
     cursor: nwse-resize;
     pointer-events: none;

 }

 .image-viewer .img {
     display: block;
     background-image: var(--background);
     width: 100%;
     height: 100%;
     max-width: 1280px;
     max-height: 720px;
     background-size: contain;
     background-position: center;
     background-repeat: no-repeat;
 }

 .text-viewer .text {
     font-family: monospace;
     width: 100%;
     height: 100%;
     background-color: #fff;
     color: #000;
     min-width: fit-content;
 }

 .audio-player audio {
     width: 100%;
 }

 .viewer-label {
     color: #ff6060;
     font-size: 14px;
     letter-spacing: 0.08em;
     text-shadow: 0 0 6px #ff606066;
 }

 .viewer-header {
     display: flex;
     align-items: center;
     background-color: #181818;
     border-radius: 6px 6px 0 0;
     justify-content: start;
     gap: 0.5rem;
     width: 100%;
     cursor: move;
     user-select: none;
 }

 .close-button {
     position: absolute;
     top: 8px;
     right: 12px;
     font-size: 16px;
     width: 22px;
     height: 22px;
     color: #ff6060;
     background-color: #0f0f0f;
     border: 1px solid #ff606066;
     border-radius: 4px;
     text-align: center;
     line-height: 22px;
     font-family: 'Share Tech Mono', monospace;
     cursor: pointer;
     box-shadow: 0 0 6px #ff606033;
     transition: all 0.2s ease;
 }

 .close-button:hover {
     background-color: #1a1a1a;
     color: #ffffff;
     box-shadow: 0 0 8px #ff6060aa;
     border-color: #ff6060;
 }

 #taskbar {
     z-index: 99999999;
     opacity: 1;
     display: flex;
     align-items: center;
     justify-items: left;
     position: fixed;
     bottom: 0;
     left: 0;
     border-top: 1px solid #1e1c1c;
     width: 100vw;
     height: 40px;
     background-color: #1f1c1c;
 }

 #taskbar .icon {
     opacity: 1;
     user-select: none;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     color: #ffffff;
     height: 40px;
     width: 48px;
 }

 #taskbar .icon span {
     display: block;
     width: 100%;
     text-align: center;
 }

 #taskbar .icon:hover {
     opacity: 1;
     color: #4c4c4c;
     background-color: #333533;

 }

 #start-button .text {
     font-size: 11px;
 }

 #taskbar #start-button .dot {
     opacity: 1;
     width: 10px;
     height: 10px;
     border-radius: 50%;
     background-color: rgb(255, 0, 0);
     box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
     margin: 0;
 }

 #taskbar #start-button:hover .dot {
     opacity: 0.4;
 }

 #legal {
     display: flex;
     justify-items: center;
     align-items: center;
     height: 100%;
     font-size: 12px;
     position: absolute;
     right: 20px;
 }

 #legal span {
     display: inline-block;
 }

 #legal a {
     color: #ffffff;
     text-decoration: none;
 }

 #taskbar .seperator {
     margin-left: 5px;
     width: 4px;
     border-left: 1px solid #797878;
     height: 80%;
 }

 .text-justify {
     text-align: justify !important;
 }

 .text-center {
     text-align: center !important;
 }

 #loading-screen {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background-color: #0d0e0f;
     text-shadow: 0 0 6px #00ffcc66;
     color: #00ffcc;
     font-family: 'Courier New', Courier, monospace;
     font-size: 1.2rem;
     display: flex;
     justify-content: center;
     align-items: center;
     /* Um Zeilenumbrüche zu erhalten */
     padding: 20px;
     z-index: 9999;
     user-select: none;
     flex-direction: column;
 }

 #loading-screen #boot-text {
     min-height: 200px;
     text-align: center;
 }

 .special-word {
     text-shadow: 0 0 6px #ff000066;
     color: #FF3333;
     font-weight: bold;
 }

 /* Flackern Animation */
 @keyframes flicker2 {

     0%,
     100% {
         opacity: 1;
     }

     20%,
     50%,
     70% {
         opacity: 0.2;
     }

     30%,
     60% {
         opacity: 0.5;
     }
 }

 .fade-out {
     animation: flicker2 0.6s ease-in-out forwards,
         fadeToTransparent 3s ease forwards;
     animation-delay: 0s, 3.6s;
 }

 @keyframes fadeToTransparent {
     to {
         opacity: 0;
     }
 }

 .start-menu {
     position: absolute;
     bottom: 40px;
     /* Höhe der Taskleiste anpassen */
     left: 0;
     background: rgba(30, 30, 30, 0.95);
     display: flex;
     color: white;
     font-family: "Segoe UI", sans-serif;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
     border-radius: 0 5px 0 0;
     overflow: hidden;
     transform: translateY(10px);
     opacity: 0;
     pointer-events: none;
     transition: all 0.2s ease-out;
 }

 .start-menu.show {
     opacity: 1;
     pointer-events: auto;
     transform: translateY(0);
 }

 .start-left {
     background: rgba(45, 45, 45, 0.95);
     width: 200px;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
 }

 .start-user {
     padding: 10px;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .user-avatar {
     width: 36px;
     height: 36px;
     border-radius: 50%;
     background: gray;
 }

 .user-name {
     color: white;
     font-family: monospace;
     font-size: 1em;
 }

 .start-actions {
     display: flex;
     flex-direction: column;
 }

 .start-icon {
     background: none;
     border: none;
     color: white;
     font-size: 1.2em;
     padding: 10px;
     cursor: pointer;
     transition: background 0.2s;
 }

 .start-icon:hover {
     background: rgba(255, 255, 255, 0.1);
 }

 .start-right {
     display: grid;
     grid-template-columns: repeat(3, 100px);
     grid-auto-rows: 100px;
     gap: 5px;
     padding: 10px;
 }

 .tile {
     background: rgba(70, 70, 70, 0.9);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.85em;
     cursor: pointer;
     transition: background 0.2s;
 }

 .tile:hover {
     background: rgba(100, 100, 100, 0.9);
 }

 .tile.wide {
     grid-column: span 2;
 }

 #sleep-overlay {
     position: fixed;
     inset: 0;
     background-color: #0d0e0f;
     text-shadow: 0 0 6px #00ffcc66;
     color: #00ffcc;
     display: flex;
     align-items: center;
     justify-content: center;
     font-family: "Segoe UI", sans-serif;
     font-size: 1.2em;
     z-index: 9999999999;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.5s ease-in-out;
 }

 #sleep-overlay.show {
     opacity: 0.97;
     pointer-events: auto;
 }

 .sleep-message {
     text-align: center;
     opacity: 0.8;
 }

 .error-404 {
     margin: -10px;
     padding: 30px 28px;
     border: 2px solid #d9534f;
     background: #1e1e1e;
     color: #e06c75;
     font-family: 'Consolas', 'Courier New', monospace;
     text-align: center;
     box-shadow: 0 0 20px rgba(208, 83, 79, 0.85);
     user-select: none;
     height: calc(100% - 66px);
     line-height: 1.5;
 }

 .error-404::before {
     content: "⌛";
     font-size: 48px;
     display: block;
     margin-bottom: 20px;
     color: #e06c75;
     text-shadow: 0 0 8px #b04141;
 }

 .error-404 h2 {
     margin-bottom: 16px;
     font-weight: 700;
     font-size: 28px;
     letter-spacing: 1.4px;
     text-transform: uppercase;
 }

 .error-404 p {
     font-size: 16px;
     opacity: 0.95;
 }

 .error-404 em {
     display: block;
     margin-top: 22px;
     font-size: 14px;
     color: #bf616a;
     font-style: italic;
     user-select: text;
 }

 .error-404 .meta {
     margin-top: 24px;
     font-size: 13px;
     color: #a6575d;
     opacity: 0.75;
     font-style: normal;
     user-select: text;
 }