@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

* {
  padding: 0px;
  margin: 0px;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "Red Hat Display", sans-serif;
}
body {
  margin-top: 5%;
  display: flex;
  justify-content: center;
}
.wrapper {
  width: 50%;
  padding: 12px;
  border: solid thin gray;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.buttons {
  display: flex;
  justify-content: space-between;
  width: 80%;
}
.buttons button {
  font-size: 1rem;
  padding: 10px 4px;
  width: 35%;
  border-radius: 8px;
  border: solid thin black;
  cursor: pointer;
}
#income-btn {
  background-color: rgb(83, 237, 83);
  margin: 0;
}
#expense-btn {
  background-color: rgb(255, 162, 162);
  margin: 0;
}
.inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 80%;
}
.inputs input {
  height: 30px;
  padding: 2px 4px;
  width: 100%;
  border-radius: 8px;
  border: solid thin gray;
}
#transaction-list {
  margin: 0;
  width: 80%;
}
.income-list {
  border: solid thin rgb(25, 127, 25);
  background-color: rgb(106, 234, 106);
  padding: 10px 15px;
  margin-top: 5px;
  display: flex;
  justify-content: space-evenly;
  border-radius: 8px;
}
.expense-list {
  border: solid thin red;
  background-color: rgb(255, 162, 162);
  padding: 10px 15px;
  margin-top: 5px;
  display: flex;
  justify-content: space-evenly;
  border-radius: 8px;
}
.income-list span:nth-child(1),
.expense-list span:nth-child(1) {
  width: 100%;
  padding: 5px;
  text-transform: capitalize;
}
.income-list span:nth-child(2),
.expense-list span:nth-child(2) {
  width: 30%;
  padding: 5px;
  margin: 0 10px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.388);
  border-radius: 4px;
}
.income-list button,
.expense-list button {
  width: 10%;
  margin: 0px 5px;
  border-radius: 4px;
  border: solid thin rgb(255, 255, 255);
  background-color: rgba(255, 255, 255, 0.742);
  cursor: pointer;
}
@media (max-width: 768px) {
  .wrapper {
    padding: 10%;
    margin: 10%;
    width: 100%;
  }
  .buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .buttons button {
    width: 100%;
  }
  .inputs {
    width: 100%;
    padding: 0;
  }
  #transaction-list {
    width: 100%;
  }
}
