.txt-body {
  color: #444;
}

.txt-red {
  color: rgb(255, 99, 132);
}

.txt-orange {
  color: rgb(255, 159, 64);
}

.txt-yellow {
  color: rgb(255, 205, 86);
}

.txt-green {
  color: rgb(75, 192, 192);
}

.txt-blue {
  color: rgb(54, 162, 235);
}

.txt-indigo {
  color: rgba(75, 90, 255, 0.2);
}

.txt-violet {
  color: rgba(153, 102, 255, 0.2);
}

.bg-red {
  background-color: rgba(255, 99, 132, 0.2);
}

.bg-orange {
  background-color: rgba(255, 159, 64, 0.2);
}

.bg-yellow {
  background-color: rgba(255, 205, 86, 0.2);
}

.bg-green {
  background-color: rgba(75, 192, 192, 0.2);
}

.bg-blue {
  background-color: rgba(54, 162, 235, 0.2);
}

.bg-indigo {
  background-color: rgba(75, 90, 255, 0.2);
}

.bg-violet {
  background-color: rgba(153, 102, 255, 0.2);
}

body {
  background-color: var(--shop-body-bg, #fff);
  color: var(--shop-body-txt, #444);
  padding-top: 0.4em;
}

/* We have to leave space for the nav bar for embedded frames therefore it has to have a known height. */
#nav-bar {
  min-height: 50px;
}
#nav-bar h1 {
  font-size: 32px;
}
#nav-bar h1 img {
  height: 36px;
}

.rb-btn-lg {
  border-radius: 8px;
  border: 1px solid var(--shop-border, #888);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  overflow: clip;
  display: block;
  width: 100%;
  text-decoration: none;
  padding: 0.5em;
  padding-top: 0.4em;
  padding-bottom: 0.4em;
  color: var(--shop-btn-txt, #444);
  background-color: var(--shop-btn-bg, #eee);
  text-align: left;
  transition: filter 0.15s ease;
}
.rb-btn-lg:hover {
  filter: brightness(0.96);
}
.rb-btn-lg .hero {
  text-align: center;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  width: 70px;
  font-size: 50px;
}
.rb-btn-lg .hero-img {
  height: 50px;
}
.rb-btn-lg .hero-img-lg {
  height: 80px;
}
.rb-btn-lg .title {
  font-size: 1.5em;
  font-weight: bold;
}

.rb-btn-dead {
  background-color: var(--shop-body-bg, #fff) !important;
  box-shadow: none !important;
  border: 1px solid var(--shop-border-lighter, #ccc) !important;
}

.scan-btn {
  border-radius: 8px;
  border: 1px solid var(--shop-border, #888);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  overflow: clip;
  display: block;
  width: 100%;
  text-decoration: none;
}

.img-bordered-sm {
  border-radius: 4px;
  border: 1px solid var(--shop-border, #888);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
  overflow: clip;
}

.img-bordered-lg {
  border-radius: 8px;
  border: 1px solid var(--shop-border, #888);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  overflow: clip;
}

.img-1-em {
  height: 1em;
}

.footer {
  margin-top: 1.5em;
  text-align: center;
}
.footer img {
  height: 4em;
}

#model-screen #model-preview {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  margin: 0 auto;
  height: 60vh;
  width: fit-content;
}
#model-screen #model-preview img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 8px;
}
#model-screen #model-preview .preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s;
}
#model-screen #model-preview .preview-overlay:hover {
  background: rgba(0, 0, 0, 0.2);
}
#model-screen #model-preview .play-icon {
  width: 72px;
  height: 72px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
#model-screen #model-preview .preview-label {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
#model-screen .iframe-container {
  position: fixed;
  left: 0px;
  right: 0px;
  top: 96px;
  bottom: 0px;
}
#model-screen .iframe-container iframe {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  border: none;
}

.digital-frame {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100vw;
  height: 100vh;
  border: none;
}
