/*
#c0c0c0 - light grey
#808080 - dark grey
#008081 - cyan
#01017d - dark blue
*/

/* Box model fix */
html {
  box-sizing: border-box;
  font-size: 62.5%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  cursor: url("../images/desktopicons/cursordefault.png") 7 1, auto;
}

/* TASKBAR */
#taskbar {
  position: absolute;
  width: 100%;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 5px;
}
#taskbar ul {
  display: flex;
}
#taskbar button,
#timeDisplay {
  height: 36px;
  margin: 0;
}
nav {
  display: flex;
  position: absolute;
  bottom: 0;
}
h1 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background-color: #808080;
  color: #c0c0c0;
  font-size: 2.2rem;
  padding-top: 10px;
  letter-spacing: 0.025rem;
}
.white {
  color: white;
}
#startMenu,
aside ul {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  width: 200px;
}
#startMenu button,
aside button {
  background-color: transparent;
  border: none;
  padding: 10px;
  width: 100%;
  display: flex;
  align-items: center;
}
#startMenu button:hover,
aside button:hover,
.toolbar li:hover {
  background-color: #01017d;
  color: white;
}
#startMenu img:not(.dropdown),
aside img:not(.dropdown) {
  margin-right: 10px;
  width: 32px;
  height: 32px;
}
#taskStartMenu {
  position: relative;
  top: calc(100% - 48.6667px);
  z-index: 20;
}
.hotkey {
  text-decoration: underline;
}
#timeDisplay {
  text-transform: uppercase;
  padding: 4px 6px;
  margin-left: auto;
}
#start {
  font-weight: bold;
  font-size: 1.2rem;
  padding: 4px 6px;
}
#start img {
  margin-bottom: -3px;
  width: 20px;
  height: 20px;
}
#taskbar img {
  vertical-align: baseline;
  margin-right: 4px;
}
img.dropdown {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

ul#taskbarApps button {
  padding-right: 8px;
  width: 250px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
#taskbarApps {
  column-gap: 4px;
  margin-left: 10px;
}

aside {
  position: absolute;
  bottom: 56px;
  left: 234px;
}

/* APPS */
.appList li button {
  color: white;
  background-color: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 5px;
  padding: 5px;
  width: 100%;
  height: 100%;
}
.appList li button:hover,
.appList li button:focus {
  outline: 2px dotted white;
}
.appList li button:active {
  background-color: #01017d;
  outline: 2px dotted white;
}
.appList ul {
  display: grid;
  grid-auto-columns: 90px;
  grid-auto-flow: column;
  grid-gap: 10px;
  grid-template-rows: 90px 90px 90px 90px 90px;
  position: absolute;
  top: 10px;
  left: 10px;
}
.appName {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 90px;
  line-height: 0.9rem;
}
#insideFolder .appName {
  overflow: visible;
  white-space: initial;
}
.appList button:active .appName,
.appList button:focus .appName {
  outline: 2px dotted white;
  overflow: visible;
  white-space: initial;
}
ul#insideFolder.appList {
  display: grid;
  grid-auto-rows: 90px;
  grid-auto-flow: row;
  grid-gap: 10px;
  grid-template-columns: 90px 90px 90px 90px 90px 90px;
  padding: 5px;
}
#insideFolder.appList li button {
  color: black;
}

