/* CSS Reset Updated */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  background-color: var(--color-Green);
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: "Space Mono", sans-serif;
  display: grid;
  place-items: center;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

ul,
ol {
  list-style: none;
}

/* Css variable */
:root {
  --container-width: 90rem;
  --mobile-width: 37.5rem;
  --gutter: 2rem;
  --color-Green: hsl(172, 67%, 45%);
  --color-darker-green: hsl(171, 62%, 19%);
  --color-white: hsl(0, 100%, 100%);
  --color-grey-500: hsl(217, 12%, 63%);
  --color-grey-lighter: hsla(220, 7%, 82%, 0.65);
  --color-grey-900: hsl(213, 19%, 18%);
  --color-grey-950: hsl(216, 12%, 8%);
  --font-family-Overpass: "Overpass", san-serif;
  --font-weight-bold: 700;
  --font-size-form-input: 2.4rem;
  --transition-timing: 0.3s;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  gap: var(--gutter);
  background-color: var(--color-white);
  padding: var(--gutter);
  border-radius: var(--gutter);
}
@media (max-width: 375px) {
  .container {
    flex-direction: column;
    padding: 0;
  }
}

.right-section,
.left-section {
  width: 100%;
  min-height: 45rem;
  height: 100%;
  justify-self: stretch;
  padding: var(--gutter);
  border-radius: var(--gutter);
}
@media (max-width: 375px) {
  .right-section,
  .left-section {
    min-height: auto;
  }
}

.right-section {
  background-color: var(--color-darker-green);
  display: flex;
  flex-direction: column;
  font-size: large;
  justify-content: space-between;
  align-items: center;
}

span {
  color: var(--color-grey-500);
  font-size: small;
}

.left-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gutter) * 1.5);
  justify-content: center;
  font-size: medium;
  font-weight: var(--font-weight-bold);
}

.tip-select-box {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--gutter) / 2);
  justify-content: center;
}

.tip-button {
  background-color: var(--color-darker-green);
  max-width: 9rem;
  width: 100%;
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  padding: calc(var(--gutter) / 4);
  border-radius: calc(var(--gutter) / 6);
}

.tip-custom-input {
  background-color: #f3f9fa;
  color: var(--color-darker-green);
  max-width: 9rem;
  width: 100%;
  border: none;
  border-radius: calc(var(--gutter) / 4);
  font-family: inherit;
  font-weight: bold;
  text-align: right;
  padding-left: 6px;
  cursor: pointer;
}

.bill-input::placeholder,
.people-input::placeholder {
  color: var(--color-grey-lighter);
}

.tip-custom-input::placeholder {
  text-align: center;
  color: var(--color-grey-lighter);
}

.tip-custom-input:focus {
  outline: 2px solid #26c2ad;
}

.tip_box {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gutter) / 6);
}

.people-label {
  margin-bottom: calc(var(--gutter) / 6);
}

.attribution {
  font-size: 0.6875rem;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

.active {
  background-color: var(--color-Green);
}

.active-result {
  color: var(--color-Green);
}

.results-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.results-section > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tip-amount,
.total-amount {
  color: var(--color-white);
}

.tip-result,
output[name=totalresult] {
  color: var(--color-Green);
  font-size: 3rem;
  font-weight: bold;
}

.bill-input {
  background-image: url("../images/icon-dollar.svg");
  background-repeat: no-repeat;
  background-position: 1.5rem center;
  padding-left: 3.5rem;
  background-color: var(--color-grey-200);
  border: none;
  border-radius: 5px;
  height: 4.5rem;
  width: 100%;
  font-family: inherit;
  font-weight: bold;
  text-align: right;
  color: var(--color-darker-green);
}

.people-input {
  background-image: url("../images/icon-person.svg");
  background-repeat: no-repeat;
  background-position: 1.5rem center;
  padding-left: 3.5rem;
  background-color: var(--color-grey-200);
  text-align: right;
  font-weight: bold;
}

.bill-input,
.people-input {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #f3f8fb;
  text-align: right;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-darker-green);
}

.bill-input:focus,
.people-input:focus {
  outline: 2px solid var(--color-Green);
}

.bill_box,
.people_box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tip-button {
  transition: all 0.2s ease;
}

.tip-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.tip-result,
output[name=totalresult] {
  transition: all 0.3s ease;
}

.animate-result {
  transform: scale(1.1);
}

.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.25s ease;
}

.reset-section {
  width: 100%;
}

.reset-button {
  background-color: var(--color-Green);
  padding: calc(var(--gutter) / 4);
  border-radius: calc(var(--gutter));
  width: 100%;
}

@media (max-width: 375px) {
  .bill_box {
    order: -2;
  }
  .people_box {
    order: -1;
  }
}
.character-wrapper {
  position: absolute;
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  z-index: -1;
  pointer-events: none;
}

.character {
  font-size: 50px;
  transform: translate(265px, 135px);
  display: inline-block;
}/*# sourceMappingURL=style.css.map */