@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,600;0,700;1,100;1,200;1,300&display=swap');
*{
    font-family: 'Poppins', sans-serif;
    margin:0;
}
body{
    background:url(https://i.pinimg.com/originals/3f/14/65/3f14658c6d3b248a1aaa10916e85658c.jpg); 
    width:100%;
    height:140vh;
    background-position: center;
    background-size: contain;
}
.container{
    width:100%;
}
.bal{
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: left;
    margin-left:30px;
}
h4.YB{
    font-size: 30px;
    font-weight: 600;
    margin:0
}
.head{
    font-size:40px;
    margin:0;
    font-weight: 100;
    margin-top:10px;
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center;

}
.container{
    margin-top:15px;
    display: flex;
    flex-direction: column;
    width:97%;
    align-items: center;
}
h4{
    font-size:25px;
    font-weight: 600;
    width:90%;
}
div.bal{
    width:90%;
}
#balance{
    font-size: 35px;
    font-weight: 700;
    align-self: left;
    width:90%;
}
.inc-exp{
    width:90%;
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius:10px;
    margin:20px;
    background: rgba( 221, 148, 148, 0.25 );
    box-shadow: 0 8px 32px 0 rgba(213, 107, 107, 0.37);
    backdrop-filter: blur( 10px );
    -webkit-backdrop-filter: blur( 17.5px );
    border-radius: 10px;
}
.inc-exp>:is(.inc,.exp){
    margin:20px;
}
.inc>p{
    color:#2ecc71;
    font-weight: 500;
}
.exp>p{
    color:#c0392b
}
.inc{
    border-right:1px solid rgb(145, 145, 145);
    padding-right: 35px;
}
.hist{
    width:85%;
    float: left;
    font-size: 25px;
    border-bottom:1px solid rgb(145, 145, 145);
    padding-bottom:5px;
}
.amt{
    
    width:100%;
    padding:5px;
    border-radius:3px;
}
ul{
    list-style-type: none;
    display: flex;
    justify-content: left;
    width:90%;
    margin-top:10px;
    flex-direction: column;
}
li{
    display: flex;
    width:90%;
    padding:5px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    justify-content: space-between;
    animation-duration: 0.5s;
    animation-name: animate-fade;
    animation-delay: 0.5s;
    animation-fill-mode: backwards;
    margin-bottom:10px;

}
@keyframes animate-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
li.minus{
    border-right:#c0392b 5px solid;
    border-radius: 5px;
}
li.plus{
    border-right:5px solid #2ecc71
}
span{
    float: right;
    margin-right:10px;
}
.del-btn{
    background:#e74c3c;
    border:0;
    color:#fff;
    margin-right:10px;
}
.money{
    font-size:20px;
}
.newtransc{
    margin-top:20px;
    margin-bottom:10px;
    width:85%;
    float: left;
    font-size: 25px;
    border-bottom:1px solid rgb(145, 145, 145);
    padding-bottom:5px;
}
label{
    margin:10px 0;
    display: inline-block;
}
form{
    width:90%
}
.form-control{
    display: flex;
    flex-direction: column;
    width:100%;
}
input[type="text"],input[type="number"]{
    margin:5px;
    border:3px solid #dedede;
    display:block;
    font-size:16px;
    padding:10px;
    width:90%;
}
.btn{
    width:100%;
    margin-top:10px;
    padding:10px;
    margin-left:5px;
    border:3px solid #dedede;
    background:rgb(89, 89, 255);
}

@media only screen
and (min-device-width : 320px) and (max-device-width : 480px) {
    body{
        background:url(https://i.pinimg.com/originals/3f/14/65/3f14658c6d3b248a1aaa10916e85658c.jpg); 
        width:100%;
        height:140vh;
        background-position: center;
        background-size: contain;
    }
    .container{
        width:100%;
    }
    .bal{
        width:100%;
        display: flex;
        flex-direction: column;
        justify-content: left;
        margin-left:30px;
    }
    h4.YB{
        font-size: 30px;
        font-weight: 600;
        margin:0
    }
    .head{
        font-size:40px;
        margin:0;
        font-weight: 100;
        margin-top:10px;
        width:100%;
        display: flex;
        justify-content: center;
        align-items: center;

    }
    .container{
        margin-top:15px;
        display: flex;
        flex-direction: column;
        width:97%;
        align-items: center;
    }
    h4{
        font-size:25px;
        font-weight: 600;
        width:90%;
    }
    div.bal{
        width:90%;
    }
    #balance{
        font-size: 35px;
        font-weight: 700;
        align-self: left;
        width:90%;
    }
    .inc-exp{
        width:90%;
        display:flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        border-radius:10px;
        margin:20px;
        background: rgba( 221, 148, 148, 0.25 );
        box-shadow: 0 8px 32px 0 rgba(213, 107, 107, 0.37);
        backdrop-filter: blur( 10px );
        -webkit-backdrop-filter: blur( 17.5px );
        border-radius: 10px;
    }
    .inc-exp>:is(.inc,.exp){
        margin:20px;
    }
    .inc>p{
        color:#2ecc71;
        font-weight: 500;
    }
    .exp>p{
        color:#c0392b
    }
    .inc{
        border-right:1px solid rgb(145, 145, 145);
        padding-right: 35px;
    }
    .hist{
        width:85%;
        float: left;
        font-size: 25px;
        border-bottom:1px solid rgb(145, 145, 145);
        padding-bottom:5px;
    }
    .amt{
        
        width:100%;
        padding:5px;
        border-radius:3px;
    }
    ul{
        list-style-type: none;
        display: flex;
        justify-content: left;
        width:90%;
        margin-top:10px;
        flex-direction: column;
    }
    li{
        display: flex;
        width:90%;
        padding:5px;
        background-color: white;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        justify-content: space-between;
        animation-duration: 0.5s;
        animation-name: animate-fade;
        animation-delay: 0.5s;
        animation-fill-mode: backwards;
        margin-bottom:10px;

    }
    @keyframes animate-fade {
        0% { opacity: 0; }
        100% { opacity: 1; }
      }
    li.minus{
        border-right:#c0392b 5px solid;
        border-radius: 5px;
    }
    li.plus{
        border-right:5px solid #2ecc71
    }
    span{
        float: right;
        margin-right:10px;
    }
    .del-btn{
        background:#e74c3c;
        border:0;
        color:#fff;
        margin-right:10px;
    }
    .money{
        font-size:20px;
    }
    .newtransc{
        margin-top:20px;
        margin-bottom:10px;
        width:85%;
        float: left;
        font-size: 25px;
        border-bottom:1px solid rgb(145, 145, 145);
        padding-bottom:5px;
    }
    label{
        margin:10px 0;
        display: inline-block;
    }
    form{
        width:90%
    }
    .form-control{
        display: flex;
        flex-direction: column;
        width:100%;
    }
    input[type="text"],input[type="number"]{
        margin:5px;
        border:3px solid #dedede;
        display:block;
        font-size:16px;
        padding:10px;
        width:90%;
    }
    .btn{
        width:100%;
        margin-top:10px;
        padding:10px;
        margin-left:5px;
        border:3px solid #dedede;
        background:rgb(89, 89, 255);
    }
}
