* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ccccff;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.18) 0px,
      rgba(255,255,255,0.18) 2px,
      transparent 2px,
      transparent 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.18) 0px,
      rgba(255,255,255,0.18) 2px,
      transparent 2px,
      transparent 5px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(180,160,255,0.1) 0px,
      rgba(180,160,255,0.1) 4px,
      transparent 4px,
      transparent 8px
    );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.window {
  width: 100%;
}

.titlebar {
  background: linear-gradient(to right, #6b5ca5, #9b8fd4);
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #4a3f7a;
  border-bottom: none;
}

.titlebar .title-controls {
  display: flex;
  gap: 4px;
}

.titlebar .title-controls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  background: #ccccff;
  color: #4a3f7a;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid #ffffff;
  border-right-color: #6b5ca5;
  border-bottom-color: #6b5ca5;
  cursor: pointer;
}

.menubar {
  background: #e8e6f7;
  color: #4a3f7a;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
  padding: 5px 12px;
  display: flex;
  gap: 18px;
  border: 2px solid #4a3f7a;
  border-top: none;
}

.menubar span {
  cursor: pointer;
}

.menubar span:hover {
  text-decoration: underline;
}

.canvas {
  background-color: #000000;
  width: 900px;
  max-width: 100%;
  height: 625px;
  border: 2px solid #404040;
  box-shadow: inset 0 0 0 1px #ffffff, 4px 4px 0 rgba(0,0,0,0.15);
  margin-top: 20px;
  margin-left: 20px;
}
