:root {
  --Verydarkcyan: hsl(183, 100%, 15%);
  --Darkgrayishcyan: hsl(186, 14%, 43%);
  --Grayishcyan: hsl(184, 14%, 56%);
  --Lightgrayishcyan: hsl(185, 41%, 84%);
  --Verylightgrayishcyan: hsl(189, 41%, 97%);
  --White: hsl(0, 0%, 100%);
  --Strongcyan: rgb(38, 192, 171);

}
html {
  box-sizing:border-box;
  transition: all 0.4s;
  font-size: 62.5%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-x: hidden;
}
body {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  min-height: 100vh;
  background-color: var(--Lightgrayishcyan);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

/****************************************/
/* /person and Label style */
/****************************************/
span {
  font-size: 1rem;
  color: var(--Grayishcyan);
  font-size: 1rem;
}
.select-tip,
label {
  color: var(--Darkgrayishcyan);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.labels {
  display: flex;
  justify-content: space-between;
}
/****************************************/
/* Containers */
/****************************************/
.wrapper {
  background-color: var(--White);
  border-radius: 2rem;
}

.wrapper_inner {
  display: flex;
  flex-direction: column;
}

.page-buttons {
  background-color: var(--Verylightgrayishcyan);
  display: flex;
  justify-content: space-between;
  border-radius: 2rem;
  position: relative;
}

.wrapper_inner_container {
  width: 36rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin: 4rem;
}

.input {
  box-sizing: border-box;
  border-style: none;
  background-color: var(--Lightgrayishcyan);
  font-weight: inherit;
  font-family: inherit;
  padding: 1rem;
  border-radius: 0.5rem;
  width: 100%;
  border: solid 0.2rem var(--White);
  text-align: end;
  
}

.num-people-container,
.bill-container,
.select-tip-container {
  display: flex;
  flex-direction: column;
}

.buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.new_div_center,
.top-label-persons,
.top-label-persons-results,
.person-bill-result,
.list-of-person-results {
  height: 4rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items:center;
  flex-direction: row;
  margin: 0.3rem 2rem;
}
.top-label-persons-results {
  margin: 0 2rem;
}

.check-boxes,
.personal-number,
.name-text,
.bill-text {
  display: flex;
  justify-content: center;
  align-items: center;
}
.name-text,
.bill-text {
  font-size: 1.5rem;
  color: var(--Grayishcyan);
  align-self: center;
}

.number-text {
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--Grayishcyan);
}
.results-bill-total {
    color:hsl(185, 41%, 84%);
    font-size: 2rem;
    display:grid;
    place-items: center;
}
.results-bill-total span {
    font-size: 6rem;
}
.number {
  height: 100%;
  margin: 0;
}

.results {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--Verydarkcyan);
  border-radius: 1rem;
}

.tip-amount-per-person-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 3rem;
}

.tip-amount-per-person {
  font-size: 1.5rem;
  color: var(--White);
  align-self: center;
}
.inputs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.resultsName {
  font-size: 2rem;
  color: var(--White);
  opacity: 70%;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1rem 0;
}
.span_total {
  display: grid;
  place-items: center;
  font-size: 4rem;
  color:var(--White);
  opacity: 60%;
  padding-bottom: 2rem;
}
/****************************************/
/* Icons in inputs */
/****************************************/
.bill {
  width: 100%;
  background-image: url(/images/icon-dollar.svg);
  background-repeat: no-repeat;
  background-position: 1rem center;
}

.people {
  width: 100%;
  background-image: url(/images/icon-person.svg);
  background-repeat: no-repeat;
  background-position: 1rem center;
}

.input:hover,
.input:focus {
  border: solid 0.2rem;
  border-color: var(--Strongcyan);
}
.person-bill-result,
.person-name-result,
.number-result {
  font-size: 1.5rem;
  color: var(--Strongcyan);
}
.total-text {
  font-size: 2rem;
  color:var(--White);
  opacity: 60%;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
}


/****************************************/
/* BTNs Style */
/****************************************/

.btn {
  border-style: none;
  border-radius: 0.5rem;
  color: var(--White);
  font-family: inherit;
  font-size: 2rem;
  font-weight: inherit;
  height: 4rem;
}

.btn-reset,
.btn-active {
  background-color: var(--Strongcyan);
}

.btn-reset,
.calculate {
  margin: 0 3rem 3rem 3rem;
  background-color: var(--Darkgrayishcyan);
  color: var(--Verydarkcyan);
}
.calculate {
  background-color: var(--Lightgrayishcyan);
  margin: 0 3rem 1rem 3rem;

}
.btn:focus,
.btn:hover,
.btn:active {
  background-color: var(--Strongcyan);
  color: var(--Verydarkcyan);
}

