* {margin: 0%; padding: 0; box-sizing: border-box;}
:root {
    --base: white;
}
body {
    height: 100vh;
    background: linear-gradient(to right,rgb(36, 35, 35), var(--base));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: sans-serif;
}

/* SAIF START-------------------------------------------------------- */
.saif {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.719);
    z-index: 20;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-size: 18px;
}
.saif p:nth-child(1) {
    font-size: 2vw;
    margin-bottom: 20px;
    transition: all 1s cubic-bezier(.34,2.38,.22,1);
}
.saif p:nth-child(2) {
    font-size: 5vw;
}
.saif p:nth-child(3) {
    font-size: 7vw;
    margin-bottom: 20px;
}

.animateBudget {
    animation-name: animatebudget;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.55,.91,0,1.77);
}

@keyframes animatebudget {
    0%{
    font-size: 2vw;
    }
    
    100%{
    font-size: 12vw;
    }
}
/* ----------------------------------------------------------- */


.container{ 
    position: absolute;
    /* bottom: 5vh; */
    background: rgba(0, 0, 0, 0.63);
    width: 100vw;
    height: 100vh;
    overflow: auto;
}

ul{
    height: 90vh;
}
li{
    color: white;
    background: rgba(0, 0, 0, 0.233);
    margin: 10px 0;
    border-radius: 0 2000px 2000px 0;
    width: 90vw;
    min-height: 65px;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.5rem;
    overflow: hidden;
   
}
.animateli {
    animation-name: AnimateLi;
    animation-duration: 0.3s;
}

@keyframes AnimateLi {
    from{width: 90vw; height: 65px;border-radius: 0 2000px 2000px 0;}
    to{width: 0; height: 0;border-radius: none;}
}

li p {
    font-size: 18px;

}

.fa-trash {
    /* font-size: 0.5rem; */
    /* border-right: 1px solid white; */
    padding: 10px 0;
    padding-right: 10px;
    margin-right: 10px;
    cursor: pointer;
    color: rgba(93, 95, 95, 0.74);
}
.fa-trash:hover {
    animation: trashAnimation 0.5s cubic-bezier(.63,.75,.16,1.56);
    animation-fill-mode: forwards;
}





.ex-name {
    /* background: blue; */
    padding: 10px;
    width: 50vw;
    border-right: 1px solid white;
    border-left: 1px solid white;
    
    margin-right: 10px;
    overflow-x: auto ;
}


/* add box and display ---------------------------------------------- */
.add-box, .add-box-opt {
    position: fixed;
    bottom: 0vh;
    right: 0vw;
    width: 100px;
    min-height: 100px;
    border-top: 2px solid white;
    box-shadow: -1px -1px 5px rgb(255, 255, 255);
}
.add-box {
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
    border-radius: 80% 0 0 0 ;

}
.fa-chevron-left {
    color: white;
    transform: rotate(50deg) translate(5px, 0px);
    transition: all 0.2s ease;
}
.add-box:active .fa-chevron-left {
    color: rgb(241, 21, 21);
    transform: rotate(-50deg) translate(5px, 0px);
}

.add-box-opt {
    width: 0px;
    height: 0px;
    border-radius: none;
}
.animate-add-box-open {
    animation: addboxanimateopen 0.1s;
    animation-fill-mode: forwards;
    border: none;
    background: rgb(7, 7, 7);

}
.animate-add-box-close {
    animation: addboxanimateclose 0.1s;
    animation-fill-mode: forwards;
    background: rgba(7, 7, 7, 0.76);
    border: none;

}
@keyframes addboxanimateopen {
    from{
        width: 0px;
        height: 100%;

    }
    to{
        width: 100%;
        height: 100%;
         
    }
}
@keyframes addboxanimateclose {
    from{
        width: 100%;
        height: 100%;
  
      }
      to{
          width: 0px;
          height: 0px;

    }
}
.add-box-opt{
    overflow: hidden;
}

.display-box {
    height: 20vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.486);
}
.budget-box {
    /* background: rgba(170, 127, 34, 0.212); */
    /* margin-left: 50px; */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* opacity: 0.2; */
    border-right: 1px solid rgba(255, 255, 255, 0.397);

}
.expense-box {
    /* background: rgba(158, 18, 18, 0.212); */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* opacity: 0.2; */
    border-right: 1px solid rgba(255, 255, 255, 0.397);

}
.balance-box {
    /* background: rgba(17, 211, 10, 0.212); */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* opacity: 0.2; */

}

