@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&family=Fredoka:wght@400;500;600;700&display=swap');


* {
  box-sizing: border-box;
}


body {
  margin: 0;
  background: #d9d2ad;
  color: #30391d;
  font-family: "Fredoka", sans-serif;
}


.page {
  width: min(1200px, 94%);
  margin: 25px auto;
  background: #f5edce;
  border: 5px solid #30391d;
  box-shadow: 10px 10px 0 #30391d;
  padding: 25px;
}


/* HEADER */

header {
  text-align: center;
  border-bottom: 4px dashed #30391d;
  padding-bottom: 20px;
}


.tiny-text {
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: bold;
}


h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(55px, 9vw, 110px);
  line-height: .8;
  margin: 15px 0;
  color: #30391d;
  text-shadow: 5px 5px 0 #d77b6e;
}


.subtitle {
  font-size: 18px;
}


.flavor {
  display: inline-block;
  background: #30391d;
  color: #f5edce;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: bold;
}


.flavor span {
  color: #f39b91;
}


/* MAIN */

main {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 25px;
  margin-top: 25px;
}


/* COMMANDS */

h2 {
  font-family: "Baloo 2", sans-serif;
  margin-top: 0;
}


.command {
  width: 100%;
  border: 3px solid #30391d;
  background: #e9ddb8;
  margin-bottom: 9px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 3px 3px 0 #30391d;
  transition: .15s;
}


.command:hover {
  transform: translate(-2px, -2px);
  background: #f39b91;
}


.command:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #30391d;
}


.command .keys {
  background: #30391d;
  color: white;
  padding: 5px 7px;
  min-width: 65px;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
}


.command b {
  display: block;
  font-size: 15px;
}


.command small {
  font-size: 11px;
}


/* DRINK AREA */

.drink-area {
  text-align: center;
}


.message {
  background: #f39b91;
  border: 3px solid #30391d;
  padding: 10px;
  font-weight: bold;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.drink {
  height: 430px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}


.straw {
  position: absolute;
  height: 290px;
  width: 18px;
  background: #d77b6e;
  border: 4px solid #30391d;
  transform: rotate(9deg);
  top: 20px;
  z-index: 4;
}


.cup {
  width: 230px;
  height: 290px;
  border: 6px solid #30391d;
  border-radius: 20px 20px 45px 45px;
  background: #d5b98b;
  position: relative;
  overflow: hidden;
  z-index: 3;
}


.matcha {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 155px;
  background: #89945c;
}


.milk {
  position: absolute;
  bottom: 135px;
  width: 100%;
  height: 65px;
  background: #fff5da;
  transition: .3s;
}


.ice {
  position: absolute;
  top: 25px;
  left: 20px;
  width: 180px;
  height: 70px;
  z-index: 3;
}


.ice span {
  position: absolute;
  width: 55px;
  height: 45px;
  background: rgba(255,255,255,.65);
  border: 3px solid #30391d;
  transform: rotate(10deg);
}


.ice span:nth-child(1) {
  left: 0;
}


.ice span:nth-child(2) {
  left: 60px;
  top: 15px;
}


.ice span:nth-child(3) {
  left: 120px;
  top: -5px;
}


.berries {
  position: absolute;
  bottom: 125px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  font-size: 42px;
  z-index: 5;
  transition: .3s;
}


.berries span {
  transition: .3s;
}


.cup-label {
  position: absolute;
  bottom: 45px;
  font-weight: 800;
  color: #30391d;
  font-size: 19px;
  line-height: .9;
  z-index: 8;
  text-shadow: 2px 2px white;
}


/* PROGRESS */

.progress-box {
  margin-top: 10px;
}


.progress-label {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}


.progress {
  height: 20px;
  border: 3px solid #30391d;
  background: white;
  margin-top: 5px;
}


#progressBar {
  width: 0%;
  height: 100%;
  background: #89945c;
  transition: .3s;
}


/* KEYBOARD */

.keyboard {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}


.key {
  background: #30391d;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 3px 3px 0 #d77b6e;
}


/* RIGHT SIDE */

.bubble {
  background: #fff5da;
  border: 3px solid #30391d;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 25px;
  line-height: 1.4;
  box-shadow: 5px 5px 0 #d77b6e;
}


.modifier {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 3px solid #30391d;
  padding: 10px;
  background: #e9ddb8;
  margin-bottom: 10px;
}


.modifier > span {
  background: #30391d;
  color: white;
  padding: 8px;
  min-width: 55px;
  text-align: center;
  font-weight: bold;
}


.modifier b,
.modifier small {
  display: block;
}


.modifier small {
  font-size: 11px;
}


/* FOOTER */

footer {
  margin-top: 25px;
  border-top: 4px dashed #30391d;
  padding-top: 15px;
  text-align: center;
  font-weight: bold;
}


/* MODAL */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(48,57,29,.75);
  justify-content: center;
  align-items: center;
  z-index: 100;
}


.modal.show {
  display: flex;
}


.modal-box {
  background: #f5edce;
  border: 5px solid #30391d;
  box-shadow: 10px 10px 0 #d77b6e;
  padding: 35px;
  text-align: center;
  width: min(500px, 90%);
}


.big-strawberry {
  font-size: 70px;
}


.modal-box h2 {
  font-size: 35px;
}


.modal-box button {
  background: #89945c;
  color: white;
  border: 3px solid #30391d;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
}


/* ANIMATIONS */

.sparkle {
  animation: sparkle .5s ease;
}


@keyframes sparkle {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15) rotate(3deg);
  }

  100% {
    transform: scale(1);
  }
}


.spill {
  animation: spill .5s ease;
}


@keyframes spill {
  0% {
    transform: rotate(0);
  }

  50% {
    transform: rotate(-7deg);
  }

  100% {
    transform: rotate(0);
  }
}


/* PHONE */

@media (max-width: 850px) {

  main {
    grid-template-columns: 1fr;
  }

  .drink-area {
    order: -1;
  }

  .page {
    padding: 15px;
  }

}