@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

.logo {
  text-align: center;
  margin-bottom: 2rem;
  color: hsl(183, 100%, 15%);
  letter-spacing: 0.5rem;
  line-height: 1.2;
  transition: transform 0.3s;
}
.logo:hover {
  transform: scale(1.05);
  color: hsl(184, 14%, 56%);
}

.calculator {
  background-color: hsl(0, 100%, 100%);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  transition: all 0.3s ease;
}
.calculator:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .calculator {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}
@media (max-width: 320px) {
  .calculator {
    width: 100%;
    min-width: 300px;
  }
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.input-section label {
  color: hsl(186, 14%, 43%);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.bill-input, .people-input {
  position: relative;
}
.bill-input input, .people-input input {
  width: 100%;
  padding: 0.5rem;
  background-color: hsl(189, 47%, 97%);
  border: none;
  border-radius: 8px;
  color: hsl(183, 100%, 15%);
  text-align: right;
  font-size: 24px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  padding-left: 2.5rem;
}
.bill-input input::-moz-placeholder, .people-input input::-moz-placeholder {
  color: hsl(184, 14%, 56%);
}
.bill-input input::placeholder, .people-input input::placeholder {
  color: hsl(184, 14%, 56%);
}
.bill-input::before, .people-input::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1rem;
  font-size: 24px;
  color: hsl(184, 14%, 56%);
}

.bill-input::before {
  content: "$";
  padding-top: 1.5rem;
}

.people-input::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236C9A9F'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  width: 28px;
  height: 28px;
  padding-top: 1rem;
}

.tip-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .tip-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tip-buttons button, .tip-buttons .custom-tip {
  min-width: 0;
  border-radius: 8px;
  font-size: 24px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  transition: all 0.3s ease;
}
.tip-buttons button {
  background-color: hsl(183, 100%, 15%);
  color: hsl(0, 100%, 100%);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.tip-buttons button:hover, .tip-buttons button.active {
  background-color: hsl(172, 67%, 45%);
  color: hsl(183, 100%, 15%);
}
.tip-buttons .custom-tip {
  width: 100%;
  background-color: hsl(189, 47%, 97%);
  color: hsl(183, 100%, 15%);
  text-align: center;
  border: 2px solid transparent;
}
.tip-buttons .custom-tip:focus {
  border-color: hsl(172, 67%, 45%);
  outline: none;
}
.tip-buttons .custom-tip::-moz-placeholder {
  color: hsl(184, 14%, 56%);
  text-transform: uppercase;
}
.tip-buttons .custom-tip::placeholder {
  color: hsl(184, 14%, 56%);
  text-transform: uppercase;
}

.output-section {
  background-color: hsl(183, 100%, 15%);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.result-line .label {
  color: hsl(0, 100%, 100%);
}
.result-line .label span {
  display: block;
  color: hsl(184, 14%, 56%);
  font-size: 0.8rem;
}
.result-line .amount {
  color: hsl(172, 67%, 45%);
  font-size: 2.5rem;
  font-weight: 700;
}

.reset-btn {
  width: 100%;
  padding: 0.5rem;
  background-color: hsl(172, 67%, 45%);
  color: hsl(183, 100%, 15%);
  border: none;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.reset-btn:hover:not(:disabled) {
  background-color: hsl(173, 61%, 77%);
}
.reset-btn:disabled {
  background-color: hsl(186, 14%, 43%);
  cursor: not-allowed;
  opacity: 0.7;
}

.error-message {
  color: hsl(13, 70%, 60%);
  font-size: 0.8rem;
  visibility: hidden;
  position: absolute;
  right: 0;
  top: 0;
}/*# sourceMappingURL=style.css.map */