.display-icons {
    color: rgb(255, 255, 255);
    opacity: 0.3;
}

.display-heading {
    position: fixed;
    top: 30px;
    color: white;
    font-size: 20px;
    text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.822);

}
.display-value {
    position: fixed;
    top: 65px;
    color: rgb(255, 255, 255);
    font-size: 27px;
    
    
}
.b {
    text-shadow: 1px 1px 4px rgb(207, 177, 6);
}
.e {
    text-shadow: 1px 1px 4px rgb(216, 10, 10);
}
.ba {
    text-shadow: 1px 1px 4px rgb(10, 241, 2);
}

/* add expense and change budget ------------------------------------ */

.change-budget {
    width: 100vw;
    height: 100px;
    display: flex;
    align-items: center;
    /* background: rgb(255, 255, 255); */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.486);
    border-bottom: 1px solid rgba(255, 255, 255, 0.486);
    margin-top: 10px;
    padding: 10px 0 10px 0;
}
.budget-change-val {
    width: 0vw;
    height: 50px;
    border: none;
    background: rgb(255, 255, 255);
    color: var(--base);
    text-shadow: 1px 1px 1px black;
    font-size: 20px;
    transition: all 0.5s ease;

    outline: none;
}

.change-budget-btn{
    border: none;
    background: var(--base);
    color: white;
    width: 60vw;
    height: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    transition: all 0.5s ease;
    font-size: 20px;
    cursor: pointer;
    outline: none;
}
.change-budget-btn:active {outline: none;}

.change-budget-label {
    transition: all 0.5s ease;
    width: 40vw;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fa-arrow-right {
    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(.63,.75,.16,1.56);
    transform: rotate(0deg);
}




/* for transitions */
.width-0 {
    width: 0vw;
    overflow: hidden;
}

.width-20vw {
    width: 20vw;
    justify-content: center;
}
.width-80vw {
    width: 80vw;
}
.rotate-90 {
    transform: rotate(-90deg);
}


/* Expense part */

.add-expense {
    align-items: center;
    /* background: rgb(255, 255, 255); */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.486);
    border-bottom: 1px solid rgba(255, 255, 255, 0.486);
    margin-top: 10px;
    padding: 20px 10px 10px 0px;

}
.add-expense p {
    font-size: 20px;
    margin-left: 10px;
}
.add-expense input {
    width: 100%;
    height: 40px;
    margin: 10px 0 10px 0;
    font-size: 20px;
    color: white;
    border-radius: 20px;
    border: none;
    border-bottom: 2px solid var(--base);
    background: transparent;
    padding: 10px;
}
.add-expense input:focus {
    border-bottom: 2px solid red;;
    
}
.add-expense-btn {
    width: 100%;
    height: 50px;
    border-radius: 20px;
    font-size: 23px;
    background: transparent;
    border: none;
    border-right: 2px solid var(--base);
    border-bottom: 2px solid var(--base);
    color: white;
    margin-top: 10px;
    padding: 10px;
    cursor: pointer;

}
.add-expense-btn:hover {
    border-right: 2px solid rgb(255, 0, 0);
    border-bottom: 2px solid rgb(255, 0, 0);
}
.add-expense-btn:Active {
    border: none;
}

/* !! animation */
.exAnimation {
    animation: trashAnimation 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}


@keyframes trashAnimation {
    0% {
        transform: rotate(0deg);
        color: rgba(93, 95, 95, 0.74);
    }
    25% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(-45deg);
    }
    75% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(0deg);
        color: rgba(255, 13, 13, 0.74)
    }
}

.empty-list {
    position: fixed;
    color: white;
    font-size: 50px;
    opacity: 0.5;
    text-shadow: 1px 1px 2px rgb(34, 33, 33);
}

.empty-list-animation {
    animation: emptyList 1s cubic-bezier(0.23, 1, 0.320, 1) infinite;
}
@keyframes emptyList {
    0%{
        width: 100px;
        height: 100px;
    }
    50% {
        width: 150px;
        height: 150px;
    }
    100%{
        width: 100px;
        height: 100px;
    }
}


/* hide arrows of number input */
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
 input, button{
     outline: none;
 }
 input:active, button:active {
     outline:none;
 }
input[type="number"] {
    -moz-appearance: textfield;
}

/* invisible */
.invisible {
    display: none;
}
.invisible2 {
    opacity: 0;
}