body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background-image: url("./IMG/clipboard6.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#clipboarder {
  height: 90vh;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: transparent;
  text-align: center;
  height: 170px;
}

#logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 7vw;
  height: 7vh;
  margin: 1rem;
  cursor: pointer;
  z-index: 200;
}

.title-container {
  text-align: center;
  position: relative;
}
.title {
  font-size: 1.5rem;
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-bottom: 0rem;
}
.main-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px);
  overflow: hidden;
}
.expense-tracker-container {
  position: absolute;
  top: 49%;
  left: 49.5%;
  transform: translate(-50%, -50%);
  width: 526px;
  height: 720px;
  z-index: 20;
}
#expenseTracker {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;

  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  z-index: 3;
}
.header-title {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  text-align: center;
  width: 100%;
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
}
.category-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

#expensesList {
  position: absolute;
  top: 20%;
  left: 58%;
  transform: translateX(-50%);
  z-index: 3;
  line-height: 2.2rem;
  width: 540px;
  padding-right: 20px;
}

#expenseDescription,
#expenseAmount,
#expenseCategory {
  padding: 5px;
  border: solid 2px black;
}
#expenseAmount {
  width: 60px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: none;
}
#kulu {
  background: #222222;
  color: #fff;
  transition: background 0.3s ease;
  padding: 1% 1%;
  border: none;
  border-radius: 0.313rem;
  cursor: pointer;
  font-size: 1rem;
}
#kulu:hover {
  background: #444;
  border-radius: 0.313rem;
  transition: 0.3s ease all;
}

.expense {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 30px;
  position: relative;
  list-style-type: none;
}
.expense::before {
  content: "•";
  position: absolute;
  left: -20px;
  font-size: larger;
}

.expense button {
  margin-left: 10px;
}
.expense-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 70px;
  white-space: nowrap;
}

#totalExpense {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.clipboarder-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  margin-top: 4rem;
  margin-bottom: 0;
}

#clipboarder {
  max-height: 90vh;
  display: block;
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .title-container {
    top: -8%;
  }
  #logo {
    top: -10px;
    left: -20px;
    width: 11vw;
    height: 7vh;
  }
  .expense-tracker-container {
    top: 51%;
    left: 49.5%;
    width: 75vw;
    height: 720px;
  }
  .category-title {
    right: 20rem;
  }
  .expense {
    margin-left: -40%;
    width: 70vw;
  }

  #totalExpense {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .clipboarder-container {
    top: 33%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
    height: 63vh;
  }

  #clipboarder {
    max-height: 90vh;
    height: 90vh;
    width: 90vw;
  }
}
@media (min-width: 971px) and (max-width: 1100px) {
  .title-container {
    top: -8%;
  }
  #logo {
    top: -20px;
    left: 0;
    width: 11vw;
    height: 7vh;
  }
  .expense-tracker-container {
    top: 31%;
    left: 49.5%;
    width: 75vw;
    height: 720px;
  }

  .expense {
    margin-left: -20%;
    width: 70vw;
  }

  #totalExpense {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .clipboarder-container {
    top: 33%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
    height: 63vh;
  }

  #clipboarder {
    max-height: 90vh;
    height: 55vh;
    width: 90vw;
  }
}
@media (min-width: 971px) and (max-width: 1100px) and (max-height: 600px) {
  .title-container {
    top: -4%;
  }
  #logo {
    top: -5px;
    left: -30px;
    width: 13vw;
    height: 7vh;
  }
  .expense-tracker-container {
    top: 73%;
    left: 49.5%;
    width: 70vw;
    height: 720px;
  }

  .expense {
    margin-left: -20%;
    width: 70vw;
  }

  #totalExpense {
    position: absolute;
    top: 64%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .clipboarder-container {
    top: 39%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
    height: 63vh;
  }

  #clipboarder {
    max-height: 90vh;
    height: 80vh;
    width: 90vw;
  }
}

@media (min-width: 821px) and (max-width: 970px) {
  .title-container {
    top: -8%;
  }
  #logo {
    top: -10px;
    left: 0;
    width: 11vw;
    height: 7vh;
  }
  .expense-tracker-container {
    top: 31%;
    left: 49.5%;
    width: 75vw;
    height: 720px;
  }

  .expense {
    margin-left: -10%;
    width: 70vw;
  }

  #totalExpense {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .clipboarder-container {
    top: 33%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
    height: 63vh;
  }

  #clipboarder {
    max-height: 90vh;
    height: 55vh;
    width: 90vw;
  }
}

