*{
    margin: 0;
    box-sizing: border-box;
}

body{
    /* background-color: rebeccapurple; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container{
    /* background-color: orangered; */
    margin: 30px auto;
    width: 350px;
}

h1{
    letter-spacing: 2px;
}

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

.inc-exp-container{
    background-color: #fff;
    box-shadow: 0px 1px 2px #000;
    padding: 20px;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.inc-exp-container > div{
    flex: 1;
    text-align: center;
}
 .inc-exp-container > div:first-of-type{
    border-right: 1px solid #dedede;
 }
 .total-income{
    color: green;
 }
 .total-expense{
    color: red;
 }

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

 input[type = "text"],input[type="number"]{
    border: 1px solid whitesmoke;
    border-radius: 2px;
    font-size: 16px;
    padding: 10px;
    width: 100%;
 }

.addTransactionBtn{
    cursor: pointer;
    background-color: #9c88ff;
    box-shadow: 0px 1px 1px rgba(0,0,0,0.2);
    color: wheat;
    border: 0;
    display: block;
    font-size: 16px;
    margin: 10px 0 30px;
    padding: 10px;
    width: 100%;
}
.addTransactionBtn:active{
   background-color: #836cf7;
}
.addTransactionBtn:focus{
    outline: 0;
}

.delete-btn{
    position: absolute;
    opacity: 0;
}

.list{
    list-style-type: none;
    padding: 0;
}
.list li{
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0,2);
    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 #c03926
}

.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;
}