.btn:hover,
.btn:active,
.input:hover,
.input:focus {
  transition: all 0.4s;
  box-shadow: 0 0.1rem 0.5rem 0 rgba(0, 0, 0, 0.24), 0 5px 10px 0 rgba(0, 0, 0, 0.19);
}

.btn-reset:hover,
.btn-reset:active {
  background-color: var(--Lightgrayishcyan);
}

.people-page {
  width: 50%;
  padding: 0;
  margin: 0;
  border-radius: 2rem 2rem 2rem 0;
  z-index: 1;
}
.range {margin-top: 0.8rem;}

.common-page {
  width: 50%;
  padding: 0;
  margin: 0;
  border-radius: 0 2rem 0 0;
  z-index: 1;
}
.page-buttons::before {
  content: "";
  position: absolute;
  width: 4rem;
  height: 2rem;
  background-color: var(--Verydarkcyan);
  top: 0;
  left: 20rem;
  z-index: 0;
}
.page-buttons::before:hover {
  background-color: var(--Strongcyan);
}

.active {
  background-color: var(--White);
  color: var(--Verydarkcyan);
  border-radius: 2rem 2rem 0 2rem;
  z-index: 2;
}

/****************************************/
/* Footer */
/****************************************/
.attribution a {
  text-decoration: none;
  color: var(--Verydarkcyan);
}

.attribution {
  margin: 2rem 0;
  color: var(--Grayishcyan);
}
/****************************************/
/* screen 834 ipad 11 pro*/
/****************************************/
@media screen and (max-width: 835px) {
  html {
    font-size: 90%;
  }
}
/****************************************/
/* screen 768px ipad mini */
/****************************************/
@media screen and (max-width: 769px) {
  html {
    font-size: 70%;
  }
}
/****************************************/
/* screen 428 iphone xr / 11 / 14 */
/****************************************/
@media screen and (max-width: 429px) {
  html {
    font-size: 55%;
  }
}
/****************************************/
/* screen 390px (pixel 5)*/ 
/****************************************/
@media screen and (max-width: 394px) {
  html {
    font-size: 50%;
  }
}

/****************************************/
/* screen 375px */
/****************************************/
@media screen and (max-width: 376px) {
  html {
    font-size: 45%;
  }
}

/****************************************/
/* screen 320px */
/****************************************/
@media screen and (max-width: 321px) {
  html {
    font-size: 40%;
  }
}

input[type="range"].input {
  -webkit-appearance: none;
  width: 100%;
  height: 4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

input[type="range"].custom::-webkit-slider-runnable-track {
  width: 100%;
  height: 4rem;
  cursor: pointer;
  animation: 0.2s;
  background: var(--Lightgrayishcyan);
  border-radius: 0.5rem;
}

input[type="range"].custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 4rem;
  width: 0.1rem;
  cursor: pointer;
  border-radius: 0rem;
  background: transparent;
}

input[type="range"].custom:focus::-webkit-slider-runnable-track {
    -webkit-appearance: none;
  background: var(--Lightgrayishcyan);
}

.range {
  height: 4rem;
  width: 100%;
  background: #fff;
  border-radius: 0.5rem;
}

.sliderValue {
  position: relative;
  width: 100%;
}

.sliderValue span {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  height: 4rem;
  width: 10%;
  display: flex;
  align-items: center;
  justify-content: end;
  transform: scale(0);
  font-weight: 700;
  font-size: 2rem;
  z-index: 2;
  padding: 0 1rem;
  top: 50%;
  transform: translateX(-50%);
  color: #fff;
  transform-origin: bottom;
  transition: transform 0.4s ease-in-out;
  pointer-events: none;
}

.sliderValue span.show {
  transform: translateX(-100%) scale(1);
}

.sliderValue span:after {
  position: absolute;
  content: "";
  pointer-events: none;
  height: 100%;
  width: 100%;
  background: var(--Verydarkcyan);
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

.material_checkbox {
    display: grid;
    place-items: center;
  position: relative;
  background: transparent;
}

.material_checkbox:focus {
  outline-color: #fff;
}

.material_checkbox:before {
  border: 0.2rem solid var(--Strongcyan);
  content: "";
  cursor: pointer;
  display: block;
  height: 1.5rem;
  position: absolute;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  width: 1.5rem;
  z-index: 1;
  border-radius: 0.5rem;
}

.material_checkbox:checked:before {
  border-top-style: none;
  border-right-style: none;
  height: 1rem;
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  border-color: var(--Lightgrayishcyan);
  border-radius: 0;
}

.material_checkbox:after {
  background-color: var(--Verydarkcyan);
  content: "";
  display: block;
  height: 3.5rem;
  position: absolute;
  top: 0;
  width: 3.5rem;
  z-index: 0;
}
