html, body {
  margin: 0;
  padding: 0;
}

*::selection {
  background: transparent;
}
* {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

html {
  font-size: 2vw;
  font-family: Roboto, sans-serif;
  background-color: #000000;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
html:before {
  content: "";
  position: fixed;
  z-index: -2;
  top: 44%;
  left: 44%;
  width: 12%;
  height: 12%;
  transform: scale(10);
  background-image: radial-gradient(
    circle at center,
    rgb(49, 49, 49) 0%,
    rgb(0, 0, 0) 100%
  );
}

body {
  background-color: rgba(255, 255, 255, 0.1);
  color: #c4c4c4;
  will-change: transform;
  box-shadow: 0 0 1rem 0 black;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 100vw;
  height: 56.25vw;
  padding: 1rem;
}

.money {
  text-align: right;
  position: absolute;
  width: 10rem;
  left: 1rem;
  top: 8.2rem;
}

.buttonContainer {
  column-count: 2;
  column-gap: 1rem;
  position: absolute;
  top: 7rem;
  left: 12rem;
  width: 35rem;
  display: inline-block;
}

button {
  pointer-events: initial;
}

.mute {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
}

.button {
  pointer-events: initial;
  width: 17rem;
  height: 3rem;
  display: inline-block;
  position: relative;
  margin-bottom: 0.3rem;
  margin-top: 0.3rem;

  background-color: transparent;
  background-image: linear-gradient(
    to right,
    rgba(73, 136, 60, 0.295) 0,
    rgba(69, 212, 41, 0.295) calc(var(--perc) - 0.1rem),
    rgba(44, 68, 16, 0.397) var(--perc),
    rgba(155, 80, 80, 0.37) calc(var(--perc) + 0.1rem),
    rgba(192, 98, 98, 0.37) 100%
  );
  background-repeat: no-repeat;
  color: #000;
  text-shadow: 0.02em 0.02em 0.03em rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  box-sizing: border-box;
  border: 0.1rem solid rgba(0,0,0,0.6);
  box-shadow: 0 0 0.07em rgba(255,255,255,0.1), 0 0.2em 0.2em -0.15em rgba(0,0,0,0.5), inset 0 0 0.7em rgba(0,0,0,0.2), inset 0 0.1em 0.1em rgba(255,255,255,0.15);
  transition-property: background-color, color, box-shadow, text-shadow;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0, 0.58, 0.58, 1);
}

.button:after {
  border-radius: 0.4rem;
  background-size: 17rem;
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  opacity: 0.3;
}

.button:nth-child(1):after {
  background-image: url('./pexels-photo-1332192.jpeg');
  background-position: 0 60%;
}

.button:nth-child(2):after {
  background-image: url('./pexels-photo-1385754.jpeg');
  background-position: 0 35%;
}

.button:nth-child(3):after {
  background-image: url('./pexels-photo-674134.jpeg');
  background-position: 0 75%;
}

.button:nth-child(4):after {
  background-image: url('./person-human-child-girl.jpg');
  background-position: 0 55%;
}

.button:nth-child(5):after {
  background-image: url('./pexels-photo-90972.jpeg');
  background-position: 0 85%;
}

.button:nth-child(6):after {
  background-image: url('./person-looking-searching-clean.jpg');
  background-position: 0 30%;
}

.button:nth-child(7):after {
  background-image: url('./pexels-photo-399635.jpeg');
  background-position: 0 55%;
}

.button:nth-child(8):after {
  background-image: url('./pexels-photo-442150.jpeg');
  background-position: 0 60%;
}

.button:nth-child(9):after {
  background-image: url('./pexels-photo-310575.jpeg');
  background-position: 0 30%;
}

.button:nth-child(10):after {
  background-image: url('./pexels-photo-730564.jpeg');
  background-position: 0 40%;
}

.button.affordable {
  background-color: rgba(73, 136, 60, 0.295);
  cursor: pointer;
}


.button.affordable:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0.07em rgba(255,255,255,0.1), 0 0.2em 0.2em -0.15em rgba(0,0,0,0.5), inset 0 0 0.7em rgba(0,0,0,0.4),inset 0 0.1em 0.1em rgba(255,255,255,0.1);
  color: #333;
}

.button.affordable:focus {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0.07em rgba(255,255,255,0.3), 0 0.2em 0.2em -0.15em rgba(0,0,0,0.5), inset 0 0 0.7em rgba(0,0,0,0.4),inset 0 0.1em 0.1em rgba(255,255,255,0.1);
  color: #333;
}

.button.affordable:active {
  background-color: rgba(0,0,0,0.05);
  box-shadow: 0 0 0.07em rgba(255,255,255,0.1), inset 0 0 0.7em rgba(0,0,0,0.5),inset 0 0.1em 0.1em rgba(0,0,0,0.2);
  text-shadow: 0.02em 0.02em 0.03em rgba(0,0,0,0.8);
  color: #bbb;
}

.button .count {
  font-size: 2rem;
  position: absolute;
  display: inline-block;
  top: 0.4rem;
  left: 0.4rem;
  line-height: 1em;
  height: 100%;
}

.button .name {
  font-size: 1rem;
  left: 4rem;
  top: 0.3rem;
  position: absolute;
  line-height: 1em;
}

.button .gain {
  font-size: 0.7rem;
  right: 0.2rem;
  bottom: 1.8rem;
  position: absolute;
  line-height: 1em;
}

.button .total {
  font-size: 0.7rem;
  right: 0.205rem;
  bottom: 1rem;
  position: absolute;
  line-height: 1em;
}

.button .price {
  font-size: 0.7rem;
  right: 0.2rem;
  bottom: 0.2rem;
  position: absolute;
  line-height: 1em;
}
