:root {
  --sts-primary-color: #435e7f;
  --sts-primary-color-light: hsl(213, 31%, 78%);
  --sts-primary-color-extralight: hsl(213, 31%, 88%);

  --sts-scanner-font-family: "Roboto";
  --link-font: 400 18pt/50px var(--sts-scanner-font-family);
  --link-desktop-font: italic 400 18pt/50px var(--sts-scanner-font-family);
  --prompt-font: 300 18pt/50px var(--sts-scanner-font-family);
  --status-font: 400 14pt/50px var(--sts-scanner-font-family);
  --status-symbol-font: 300 26pt/50px var(--sts-scanner-font-family);
}

/* headings */
div#header {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr 2fr;
  padding: 15px 20px 10px 20px;
}

div#header > a > div.head-logo {
  height: 30px;
  background: url("../res/sts-logo-crop.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

div#header > div.head-location {
  height: 30px;
  color: var(--sts-primary-color);
  font-family: var(--sts-scanner-font-family);
  font-weight: 400;
  font-size: 21pt;
  line-height: 30px;
  text-align: right;
}

/* links */
a.link {
  border-radius: 5px;
  background-color: #fafafa;
  display: block;
  color: #313131;
  height: 50px;
  font: var(--link-font);
  text-decoration: none;
}

div.blockitem > div.link-category-title {
  color: #313131;
  background-color: #fff;
  text-align: left;
  margin-top: 10px;
}

a.link.desktop {
  font: var(--link-desktop-font);
  color: #888;
}

/* common */
div.blockitem {
  text-align: center;
  padding: 5px 20px;
}
div.blockitem > div {
  border-radius: 5px;
  background-color: #fafafa;
  xcolor: #91c765;
}
div.blockitem > select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 5px;
  border: none;
  border-radius: 5px;
  background-color: #fafafa;
  xcolor: #91c765;
  outline: none;
  font: var(--prompt-font);
  letter-spacing: -0.75pt;
  transition: background-color 0.25s ease-in-out;
}

div.prompt {
  color: #212121;
  overflow: hidden;
  height: 50px;
  font: var(--prompt-font);
  letter-spacing: -0.75pt;
}

/* status bar */
div.status-bar {
  display: grid;
  grid-template-columns: 0px 1fr;
  border-radius: 5px;
  overflow: hidden;
}
div.status-bar.icon {
  grid-template-columns: 50px 1fr;
}
div.status-bar.success.icon {
  grid-template-columns: 35px 1fr;
}

div.status-bar div.icon {
  height: 50px;
}
div.status-bar.loading div.icon {
  background-color: var(--sts-primary-color-light);
}
div.status-bar.error div.icon {
  background-color: #e57373;
}
div.status-bar.success div.icon {
  background-color: #a6e573;
  height: 150px;
}
div.status-bar div.icon span {
  display: none;
  font: var(--status-symbol-font);
}
div.status-bar.icon.loading div.icon span {
  display: block;
  height: 57px;
  font-size: 26pt;
  margin-top: -4px;
  animation: rotation 2s infinite ease-in-out;
}
div.status-bar.icon.error div.icon span {
  display: block;
}
div.status-bar.icon.success div.icon span {
  display: block;
  line-height: 150px;
  font-size: 20pt;
}
div.status-bar div.text {
  height: 50px;
  padding: 0 20px;
  text-align: center;
  font: var(--status-font);
  letter-spacing: -0.75pt;
  background-color: #fafafa;
}
div.status-bar.loading div.text {
  background-color: var(--sts-primary-color-extralight);
  text-align: left;
}
div.status-bar.error div.text {
  background-color: #ffebee;
  text-align: left;
}
div.status-bar.success div.text {
  height: 150px;
  line-height: 35px;
  background-color: #f1ffeb;
  text-align: left;
}

@keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}

div#action-buttons {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

div#action-buttons .action-button {
  color: #212121;
  text-align: center;
  overflow: hidden;
  border-radius: 5px;
  height: 50px;
  font: var(--status-font);
  letter-spacing: -0.5pt;
  background-color: #fafafa;
}

div#action-buttons div.action-button.success {
  background-color: var(--sts-primary-color-light);
}

div#action-buttons div.action-button.danger {
  background-color: #ffcdd2;
}

div#container-info > div:not(.prompt) {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr 3fr;
  padding: 5px;
  text-align: left;
}
