*, *::before, *::after {
  box-sizing: border-box;
}
:root {
  --opacity: 0.9;
  --radius: 8px;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: Georgia, serif;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 40px;
}
header a {
  display: inline-block;
  cursor: pointer;
}
.logo {
  height: 40px;
  display: block;
  pointer-events: none;
  opacity: var(--opacity);
}
.center-content {
  max-width: 600px;
  padding-bottom: 20vh;
  margin: auto;
}
.center-content p {
  hyphens: auto;
  line-height: 1.5;
  text-align: justify;
  opacity: var(--opacity);
}
.center-content a {
  color: inherit;
  text-decoration: underline;
}
.center-content ul {
  line-height: 1.5;
  padding-bottom: 10px;
  opacity: var(--opacity);
}
.center-content ol {
  list-style-type: lower-roman;
  list-style-position: inside;
  opacity: var(--opacity);
}
.center-content ol li {
  margin-bottom: 10px;
}
.center-content pre {
  opacity: var(--opacity);
}
.code-block {
  padding-inline: 20px;
}
.loud-h1 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: normal;
  padding-bottom: 30px;
  opacity: var(--opacity);
}
.quiet-h1 {
  text-align: center;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: normal;
  padding-bottom: 20px;
  opacity: var(--opacity);
}
.quiet-h2 {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: normal;
  opacity: var(--opacity);
}
.expand-link {
  text-decoration: none !important;
}
.expand-link .text {
  text-decoration: underline;
}
.expand-arrow {
  margin-left: 0.4em;
  font-size: 0.8em;
  vertical-align: middle;
}
.button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 50px;
  opacity: var(--opacity);
}
.btn-base {
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s, color 0.2s;
}
.btn-base:hover {
  background: #fff;
  color: #000;
}
.btn-base:disabled {
  cursor: not-allowed;
}
.emoji-btn {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.send-btn {
  padding: 10px 20px;
}
.comment-buttons-row {
  display: flex;
  gap: 10px;
}
.footer {
  font-size: 0.75rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #000;
  opacity: var(--opacity);
}
.footer a {
  color: inherit;
  white-space: nowrap;
}
.footer-mobile {
  display: none;
}
.comment-view {
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 450px;
  padding-top: 20px;
  align-items: flex-end;
  opacity: var(--opacity);
}
.comment-input {
  width: 100%;
  padding: 10px;
  min-height: 80px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: inherit;
  color: #fff;
  resize: vertical;
  outline: none;
}
.status-message {
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  padding-top: 10px;
  opacity: var(--opacity);
}
.demo-gif-wrapper {
  padding-bottom: 1rem;
}
.demo-gif {
  display: block;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--radius);
}
.buy-buttons-row {
  display: inline-flex;
  gap: 10px;
  vertical-align: middle;
  padding-top: 40px;
}
.buy-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: #0074d4;
  border: none;
  text-decoration: none !important;
}
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.popup-overlay.active {
  display: flex;
}
.popup-content,
.popup-code {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-code {
  overflow: auto;
  white-space: pre-wrap;
  border-radius: var(--radius);
  padding: 50px 75px 75px 50px;
  color: #000;
  background: #fff;
  opacity: var(--opacity);
  max-width: 80vw;
  max-height: 80vh;
}
.popup-img {
  display: block;
  max-width: 80vw;
  max-height: 80vh;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: var(--opacity);
}
input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-right: 7px;
}
a.copy-endpoint.copied {
  text-decoration: none;
  color: #7FFF00;
}
@media (max-width: 600px) {
  .loud-h1 {
    font-size: 1.65rem;
    padding-bottom: 20px;
  }
  .center-content {
    padding-top: 7.5vh;
  }
  .center-content p,
  .center-content ul,
  .center-content ol,
  .center-content h2,
  .comment-view,
  .expand-link,
  .demo-gif-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
  .center-content ul {
    list-style-position: inside;
  }
  .center-content ul li,
  .center-content ol li {
    padding-left: 20px;
  }
  .code-block {
    padding-inline: 40px;
    font-size: 0.6rem;
  }
  .popup-img,
  .popup-code {
    max-width: 95vw;
  }
  .popup-code {
    font-size: 0.6rem;
    padding: 55px 30px 65px 30px;
  }
  .footer-desktop {
    display: none;
  }
  .footer-mobile {
    display: inline;
  }
}
@media (hover: none) and (pointer: coarse) {
  .btn-base:hover,
  .btn-base:active,
  .btn-base:focus {
    background: transparent;
    color: #fff;
  }
  .buy-btn:hover,
  .buy-btn:active,
  .buy-btn:focus {
    background: #0074d4;
    color: #fff;
  }
}
