/* main.css */

html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body {
  background-image: url("desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #063d65; /* fallback */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("desktop.webp") center/cover no-repeat;
  opacity: 0.5;
  z-index: -1;
}

.desktop-icons {
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: left; /* Center horizontally */
  position: absolute;
  top: 30px; /* Adjust to position vertically */
  left: 10px; /* Distance from the left edge */
  gap: 30px; /* Spacing between icons */
}

.icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  cursor: pointer;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100px;
  color: white;
  font-size: 12px;
  text-shadow: 1px 1px 2px #000;
}

.icon-label {
  margin-top: -20 px; /* pull it closer to the icon */
  font-size: 14px; /* make text more readable */
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
  color: white;
  text-shadow: 1px 1px 2px black; /* clearer text over any background */
}

/* Screen box auto-scales and centers */
#screen-box {
  width: 800px;
  height: 600px;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden; /* ✅ Prevents scroll inside the box */
  position: relative;
}

/* Add this new container to center everything like a desktop layout */
#desktop {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ---- your UI styles ---- */

#toggle {
  background: rgba(205, 205, 205, 0.8);
  text-align: left;
}

.title {
  font-size: calc(30px + 1vw);
  color: antiquewhite;
  font-family: "Playfair Display", serif;
  text-align: center;
}

.title a {
  color: #0088ff;
}

.todolist {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 20px;
  font-size: calc(15px + 1vw);
  color: antiquewhite;
  font-family: "Playfair Display", serif;
  list-style: "\1F4AC";
  padding: 0;
  margin-top: 50px;
  list-style-position: inside;
}

.todolist a {
  color: #0088ff;
}

.explain {
  position: relative;
  cursor: help;
  color: rgb(246, 246, 246);
}

.explain::after {
  content: attr(data-tip);
  position: absolute;
  top: 150%;
  left: 105%;
  transform: translateY(-50%);
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  pointer-events: none;

  /* ⭐ keep tooltip ABOVE the blur */
  z-index: 10050;
}

.explain:hover::after {
  opacity: 1;
  visibility: visible;
}

#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;

  backdrop-filter: blur(2.5px);

  -webkit-mask-image: radial-gradient(
    circle 15px at var(--mx, 50%) var(--my, 50%),
    transparent 0,
    transparent 130px,
    rgba(0, 0, 0, 0.3) 190px,
    rgba(0, 0, 0, 0.7) 230px,
    black 280px
  );
  mask-image: radial-gradient(
    circle 230px at var(--mx, 50%) var(--my, 50%),
    transparent 0,
    transparent 130px,
    rgba(0, 0, 0, 0.3) 190px,
    rgba(0, 0, 0, 0.7) 230px,
    black 280px
  );
}

#xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
}

#xp-start {
  height: 36px;
}

#xp-middle {
  flex: 1;
  height: 36px;
  background-image: url("taskbar.png");
  background-repeat: repeat-x;
  background-size: auto 36px;
}

#xp-clock {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 18px;
  color: white;
  text-shadow: 0 0 2px black;

  background-image: url("taskbar.png");
  background-repeat: repeat-x;
  background-size: auto 36px;
}

.xp-window {
  position: absolute;
  width: 320px;
  height: 230px;
  background: #ece9d8;
  border: 2px solid #3a6ea5;
  border-radius: 4px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 3000;
  overflow: hidden;
  user-select: none;
}

/*
#window-text {
  top: 30%;
  left: calc(100% - 360px);
}

#window-two {
  top: 43%;
  left: calc(100% - 380px);
}

.xp-titlebar {
  height: 28px;
  background: linear-gradient(to bottom, #3a78c3, #1e4f9e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  cursor: move;
  user-select: none;
}

.xp-buttons {
  display: flex;
  gap: 4px;
}

.xp-btn {
  width: 18px;
  height: 18px;
  background: #dcdcdc;
  border: 1px solid #333;
  border-radius: 2px;
}

.xp-btn.xp-close {
  background: linear-gradient(to bottom, #ff9090, #cc2a2a);
}

.xp-content {
  height: calc(100% - 28px);
  padding: 10px;
  font-family: "Lucida Console", monospace;
  font-size: 14px;
  color: #000;
  overflow: auto;
  background: #ffffff;
  user-select: text;
}

.editable {
  outline: none;
  caret-color: black;
}

*/
