:root {
  --panel-background: #0a0a0ac0;
  --text: white;
  --shaded: #202020;
  --accent: #0fabb9;
  --popup-shade: #00000080;
  --popup-background: #101010;
}

/* Toolkit */

body {
  margin: 0;
  color: var(--text);
  background-color: gray;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
    'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 12pt;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input,
textarea,
button,
select {
  all: unset;
  box-sizing: border-box;
  background: var(--shaded);
  border-style: none;
  padding: 5px;
  transition: box-shadow 0.05s;
}

label {
  display: flex;
  padding: 10px 20px;
}

label p {
  white-space: nowrap;
  flex: 0;
}

label input {
  flex: 1;
  margin-left: 10px;
}

button {
  cursor: pointer;
  user-select: none;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  transition: all 0.05s;
}

button:disabled {
  cursor: default;
  color: gray;
  opacity: 60%;
}

input,
textarea {
  min-width: 2em;
  width: 100%;
}

::placeholder {
  color: var(--text);
  opacity: 0.4;
}

button:focus,
input:focus,
textarea:focus {
  box-shadow: 0 0 0.3em 0 var(--accent);
}

h1 {
  color: var(--accent);
  margin: 0;
}

p {
  margin: 0;
}

.h-box {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  flex-grow: 0;
  gap: 12px;
}

.v-box,
.scroll-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.scroll-box {
  overflow: auto;
  scrollbar-width: thin;
}

.spacer {
  flex-grow: 1;
}

.tab-list {
  display: flex;
  gap: 0;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-button {
  white-space: nowrap;
  border-radius: 0;
}

.tab-button.selected {
  transform: none;
  opacity: 100%;
  background-color: var(--accent);
}

.popup-background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--popup-shade);
}

.popup-content {
  padding: 20px;
  max-height: 70%;
  max-width: 70%;
  border-radius: 20px;
  background-color: var(--popup-background);
  box-shadow: 0 0 20px 0 black;
}

/* Game UI */

.popup-div {
  align-items: center;
  padding: 20px 25px;
  min-width: 250px;
}

.popup-title {
  margin-bottom: 4px;
}

.popup-message {
  width: 100%;
  font-size: 1.2em;
  margin: 0;
}

.popup-button-div {
  width: 100%;
  justify-content: end;
}

.game-ui-root {
  width: 100%;
  height: 100%;
}

.game-ui-space-scene {
  position: absolute;
  z-index: 10;
}

.panel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 10;
}

.panel-tab-list {
  display: flex;
  justify-content: center;
  flex-direction: row;
  position: absolute;
  pointer-events: auto;
  left: 30px;
  right: 30px;
  z-index: 20;
}

.panel-tab-button-left {
  border-radius: 10px 0 0 10px;
}

.panel-tab-button-right {
  border-radius: 0 10px 10px 0;
}

.panel-tab-list .tab-list {
  scrollbar-width: none;
}

.panel-tab-list button {
  padding: 8px;
}

.panel-inner {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 14px;
  padding-top: 44px;
  margin-top: 15px;
  align-items: stretch;
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-width: thin;
  background-color: var(--panel-background);
  pointer-events: auto;
  border-radius: 20px;
}

.panel-container-tight > .panel-inner {
  border-radius: 0;
}

.static-label {
  padding: 10px 20px;
}

/* SpaceScene */

.body-div {
  width: 40px;
  height: 40px;
  position: relative;
}

.body-selection-indicator {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  box-sizing: border-box;
  pointer-events: none;
  border: solid;
  border-color: #ffffff;
  border-width: 1px;
  opacity: 0%;
  transform: scale(2);
  transition:
    opacity 0.15s ease-in,
    transform 0.15s ease-in;
}

.body-div.selected > .body-selection-indicator {
  transform: none;
  opacity: 100%;
}

.body-label {
  color: #ffffff;
  font-family: sans-serif;
  font-weight: light;
  position: absolute;
  top: 90%;
  margin: 0;
  left: 50%;
  text-align: center;
  max-width: 100px;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Tests */

.test-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--panel-background);
}

.test-results-div {
  position: absolute;
  background: var(--panel-background);
  bottom: 0;
  right: 0;
}

.single-test {
  border: 6px solid transparent;
  padding: 4px;
}

.single-test.good {
  background-color: #259536;
}

.single-test.exceptional {
  background-color: #10b4a6;
}

.single-test.bad {
  background-color: #9a2725;
}

.single-test.running {
  border-color: #ffffff;
}
