* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    user-select: none;
}
body {
    font-family: sans-serif;
    background-color: rgb(8, 155, 155);
    font-family: Snell Roundhand, cursive;
    /* width: 200vh; 
    height: 100vh; */
    background-repeat: no-repeat;
    overflow: hidden;
}

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: #089b9b;
    letter-spacing: 0.5px;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    background: radial-gradient(circle at center, #10151d -20%, #05070a 100%);
    pointer-events: none; 
    transition: ease-transform 1s;
}

button, .unselected, .selected, .close-button, .window-header {
  touch-action: manipulation;
}

.window {
  will-change: transform, top, left;
  contain: layout style;
}

.information {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 15px;
  cursor: pointer;
  justify-content: row;
}

.time {
  position: relative;
  top: auto;
  right: auto;
  color: #ffffff;
  font-size: 16px;
  font-family: Arial, sans-serif;
  user-select: none;
}

.fullscreen-btn-WaldOS.hidden {
  display: none;
}
.fullscreen-btn-WaldOS {
  cursor: pointer;
  padding: 0px;
  margin: 0px 0px;
  align-items: center;
  font-weight: bold;
  font-size: 40px;
  color: rgb(255, 255, 255);
  height: 100%;
  width: 100%;
  min-width: 100vw;
  min-height: calc(100vh + 70px);
  background-color: rgba(0, 0, 0, 0.94);
  position: fixed;
}

.window-controls button,
.minimize-btn,
.maximize-btn,
.close-button {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888888;
    margin: 0;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.window-controls button svg,
.minimize-btn svg,
.maximize-btn svg,
.close-button svg {
    display: block;
    overflow: visible;
}

.minimize-btn:hover,
.maximize-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #089b9b;
    transform: scale(1.05);
}

.close-button:hover {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
    transform: scale(1.05);
}

.move {
  cursor: move;
  padding: 0px;
  margin: 0px 30px;
}
.header {
    cursor: move;
    justify-content: right;
    align-items: center;
    display: flex;
    gap: 10px;
    border: solid;
    border-color: rgb(0, 0, 0);
    border-width: 3px;
    border-radius: 3px;
    background: radial-gradient(circle at center,  rgba(34, 38, 73, 0.5) 0%,  rgba(34, 38, 73, 0.7) 100%);
    padding: 0px;
    height: 30px;
    margin-top: auto;
    margin-bottom: 5px;
    flex-shrink: 0;
}
.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: move;
    width: 100%;
}
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: radial-gradient(circle at center, rgba(212, 208, 160, 0.0) 0%, rgba(212, 208, 160, 0.0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.applications {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}
.unselected:hover {
    transform: scale(1.1);
    transition: transform 0.1s ease-in-out;
    text-shadow: rgb(10, 180, 180);
}
.window {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 100px;
    border-width: 1px;
    max-width: 100vw;
    max-height: 100vh;
    padding: 10px;
    border-color: rgb(238, 238, 239);
    overflow: hidden;
    overflow-y: hidden;
    margin: 0px;
    
    background: rgba(18, 22, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(8, 155, 155, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(8, 155, 155, 0.15);
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.unselected, .selected {
  position: relative;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.unselected {
  display: none;
}

.minimized {
  display: flex;
}

.selected {
  transform: scale(1.05);
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.45));
}

.selected::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  width: 80%;
  height: 3px;
  border-radius: 50px;
  
  background: linear-gradient(
    90deg, 
    rgba(0, 243, 255, 0) 0%, 
    rgba(0, 243, 255, 0.5) 40%, 
    rgba(0, 243, 255, 1) 85%, 
    #ffffff 100%
  );

  box-shadow: 
    0 0 6px rgba(0, 243, 255, 0.9),
    0 0 12px rgba(0, 243, 255, 0.5),
    2px 0 4px #ffffff;

  animation: shootingStarPulse 2s infinite alternate ease-in-out;
}

@keyframes shootingStarPulse {
  0% {
    opacity: 0.75;
    box-shadow: 0 0 4px rgba(0, 243, 255, 0.7), 2px 0 3px #ffffff;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 243, 255, 1), 0 0 16px rgba(0, 243, 255, 0.6), 3px 0 6px #ffffff;
  }
}

.time {
    position: absolute;
    top: 20%;
    right: 10px;
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-family: Snell Roundhand, cursive;
}
.information {
    cursor: pointer;
}
.window.maximized {
    position: fixed;
    width: 100%;
    height: calc(100% - 70px);
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0px;
    box-sizing: border-box;
}

.window.fullscreen {
    position: fixed;
    width: 100%;
    height: calc(100% - 0px);
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0px;
    box-sizing: border-box;
}

.versteckt {
    display: none;
}

.custom-preset-builder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 10px;
}

#input-preset-name {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

#input-preset-name:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

#input-preset-name::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#btn-save-preset {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 8px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

#btn-save-preset:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

#custom-presets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

#custom-presets-container > div {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  margin: 0;
  transition: border-color 0.2s ease;
}

#custom-presets-container > div:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

#custom-presets-container .preset-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#custom-presets-container .preset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

#custom-presets-container button:last-child {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 8px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 0;
  transition: all 0.2s ease;
}

#custom-presets-container button:last-child:hover {
  background: rgba(255, 77, 77, 0.25);
  color: #ff6b6b;
}

#intro-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    perspective: 1000px;
    z-index: 0;
}

.title {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none;
    font-size: 56px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-family: Arial, sans-serif;
    user-select: none;
    text-align: center;
    margin: 0 0 12px 0;
    opacity: 0;
    will-change: transform, opacity;
}

.subtitle {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgb(255, 255, 255);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-family: Arial, sans-serif;
    user-select: none;
    text-align: center;
    margin: 0;
    opacity: 0;
    will-change: transform, opacity;
}

.fly-in {
    animation: flyInAccelerate 1.8s cubic-bezier(0.7, 0, 1, 0.5) forwards;
}

@keyframes flyInAccelerate {
    0% {
        opacity: 0;
        transform: translateZ(-3000px) scale(0.05);
    }
    30% {
        opacity: 1;
    }
    90% {
        transform: translateZ(50px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) scale(1);
    }
}

.screen-shake {
    animation: shake 0.25s ease-out;
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(5px, -5px); }
    75% { transform: translate(-3px, 3px); }
    100% { transform: translate(0, 0); }
}


.start-menu-window {
  width: 320px;
  height: 450px;
  position: absolute;
  bottom: 80px;
  left: 10px;
  top: auto !important;
  display: none;
  z-index: 9999;
  background: rgba(18, 22, 28, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(8, 155, 155, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.start-menu-container {
  display: flex;
  height: calc(100% - 40px);
  padding: 10px;
  overflow-y: auto;
}

.start-app-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.start-app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #fff;
  font-size: 13px;
}

.start-app-item:hover {
  background: rgba(255, 255, 255, 0.08);
}