html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #181818;
  color: #f2f2f2;
  font-family: monospace, Helvetica, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
h3 {
  margin-block: 0;
}
h2, h3, h4, label {
  user-select: none;
}

.settings-container {
  width: 100%;
  min-height: 40%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #252;
}
.settings-panel {
  width: 95%;
  height: 100%;  
  color: #f2f2f2;
  padding: 2%;
  flex-direction: column;
  display: flex;
}
.settings-toggle {
  cursor: pointer;
  min-height: 2%;
  width: 5%;
  background: #252;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 2%;
  border-bottom-right-radius: 2%;
}
.saved-models {
  width: 100%;
  height: 100%;
  background: #9c9;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border: 1px solid #232;
  box-sizing: border-box;
}
.model-item {
  width: 100%;
  min-height: 15%;
  background: #6b6;
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #232;
  box-sizing: border-box;
}
.model-id {
  height: 100%;
  flex: 1 1 auto;
  text-align: left;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  padding-left: 1%;
  user-select: none;
}
.model-item button {
  height: 100%;
  width: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-overflow: ellipsis;
}
.delete-model {
  background: #9f9;
}
.model-reload {
  background: #f22;
}
.model-ready {
  background: #ff2;
}
.model-loaded {
  background: #2f2;
}

.content {
  width: 95%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color : #f2f2f2;
}
.activity {
  width: 100%;
  height: 20%;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
}
.activity-labels {
  width: 100%;
  height: 5%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.trigger-label, .action-label, .output-label {
  width: 31%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-spacer {
  flex: 1 1 auto;
  height: 100%;
}
.trigger, .action, .output {
  width: 31%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #444;
  box-sizing: border-box;
  padding: 2%;
  border-radius: 1%;
}
.trigger-input {
  width: 90%;
  min-height: 1.1em;
  resize: none;
  margin-top: 5%;
}
.run-button {
  margin-top: 2%;
  background: #444;
  cursor: pointer;
}

@keyframes semi-fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

.running-indicator {
  animation: semi-fade 1s infinite alternate;
}