/* The Shrimp install page. Builds on ../styles.css; no inline styles (CSP). */

.shrimp .intro {
  color: var(--muted);
}

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.account .email {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--yellow);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.linkish:hover {
  text-decoration-thickness: 2px;
}

.panel {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid rgb(232 241 244 / 22%);
  border-radius: 14px;
  background: rgb(0 0 0 / 18%);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel.problem {
  border-color: rgb(255 214 46 / 55%);
}

.panel.done {
  border-color: rgb(47 196 209 / 60%);
}

.panel.done h2 {
  margin-top: 0;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #06222f;
  font: 600 1rem/1.2 var(--sans);
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  filter: brightness(0.94);
}

.steps {
  padding-left: 1.4rem;
}

.steps li {
  margin: 0.45rem 0;
}

.status {
  min-height: 1.65em;
  color: var(--muted);
}

.status:empty {
  display: none;
}

.status.busy::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.55em;
  vertical-align: -0.1em;
  border: 2px solid rgb(232 241 244 / 30%);
  border-top-color: var(--aqua);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status.busy::before {
    animation-duration: 3s;
  }
}

.aside {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* `hidden` must win over the display rules above (.btn, the install button). */
[hidden] {
  display: none !important;
}

.aside > p {
  margin: 0.4rem 0;
}

.hints {
  margin: 0.3rem 0 1rem;
  padding-left: 1.2rem;
}

.hints li {
  margin: 0.35rem 0;
}

/* The open-source licences page (licenses.html). */

.licenses .note {
  color: var(--muted);
  font-size: 0.88rem;
}

.licenses details {
  margin: 0.5rem 0 1.5rem;
}

.licenses summary {
  color: var(--yellow);
  cursor: pointer;
}

.license {
  margin: 0.75rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgb(232 241 244 / 22%);
  border-radius: 10px;
  background: rgb(0 0 0 / 22%);
  color: var(--muted);
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.page-foot {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
