*, *::after, *::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 2rem;
}

body {
  font-family: "Open Sans", sans-serif;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #0F4C75, #00FFF5);
  color: #3C2A21;
  padding: 4rem;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.buttonAndAvatarWrapper {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.header {
  width: 100%;
  display: grid;
  grid-template-columns: 70% 30%;
  grid-column-gap: 2rem;
}

.upgrades {
  list-style: none;
  display: flex;
  flex-direction: column;
  background: whitesmoke;
  width: max-content;
  border-radius: 1rem;
}
.upgrades__upgrade {
  padding: 2rem;
  display: grid;
  grid-column-gap: 2rem;
  grid-template-columns: 5% 95%;
  transition: 0.2s all;
}
.upgrades__upgrade:hover {
  cursor: pointer;
  background: #D5CEA3;
  color: white;
}
.upgrades__upgrade > i {
  transform: translateY(10%);
  color: #D5CEA3;
}
.upgrades__upgrade:nth-child(1) {
  border-top-right-radius: 1rem;
  border-top-left-radius: 1rem;
}
.upgrades__upgrade:nth-child(3) {
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
}
.upgrades__upgrade:hover > i {
  color: white;
}

.upgradesMobile {
  display: none;
  list-style: none;
  width: 100%;
  justify-content: space-between;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  grid-template-rows: 5rem;
  margin-top: 2rem;
}
.upgradesMobile__upgrade {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  gap: 0.5rem;
  font-size: 80%;
  transition: 0.2s;
  max-width: max-content;
  padding: 1.4rem;
}
.upgradesMobile__upgrade:active {
  transform: scale(0.9);
}
.upgradesMobile__upgrade:hover {
  cursor: pointer;
}

.save {
  font-size: 100%;
  height: min-content;
  padding: 2rem;
  background: #3C2A21;
  border-radius: 0.5rem;
  color: #D5CEA3;
  border: none;
  width: 20rem;
  transform: translateY(2.5rem);
  transition: 0.2s all;
  border: 0.5rem solid transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  position: relative;
}
.save > i {
  transform: scaleX(0);
  transition: 0.2s all;
  display: block;
  opacity: 0;
  transform-origin: left;
  position: absolute;
  left: 20%;
}
.save:hover {
  background: #D5CEA3;
  color: #3C2A21;
  cursor: pointer;
  border: 0.5rem solid #E5E5CB;
}
.save:hover > i {
  transform: scaleX(1);
  opacity: 1;
}

.avatar {
  width: 10rem;
  height: 10rem;
  background: #3C2A21;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 0.6rem solid #E5E5CB;
  cursor: pointer;
}
.avatar__head {
  width: 40%;
  height: 40%;
  background-color: #D5CEA3;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.8s all;
}
.avatar__body {
  width: 70%;
  height: 50%;
  background: #D5CEA3;
  border-radius: 50%;
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.8s all;
}
.avatar:hover .avatar__head {
  transform: translate(-50%, -50%) scale(1.1);
}
.avatar:hover .avatar__body {
  transform: translate(-50%, -50%) scale(1.1);
}

.score {
  font-size: 500%;
  color: #D5CEA3;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  font-weight: 300;
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie {
  width: 30rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #3C2A21;
  position: relative;
  overflow: hidden;
  border: 0.5rem solid #040303;
  box-shadow: inset 0 0 9rem 0 black, 0 2rem 5rem 0rem black;
  transition: 0.2s all;
}
.cookie:hover {
  cursor: pointer;
}
.cookie:active {
  transform: scale(0.95);
}
.cookie--chocolate {
  background: #B99B6B;
  box-shadow: 0 2rem 1.5rem 0rem rgba(0, 0, 0, 0.2);
  border: 1rem solid #362222;
}
.cookie--chocolate .cookie__spots {
  background: #362222;
  border-radius: 20%;
}
.cookie--redvelvet {
  background: #EB455F;
  box-shadow: 0 2rem 1.5rem 0rem rgba(0, 0, 0, 0.2);
  border: 1rem solid #FCFFE7;
}
.cookie--redvelvet .cookie__spots {
  background: transparent;
  background: #FCFFE7;
}
.cookie--redvelvet .cookie__spots--first {
  left: 50%;
  top: 55%;
}
.cookie--redvelvet .cookie__spots--second {
  left: 77%;
  top: 13%;
}
.cookie--redvelvet .cookie__spots--third {
  left: 3%;
  top: 3%;
}
.cookie--redvelvet .cookie__spots--fourth {
  left: 19%;
  top: 33%;
}
.cookie--redvelvet .cookie__spots--vifth {
  left: 10%;
  top: 80%;
}
.cookie__spots {
  width: 7.5rem;
  aspect-ratio: 1/1;
  border-radius: 45%;
  background: #D5CEA3;
  position: absolute;
}
.cookie__spots--first {
  top: 20%;
  left: 10%;
  background: #D5CEA3;
}
.cookie__spots--second {
  right: 15%;
  bottom: 5%;
  background: #D5CEA3;
}
.cookie__spots--third {
  right: 5%;
  top: 10%;
  background: #E5E5CB;
}
.cookie__spots--fourth {
  bottom: 15%;
  background: #E5E5CB;
}
.cookie__spots--vifth {
  bottom: 35%;
  left: 35%;
  background: #E5E5CB;
}

@media screen and (max-width: 68.75rem) {
  .save {
    display: none;
  }
  .upgrades {
    display: none;
  }
  .header {
    display: flex;
    justify-content: flex-end;
  }
  .main {
    flex-direction: column-reverse;
    gap: 0;
  }
  .cookie {
    width: 25rem;
  }
  .cookie__spots {
    width: 4rem;
  }
  .cookie:active {
    transform: scale(1);
  }
  .score {
    font-size: 200%;
  }
  .upgradesMobile {
    display: grid;
  }
}

/*# sourceMappingURL=style.css.map */
