@import url("https://fonts.googleapis.com/css2?family=Space+Mono&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
  text-decoration: none;
  font-family: "Space Mono", monospace;
}
body {
  background-color: hsl(185, 41%, 84%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.header-text {
  font-size: 1rem;
  color: hsl(183, 100%, 15%);
  letter-spacing: 1rem;
}
.container {
  width: 750px;
  background-color: white;
  margin: 3rem;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.left {
  width: 50%;
  font-weight: bold;
}
.left .bills {
  margin-bottom: 1rem;
}

.left label,
.left p {
  color: hsl(186, 14%, 43%);
  margin: 0.5rem 0;
  display: block;
}

.left .input-icon-wrapper {
  position: relative;
}

.left .input-icon-wrapper input {
  width: 100%;
  padding: 0.7rem;
  padding-left: 2.5rem;
  text-align: right;
  border-radius: 0.5rem;
  border: none;
  background-color: hsl(189, 47%, 97%);
  font-size: 1rem;
}
.left .input-icon-wrapper input:focus {
  border: 2px solid hsl(172, 67%, 45%);
  outline: none;
}
.left .input-icon-wrapper i {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  transform: translateY(-50%);
  color: hsl(183, 100%, 24%);
  font-size: 1rem;
  pointer-events: none;
}

.left .btn-container {
  display: flex;
  flex-direction: column;
}
.left .btns-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.left .btns-tip button,
.left .btns-tip input {
  padding: 0.5rem 1rem;
  margin: 0.3rem 0;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  width: 30%;
  border-radius: 0.3rem;
}

.left .btns-tip button {
  background-color: hsl(183, 100%, 15%);
  color: white;
  cursor: pointer;
  border: none;
}

.left .btns-tip input {
  border: 1px solid #ccc;
}
.left .error {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.left .error p {
  font-size: 0.8rem;
  color: red;
  display: none;
}
.error-border {
  border: 2px solid red !important;
}

.success-border {
  border: 2px solid hsl(172, 67%, 45%) !important; 
}

.right {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: hsl(183, 100%, 15%);
  border-radius: 1rem;
  padding: 1rem;
  margin-left: 1.5rem;
}
.right .container-amount {
  margin-top: 0.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.right .container-amount .text-amount h5 {
  color: rgba(255, 255, 255, 0.922);
  font-size: 1rem;
}
.right .container-amount .text-amount p {
  color: rgba(255, 255, 255, 0.383);
  font-size: 0.8rem;
}
.right .container-amount .number-amount,
.number-total {
  font-size: 3rem;
  color: hsl(172, 67%, 45%);
}
.right .reset-btn {
  padding: 0.5rem;
  color: hsl(183, 100%, 15%);
  font-size: 1rem;
  border-radius: 0.3rem;
  font-weight: bold;
  background-color: white;
  opacity: 0.1;
}
.active {
  background-color: hsl(172, 67%, 45%) !important;
  color: hsl(183, 100%, 15%) !important;
}

@media (max-width: 700px) {
  body {
    justify-content: flex-start;
    margin-top: 5%;
    padding: 1rem;
  }

  .header-text {
    font-size: 1.5rem;
    font-weight: bolder;
    text-align: center;
    margin-bottom: 1rem;
  }

  .container {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
    gap: 1.5rem;
  }

  .left,
  .right {
    width: 100%;
  }

  .btns-tip {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .left .btns-tip button,
  .left .btns-tip input {
    width: 48%;
    margin: 0.25rem 0;
  }

  .right {
    padding: 1.5rem;
    gap: 1rem;
  }

  .right .number-amount {
    font-size: 2rem;
  }

  .reset-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
  }
}