@media (min-width: 768px) and (max-width: 820px) {
  #logo {
    top: -10px;
    left: 0;
    width: 11vw;
    height: 7vh;
  }
  .expense-tracker-container {
    top: 41%;
    left: 49.5%;
    width: 75vw;
    height: 720px;
  }
  .clipboarder-container {
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0;
    height: 60vh;
  }

  #clipboarder {
    max-height: 90vh;
    height: 70vh;
    width: 90vw;
  }
}

@media (min-width: 451px) and (max-width: 767px) {
  body,
  header,
  .container {
    font-size: clamp(0.6rem, 3.5vw, 0.9rem);
  }
  header #logo {
    width: 60px;
    margin-left: 10px;
  }
  .main-content {
    position: relative;
    width: 90%;
    height: 90vh;
    overflow: hidden;
  }

  .title-container {
    position: relative;
    margin-left: 3rem;
    margin-right: auto;
    font-size: 0.7rem;
  }
  .header-title {
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: none;
  }
  .expense {
    margin: 0;
    padding: 0;
    list-style-position: inside;
  }

  .expense button {
    margin-left: 10px;
  }

  .expense-tracker-container {
    position: relative;
    top: -34%;
    width: 60%;
    height: 15%;
    line-height: 0%;
  }
  #expensesList {
    top: 70%;
    left: 0%;
    right: 50%;
    transform: translate(-60%, 70%);
    width: 85vw;
    max-width: calc(100% - 10px);
    box-sizing: border-box;
    padding-right: 5px;
  }

  #totalExpense {
    position: absolute;
    margin-top: 32rem;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
  }

  #expenseDescription,
  #expenseAmount,
  #expenseCategory,
  #kulu {
    width: 100%;
  }
  #totalExpense {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .clipboarder-container {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 4rem;
    margin-bottom: 0;
  }

  #clipboarder {
    max-height: 70vh;
    width: 100vw;
  }
}

@media (min-width: 283px) and (max-width: 450px) {
  body,
  header,
  .container {
    font-size: clamp(0.6rem, 3.5vw, 0.9rem);
  }
  header #logo {
    width: 60px;
    margin-left: 10px;
  }
  .main-content {
    position: relative;
    width: 90%;
    height: 90vh;
    overflow: hidden;
  }

  .title-container {
    position: relative;
    margin-left: 3rem;
    margin-right: auto;
    font-size: 0.7rem;
  }
  .header-title {
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: none;
  }
  .expense {
    margin-top: 0;
    margin-bottom: 20px;
    padding-right: 20px;
    list-style-position: inside;
  }

  .expense button {
    margin-left: 10px;
  }

  .expense-tracker-container {
    position: relative;
    top: -34%;
    width: 60%;
    height: 15%;
    line-height: 0%;
  }
  #expensesList {
    top: 9rem;
    left: 0%;
    right: 50%;
    transform: translate(-60%, 70%);
    width: 65vw;
    max-width: calc(100% - 10px);
    box-sizing: border-box;
    padding-right: 5px;
  }

  #totalExpense {
    position: absolute;
    margin-top: 30rem;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
  }

  #expenseDescription,
  #expenseAmount,
  #expenseCategory,
  #kulu {
    width: 100%;
  }
  #totalExpense {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .clipboarder-container {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 4rem;
    margin-bottom: 0;
  }

  #clipboarder {
    max-height: 70vh;
    width: 100vw;
  }
}

@media (min-width: 278px) and (max-width: 281px) {
  body,
  header,
  .container {
    font-size: clamp(0.6rem, 3.5vw, 0.9rem);
  }
  header #logo {
    width: 60px;
    margin-left: 10px;
  }
  .main-content {
    position: relative;
    width: 90%;
    height: 90vh;
    overflow: hidden;
  }

  .title-container {
    position: relative;
    margin-top: -10px;
    margin-left: 3rem;
    margin-right: auto;
    font-size: 0.7rem;
  }
  .header-title {
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: none;
  }
  .expense {
    margin: 0;
    padding: 0;
    list-style-position: inside;
  }

  .expense button {
    margin-left: 10px;
  }

  .expense-tracker-container {
    position: relative;
    top: -32%;
    width: 60%;
    height: 15%;
    line-height: 0%;
    margin-right: 45%;
  }
  #expensesList {
    top: 65%;
    left: 15%;
    right: 50%;
    transform: translate(-60%, 70%);
    width: 95vw;
    max-width: calc(100% - 10px);
    box-sizing: border-box;
    padding-right: 5px;
    overflow-wrap: break-word;
  }

  #totalExpense {
    position: absolute;
    margin-top: 28rem;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
  }

  #expenseDescription,
  #expenseAmount,
  #expenseCategory,
  #kulu {
    width: 100%;
  }
  #totalExpense {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .clipboarder-container {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 4rem;
    margin-bottom: 0;
  }

  #clipboarder {
    max-height: 70vh;
    width: 100vw;
  }
}
