:root, body {
  --background: #ffffff;
  --darker_background: #e9e9e9;
  --hover_background: #f5f5f5;
  --text: #111111;
  --placeholder: rgb(18 18 18 / 0.5);
  --gray: #333333;
  --grayer: #33333342;
  --note: rgba(49, 49, 51, 0.325);
  --border: #bcbcbc;
  --shadow: rgba(230, 230, 230, 0.8);
  --separator: #e8e8e8;
  --link-color: #292929;
  --link-visited-color: #292929;
}

.dark {
  --background: #25262e;
  --darker_background: #181A1C;
  --hover_background: #2b2c36;
  --text: #e5e5e5;
  --placeholder: rgb(230 230 230 / 0.5);
  --gray: #c4c4c4;
  --grayer: #c4c4c442;
  --note: rgb(212 212 221 / 0.33);
  --border: #3a3a3a;
  --shadow: rgb(27 28 34 / 0.8);
  --separator: #3a3a3c;
  --link-color: #b1ddf3;
  --link-visited-color: #b1ddf3;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  background: var(--darker_background);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  font-size: 17px;
  height: 100vh;
  margin: 0;
}

main {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 0.75em;
  padding: 2.25rem 1rem;
  height: max-content;
  max-width: max(50%, 100vh);
  width: 100%;
  flex: 1;
}

h2, h1 {
  margin: 0;
}

a {
  text-decoration: underline;
  color: var(--link-color);
}
h2 > a {
  color: var(--text);
  text-decoration: none;
}

g, g1 {
  color: var(--gray);
}

g2 {
  color: var(--grayer);
}

.lucide {
  width: 22px;
  height: 22px;
}

label, .unselectable {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  gap: 1ch;
}

button, input[type=text], select {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.5em 0.6em;
  margin: 0 0.4em;
  gap: 0.3em;
  min-height: 2em;
  min-width: 2.25em;
  font: inherit;
  color: var(--text);
  background: transparent;
}
button:hover, input[type=text]:hover, select:hover {
  background: var(--border);
}
button.ui, input[type=text].ui, select.ui {
  width: fit-content;
  min-width: 8em;
  margin: 0;
  border: 0.15em solid var(--border);
}

input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 2.25em;
  height: 2.25em;
  margin: 0;
  border: 0.2em solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
input[type=checkbox]:hover {
  background: var(--hover_background);
}
input[type=checkbox] {
  position: relative;
}
input[type=checkbox]::after {
  content: "";
  width: 0.65em;
  height: 0.65em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  box-shadow: inset 1em 1em white;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 5ms linear;
}
input[type=checkbox]:checked::after {
  transform: translate(-50%, -50%) scale(1.5);
}

input[type=text], select {
  border: 0.15em solid var(--border);
  margin: 0;
}
input[type=text]:hover, select:hover {
  background: transparent;
}

select {
  appearance: none;
  -webkit-appearance: none;
}
select:has(option:checked[value=""]) {
  color: var(--placeholder);
}

.input_wrapper {
  position: relative;
  border-radius: 8px;
  width: 100%;
}
.input_wrapper:hover {
  background: var(--hover_background);
}
.input_wrapper > svg:first-child {
  position: absolute;
  left: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.input_wrapper > svg:last-child {
  position: absolute;
  right: 0.75em;
  top: 52%;
  transform: translateY(-50%);
  pointer-events: none;
}
.input_wrapper input, .input_wrapper select {
  width: 100%;
  padding-left: 2.6em;
  padding-right: 2.6em;
  box-sizing: border-box;
}

header, footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-sizing: border-box;
  z-index: 10;
  width: 100%;
  margin: 0;
  background: var(--background);
}

footer {
  padding: 0.6em 1.35em;
  box-shadow: -3px -3px 6px var(--shadow);
  color: var(--note);
  font-size: 15px;
}

.footer_left {
  justify-self: start;
}

.footer_right {
  justify-self: right;
}

header {
  padding-right: 0.25em;
  height: 3.5em;
  box-shadow: 3px 3px 6px var(--shadow);
}

.header_navigation {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  padding: 0.5em 0;
  gap: 0.1em;
  justify-self: start;
}
@media (max-width: 1600px) {
  .header_navigation button:nth-of-type(4),
  .header_navigation separator:nth-of-type(3) {
    display: none;
  }
}
@media (max-width: 1300px) {
  .header_navigation button:nth-of-type(3),
  .header_navigation separator:nth-of-type(2) {
    display: none;
  }
}
@media (max-width: 950px) {
  .header_navigation button:nth-of-type(2),
  .header_navigation separator:nth-of-type(1) {
    display: none;
  }
}
@media (max-width: 950px) {
  .header_navigation button:nth-of-type(1),
  .header_navigation separator:nth-of-type(0) {
    display: none;
  }
}

.header_title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.header_actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  padding: 0.5em 0;
  gap: 0.1em;
  justify-self: right;
}
@media (max-width: 1300px) {
  .header_actions button:nth-of-type(1),
  .header_actions separator:nth-of-type(1) {
    display: none;
  }
}
@media (max-width: 1200px) {
  .header_actions button:nth-of-type(2),
  .header_actions separator:nth-of-type(2) {
    display: none;
  }
}
@media (max-width: 1100px) {
  .header_actions button:nth-of-type(3),
  .header_actions separator:nth-of-type(3) {
    display: none;
  }
}
@media (max-width: 1000px) {
  .header_actions button:nth-of-type(4),
  .header_actions separator:nth-of-type(4) {
    display: none;
  }
}

@media (max-width: 1900px) {
  .administration_name {
    display: none;
  }
}

@media (max-width: 800px) {
  .account_name {
    display: none;
  }
}

@media (max-width: 490px) {
  .account_header {
    display: none;
  }
}

.header_icon {
  width: 45px;
  height: 45px;
}

separator {
  background: var(--separator);
  border-radius: 10px;
  height: 1.75em;
  width: 0.12em;
  display: inline-block;
}
separator.page {
  background: var(--background);
  height: 0.2em;
  width: 98%;
  margin: 0.15em 0;
}
