* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  background: #008080;
  color: #000;
  overflow: hidden;
  cursor: default;
}

button,
a {
  font: inherit;
}

.desktop {
  position: relative;
  min-height: 100vh;
  padding: 24px 24px 58px;
}

.desktop-icons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 82px;
  gap: 42px;
  width: 82px;
}

.desktop-icon {
  width: 82px;
  min-height: 92px;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: none;
  text-align: center;
  user-select: none;
  font-size: 12px;
  line-height: 1.15;
  text-shadow: 1px 1px #000;
  cursor: default;
}

.desktop-icon:hover .icon-label,
.desktop-icon:focus-visible .icon-label,
.desktop-icon.selected .icon-label {
  background: #000080;
  outline: 1px dotted #fff;
}

.icon {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto 6px;
  image-rendering: pixelated;
  position: relative;
}

.icon-computer {
  background: #c0c0c0;
  border: 2px solid #fff;
  box-shadow: inset -3px -3px #404040, 4px 4px rgba(0,0,0,.25);
}

.icon-computer::before {
  content: "";
  position: absolute;
  inset: 7px 6px 13px;
  background: #000080;
  border: 2px solid #404040;
}

.icon-computer::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -8px;
  height: 8px;
  background: #c0c0c0;
  border: 2px solid #404040;
}

.icon-folder {
  background: #f4d35e;
  border: 2px solid #7c5c00;
  box-shadow: 4px 4px rgba(0,0,0,.25);
}

.icon-folder::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -7px;
  width: 22px;
  height: 10px;
  background: #f4d35e;
  border: 2px solid #7c5c00;
  border-bottom: 0;
}

.icon-recycle {
  border: 3px solid #dcdcdc;
  border-top: 0;
  transform: perspective(20px) rotateX(-8deg);
}

.icon-recycle::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: -7px;
  height: 7px;
  background: #dcdcdc;
}

.icon-money {
  background: #00a000;
  border: 2px solid #003800;
  box-shadow: inset -4px -4px #006000, 4px 4px rgba(0,0,0,.25);
}

.icon-money::before {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: bold;
  font-size: 27px;
  text-shadow: 1px 1px #003800;
}

.icon-label {
  display: inline-block;
  padding: 2px 3px;
}

.window {
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.main-window {
  position: absolute;
  top: 70px;
  left: 50%;
  width: min(480px, calc(100vw - 132px));
  transform: translateX(-50%);
  z-index: 3;
}

.note-window {
  position: absolute;
  right: 28px;
  bottom: 86px;
  width: 250px;
  z-index: 1;
}

.alert-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(320px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  z-index: 20;
}

.hidden {
  display: none;
}

.title-bar {
  margin: 3px;
  padding: 3px 4px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 14px;
}


.title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-icon {
  width: 14px;
  height: 14px;
  background: #00a000;
  border: 1px solid #fff;
  box-shadow: inset -2px -2px #006000;
}

.window-buttons {
  display: flex;
  gap: 3px;
}

.window-buttons span {
  min-width: 18px;
  height: 18px;
  background: #c0c0c0;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
}

.window-body {
  padding: 24px 20px 18px;
  text-align: center;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 8vw, 36px);
  letter-spacing: -3px;
  line-height: 0.9;
}

.tagline {
  margin: 0 0 28px;
  font-size: clamp(21px, 5vw, 26px);
  font-weight: bold;
  line-height: 1.05;
}

