:root {
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Increased shadow for a more pronounced effect */
  --button-color: #e9ef8f; /* Button background color */
  --button-hover-color: #b1af14; /* Button hover color */
  --background-color: #f0f4f8; /* Soft background color */
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--background-color); /* Apply new background color */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #c4ffdd;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

header {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  background-color: rgba(91, 186, 75, 0.9);
  font-size: 17px;
  position: fixed;
  top: 0%;
}

h1 {
  letter-spacing: 2px;
  margin: 0;
  color: rgb(235, 235, 235);
  font-size: 15px; /* Decreased header size */
}

.container {
  margin: 30px auto;
  width: 600px; /* Increased width of the box */
  flex: 1; /* Allow the container to grow */
  background-color: white; /* Background for the container */
  padding: 20px; /* Padding around the container */
  border-radius: 10px; /* Rounded corners */
  box-shadow: var(--box-shadow); /* Box shadow */
}


h3 {
  border-bottom: 1px solid #bbb;
  padding-bottom: 10px;
  margin: 40px 0 10px;
}

.inc-exp-container {
  background-color: white;
  box-shadow: var(--box-shadow); /* Apply shadow */
  padding: 20px;
  display: flex;
  justify-content: center;
  margin: 20px 0;
  border-radius: 10px; /* Rounded corners */
}

.inc-exp-container > div {
  flex: 1;
  text-align: center;
}

.inc-exp-container > div:first-of-type {
  border-right: 1px solid #dedede;
}

.money {
  font-size: 2;
  letter-spacing: 1px;
  margin: 5px 0;
}

.money-plus {
  color: #2ecc71;
  font-weight: bold;
  font-size: large;
}

.money-minus {
  color: #c0392b;
  font-weight: bold;
  font-size: large;
}

label {
  display: inline-block;
  margin: 10px 0;
}

input[type="text"],
input[type="number"] {
  border: 1px solid #dedede;
  border-radius: 5px; /* Slightly rounded corners */
  display: block;
  font-size: 16px;
  padding: 10px;
  width: 100%;
}

.btn {
  cursor: pointer;
  background-color: var(--button-color); /* Use variable for button color */
  color: #fff;
  border: none; /* Remove border */
  border-radius: 5px; /* Rounded corners */
  display: block;
  font-size: 16px;
  margin: 10px 0 30px;
  padding: 10px;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s; /* Smooth transition for hover effects */
}

.btn:hover {
  background-color: var(--button-hover-color); /* Change button color on hover */
  transform: translateY(-2px); /* Slight lift effect on hover */
}

.btn:focus,
.delete-btn:focus {
  outline: 0;
}

.list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 40px;
}

.list li {
  background-color: #fff;
  box-shadow: var(--box-shadow); /* Apply shadow */
  color: #333;
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px; /* Rounded corners for list items */
}

.list li.plus {
  border-right: 5px solid #2ecc71;
}

.list li.minus {
  border-right: 5px solid #c0392b;
}

.delete-btn {
  cursor: pointer;
  background-color: #e74c3c;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 20px;
  padding: 2px 5px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-100%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.list li:hover .delete-btn {
  opacity: 1;
}

footer {
  position: fixed; /* Fixed position */
  bottom: 0; /* Aligns the footer to the bottom of the viewport */
  left: 0; /* Aligns the footer to the left edge */
  width: 100%; /* Full width */
  padding: 10px 0; /* Vertical padding */
  text-align: center; /* Center text */
  background-color: rgba(91,186,75, 0.9); /* Background color */
}

footer p {
  margin: 0; /* Remove default margin */
  font-size: 9px; /* Font size */
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
