:root {
  --sl-mud: rgb(34, 19, 13);
  --sl-padding: 0.25em;
  --sl-font-color: black;
}

html, body {
  overflow-x: hidden;
  height: 100%;
}

body {
  position: relative;
  background-color: black;
  overflow: hidden;
  font-family: Tahoma, sans-serif;
  color: var(--sl-font-color);
  user-select: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

button {
  color: var(--sl-font-color);
}

input {
  width: 2rem;
  height: 1.5rem;
  font-size: 1rem; 
  border-radius: 5px;
  box-shadow: 2px 2px 7px rgb(100, 100, 100) inset;  
}

#transferCode {
  width: 7rem;
}

#scanner-range {
  position: absolute;
  background: rgba(255,255,255,0.35);
}

.selected {
  background-color: rgba(247, 166, 74, 0.3) !important;
}

.selected:hover {
  background-color: rgba(247, 166, 74, 0.1) !important;
}


@media (max-width: 480px) {

  .dialog,
  button,
  #hintSprite {
    font-size: 1.25rem;
  }
}

.dialogIntro {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  padding: 0.5rem;
  gap: 0.5rem;
}

.introSvg {
  width: 60%;
  height: 60%;
  cursor: pointer;
}

.introSvg:hover {
  opacity: 0.80;
}

.changelog ul {
  margin: 0;
}

.world {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: seagreen;
}

.controls {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  pointer-events: auto;
}

.controlsBacking {
  position: absolute;
  z-index: 2;
}

.hintIcon {
  width: 5rem;
  height: 5rem;
  background: radial-gradient(circle, white, rgba(255, 251, 0, 0));
  display: flex;
  justify-content: center;
  align-items: center;
}

.skyBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgb(2, 0, 36);
  background: linear-gradient(180deg,
      rgba(2, 0, 36, 1) 0%,
      rgba(82, 82, 246, 1) 0%,
      rgba(216, 248, 255, 1) 100%);
}

.cloud {
  position: absolute;
  left: 0;
  top: 0;
  fill: white;
  opacity: 75%;
  animation-fill-mode: freeze;
}

.nightShade {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  background: black;
  opacity: 0%;
  animation-fill-mode: freeze;
}

.starField {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  fill: white;
  opacity: 0;
  animation-fill-mode: freeze;
}

.stars {
  position: absolute;
  left: 0;
  top: 0;
  fill: white;
}

.grassField {
  position: absolute;
}

.grass {
  fill: green;
}

.grid {
  border: 1px solid white;
}

.sprite {
  position: absolute;
}

.building {
  cursor: pointer;
}

.buttonize {
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  border-right: 2px solid rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  padding: var(--sl-padding);
  margin: var(--sl-padding);
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

.button {
  cursor: pointer;
}

button {
  background-color: rgb(109, 160, 143) !important;
  padding: 0.3rem !important;
  font-weight: bold;
  font-size: 1.25rem;
  border-radius: 3px;
  cursor: pointer;
}

button:hover {
  background-color: rgba(109, 160, 143, .75) !important;
}

#ihelp {
  position:fixed;
  top: 0;
  right: 0.5rem;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  text-shadow: 3px 3px 3px black;
  cursor:pointer;
  opacity: .6;
}

#ihelp:hover {
  opacity: 1;
}

.hintRow {
  border-bottom: 2px solid rgba(0, 0, 0, .2);
  padding-bottom: 1rem;
}

.bodyPart {
  cursor: pointer;
}

svg.wide {
  width: 100%;
}

svg.height {
  height: 100%;
}

q {
  font-style: italic;
  line-height: 0.5rem;
}

.quote {
  text-indent: -0.5rem;
  padding-left: 1rem;
  padding-top: 0.5rem;
}

.player {
  filter: drop-shadow(0px 5px 5px black);
  z-index: 1;
  /* transition: 0.01s linear; */
}

.playerBody {
  transform: translateX(-50%);
}

.playerHead {
  transform: translateX(-50%);
}

#playerName {
  width: 95%;
}

#petName {
  width: 25%;
}

.moving {
  filter: drop-shadow(0px 5px 5px black);
}

.customer {
  transition: 0.01s linear;
}

.devButton {
  border: 2px solid darkslategray;
}

.footnote {
  font-size: 75%;
  font-style: italic;
}
.footnote > sup {
  font-size: 125%;
}

