:root {
    --Soft-red: hsl(10, 79%, 65%);
    --Cyan: hsl(186, 34%, 60%);
    --Dark-brown: hsl(25, 47%, 15%);
    --Medium-brown: hsl(28, 10%, 53%);
    --Cream: hsl(27, 66%, 92%);
    --Very-pale-orange: hsl(33, 100%, 98%);
}

* {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
}

body {
    background: var(--Cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
}

.balance {
    background-color: var(--Soft-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    padding: 10px 20px 10px 20px;
    width: 18rem;
    height: 3rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--Cream);
}

.balance h1 {
    font-size: 10px;
    margin-bottom: 5px;
}

.balance h3 {
    font-size: 18px;
}

.balance img {
    width: 45px;
}

.spending {
    padding: 20px;
    border-radius: 10px;
    background: var(--Very-pale-orange);
    color: var(--Dark-brown)
}

.spending h1{
    margin-bottom: 30px;
    font-size: 22px;
}

.monthBalance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0.5px solid var(--Medium-brown);
    margin-top: 1rem;
    padding-top: 1rem;
}

.monthBalance h3 {
    color: var(--Medium-brown);
    font-size: 10px;
}

.last h2 {
    text-align: end;
    font-size: 10px;
}

.total h2 {
    font-size: 30px;
}

@media screen and (max-width: 640px) {

    .balance {

        width: 15rem;
        height: 3rem;

    }

    .spending {

        width: 15rem;
        height: 15rem;

    }

}