.counter-box {
  width: 100%;
  margin: 0 auto 24px;
  padding: 14px;
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.counter-box strong {
  font-family: "Courier New", monospace;
  font-size: 25px;
  letter-spacing: -1px;
}

.win-button,
.small-win-button {
  background: #dcdcdc;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #404040;
  border-bottom: 3px solid #404040;
  cursor: default;
}

.win-button {
  display: block;
  padding: 12px 14px;
  font-size: 18px;
}

.small-win-button {
  min-width: 86px;
  padding: 6px 14px;
}

.win-button:hover,
.small-win-button:hover,
.start-button:hover {
  filter: brightness(1.03);
}

.win-button:active,
.small-win-button:active,
.start-button:active {
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
  transform: translate(1px, 1px);
}

.small-text {
  margin: 24px 0 0;
  font-size: 14px;
}

.status-bar {
  margin: 3px;
  padding: 5px 7px;
  font-size: 13px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.note-body,
.alert-body {
  padding: 14px;
  font-size: 14px;
  background: #fff;
  margin: 4px;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.alert-body {
  text-align: center;
}

.alert-body p {
  margin: 0 0 16px;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  z-index: 10;
}

.start-button,
.task-item,
.tray {
  height: 29px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-weight: bold;
  font-family: inherit;
}

.start-button {
  gap: 0;
  font-size: 14px;
}

.windows-mark {
  display: none;
}

.task-item {
  flex: 1;
  max-width: 210px;
  border-top-color: #404040;
  border-left-color: #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

.tray {
  margin-left: auto;
  gap: 10px;
  font-weight: normal;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 720px) {
  .desktop {
    padding: 14px 12px 58px;
  }

  .desktop-icons {
    grid-template-columns: repeat(4, 72px);
    gap: 14px;
    width: 100%;
    justify-content: space-between;
  }

  .desktop-icon {
    width: 72px;
    font-size: 11px;
  }

  .icon {
    width: 36px;
    height: 36px;
  }

  .main-window {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin: 24px auto 0;
  }

  .note-window {

  }

  .window-body {
    padding: 28px 18px 22px;
  }

  .counter-box {
    flex-direction: column;
    justify-content: center;
  }

  .win-button {
    font-size: 18px;
  }

  .task-item {
    max-width: none;
    font-size: 13px;
  }
}


/* Maintenance mode */
.maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0000aa;
  color: #ffffff;
  font-family: "Courier New", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.maintenance-screen.hidden {
  display: none;
}

.maintenance-box {
  width: min(760px, 100%);
  border: 2px solid #ffffff;
  padding: 28px;
  text-align: left;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
}

.maintenance-title {
  display: inline-block;
  background: #ffffff;
  color: #0000aa;
  padding: 4px 10px;
  font-weight: bold;
  font-size: clamp(24px, 5vw, 42px);
  margin-bottom: 24px;
}

.maintenance-message {
  font-size: clamp(17px, 3vw, 24px);
  line-height: 1.35;
}

.maintenance-message p {
  margin: 0 0 14px;
}

.maintenance-status {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 2px solid #ffffff;
  font-size: clamp(14px, 2.5vw, 18px);
}

body.maintenance-active .desktop {
  display: none;
}

body.maintenance-active {
  overflow: hidden;
  background: #0000aa;
}


/* About.txt window */
.about-icon {
  position: fixed !important;
  top: 38px;
  right: 44px;
  left: auto !important;
  z-index: 30;
}

.winamp-icon {
    top: 150px !important;
  }

.paint-icon {
    top: 350px !important;
    right: 100px !important;

  }

.outlook-icon {
	right: 140px !important;
	top: 70px !important;
}

.connection-icon {
	width: 22px;
}
.connection1-icon {
	width: 16px;
  margin-right: 10px;
}
.cartella-icon {
	width: 20px;
  margin-right: 5px;}

.clessidra-img {
	width: 128px;
}
@media (max-width: 700px) {
  .clessidra-img {
	display: none;
}
}



/* Better About.txt icon */
.about-doc-icon {
  width: 58px;
  height: 68px;
  margin: 0 auto 6px;
  position: relative;
  box-sizing: border-box;
  background: #fffef2;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 4px solid #404040;
  border-bottom: 4px solid #808080;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.about-doc-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #b8b8b8;
  pointer-events: none;
}

.about-doc-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #111 0 5px, transparent 5px 10px);
}

.doc-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 17px;
  height: 17px;
  background: linear-gradient(135deg, #dcdcdc 0 49%, #808080 50% 54%, #ffffff 55% 100%);
  border-left: 2px solid #808080;
  border-bottom: 2px solid #808080;
  z-index: 2;
}

.doc-title {
  position: absolute;
  top: 18px;
  left: 10px;
  padding: 1px 4px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  background: #000080;
  z-index: 1;
}

.doc-line {
  position: absolute;
  left: 10px;
  height: 4px;
  background: #111111;
}

.doc-line-1 { top: 34px; width: 38px; }
.doc-line-2 { top: 42px; width: 38px; }
.doc-line-3 { top: 50px; width: 32px; }
.doc-line-4 { top: 58px; width: 38px; }
.doc-line-5 { top: 62px; width: 22px; }

.about-window {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(540px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 86px));
  transform: translate(-50%, -50%);
  z-index: 120;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
}

.about-window.hidden {
  display: none;
}

.about-window .window-title {
  margin: 3px;
  padding: 3px 4px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-weight: bold;
  background: linear-gradient(90deg, #000080, #1084d0);
}

.window-close {
  width: 24px;
  height: 22px;
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 18px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #000;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

.window-close:active,
.about-ok:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.about-content {
  margin: 8px;
  padding: 12px;
  background: #ffffff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  overflow: auto;
  max-height: calc(100vh - 170px);
}

.about-content pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.35;
  color: #000;
}

.about-ok {
  display: block;
  min-width: 84px;
  margin: 18px auto 2px;
  padding: 6px 18px;
  font-family: inherit;
  font-weight: bold;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

@media (max-width: 700px) {
  .about-icon {
    top: 24px;
    right: 22px;
  }

  .about-content pre {
    font-size: 14px;
  }
}


.about-doc-img{width:48px;height:48px;display:block;margin:0 auto 6px;image-rendering:pixelated}
.about-doc-icon,.doc-fold,.doc-title,.doc-line{display:none!important}


/* About.txt placement */
.about-icon {
  position: fixed;
  top: 38px;
  right: 44px;
  left: auto;
  z-index: 30;
  cursor: pointer;
}




/* Mobile icon row + window position fix */
@media (max-width: 700px) {
  .desktop {
    padding-top: 18px;
  }

  .desktop-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 0;
    width: 100%;
    max-width: none;
    align-items: start;
  }

  .desktop-icons .desktop-icon,
  .about-icon {
    width: 64px;
    min-height: 82px;
    justify-self: center;
  }

  .about-icon {
    position: absolute;
    top: 18px;
    right: 12px;
    left: auto;
    z-index: 2;
  }

  .desktop-icon .icon,
  .about-doc-img {
    width: 42px;
    height: 42px;
    margin-bottom: 5px;
  }


  .desktop-icon {
    font-size: 11px;
  }

  .main-window {
    margin-top: 20px;
    display: none;
  }
}
