@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&display=swap');

:root {
  --primary-font: 'Comic Neue', sans-serif;
  --background:   #007fff;
  --title-bg:     #00007f;
  --title-text:   #ffffff;
  --border-light: #cccccc;
  --border-dark:  #555555;
  --window-bg:    #aaaaaa;
}

html {
  height: 100%;
}

body {
  background-color: var(--background);
  font-family: var(--primary-font);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

div.shut-down {
  background-color: black;
  color: white;
  flex-grow: 1;
}

div.shut-down p {
  position: absolute;
  left: 0px;
  top: calc(50% - 50px);
  text-align: center;
  line-height: 50px;
  width: 100%;
}

div.window-area {
  flex-grow: 1;
}

div.task-bar {
  height: 30px;
  background-color: var(--window-bg);
}

* {
  cursor: default;
}

div.window {
  border-left:   5px var(--border-light) solid;
  border-top:    5px var(--border-light) solid;
  border-right:  5px var(--border-dark)  solid;
  border-bottom: 5px var(--border-dark)  solid;
  position: absolute;
  flex-direction: column;
}

div.window:not(.minimized) {
  display: flex;
}

div.window.minimized {
  display: none;
}

div.window span.title {
  display: block;
  background-color: var(--title-bg);
  color: var(--title-text);
  padding: 5px;
  cursor: move;
  height: 18px;
}

div.window div.content {
  background-color: var(--window-bg);
  padding: 5px;
  flex-grow: 1;
}

div.window div.resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  background-color: black;
  cursor: nwse-resize;
}

div.window.maximized div.resize {
  display: none;
}

div.button {
  background-color: var(--window-bg);
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

div.button:not(.pressed) {
  border-left:   2px var(--border-light) solid;
  border-top:    2px var(--border-light) solid;
  border-right:  2px var(--border-dark)  solid;
  border-bottom: 2px var(--border-dark)  solid;
}

div.button.pressed {
  border-left:   2px var(--border-dark) solid;
  border-top:    2px var(--border-dark) solid;
  border-right:  2px var(--border-light)  solid;
  border-bottom: 2px var(--border-light)  solid;
}

div.start-menu {
  position: absolute;
  left: 0;
  bottom: 30px;
}

div.start-menu:not(.open) {
  display: none;
}

div.start-menu.open {
  display: inline-block;
}

div.menu {
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: var(--window-bg);
}

div.menu p.menu-item {
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
}

div.menu p.menu-item:hover {
  background-color: white;
}