.control {
  background-color: rgba(0, 0, 128, .25);
  color: white;
  font-weight: bold;
  border-radius: 5px;
  padding: 0.3rem;
  cursor: pointer;
  box-shadow: 0px 5px 5px black;
  z-index: 2;
  opacity: 80%;
  pointer-events: auto;
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.control:hover {
  opacity: 100%;
}

.control>svg {
  stroke: dodgerblue;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.control>.qty {
  position: absolute; 
  bottom: .2rem; 
  right: .2rem;
  text-shadow: 0 0 3px black;
}

.hole {
  stroke: var(--sl-mud);
  fill: var(--sl-mud);
  opacity: 0.85;
}

.overlay {
  position:fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: black;
  opacity: 0.35;
  /* -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px); */
}

#dialogOverlay {
  z-index: 6;
}

.dialog {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 4rem;
  overflow: hidden;
  background-color: silver;
  border-radius: 10px;
  border-top: 2px solid white;
  border-left: 2px solid white;
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  border-right: 2px solid rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  z-index: 7;
  display: flex;
  flex-direction: column;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.45);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.45);
}

.dialog .header {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-right: 2px solid rgba(0, 0, 0, 0.6);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
}

.dialog .close {
  cursor: pointer;
  background-color: brown;
}

.dialog .header .title {
  padding: 0.4rem 0 0 0.8rem;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: left;
  width: 100%;
}

.dialog .content {
  flex: auto;
  overflow-y: auto;
}

.dialog-message-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.5rem;
}

.hasButton {
  text-indent: -0.35em;
}

.dialog-content {
  padding: 2rem;
}

.dialog .row {
  display: flex;
}

.dialog .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  position: sticky;
  padding: 0.2rem;
  background-color: rgb(160, 160, 160);
  text-align: right;
  box-shadow: 0px -5px 19px rgba(0,0,0,.45);
}

.hardware {
  background-color: salmon;
  display: none;
}

.hardware-button {
  display: flex;
  flex-direction: column;
}

.hardware-button-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  position: relative;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 0.3rem;
}

.hardware-button-buy {
  font-weight: bold;
  color: white;
  text-shadow: 0 0 4px black !important;
  background-color: rgb(181 79 79) !important;
}

.hardware-button-upgrade {
  font-weight: bold;
  color: white;
  text-shadow: 0 0 4px black !important;
  background-color: rgb(214, 141, 45)!important;
}

.hardware-button-sell {
  background-color: rgba(40, 117, 53, 0.76) !important;
  color: white;
  text-shadow: 0 0 4px black !important;
  font-weight: bold;
}

.hardware-button-sub {
  display: flex;
  justify-content: space-between;
}
.hardware-button-info {
  display: flex;

}


.button-tools {
  background-color: wheat;
}

.button-machines {
  background-color: lightblue;
}

.button-meal {
  background-color: rgb(212, 193, 106);
}

.button-spuds {
  background-color: rgb(189, 180, 165);
}

.button-land {
  background-color: rgb(171, 233, 212);
}

.button-field {
  background-color: rgb(145, 182, 161);
}

.button-blocker {
  background-color: rgb(177, 155, 169);
}

.button-items {
  background-color: rgb(199, 176, 169);
}

.button-book {
  background-color: rgb(199, 175, 214);
}

.button-upgrade {
  background-color: rgb(250, 221, 213);
}

.button-building {
  background-color: rgb(206, 199, 241);
}

.tooMuch {
  opacity: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}

.tooMuch:hover {
  opacity: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}

.selectPart {
  width: 4rem;
}

.selectColour {
  width: 3rem;
}

.left {
  width: 9rem;
}

.right {
  width: 9rem;
}

.part_name {
  width: 35%;
}

.brows {
  stroke: black;
  stroke-linecap: round;
  stroke-width: 1.2;
}

.part {
  display: flex;
  flex-direction: row;
  align-content: stretch;
  min-height: 1.7rem;
  padding: .11rem !important;
  margin: 0 !important;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

.part:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.part-name {
  width: 8rem;
  padding: .25rem;
}

.part .button {
  padding: .11rem .5rem !important;
  margin: 0.05rem !important;
}

.creator {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
}

.demoBody {
  width: 100%;
}

.color-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: stretch;
}

.color-group {
  display: flex;
  align-items: stretch;
  align-content: stretch;
}

.colour-square {
  flex-grow: 1;
  width: 20px;
  height: 20px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkboxLabel {
  display: block;
  padding: 6px;
  border-radius: 5px;
  cursor: pointer;
  background-color: rgb(0,0,0,.1);
  white-space: nowrap;
  cursor: pointer;
}

.checkboxLabel > input {
  appearance: none;
  position: relative;
  display: inline-block;
  background: lightgrey;
  height: 1.65rem;
  width: 2.75rem;
  vertical-align: middle;
  border-radius: 2rem;
  box-shadow: 0px 1px 3px #0003 inset;
  transition: 0.15s ease-in background;
}

.checkboxLabel > input::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: #fff;
  border-radius: 1.2rem;
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  box-shadow: 0px 1px 3px #0003;
  transition: 0.15s linear transform;
  transform: translateX(0rem);
}

.checkboxLabel > input:checked {
  background: rgb(94, 146, 129);
}

.checkboxLabel > input:checked::before {
  transform: translateX(1rem);
}


.checkboxLabel:hover {
  background-color: rgb(248, 189, 117);
}

