@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");
* {
  font-family: "Space Mono", monospace;
}

html {
  height: 100%;
}

body {
  display: flex;
  min-height: 100%;
  font-size: 100%;
  font-family: "Space Mono", monospace;
  background-color: hsl(185, 41%, 84%);
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
  align-items: center;
}

.logo__image {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.calculator__container {
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  background-color: hsl(0, 0%, 100%);
  width: 60vw;
  height: 58vh;
  text-align: center;
  border-radius: 15px;
}
.calculator__container h1 {
  text-transform: uppercase;
  color: hsl(184, 81%, 20%);
}

.bill__container {
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 1;
  grid-row-end: 1;
  text-align: start;
  width: 80%;
  height: 50%;
  color: hsl(183, 100%, 15%);
  font-weight: 700;
}
.bill__container .bill__input {
  background-image: url(images/icon-dollar.svg);
  background-position: 5% 50%;
  background-repeat: no-repeat;
  text-align: end;
  width: 95%;
  height: 45%;
  border: none;
  border-radius: 5px;
  background-color: hsl(189, 41%, 97%);
  color: hsl(183, 100%, 15%);
  font-weight: 700;
  font-size: 1.3rem;
}
.bill__container .bill__input::-moz-placeholder {
  color: hsl(184, 14%, 56%);
}
.bill__container .bill__input::placeholder {
  color: hsl(184, 14%, 56%);
}
.bill__container .bill__input:hover {
  cursor: pointer;
  border: 2px hsl(172, 67%, 45%) solid;
}
.bill__container .bill__input:focus {
  outline-color: hsl(172, 67%, 45%);
}
.bill__container > p {
  margin: 0 0 1% 0;
}

.tip__container {
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 2;
  grid-row-end: 2;
  display: grid;
  height: 100%;
  width: 80%;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}
.tip__container p {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 1;
  text-align: start;
  color: hsl(183, 100%, 15%);
  font-weight: 700;
}
.tip__container .percentage__button {
  width: 85%;
  height: 80%;
  border: none;
  border-radius: 5px;
  background-color: hsl(183, 100%, 15%);
  font-weight: 700;
  color: hsl(0, 0%, 100%);
  font-size: calc(0.5rem + 0.8vw);
}
.tip__container .percentage__button:hover {
  cursor: pointer;
  background-color: hsl(185, 41%, 84%);
  color: hsl(183, 100%, 15%);
  filter: brightness(1);
}
.tip__container .active {
  background-color: hsl(172, 67%, 45%);
  color: hsl(183, 100%, 15%);
}
.tip__container .custom__percentage {
  background-color: hsl(189, 41%, 97%);
  color: hsl(183, 100%, 15%);
  width: 85%;
  height: 80%;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: calc(0.5rem + 0.8vw);
  text-align: end;
  cursor: pointer;
}
.tip__container .custom__percentage:hover {
  background-color: hsl(0, 0%, 100%);
  border: 2px hsl(172, 67%, 45%) solid;
}
.tip__container .custom__percentage:focus {
  outline-color: hsl(172, 67%, 45%);
  text-align: end;
}
.tip__container .custom__percentage::-moz-placeholder {
  text-align: center;
}
.tip__container .custom__percentage::placeholder {
  text-align: center;
}

.number_of_people__container {
  grid-column-start: 1;
  grid-column-end: 1;
  grid-row-start: 3;
  grid-row-end: 3;
  display: grid;
  text-align: start;
  width: 80%;
  color: hsl(183, 100%, 15%);
  font-weight: 700;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.number_of_people__container .input_text__error {
  visibility: hidden;
  text-align: end;
  color: red;
}
.number_of_people__container .active {
  visibility: visible;
}
.number_of_people__container .number_of_people__input {
  background-image: url(images/icon-person.svg);
  background-position: 5% 50%;
  background-repeat: no-repeat;
  text-align: end;
  width: 95%;
  height: 75%;
  border: none;
  border-radius: 5px;
  background-color: hsl(189, 41%, 97%);
  color: hsl(183, 100%, 15%);
  font-weight: 700;
  font-size: 1.3rem;
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 2;
  grid-row-end: 2;
}
.number_of_people__container .number_of_people__input::-moz-placeholder {
  color: hsl(184, 14%, 56%);
}
.number_of_people__container .number_of_people__input::placeholder {
  color: hsl(184, 14%, 56%);
}
.number_of_people__container .number_of_people__input:focus {
  outline-color: hsl(172, 67%, 45%);
}
.number_of_people__container .number_of_people__input:hover {
  cursor: pointer;
  border: 2px hsl(172, 67%, 45%) solid;
}

.prices__container {
  grid-column-start: 2;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 4;
  background-color: hsl(183, 100%, 15%);
  border-radius: 15px;
  width: 90%;
  height: 85%;
  justify-self: center;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: row wrap;
}
.prices__container > * {
  flex: 0 85%;
}
.prices__container .price_tip__container {
  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  height: 20%;
}
.prices__container .price_total__container {
  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  align-self: flex-start;
  height: 20%;
}
.prices__container .price_reset__button {
  height: 10%;
  background-color: hsl(183, 100%, 15%);
  border: none;
  border-radius: 5px;
  font-size: calc(0.5rem + 0.8vw);
  color: hsl(183, 100%, 15%);
  font-weight: 700;
  text-transform: uppercase;
  filter: brightness(1.4);
}
.prices__container .price_reset__button:hover {
  cursor: pointer;
}
.prices__container .price_reset__button span {
  filter: brightness(0.8);
}
.prices__container .active {
  background-color: hsl(172, 67%, 45%);
  filter: brightness(1);
}
.prices__container .active:hover {
  background-color: hsl(185, 41%, 84%);
}
.prices__container p {
  text-align: start;
  color: hsl(0, 0%, 100%);
}
.prices__container .price__text_person {
  color: hsl(184, 14%, 56%);
}
.prices__container .price__text_amount {
  color: hsl(172, 67%, 45%);
  font-size: 2.5rem;
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 900px) {
  body {
    gap: 2rem;
  }
  .calculator__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: -moz-fit-content;
    height: fit-content;
    padding: 2rem;
    gap: 1rem;
  }
  .bill__container {
    grid-column: unset;
    grid-row: unset;
    text-align: start;
    height: unset;
    color: hsl(183, 100%, 15%);
    font-weight: 700;
  }
  .bill__container .bill__input {
    background-image: url(images/icon-dollar.svg);
    background-position: 5% 50%;
    background-repeat: no-repeat;
    text-align: end;
    width: 100%;
    padding: 0.5rem 0.8rem;
    height: unset;
  }
  .bill__container .bill__input::-moz-placeholder {
    color: hsl(184, 14%, 56%);
  }
  .bill__container .bill__input::placeholder {
    color: hsl(184, 14%, 56%);
  }
  .bill__container .bill__input:hover {
    cursor: pointer;
    border: 2px hsl(172, 67%, 45%) solid;
  }
  .bill__container .bill__input:focus {
    outline-color: hsl(172, 67%, 45%);
  }
  .bill__container > p {
    margin: 0 0 1% 0;
  }
  .tip__container {
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 2;
    grid-row-end: 2;
    display: grid;
    -moz-column-gap: 1rem;
         column-gap: 1rem;
    height: 100%;
    width: 80%;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
  .tip__container p {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 1;
    text-align: start;
    color: hsl(183, 100%, 15%);
    font-weight: 700;
  }
  .tip__container .percentage__button {
    width: unset;
    height: unset;
    padding: 0.5rem 0.2rem;
    font-size: calc(0.8rem + 0.8vw);
  }
  .tip__container .percentage__button:hover {
    cursor: pointer;
    background-color: hsl(185, 41%, 84%);
    color: hsl(183, 100%, 15%);
    filter: brightness(1);
  }
  .tip__container .active {
    background-color: hsl(172, 67%, 45%);
    color: hsl(183, 100%, 15%);
  }
  .tip__container .custom__percentage {
    background-color: hsl(189, 41%, 97%);
    color: hsl(183, 100%, 15%);
    width: 85%;
    height: 80%;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: calc(0.5rem + 0.8vw);
    text-align: end;
    cursor: pointer;
  }
  .tip__container .custom__percentage:hover {
    background-color: hsl(0, 0%, 100%);
    border: 2px hsl(172, 67%, 45%) solid;
  }
  .tip__container .custom__percentage:focus {
    outline-color: hsl(172, 67%, 45%);
    text-align: end;
  }
  .tip__container .custom__percentage::-moz-placeholder {
    text-align: center;
  }
  .tip__container .custom__percentage::placeholder {
    text-align: center;
  }
  .number_of_people__container {
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 3;
    grid-row-end: 3;
    display: grid;
    text-align: start;
    width: 80%;
    height: unset;
    color: hsl(183, 100%, 15%);
    font-weight: 700;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .number_of_people__container .input_text__error {
    visibility: hidden;
    text-align: end;
    color: red;
  }
  .number_of_people__container .active {
    visibility: visible;
  }
  .number_of_people__container .number_of_people__input {
    text-align: end;
    width: 100%;
    height: -moz-fit-content;
    height: fit-content;
    border: none;
    font-size: 1.3rem;
    padding: 0.5rem 0.8rem;
  }
  .number_of_people__container .number_of_people__input::-moz-placeholder {
    color: hsl(184, 14%, 56%);
  }
  .number_of_people__container .number_of_people__input::placeholder {
    color: hsl(184, 14%, 56%);
  }
  .number_of_people__container .number_of_people__input:focus {
    outline-color: hsl(172, 67%, 45%);
  }
  .number_of_people__container .number_of_people__input:hover {
    cursor: pointer;
    border: 2px hsl(172, 67%, 45%) solid;
  }
  .prices__container {
    height: unset;
    padding: 1rem;
  }
  .prices__container > * {
    flex: 0 85%;
  }
  .prices__container .price_tip__container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    height: 20%;
  }
  .prices__container .price_total__container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    align-self: flex-start;
    height: 20%;
  }
  .prices__container .price_reset__button {
    height: unset;
    padding: 0.5rem;
    font-size: calc(0.8rem + 0.8vw);
  }
  .prices__container p {
    text-align: start;
    color: hsl(0, 0%, 100%);
  }
  .prices__container .price__text_person {
    color: hsl(184, 14%, 56%);
  }
  .prices__container .price__text_amount {
    color: hsl(172, 67%, 45%);
    font-size: 2.2rem;
  }
  .attribution {
    font-size: 11px;
    text-align: center;
  }
  .attribution a {
    color: hsl(228, 45%, 44%);
  }
}/*# sourceMappingURL=style.css.map */