#insideFolder.appList li button:focus {
  outline: none;
}
#insideFolder.appList li button:active,
#insideFolder.appList li button:hover,
#insideFolder button:active .appName,
#insideFolder button:focus .appName {
  outline: 2px dotted black;
  background-color: transparent;
}
#rightApps {
  left: calc(100vw - 105px);
}
img {
  width: 48px;
  height: 48px;
  vertical-align: middle;
}
.shortcut {
  position: absolute;
  pointer-events: none;
}
.program header,
.program ul:not(#insideFolder) {
  display: flex;
}
.program {
  min-width: fit-content;
  min-height: fit-content;
  /* max-width: 900px; */
  position: absolute;
  z-index: 5;
}
.topBar {
  margin: 4px;
  background-color: #808080;
  color: #c0c0c0;
  justify-content: space-between;
}
.topBar:hover,
.toolbar li:hover {
  cursor: url("../images/desktopicons/cursorpoint.png") 8 1, pointer;
}
.program[data-focus="2"] header.topBar {
  margin: 4px;
  background-color: #01017d;
  color: white;
  justify-content: space-between;
}
.program[data-maxed="2"] {
  width: 99.9%;
  height: 99.9%;
}
h2 {
  margin-right: auto;
  font-size: 1.4rem;
  align-self: center;
}
.appIcon {
  width: 20px;
  height: 20px;
  align-self: center;
  margin-left: 2px;
  margin-right: 6px;
}
.ctrlBtns img {
  width: 16px;
  height: 16px;
  vertical-align: baseline;
}
.ctrlBtns button {
  margin-top: 3px;
  margin-bottom: 3px;
  padding: 1px 5px;
}
.ctrlBtns .closeAppBtn {
  margin-left: 3px;
  margin-right: 3px;
}
.toolbar {
  padding-left: 5px;
  column-gap: 8px;
}
.toolbar li {
  padding: 2px 6px;
  margin: -2px 0;
}

/* GLOBAL */
body {
  background-color: #008081;
}
.hidden,
#secretFiles {
  display: none;
}
.greyBox,
#taskbarApps [data-focus="1"] button {
  background-color: #c0c0c0;
  border-style: solid;
  border-width: 3px;
  border-top-color: white;
  border-left-color: white;
  border-bottom-color: black;
  border-right-color: black;
}
.insetGrey {
  border-style: solid;
  border-width: 3px;
  border-top-color: #808080;
  border-left-color: #808080;
  border-bottom-color: white;
  border-right-color: white;
}
.whiteBox {
  border-style: solid;
  border-width: 3px;
  background-color: white;
  border-top-color: black;
  border-left-color: black;
  border-bottom-color: white;
  border-right-color: white;
  margin: 4px;
}
.blackBox {
  border-style: solid;
  border-width: 3px;
  background-color: black;
  border-top-color: #808080;
  border-left-color: #808080;
  border-bottom-color: white;
  border-right-color: white;
  margin: 4px;
  color: white;
}
.blue {
  background-color: #01017d;
  color: white;
}
.imp {
  text-decoration: underline;
}
.strk {
  text-decoration: line-through;
}
.partitionHor {
  border-top: 1.5px solid #808080;
}
.partitionHor:before {
  display: block;
  content: "";
  border-top: 1.5px solid white;
  width: 100%;
}
.leftGap {
  margin-left: 10px;
}
ul {
  list-style-type: none;
}
.searchBar {
  align-items: center;
  padding-left: 3px;
  margin-bottom: 0;
}
.addressBar {
  align-items: center;
}
.addressBar .whiteBox,
.insetToolbar .whiteBox {
  width: 100%;
}
article {
  width: calc(100% - 8px);
}

/* BUTTONS */
button {
  font-family: inherit;
  cursor: url("../images/desktopicons/cursorpoint.png") 8 1, pointer;
  font-size: inherit;
}
.activeBtn {
  border-top-color: black;
  border-left-color: black;
  border-bottom-color: white;
  border-right-color: white;
  outline: black 2px dotted;
  outline-offset: -8px;
}
#taskbarApps [data-focus="2"] button {
  background-image: url(../images/checkerbig.png);
  background-size: 20px;
  font-weight: bold;
}
.toolbarBtns {
  padding: 2px;
}
.toolbarBtns button {
  min-width: 30px;
  min-height: 30px;
  padding: 1px;
}
.toolbarBtns button:active,
.ctrlBtns button:active {
  border-top-color: black;
  border-left-color: black;
  border-bottom-color: white;
  border-right-color: white;
  outline: black 2px dotted;
  outline-offset: -6px;
}
.toolbarBtns img {
  height: 24px;
  width: 24px;
}
.downArrow {
  margin-left: auto;
}
.downArrow img {
  height: 16px;
  width: 16px;
  vertical-align: bottom;
}
.downArrow button {
  min-width: 20px;
  min-height: inherit;
}