#hintOverlay {
  z-index: 8;
}

.hintMsg {
  position: absolute;
  background-color: yellow;
  border: 3px solid black;
  border-radius: 10px;
  padding: 1rem;
  z-index: 9;
  width: 50%;
  max-width: 37%;
  transition: all .5s;
  box-shadow: 0px 2px 8px 0px black;
}

.hintArrow {
  position: absolute;
  z-index: 10;
}

.hintButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.cartMachines {
  display: flex;
  flex-wrap: wrap;
}

.cartMachine {
  display: flex;
  width: 3rem;
  position: relative;
  justify-content: center;
}

.cartQty {
  position: absolute;
  right: 0.5rem;
  bottom: -0.25rem;
  font-weight: bold;
  color: white;
  text-shadow: 0px 0px 5px black;
}

.cartRow {
  display: flex;
  align-items: center;
}

.paper {
  background-color: antiquewhite;
  box-shadow: 0.5rem 0.5rem 1rem rgba(0,0,0,.5);
  padding: 1rem;
  border-radius: 0.2rem;
}

@keyframes buttonDown {
  0% {
    box-shadow: 0px 5px 5px black;
  }

  100% {
    box-shadow: 0px 0px 0px black;
    transform: translateY(3px);
  }
}

@keyframes buttonUp {
  0% {
    box-shadow: 0px 0px 0px black;
  }

  100% {
    box-shadow: 0px 5px 5px black;
  }
}

@keyframes jump-up {
  50% {
    transform: translateY(-0.5rem) scale(1.1, 1.1);
    filter: drop-shadow(0px 5px 5px black);
  }
}


@keyframes jiggle-down {
  35% {
    transform: translateY(0.2rem) scale(1, 1);
  }

  50% {
    transform: translateY(-0.2rem) scale(0.9, 1);
    filter: drop-shadow(0px 5px 5px black);
  }

  85% {
    transform: translateY(0.15rem) scale(1.02, 1);
  }
}

@keyframes jiggle-up {
  35% {
    transform: translateY(-0.2rem) scale(1, 1);
  }

  50% {
    transform: translateY(0.2rem) scale(0.9, 1);
    filter: drop-shadow(0px 5px 5px black);
  }

  85% {
    transform: translateY(-0.15rem) scale(1.02, 1);
  }
}

@keyframes jiggle-left {
  35% {
    transform: translateX(-0.2rem) scale(1, 1);
  }

  50% {
    transform: translateX(0.2rem) scale(0.9, 1);
    filter: drop-shadow(0px 5px 5px black);
  }

  85% {
    transform: translateX(-0.15rem) scale(1.02, 1);
  }
}

@keyframes jiggle-right {
  35% {
    transform: translateX(0.2rem) scale(1, 1);
  }

  50% {
    transform: translateX(-0.2rem) scale(0.9, 1);
    filter: drop-shadow(0px 5px 5px black);
  }

  85% {
    transform: translateX(0.15rem) scale(1.02, 1);
  }
}
@keyframes move-to {
  100% {
    offset-distance: 100%;
  }
}

@keyframes into-basket {
  100% {
    offset-distance: 100%;
  }
}

@keyframes parade2 {
  30% {
    offset-distance: 70%;
    transform: scale(1, 1);
    z-index: 1;
  }

  30.1%,
  45% {
    offset-distance: 70%;
    transform: scale(1, 1);
    animation-play-state: paused;
  }

  60% {
    offset-distance: 100%;
    transform: scale(1, 1);
    z-index: 2;
  }

  60.1% {
    offset-distance: 100%;
    transform: scale(-1, 1);
  }

  60.2%,
  70% {
    offset-distance: 100%;
    transform: scale(-1, 1);
    animation-play-state: paused;
  }

  80% {
    offset-distance: 80%;
    transform: scale(-1, 1);
    z-index: 1;
  }

  80.1%,
  90% {
    offset-distance: 80%;
    transform: scale(-1, 1);
    animation-play-state: paused;
  }

  100% {
    offset-distance: 0%;
    transform: scale(-1, 1);
    z-index: 2;
  }
}

@keyframes go-dark {
  from {
    opacity: 0%;
  }
  to {
    opacity: 100%;
  }
}

@keyframes go-light {
  from {
    opacity: 100%;
  }
  to {
    opacity: 0%;
  }
} 

@keyframes glow {
  from {
    fill: rgb(0, 0, 0);
  }

  50% {
    fill: rgb(255, 255, 255);
  }

  to {
    fill: rgb(0, 0, 0);
  }
}

@keyframes shrink {
  0% {
    transform: scale(1, 1);
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(0.5, 0.5);
    opacity: 0;
  }
}

@keyframes grow {
  0% {
    transform: scale(0.5, 0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 1;
  }
}

@keyframes goInvisible {
  0% {
    opacity: 100%;
  }

  100% {
    opacity: 0%;
  }
}

@keyframes drift {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}
