
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  background-color: #1b1b3a;
  background-image: url("modern-minimalist.jpg.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


#taskbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  color: aliceblue;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

#taskbar p {
  margin: 0;
}

.taskbar-button {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.taskbar-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}


#desktopApps {
  padding-top: 64px;
  padding-left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-icon {
  display: block;
  width: fit-content;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: white;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  filter: drop-shadow(0 0 6px gray);
}

.desktop-icon img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 6px;
}

.desktop-icon .glyph {
  display: block;
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin: 0 auto 6px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 28px;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
}


.window {
  position: absolute;
  top: 120px;
  left: 200px;
  width: 420px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  border: 4px solid #000000;
  border-radius: 5px;
  background-color: #3535c6;
  color: aliceblue;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.window[hidden] {
  display: none;
}

#diary {
  top: 160px;
  left: 300px;
  width: 520px;
}

#calculator {
  top: 140px;
  left: 380px;
  width: 300px;
}

#passwords {
  top: 200px;
  left: 440px;
  width: 380px;
}

.windowheader {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #2a2a9e;
  border-bottom: solid 1px black;
  cursor: move;
  user-select: none;
}

.headertext {
  font-weight: bold;
  color: aliceblue;
}

.closeButton {
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  color: aliceblue;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  margin-left: 10px;
}

.closeButton:hover {
  background-color: rgba(255, 0, 0, 0.6);
}

.closeButton:focus-visible,
.taskbar-button:focus-visible,
.desktop-icon:focus-visible {
  outline: 2px solid aliceblue;
  outline-offset: 2px;
}

.content {
  padding: 12px;
  font-size: 16px;
}

.content h3,
.content p {
  margin: 0;
  padding: 8px 0;
}

.content a {
  color: aliceblue;
}


#diaryText {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 320px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background-color: white;
  color: #111;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}

.diary-status {
  font-size: 13px;
  opacity: 0.75;
}


.calc-display {
  background-color: white;
  color: #111;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 22px;
  text-align: right;
  min-height: 28px;
  overflow-x: auto;
  white-space: nowrap;
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-keys button {
  padding: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  color: aliceblue;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
}

.calc-keys button:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.calc-equals {
  grid-row: span 2;
}

.calc-zero {
  grid-column: span 2;
}


.pw-output {
  background-color: white;
  color: #111;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 17px;
  word-break: break-all;
  min-height: 24px;
}

.pw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
}

.pw-row input[type="range"] {
  flex: 1;
}

.pw-buttons {
  display: flex;
  gap: 8px;
  padding-top: 10px;
}

.pw-buttons button {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  color: aliceblue;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.pw-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.pw-status {
  font-size: 13px;
  opacity: 0.75;
  min-height: 18px;
}