/* SPECIFIC APPS */
.blankArea {
  min-width: 586px;
  min-height: 326px;
  width: calc(100% - 8px);
  font: inherit;
  padding: 3px;
}
#terminalPage {
  min-height: 300px;
  min-width: 695px;
  padding: 4px;
}

.ieBar {
  padding: 4px;
  display: flex;
  flex-direction: row;
}
#bwsrApp {
  top: 5vh;
  left: 22vw;
}
.browserPic {
  border-style: solid;
  border-width: 3px;
  border-top-color: black;
  border-left-color: black;
  border-bottom-color: white;
  border-right-color: white;
  height: 75px;
  width: 75px;
  margin-left: auto;
}
#browserPage {
  max-height: 300px;
  margin: 0 4px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: scroll;
}
h3.bwsrWrap {
  margin: 6px;
  padding-left: 50px;
  padding-right: 50px;
  text-transform: uppercase;
}
.bwsrWrap {
  background-color: #dcf8ef;
  color: #356965;
  border: 6px double #7dbbb2;
  padding: 5px;
}
.bwsrWrap ul {
  display: flex;
  flex-direction: column;
  list-style-type: circle;
  padding-left: 20px;
}
.bwsrWrap ul:last-child {
  border-bottom: 2px dashed #7dbbb2;
  padding-bottom: 4px;
}
article.bwsrWrap {
  max-width: 300px;
}
#browserPage .ieBar {
  column-gap: 10px;
}
footer.bwsrWrap {
  width: 100%;
  border-bottom: none;
  border-left: none;
  border-right: none;
  margin-top: 10px;
}
.progFooter {
  justify-content: space-between;
  margin: 0px 4px 4px 4px;
  height: 30px;
  column-gap: 4px;
}
#thing1 {
  flex: 70% 1 1;
}
#thing2 {
  flex: 20% 1 1;
}
#thing3 {
  flex: 10% 1 1;
}

/* MINESWEEPER */
#gameContainer {
  text-align: center;
  margin: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  border-bottom-color: #808080;
  border-right-color: #808080;
}
#scoreboard {
  display: flex;
  justify-content: center;
  padding: 4px;
}
#scoreboard ul {
  align-items: center;
}
.scoreSegment {
  display: flex;
  column-gap: 0px;
}
.scoreSegment img {
  height: 46px;
  width: 26px;
}
img#smiley {
  height: 44px;
  width: 44px;
}
#playField {
  margin-left: auto;
  margin-right: auto;
}
.row {
  display: flex;
}
.cell {
  width: 28px;
  height: 28px;
  text-align: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c0c0c0;
  border-style: solid;
  border-width: 2px;
  border-top-color: white;
  border-left-color: white;
  border-bottom-color: black;
  border-right-color: black;
  color: black;
}
.cell.revealed {
  border-top: none;
  border-left: none;
  border-right: 1.5px dotted #808080;
  border-bottom: 1.5px dotted #808080;
}
.cell.adj-X {
  background-color: red;
}
.cell.adj-X img {
  margin-top: 1px;
  margin-left: 2px;
}
.cell img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}
#dosBar {
  width: fit-content;
}
#dosBarText {
  margin-left: 30px;
  margin-right: 40px;
}
#mswpAnswers {
  max-width: 16ch;
}
#terminalPage {
  overflow-y: scroll;
}
.insetToolbar {
  padding: 1px;
  display: flex;
  flex-direction: row;
}

.sysMessage {
  min-width: 350px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.centeredStuff,
.sysMessage {
  align-items: center;
}
.okBtn {
  width: 100px;
  height: 30px;
  margin-top: 8px;
  outline: solid 2px black;
}

/* ----- */
#placeholder {
  display: flex;
  flex-direction: column;
  padding: 2px;
  align-items: center;
}
#numInput {
  width: 100px;
}
