.wrapper:not(.minimized-container) {
  background-color: #D6D6D6;
  height: calc(100vh - 180px);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.wrapper.minimized-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: hidden;
  display: flex;
  justify-content: end;
}

.wrapper.minimized-container .window {
  margin-left: 10px;
}

.wrapper.maximized {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.window {
  position: absolute;
  width: 500px;
  min-width: 250px;
  border-radius: 5px;
  background-color: var(--dark-2);
  /* max-height: calc(100% - 40px); */
  box-shadow: 0 0 15px rgba(0,0,0,.4);
  z-index: 1;
}

/* .window.focus {
  z-index: 999;
} */

.window .head {
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding: 4px 10px;
  cursor: move;
}

.window .head span {
  font-weight: 700;
}

.window .head .actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.window .head .actions a {
  width: 30px;
  height: 30px;
  background-color: var(--dark);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 5px;
  margin-left: 5px;
  font-size: 10px;
}

.window .body {
  width: 100%;
  height: calc(100% - 40px);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  transition: .3s ease;
  overflow: auto;
}

.window.minimized .body {
  height: 0!important;
}

.window.minimized {
  height: 40px!important;
  width: 150px!important;
  z-index: 99;
}

.window.minimized .head .actions a.minimize,
.window.pinned .head .actions a.pin,
.window.maximized .head .actions a.maximize {
  background-color: #fff;
  color: var(--dark);
}

.window.minimized .head .actions a:not(.minimize),
.window.maximized .head .actions a:not(.maximize) {
  display: none;
}

.window.maximized {
  width: 100%!important;
  height: 100%!important;
  left: 0!important;
  top: 0!important;
  z-index: 99;
  border-radius: 0;
}

.window.pinned {
  z-index: 99999999!important;
}