/**
 * system7.css
 * Copyright (c) 2023 OpenCo <openco.ca> and Startr LLC <startr.ca>
 * Copyright (c) 2022 Sakun Acharige <startr_.co>
 */

:root {
  --box-shadow: 2px 2px;

  /* Spacing */
  --element-spacing: 8px;
  --grouped-element-spacing: 6px;
  --radio-width: 12px;
  --checkbox-width: 13px;
  --radio-label-spacing: 6px;

  /* Some detailed computations for radio buttons and checkboxes (from 98.css) */
  --radio-total-width-precalc: var(--radio-width) + var(--radio-label-spacing);
  --radio-total-width: calc(var(--radio-total-width-precalc));
  --radio-left: calc(-1 * var(--radio-total-width-precalc));
  --radio-dot-width: 6px;
  --radio-dot-top: calc(var(--radio-width) / 2 - var(--radio-dot-width) / 2);
  --radio-dot-left: calc(-1 * (var(--radio-total-width-precalc)) + var(--radio-width) / 2 - var(--radio-dot-width) / 2);

  --checkbox-total-width-precalc: var(--checkbox-width) + var(--radio-label-spacing);
  --checkbox-total-width: calc(var(--checkbox-total-width-precalc));
  --checkbox-left: calc(-1 * var(--checkbox-total-width-precalc));
  --checkmark-width: 12px;
  --checkmark-top: 2px;
  --checkmark-left: 2px;

  /* ---- ⚫️ Colors ⚪️ ---- */
  /* Base Tokens */
  --sys-color-white: #FFFFFF;
  --sys-color-black: #000000;
  --sys-color-grey: #A5A5A5;
  --sys-color-darkgrey: #B6B7B8;

  /* Theme Tokens */
  --primary: var(--sys-color-black);
  --secondary: var(--sys-color-white);
  --tertiary: var(--sys-color-grey);

  /* Component Tokens */
  --disabled: var(--sys-color-darkgrey);
}

/* buttons */
.standard-button {
  display: block;
  min-width: 59px;
  min-height: 20px;
  text-align:
}

/* title bar */
.title-bar {
  flex: none;
  display: flex;
  align-items: center;
  height: 1.5rem;
  margin-top: 0.1rem 0;
  padding-top: 0.2rem;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  padding-bottom: 0.1rem;
  background: linear-gradient(var(--primary) 50%, transparent 50%);
  background-size: 6.6666666667% 13.3333333333%;
  background-clip: content-box;
}

.title-bar .title {
  padding: 0 0.5em;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: normal;
  line-height: 1.3;
  text-align: center;
  background: var(--secondary);
  cursor: default;
  font-family: "Director";
}

.title-bar button {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 0.2rem;
  border: 4px solid var(--primary);
  background-color: var(--secondary);
  cursor: pointer;
  transform: scale(0.5);
}

.title-bar button span {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
}

.title-bar button.close::before,
.title-bar button.close::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

.title-bar button.close::before {
  background: linear-gradient(var(--primary) 0%, var(--primary) 100%) left center, linear-gradient(var(--primary) 0%, var(--primary) 100%) right center, linear-gradient(var(--primary) 0%, var(--primary) 100%) center top, linear-gradient(var(--primary) 0%, var(--primary) 100%) center bottom;
  background-size: 30% 4px, 30% 4px, 4px 30%, 4px 30%;
  background-repeat: no-repeat;
}

.title-bar button.close::after {
  background: linear-gradient(var(--primary) 0%, var(--primary) 100%) left center, linear-gradient(var(--primary) 0%, var(--primary) 100%) right center, linear-gradient(var(--primary) 0%, var(--primary) 100%) center top, linear-gradient(var(--primary) 0%, var(--primary) 100%) center bottom;
  background-size: 22.5% 3.6363636364px, 22.5% 3.6363636364px, 3.6363636364px 22.5%, 3.6363636364px 22.5%;
  background-repeat: no-repeat;
  transform: rotate(45deg) scale(1.1);
}

.title-bar button.close:active::before,
.title-bar button.close:active::after {
  opacity: 1;
}

.title-bar button.resize {
  background: linear-gradient(var(--primary) 0%, var(--primary) 100%) left 58%, linear-gradient(to bottom, var(--primary) 0%, var(--primary) 100%) 58% top;
  background-size: 60% 4px, 4px 60%;
  background-repeat: no-repeat;
  background-color: var(--secondary);
}

.title-bar button.resize:active {
  background: var(--secondary);
}

.title-bar button.hidden {
  visibility: hidden;
}

.window {
  position: absolute;
  flex-direction: column;
  margin: 1rem;
  min-width: 150px;
  overflow: hidden;
  background-color: var(--secondary);
  border: 0.1em solid var(--primary);
  font-family: "Director";
}

.separator {
  flex: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /*padding: 0.4rem 0.8rem;*/
  border-top: 0.1rem solid var(--primary);
  border-width: 0.1rem 0;
  font-size: 1rem;
}
