* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  background-color: hsl(185, 41%, 84%);
  font-family: "Space Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  height: 100vh;
}
main {
  width: 750px;
}
.dot {
  color: hsl(183, 100%, 15%);
  text-align: center;
}
.tip-calculator {
  background-color: hsl(0, 100%, 100%);
  display: flex;
  border-radius: 0.8rem;
  padding: 1.5rem;
  column-gap: 1rem;
  margin-top: 2rem;
}
.left {
  flex-basis: 100%;
}
.left p:first-child {
  margin-bottom: 0.5rem;
}
#number {
  background-color: hsl(189, 47%, 97%);
  color: hsl(183, 100%, 15%);
  padding: 0.5rem;
  border-radius: 0.3rem;
  border: 0;
  margin-bottom: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: right;
  font-size: 18px;
  font-family: "Space Mono", monospace;
}
.dollar-container img {
  height: 20px;
  position: relative;
  top: -65px;
  left: 0;
  transform: translate(100%, 100%);
}
.percentage {
  margin-bottom: 2rem;
}
.percentage p:first-child {
  margin-bottom: 0.5rem;
}
.span-percentage {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}
.percentage span {
  background-color: hsl(183, 100%, 15%);
  color: hsl(0, 100%, 100%);
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  text-align: center;
  cursor: pointer;
}
#sub-num {
  background-color: hsl(189, 47%, 97%);
  color: hsl(183, 100%, 15%);
  padding: 0.5rem;
  border-radius: 0.3rem;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: right;
  font-size: 18px;
  font-family: "Space Mono", monospace;
}
.percentage span:hover {
  background-color: hsl(172, 67%, 45%);
  color: hsl(183, 100%, 15%);
}
#num {
  background-color: hsl(189, 47%, 97%);
  color: hsl(183, 100%, 15%);
  padding: 0.5rem;
  border-radius: 0.3rem;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: right;
  font-size: 24px;
  font-family: "Space Mono", monospace;
}
.persons img {
  position: relative;
  bottom: 44px;
  left: 0;
  transform: translate(100%, 50%);
  height: 20px;
}
.right {
  background-color: hsl(183, 100%, 15%);
  flex-basis: 100%;
  border-radius: 0.8rem;
  padding: 2rem 1rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tip-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.total-people {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.color {
  color: hsl(0, 100%, 100%);
}
button {
  background-color: hsl(183, 86%, 20%);
  color: hsl(186, 14%, 43%);
  border: none;
  border-radius: 0.3rem;
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem 0;
}
button:hover {
  background-color: hsl(172, 67%, 45%);
  color: hsl(183, 100%, 15%);
}
.num-people p:first-child {
  margin-bottom: 0.5rem;
}
.tip-amount span,
.total-people span {
  color: hsl(172, 67%, 45%);
}
.change {
  color: hsl(184, 14%, 56%);
}
.error-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#errormsg {
  color: red;
  font-size: 14px;
  font-weight: 400;
}
