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

body {
    font-family: 'Lato',sans-serif;
    text-align: center;
}

.budget_container {
    height: 40vh;
    background-image:  linear-gradient(to right bottom, rgba(0,0,0,.6),rgba(0,0,0,.6)), url(background.jpg);
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input_container {
    height: 10vh;
    background-color: #f3eaea;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #999;
}

.budget {
    color: #f1eeee;
}

.budget_heading {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: .5rem;
}

.budget_total {
    font-size: 3rem;
    margin-bottom: 1rem;

    }

.budget_income {
    background-color: teal;
    padding: 1rem 0;
    margin-bottom: .5rem;
}

.budget_expenses {
    background-color: #da1f1f;
    padding: 1rem 0;
}

.budget-text {
    display: inline-block;
}

.main_container {
    height: 50vh;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    margin-top: 3rem;
}

.input {
    font-size: 1rem;
    padding: .5rem;
    border-radius: .2rem;
    border: 1px solid #c9c3c3;
    margin-right: 1rem;

}

.description {
  
    width: 20%;
}

.input:focus {
    border: 1px solid teal;
}

.value {
    width: 6%;
}

.submit {
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform .3s;
}

.submit:hover {
    transform: translateZ(0) scale(1.1);
}

.heading {
    text-transform: uppercase;
    font-weight: 400;

}

.income_heading {
    color: teal;
}

.expenses_heading {
    color: #da1f1f;
}

.item_container {
    width: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    font-size: 1.5rem;
    border-radius: .3rem;
    margin-top: 2rem;
    padding: 1rem 0;
    position: relative;

}

.item_container:nth-child(2) {
    background-color: #eee6e6;
}



.item_container:hover .delete {
    opacity: 1;
    visibility: visible;
}

.item_container:hover .item_value {
    margin-right: 1rem;
}

.income {
    border: 1px solid teal;
}
.expense {
    border: 1px solid #da1f1f;
}

.delete {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transition: all .3s;
    right: 1rem;
    cursor: pointer;

}

.item_description {
}

.item_value {
    transition: all .3s;
}