/* 
    green: #28b9b5
    red: #e74c3c
*/

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

html {
    font-size: 62.5%;
}

body {
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}


/*-------------------------------------*/
/* Top and bottom container */
/*-------------------------------------*/
.budget {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/*-------------------------------------*/
/* Header */
/*-------------------------------------*/
.top {
    background-image: linear-gradient(to bottom right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("/img/budget/background.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    height: 35vh;
}

/* */
.budget-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    display: flex;
    flex-direction: column;
    row-gap: 1.4rem;
}

.budget-heading__available-in {
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1;
}

.budget-heading__month {}

.budget-heading__total {
    font-size: 4.6rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 1px;
}

.budget-heading__box {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem;
    font-size: 1.6rem;
    font-weight: 400;
}

.budget-heading__box--green {
    background-color: #28b9b5;
}

.budget-heading__box--red {
    background-color: #e74c3c;
}

.budget-heading__box-title {}

.budget-heading__box-amount {}




/*-------------------------------------*/
/* Add bar + income and expense list */
/*-------------------------------------*/

.bottom {}

/*-------------------------------------*/
/* Add bar */
/*-------------------------------------*/

.add {
    padding: 1.2rem;
    border-bottom: 1px solid #e7e7e7;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    column-gap: 0.8rem;
    align-items: center;
}

.add__type {
    background-color: white;
}

.add__input {
    border: solid 1px #e7e7e7;
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
    border-radius: 5px;
    transition: all 0.2s;
    color: #333;
}

.add__input::placeholder {
    color: #aaa;
}

.add__input:focus {
    border: solid 1px #28b9b5;
    outline: none;
}

.add__input--red:focus {
    border: solid 1px #e74c3c;
    outline: none;
}

.add__description {}

.add__value {
    width: 15rem;
}

.add__btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    ;
}

.add__btn:active {
    transform: translateY(1px);
}

.add__icon {
    color: #28b9b5;
    font-size: 3rem;
    visibility: visible;
}

.add__icon--red {
    color: #e74c3c;
}

/*-------------------------------------*/
/* Income/expense list */
/*-------------------------------------*/

.lists {
    max-width: 114rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.amount-list {
    padding: 2rem 2rem;
}

.amount-list__heading {
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.amount-list__heading--green {
    color: #28b9b5;
}

.amount-list__heading--red {
    color: #e74c3c;
}

.amount-list__list {
    display: flex;
    flex-direction: column;
}

.amount-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e7e7e7;
    padding: 1.5rem 1rem;
    font-size: 1.6rem;
}

.amount-list__item:first-child {
    border-top: 1px solid #e7e7e7;
}

.amount-list__item:nth-child(even) {
    background-color: #f7f7f7;
}

.amount-list__description {}

.amount-list__details {
    display: flex;
    align-items: center;
    column-gap: 1.2rem;
}

.amount-list__details--green {
    color: #28b9b5;
}

.amount-list__details--red {
    color: #e74c3c;
}

.amount-list__detail-group {
    display: flex;
    column-gap: 1rem;
    align-items: center;
    transform: translateX(2.5rem);
    transition: all 0.2s;
}

.amount-list__item:hover .amount-list__detail-group {
    transform: translateX(0);
}

.amount-list__percentage {
    background-color: #fadbd8;
    padding: 0.2rem 0.8rem;
    font-weight: 400;
    border-radius: 5px;
    font-size: 1.4rem;
}

.amount-list__delete-icon {
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    font-size: 2rem;
}

.amount-list__delete-icon:active {
    transform: translateY(1px)
}

.amount-list__item:hover .amount-list__delete-icon {
    opacity: 1;
}