: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%);
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Epilogue:ital,wght@0,100..900;1,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&family=Space+Grotesk:wght@300..700&display=swap');

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

body {
    font-family: "DM Sans", sans-serif;
    background: var(--Cream);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    width: 100%;
    font-size: 18px;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center ;
    margin-bottom: 10px;
    justify-content: space-between;
    background-color: var(--Soft-red);
    width: 350px;
    padding: 1em;
    border-radius: 8px;
    & .balance {
        color: var(--Very-pale-orange);
        & p {
            font-size: 10px;
            margin-bottom: 5px;
        }
    }
    & > img {
        width: 45px;
    }
}

section {
    width: 350px;
    height:370px;
    background-color: var(--Very-pale-orange);
    border-radius: 8px;
    padding: 1em;
    & > h3 {
        color: var(--Dark-brown);
        font-size: 20px;
        margin-bottom: 10px;
    }

    .charts {
        height: 60%;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        color:var(--Medium-brown);
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 20px;
        border-block-end:2px solid var(--Cream);
        gap: 10px;
        & .day {
            width:calc(100% / 7);
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            cursor: pointer;
            &:hover .hov {
                display: block;
            }
            &:hover .rect {
                opacity: .5;
            }
            & .hov {
                position: absolute;
                width:50px;
                top: -30px;
                padding: 5px 7px;
                text-align: center;
                border-radius: 3px;
                color: var(--Very-pale-orange);
                font-size: 12px;
                left: 50%;
                background-color: var(--Dark-brown);
                transform: translateX(-50%);
                display: none;
            }
            & .rect {
                background-color: var(--Soft-red);
                width: 100%;
                height: 20px;
                border-radius: 5px;
                transition: .3s;
            }
        }
    }

    & .footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 20px;
        & span {
            color: var(--Medium-brown);
            font-size: 10px;
        }
        & h3 {
            color: var(--Dark-brown);
            font-weight: 600;
            font-size: 24px;
        }
        & div:nth-child(2) {
            align-self: flex-start;
        }
        & div:nth-child(2) {
            text-align: right;
            align-self: flex-end;
            & h3 {
                font-size: 11px;
            }
        }
    }
}