* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;

  background: #000;
  color: #eee;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: #eee;
  background: #050505;
  border: 1px solid #444;
  border-radius: 5px;
  padding: 9px 13px;
  cursor: pointer;
}

button:hover {
  background: #151515;
  border-color: #777;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  border: 1px solid #17132e;

  background: url("images\ \(3\).jpg") center center / cover no-repeat;
}

.main-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(700px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #292929;
  border-radius: 16px;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
}

.clock {
  font-weight: 700;
  font-size: 16px;
}

.weather {
  color: #ccc;
}

.search {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.search input {
  flex: 1;
  min-width: 0;
  background: #000;
  color: #eee;
  border-radius: 6px;
  padding: 14px;
  outline: none;
}

.search input:focus {
  border-color: #888;
}

.search button {
  padding-inline: 22px;
}

.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.hint {
  text-align: center;
  color: #555;
  margin: 75px 0 5px;
  user-select: none;
}

.window {
  position: absolute;
  min-width: 280px;
  max-width: calc(100vw - 30px);
  background: #090909;
  border: 1px solid #303030;
  border-radius: 9px;
  overflow: hidden;
  z-index: 10;
}

.titlebar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #101010;
  border-bottom: 1px solid #292929;
  cursor: grab;
  user-select: none;
}

.titlebar:active {
  cursor: grabbing;
}

.title {
  font-weight: 700;
}

.close {
  border: 0;
  background: transparent;
  color: #777;
  padding: 3px 5px;
  font-size: 22px;
}

.close:hover {
  color: #fff;
  background: transparent;
}

.content {
  padding: 18px;
}

textarea,
.todo-input,
.calc-display,
.timer-input {
  width: 100%;
  background: #000;
  color: #eee;
  border-radius: 5px;
  padding: 12px;
  outline: none;
}

textarea {
  min-height: 125px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.muted {
  color: #555;
  font-size: 13px;
}

.calc-display {
  text-align: right;
  font-size: 21px;
  height: 48px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.calc-grid button {
  min-height: 43px;
}

.timer-display {
  text-align: center;
  font-size: 42px;
  margin: 16px 0 22px;
}

.todo-list {
  margin-top: 14px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #222;
}

.todo-item span {
  overflow-wrap: anywhere;
}

.pong-wrap {
  text-align: center;
}

canvas {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  background: #000;
  border: 1px solid #222;
  margin: auto;
}

.about p {
  line-height: 1.7;
  color: #aaa;
}

.about strong {
  color: #eee;
}

@media (max-width: 700px) {
  .main-panel {
    padding: 18px;
  }

  .hint {
    margin-top: 45px;
  }

  .window {
    min-width: 260px;
  }
}
