@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700family=Roboto+Mono:wght@700&display=swap');

/*Налаштування видимої частини вікна браузера*/
body {
  padding: 0;
  margin: 0;
  background-color: #f6f6f3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
  font-family: 'Roboto Mono', monospace;
}

/*Налаштування основного контейнера*/
.wrapper {
  background-color: white;
  border-radius: 20px;
  width: 600px;
  padding-top: 40px;
  box-shadow: 0px 0px 44px rgba(148, 148, 120, 0.23);
}

/*Налаштування блоку з сумою чайових*/
.tip-amount {
  padding-bottom: 15px;
  border-bottom: 1px solid #dedede;
  margin-bottom: 15px;
}

.total-per-person {
  padding-bottom: 15px;
}

.tip-amount,
.total-per-person {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.tip-amount .dollars,
.total-per-person .dollars {
  font-size: 3rem;
}

.tip-amount sup,
.total-per-person sup {
  font-size: 1.5rem;
}

.dollars {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/*Налаштування блоку з полями вводу інтформації*/
.input-fields {
  background-color: #f7f7f7;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  padding: 0 35px;
}

.bill-amount {
  border-right: 2px solid #dedede;
  padding: 45px 25px 25px;
  width: 70%;
}

.number-of-people {
  padding: 45px 25px 25px;
  width: 30%;
}

input[type='text'] {
  text-align: center;
  font-size: 2rem;
  font-family: 'Inter', sans-serif;
  border: none;
  background-color: none;
  outline: none;
  width: 100%;
  border-bottom: 3px dotted #b3b3b3;
  box-sizing: border-box;
  margin-bottom: 3px;
}

.bill-amount input[type='text'] {
  /* background-image: url('../images/icon-coin-dollar.svg') left 15px no-repeat; */
  padding-left: 35px;
}

.number-of-people input[type='text'] {
  /* background-image: url('../images/icon-users.svg') left 20px no-repeat; */
  padding-left: 35px;
  text-align: right;
}

.bill-amount .label,
.number-of-people .label {
  text-align: center;
}

/*Налаштування блоку вибору рівня чайових*/
.tip-percentages {
  display: flex;
  justify-content: space-between;
  padding: 10px 25px;
  background-color: #eeeeee;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
}

input[type='radio'] {
  display: none;
}

input[type='radio'] + label {
  background: white;
  box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #60c1b6;
  font-family: 'Roboto-Mono', monospace;
  width: 110px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
}

input[type='radio']:checked + label {
  background-color: #60c1b6;
  color: white;
}

.button-wrapper {
  text-align: right;
  padding: 15px 25px;
}

button {
  background-color: #ed7861;
  box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 15px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto-Mono', monospace;
  font-size: 1.2rem;
  color: white;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

/*SVG*/
.field {
  position: relative;
}

.svg-dollar {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 100;
  fill: black;
}

.svg-users {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 100;
  fill: black;
}
