
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    background-color: #f7f7f7;
}
.main-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0px 20px;
}
.expense-tacker-section{
    margin: 20px 0;
}
.income-expense{
    background-color: #fff;
    box-shadow:0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: grid;
    grid-template-columns: 0.5fr 0.5fr;
    margin: 20px 0;
}
.income{
    justify-self: center;
    padding: 10px;
}
#income-currency{
    color:#2ecc71;
    font-size: 20px;
    letter-spacing: 1px;
    margin: 5px 0;
}
#expense-currency{
    color:#c0392b;
    font-size: 20px;
    letter-spacing: 1px;
    margin: 5px 0;
}
.expense{
    justify-self: center;
    padding: 10px;
}
#history{
    border-bottom: 1px solid #bbb;
    padding: 10px 0;
    font-weight:bold;
    font-size: 1.17em;
}
#new_transaction{
    border-bottom: 1px solid #bbb;
    padding: 10px 0;
    font-weight:bold;
    font-size: 1.17em;
}
label {
    display: inline-block;
    margin: 10px 0;
    font-weight: 500;
  }
  
  input[type='text'],
  input[type='number'] {
    border: 1px solid #dedede;
    border-radius: 2px;
    display: block;
    font-size: 16px;
    padding: 10px;
    width: 100%;
  }
  
  .btn {
    cursor: pointer;
    background-color: #9c88ff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    color: #fff;
    border: 0;
    display: block;
    font-size: 16px;
    margin: 10px 0 40px;
    padding: 10px;
    width: 100%;
  }
  
  .btn:focus,
  .delete-btn:focus {
    outline: 0;
  }
  .list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 40px;
  }
  .list li {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    color: #333;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 10px;
    margin: 10px 0;
  }
  .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;
  }


