:root {
  --selection-box-scale: 100%;
}

.touchscreen * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.touchscreen #logo {
  left: 50%;
  top: 1.05rem;
  transform: translateX(-46%);
  width: 290px;
}

.touchscreen #logo img {
  width: 100%;
}

.touchscreen #copyright {
  right: inherit;
  left: 50%;
  width: 295px;
  transform: translateX(-50%) scale(0.7);
  top: -0.3rem;
  padding-right: 0;
  padding-left: 0.6rem;
}

.touchscreen #copyright-overlay {
  width: 60px;
  margin-left: 2.5rem;
  left: 50%;
  right: inherit;
  top: -1rem;
}

.touchscreen #tile-cart {
  transform: scale(var(--selection-box-scale));
  transform-origin: left bottom;
  left: -100vw;
  opacity: 0;
}

.touchscreen #tile-cart.expanded {
  opacity: 1;
  left: 1rem;
}

.touchscreen #zoom-controls {
  transform-origin: bottom right;
  transform: scale(0.75);
}

.touchscreen #zoom-controls .donation-bar {
  height: calc(100vh - 180px - 3rem);
}

.touchscreen #zoom-controls.expanded {
  display: none;
}

.touchscreen #zoom-controls.expanded.minimize {
  display: block;
  bottom: 12vw;
}

.touchscreen.always-show-zoom-controls #zoom-controls {
  display: block !important;
  bottom: 1rem !important;
}

.touchscreen #tile-cart.expanded.minimize .minimize-selections {
  font-size: 2.4rem;
  margin-top: -0.5rem;
}

.touchscreen #tile-cart .title .minimize-selections {
  font-size: 2.4rem;
  margin-top: -0.9rem;
  position: absolute;
  right: 1.2rem;
}

.touchscreen #tile-cart.expanded .title .selection-count {
  margin-right: 2rem;
}

.touchscreen .modal {
  padding: 0 1rem 1rem;
  height: fit-content;
  max-height: 90vh;
}

.touchscreen .modal a.close-modal {
  margin: 0.7rem 0 1.2rem;
  margin-bottom: -0.8rem;
  align-self: flex-end;
  position: relative;
  right: -1.6rem;
  top: -1.3rem;
  top: -1.3rem;
}

.touchscreen #what-you-get-modal.modal p {
  margin-bottom: -0.2rem;
  line-height: 1.8rem;
  font-size: 1.5rem;
}

.touchscreen .modal h2 {
  display: none;
}

.touchscreen #how-to-donate.modal p.sub-text {
  font-size: 1.4rem;
}

.touchscreen #how-to-donate.modal .or-item {
  display: none;
}

.touchscreen #how-to-donate.modal {
  min-width: 90vw;
  width: 90vw;
}

.touchscreen #how-to-donate.modal.active {
  transition: transform 1.8s cubic-bezier(0.47, 1.14, 0.41, 1),
    top 0.8s cubic-bezier(0.47, 1.14, 0.41, 1), box-shadow 2s ease-in-out;
  transform: translateX(-50%) translateY(-50%) scale(0.9);
  transform-origin: center;
  width: 100%;
  top: 50%;
}

@media screen and (max-width: 376px) {
  .touchscreen #how-to-donate.modal.active .main-wrapper {
    transform-origin: center;
    transform: scale(0.8);
  }

  .touchscreen #how-to-donate.modal a.close-modal {
    top: 2rem;
  }
}

.touchscreen #how-to-donate.modal p br {
  /* white-space: nowrap;
  display: contents; */
}

.touchscreen .modal .row.flex-equal {
  justify-content: start;
  flex-direction: column;
}

.touchscreen .modal .row.flex-equal * {
  margin-bottom: 2rem !important;
}

.touchscreen #additional-controls {
  transform-origin: bottom left;
  transform: scale(0.75);
  bottom: 1rem;
}

.touchscreen #additional-controls.minimize {
  bottom: 3.3rem;
}

.touchscreen #additional-controls .more-donate,
.touchscreen #additional-controls .more-sponsors {
  margin-top: 0.7rem;
  width: 58px;
}

.touchscreen #additional-controls .more-donate span,
.touchscreen #additional-controls .more-sponsors span {
  padding-left: 0.575rem;
}

.touchscreen #additional-controls .more-donate p,
.touchscreen #additional-controls .more-sponsors p {
  display: none;
}
