/*GENERAL DESIGN*/
* {
  font-family: "Lexend Peta", sans-serif;
  color: #4A6644;
  font-size: 16px;
}

body {
  width: clamp(700px, 80vw, 1500px);
  margin: 0 auto;
  padding-bottom: 50px;
}

h1, h2 {
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 55px;
  margin-bottom: 10px;
}

p {
  margin-top: 0px;
}

button {
  cursor: pointer;
  border-radius: 10px;
}

input {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #d7dab3;
}
input::placeholder {
  color: #9faa74;
}
input:focus {
  border: 3px solid #4a6644;
  outline: none;
}

/*PAGE 1 SECTION: Inserting name*/
.intro-line {
  color: #c66f80;
}
.add-name-line {
  display: flex;
  margin-top: 10px;
  margin-bottom: 20px;
}
.name-input {
  width: 150px;
}

.add-btn, .remove-btn {
  color: #9faa74;
  background-color: transparent;
  width: 50px;
  height: 50px;
  padding-bottom: 7px;
  transition: all 0.2s ease;
}

.add-btn {
  font-weight: 400;
  font-size: 24px;
  margin-left: 10px;
  border: 1px solid #d7dab3;
}

.remove-btn {
  font-size: 30px;
  border: none;
}

.add-btn:hover, .remove-btn:hover {
  background-color: #d7dab3;
}
.add-btn:active, .remove-btn:active {
  color: #4a6644;
  background-color: #9faa74;
  border: 1px solid #9faa74;
}

.eachName {
  display: grid;
  width: 251px;
  grid-template-columns:1fr 50px;
  align-items: center;
  border-bottom: 1px solid #4a66445c;
}

.personName {
  margin-left: 15px;
  margin-bottom: 0px;
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/*MAIN BUTTON DESIGN*/
.next-btn, .back-btn, .back-btn-phone, .divide-btn {
  display: block;
  background-color: transparent;
  border: 1px solid #9faa74;
  box-shadow: 0px 5px #9faa74;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 10px 20px;
  transition: all 0.2s ease;
}
.next-btn:hover, .back-btn:hover, .back-btn-phone:hover, .divide-btn:hover {
  transform: translateY(-3px);
  color: #c66f80;
  border: 1px solid #c66f80;
  box-shadow: 0px 8px #c66f80;
}
.next-btn:active, .back-btn:active, .back-btn-phone:active, .divide-btn:active {
  background-color: #4A6644;
  color: white;
  border-color: white;
  transform: translateY(3px);
  box-shadow: 0px 0px #4A6644;
}
.next-btn:focus, .back-btn:focus, .back-btn-phone:focus, .divide-btn:focus {
  border: 3px solid #4a6644;
  outline: none;
}

.back-btn, .back-btn-phone { /*BACK BUTTON DESIGN*/
  position: absolute;
  margin-top: 11px;
}

.divide-btn {
  width: 70%;
  padding: 10px;
  height: 50px;
}



/*PAGE 2 SECTION: CALCULATING AND DIVIDING HISTORY*/
.current-total-title {
  color: #c66f80;
  justify-content: center;
  font-size: 30px;
}

.history-title, .splitting-instruction {
  color: #f4c7d0;
  font-size: 24px;
  margin-bottom: 20px;
}

.splittingPage {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
}

.defining-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history-result {
  display: flex;
  flex-direction: column;
}

.scroll-activate { /*FOR <div class="division-result>*/
  max-height: 400px;
  overflow-y: auto;
}

.splitting-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  padding-left: 5px;
  border-bottom: 0.5px solid #9faa744e;
}

.detail-division {
  display: inline;
  margin-bottom: 0px;
}

.undo-btn {
  border: none;
  background-color: transparent;
  font-weight: 700;
  color: #c66f80;
  margin-left: 40px;
  align-self: stretch;
  transition: all 0.1s ease;
}
.undo-btn:hover {
  background-color: #f4c7d0;
}

.eachCost, .itemName {
  box-sizing: border-box;
  width: 30%;
  padding: 10px;
  margin-bottom: 16px;
}
.itemName {
  margin-right: 34px;
}

.performing-section {
  display: flex;
  column-gap: 40px;
}

.peopleColumn, .moneyColumn, .pop-upColumn {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  row-gap: 30px;
}

.peopleColumn, .moneyColumn {
  width: 30%;
}

.people-button, .money-btn, .popup-btn {
  white-space: nowrap;
  height: 50px;
  border: none;
  padding: 10px;
  margin-bottom: 4px;
}
.people-button, .money-btn {
  box-shadow: 0px 5px #4a6644;
  transform: translateY(-5px);
}
.people-button {
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #9faa74;
  color: white;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.money-btn {
  background-color: transparent;
  border: 1px solid #4a6644;
  pointer-events: none;
}
.popup-btn {
  pointer-events: none;
  max-height: auto;
  background-color: transparent;
  transform: translateY(-5px) translateX(-40px);
  color: #c66f80;
}
.people-button:hover {
  background-color: transparent;
  color: #4a6644;
  border: 1px solid #4a6644;
  transform: translateY(-8px);
  box-shadow: 0px 8px #4a6644;
}
.people-button:active, .peopleClick {
  color: #c66f80;
  background-color: #f4c7d0;
  border: none;
  transform: translateY(0px);
  box-shadow: 0px 0px;
}
.peopleClick:hover {
  background-color: transparent;
  color: #c66f80;
  border: 1px solid #c66f80;
  transform: translateY(-8px);
  box-shadow: 0px 8px #f4c7d0;
}
.peopleClick:active {
  background-color: transparent;
  color: #c66f80;
  border: 1px solid #c66f80;
  transform: translateY(0px);
  box-shadow: 0px 0px;
}

.peopleClick {
  color: #c66f80;
  background-color: #f4c7d0  ;
  transform: translateY(0px);
  box-shadow: 0px 0px;
}

.show-hide-btn {
  border: 1px solid #4A6644;
  background-color: #d7dab3;
  margin: 0 auto;
  padding: 5px 18px;
  width: 150px;
  margin-top: 20px;
  transition: all 0.2s ease;
}
.show-hide-btn:hover {
  color: white;
  background-color: #4A6644;
}

.hidden {
  display: none;
}

@media (max-width: 1000px) {
  .back-btn {
    display: none;
  }
}
@media (min-width: 1001px) {
  .back-btn-phone {
    display: none;
  }
}
