body {
  background-color: white;
  color: black;
  font-family: monospace;
  margin: 5px;
}

* {
  box-sizing: border-box;
}

button {
  background: transparent;
  border-style: solid;
  transition-duration: 0.2s;
  font-family: monospace;
  cursor: pointer;
}

.header {
  position: sticky;
  left: 0;
  width: 100%;
  background-color: white;
  margin-bottom: 2%;
  border-bottom-style: dashed;
}
.header>.taskbar{
  color: black;
  font-family: Monospace;
  text-decoration: none;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.header>.taskbar>a{
  border-style: none;
  border-top: 3px solid;
  padding: 5px;
  margin-right: 5px;
  text-align: center;
  align-content: center;
  color: black;
  text-decoration: none;
}
.header>.taskbar>.menubtn{
  border-right: dashed medium;
  border-left: dashed medium;
  width: fit-content;
  font-size: x-large;
  font-weight: bold;
}

.windows-container
{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 100%;
}

#infopanel
{
  align-self: flex-start;
  max-width: fit-content;
}

.window {
  flex: 1;
  background: white;
  border-style: solid;
  border-color: black;
  padding: 5px;
  min-width: 100%; 
  box-shadow: 2px 2px lightgray;;
}

.window>.win-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid black;
  margin-bottom: 5px;
}

.win-header-buttons>button {
  max-height: inherit;
  max-width: max-content;
  font-family: Arial, Helvetica, sans-serif;
  font-size: x-large;
  font-weight: bold;
}
.win-header-buttons>button:hover { border-width: medium; }

.win-collapsed 
{
  max-height: fit-content;
  background-color: ghostwhite;
}
.win-collapsed>.win-content { display: none; }
.win-collapsed>.win-header { border-bottom-style: hidden; }

@media screen and (max-width: 768px)
{
  .header { 
    position: fixed; 
    left: 0; 
    bottom: 0; 
    margin-bottom: 0;
    border-style: none;
  }
  .header>.taskbar { justify-content: center; }
}

@media screen and (max-width: 510px) {
  .windows-container
  {
    flex-direction: column;
  }
}
