
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: antiquewhite;
  overflow: hidden;

  /* Space background */
  background:
    radial-gradient(circle at 20% 25%, #343b72 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, #30205c 0%, transparent 22%),
    linear-gradient(135deg, #050816, #0b1025 50%, #080512);
}

/* Small stars in the background */
body::before {
  content: "";
  position: fixed;
  width: 2px;
  height: 2px;
  background: white;
  top: 20%;
  left: 15%;
  box-shadow:
    80px 30px white,
    150px 100px #ddd,
    230px 50px white,
    310px 150px #aaa,
    400px 80px white,
    500px 180px #ddd,
    620px 50px white,
    720px 130px #bbb,
    850px 40px white,
    950px 170px #ddd,
    1050px 90px white,
    1150px 200px #aaa,
    70px 350px white,
    180px 430px #ddd,
    330px 330px white,
    470px 470px #aaa,
    600px 350px white,
    760px 430px #ddd,
    900px 320px white,
    1080px 400px #bbb,
    1200px 300px white;
  opacity: 0.7;
  pointer-events: none;
}

/* Top bar */

.topbar {
  height: 45px;
  width: 100%;

  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 15px;

  background: rgba(8, 10, 25, 0.85);
  border-bottom: 1px solid #353957;

  z-index: 1000;
}

.logo {
  color: #b9adff;
  font-weight: bold;
  font-size: 16px;
}

.clock {
  color: #ddd8ff;
  font-size: 14px;
}

#startButton {
  border: none;
  background: transparent;

  color: white;
  font-size: 20px;

  cursor: pointer;
}

/* Desktop */

.desktop {
  width: 100vw;
  height: 100vh;

  padding-top: 65px;
  padding-left: 20px;

  background: transparent;
}

/* Desktop icons */

.desktop-icon {
  width: 75px;
  margin-bottom: 20px;

  text-align: center;

  color: white;
  font-size: 12px;

  cursor: pointer;
}

.icon {
  width: 48px;
  height: 48px;

  margin: auto;
  margin-bottom: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(30, 36, 70, 0.8);

  border: 1px solid #4b5180;
  border-radius: 10px;

  font-size: 24px;
}

.desktop-icon:hover .icon {
  background: #343b72;
}

/* Windows */

.window {
  position: absolute;

  display: none;

  width: 430px;

  background: rgba(24, 27, 48, 0.95);

  border: 1px solid #50577e;
  border-radius: 8px;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);

  overflow: hidden;

  z-index: 10;
}

.window.open {
  display: block;
}

/* Window positions */

.welcome {
  width: 460px;
  left: 25%;
  top: 18%;
}

#aboutWindow {
  left: 35%;
  top: 22%;
}

#notesWindow {
  left: 30%;
  top: 27%;
}

#terminalWindow {
  left: 25%;
  top: 25%;
  background: rgba(10, 13, 20, 0.97);
}

/* Title bar */

.titlebar {
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 8px 0 12px;

  background: rgba(45, 49, 78, 0.95);

  border-bottom: 1px solid #50577e;

  cursor: move;

  user-select: none;
}

.titlebar button {
  width: 27px;
  height: 27px;

  border: none;
  border-radius: 5px;

  color: white;
  background: transparent;

  cursor: pointer;
}

.titlebar button:hover {
  background: #555c83;
}

.titlebar button:last-child:hover {
  background: #c94b58;
}

/* Window body */

.window-body {
  padding: 20px;
}

.window-body h1 {
  margin-top: 10px;
  color: #f1edff;
}

.window-body h2 {
  margin-top: 0;
  color: #e8e3ff;
}

.window-body p {
  line-height: 1.5;
}

.antiquewhite {
  color: #f1edff;
}

.window-body li {
  margin: 8px 0;
}

hr {
  border: none;
  border-top: 1px solid #3d4260;
  margin: 20px 0;
}

/* Welcome window */

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

.big-logo {
  width: 65px;
  height: 65px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: #6558b8;

  color: white;

  font-size: 30px;
  font-weight: bold;
}

.main-button {
  padding: 10px 18px;

  border: none;
  border-radius: 6px;

  background: #6c5dcc;

  color: white;

  cursor: pointer;
}

.main-button:hover {
  background: #8172e0;
}

/* Notes */

#notes {
  width: 100%;
  height: 220px;

  padding: 12px;

  resize: none;

  border: 1px solid #444b6d;
  border-radius: 6px;

  outline: none;

  background: #0d1224;

  color: white;

  font-family: Arial, sans-serif;
}

#notes:focus {
  border-color: #7769d8;
}

/* Terminal */

.terminal-body {
  height: 230px;

  padding: 15px;

  overflow-y: auto;

  color: #9be6a8;

  font-family: monospace;
  font-size: 13px;
}

.terminal-body p {
  margin: 5px 0;
}

.terminal-input {
  display: flex;

  padding: 10px;

  border-top: 1px solid #29352e;

  color: #79df8c;

  font-family: monospace;
}

#command {
  flex: 1;

  margin-left: 8px;

  border: none;
  outline: none;

  background: transparent;

  color: white;

  font-family: monospace;
}

/* Start menu */

.start-menu {
  position: fixed;

  left: 10px;
  bottom: 10px;

  width: 220px;

  padding: 12px;

  display: none;

  background: rgba(20, 24, 43, 0.97);

  border: 1px solid #4b5276;
  border-radius: 8px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);

  z-index: 2000;
}

.start-menu.show {
  display: block;
}

.start-menu h3 {
  margin: 5px 8px 10px;

  font-size: 13px;
  color: #a1a8c0;
}

.start-menu button {
  width: 100%;

  padding: 10px;

  border: none;
  border-radius: 5px;

  text-align: left;

  background: transparent;

  color: white;

  cursor: pointer;
}

.start-menu button:hover {
  background: #343b60;
}

/* Mobile */

@media (max-width: 600px) {

  .window {
    width: calc(100vw - 30px) !important;

    left: 15px !important;
    top: 70px !important;
  }

  .desktop {
    padding-left: 15px;
  }
}

