@font-face {
  font-family:"Segoe UI";
  src:url('fonts/PixelOperator.ttf');
}
body {
  margin:0;
  overflow:hidden;
  user-select:none;
  background:rgba(255,255,255,0.19);
  background-image:url("/img/bg-dithered.png");
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  width:100vw;
  height:100vh;
  font-size:0.9em;
  font-family:"Segoe UI",sans-serif;
  line-height:1.6em;
  opacity:0.8;
  cursor: default;
  filter:sepia(0) saturate(1.7);
}
a {
  text-decoration:none;
  color:rgb(109,98,72);
}
a:hover {
  text-decoration:underline;
  color:#000;
  cursor: default;
  position:relative;
  left:1.5px;
  top:1.5px;
}
a:visited {
  text-decoration:none;
  color:rgb(109,98,72);
}
.window {
  position:absolute; 
  cursor: grab;
  z-index:1;
  font-size:0.9em;
  line-height:1.4em;
  --w7-w-bg: black;
}
.window.hidden {
  display: none !important;
}
.window.dragging {
  cursor: grab;
  z-index:1000;
}
.line {
  width:1px;
  height:30px;
  background:rgb(109,98,72);
  margin:35px auto 35px auto;
}
.picture {
  border:0px solid rgb(217,216,216);
  width:70%;
  box-shadow:rgba(0,0,0,0.16) 0px 10px 36px 0px,rgba(0,0,0,0.06) 0px 0px 0px 1px;
  padding:0px 0px;
}
#desktop,#desktop2,#desktop3 {
  position:fixed;
  top:0;
  left:0;
  margin-top:30px;
}
#desktop2 {
  left:100px;
}
#desktop3 {
  left:200px;
}
.shortcut {
  margin:8px 0 0 10px;
  width:140px;
  height:140px;
  font-size:15px;
  text-align:center;
}
.shortcuticon {
  color:#ffffff;
  text-align:center;
  -webkit-filter:drop-shadow(5px 5px 5px #222);
  filter:drop-shadow(5px 5px 5px #222);
  image-rendering:pixelated;
}
.shortcut a {
  color:#ffffff;
}
.shortcut a:hover {
  text-decoration:none;
  color:rgb(173,176,182);
  cursor: default;
}
.shortcut a:visited {
  text-decoration:none;
  color:#fff;
}
.shortcutname {
  color:#ffffff;
  text-shadow:rgb(0,0,0) 1px 1px 0px;
  font-size:16px;
  line-height:15px;
  margin-top:6px;
}
button {
  cursor: default;
}
@keyframes flicker {
  0% { opacity:0.27861; }
  5% { opacity:0.34769; }
  10% { opacity:0.23604; }
  15% { opacity:0.90626; }
  20% { opacity:0.18128; }
  25% { opacity:0.83891; }
  30% { opacity:0.65583; }
  35% { opacity:0.67807; }
  40% { opacity:0.26559; }
  45% { opacity:0.84693; }
  50% { opacity:0.96019; }
  55% { opacity:0.08594; }
  60% { opacity:0.20313; }
  65% { opacity:0.71988; }
  70% { opacity:0.53455; }
  75% { opacity:0.37288; }
  80% { opacity:0.71428; }
  85% { opacity:0.70419; }
  90% { opacity:0.7003; }
  95% { opacity:0.36108; }
  100% { opacity:0.24387; }
}
.crt::after {
  content:" ";
  display:block;
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  right:0;
  background:rgba(18,16,16,0.1);
  opacity:0;
  z-index:2;
  pointer-events:none;
  animation:flicker 0.15s infinite;
}
.crt::before {
  content:" ";
  display:block;
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  right:0;
  background:linear-gradient(rgba(18,16,16,0) 50%,rgba(0,0,0,0.25) 50%),linear-gradient(90deg,rgba(255,0,0,0.06),rgba(0,255,0,0.02),rgba(0,0,255,0.06));
  opacity:0.3;
  z-index:2;
  background-size:100% 2px,3px 100%;
  pointer-events:none;
}
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(45, 42, 38, 0.96); 
    /* High-contrast double border */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    outline: 1px solid rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    z-index: 999999;
    color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.start-button {
    width: 50px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    image-rendering: pixelated;
   image-rendering: crisp-edges;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.system-tray {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 5px;
}
.tray-icon {
    padding: 0 5px;
    cursor: pointer;
}
#taskbar-clock {
    font-size: 12px;
    text-align: center;
    padding: 0 15px;
    line-height: 1.2;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.show-desktop {
    width: 10px;
    height: 80%;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 5px;
    cursor: pointer;
}
.show-desktop:hover {
    background: rgba(255,255,255,0.1);
}
.running-apps {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    flex-grow: 1;
}
.task-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 2px 8px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    min-width: 100px;
    max-width: 160px;
    height: 30px;
    transition: all 0.1s;
}

.task-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.task-button.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4); 
}
.task-button img {
    width: 16px;
    height: 16px;
}

#start-menu {
position: fixed;
    bottom: 45px;
    left: 5px;
    width: 280px;
    min-height: 380px;
    background: rgba(45, 42, 38, 0.96); 
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    /* High-contrast border */
    border: 1px solid rgba(255, 255, 255, 0.4);
    outline: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    z-index: 999998;
    display: flex;
    flex-direction: row-reverse;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

#start-menu.hidden {
    display: none !important;
}

.start-menu-content {
    flex-grow: 1;
    padding: 15px;
}

.menu-item {
    display: block;
    padding: 10px 13px;
    color: #ffffff !important;
    text-shadow: 2px 2px 2px #000;
    cursor: pointer;
    border-radius: 2px;
    font-size: 16px;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none !important;
}

.start-menu-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    outline: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 2px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.user-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
    color: #ffffff !important;
    text-shadow: 2px 2px 2px #000;
}

hr { border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 10px 0; }