@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
}
p{
    font-size: 18px;
    color: var(--Dark-brown);
}
: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%);
    --f400:400;
    --f700:700;
}
body{
    min-height: 100vh;
    background-color: var(--Cream);
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:5px 0;
}
.main-container{
   width: 90%;
   max-width: 450px;
}
.inner-container1{
    display: flex;
    flex-direction: column;
    gap:30px
}
.balance{
    padding:20px 30px;
    background-color: var(--Soft-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
}
.my-b >p{
    font-size: 16px;
    color: var(--Very-pale-orange);
}
.my-b>h2{
    font-size: 1.8rem;
    color: var(--Very-pale-orange);
}
.content-chart{
    padding:20px 30px;
    background-color: var(--Very-pale-orange);
    display: flex;
    flex-direction: column;
    gap:20px;
    border-radius: 20px;
}
h2{
    color: var(--Dark-brown);
}
.line{
    height: 1px;
    background-color: lightgray;
}
.total-amount{
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap:30px;
}
.this-month>h1{
    font-size: 2rem;
    color: var(--Dark-brown);
}
.last-month{
    display: flex;
    flex-direction: column;
}
.last-month>h3{
    align-self: flex-end;
    color:var(--Dark-brown)
}
.last-month>p{
    text-align: center;
}
.e-chart{
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 200px;
}
.chart{
    display: flex;
    flex-direction: column;
    gap:5px;
}
.days{
    display: flex;
    justify-content: space-between;
}
.bar-div{
    width: 12.5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    position: relative;

}
.barp{
    letter-spacing: 1px;
    text-align: center;
    width: 12.5%;
    color: var(--Dark-brown);
    align-self: center;
}
.bar{
    height: 10px;
    background-color: var(--Soft-red);
    border-radius: 5px;
    transition: height 1.5s ease-out;
}

.bar:hover{
    cursor:pointer;
    opacity: .7;
}



.rand{
    padding:1rem 2.5rem;
    font-size: 1.2rem;
    font-weight:700;
    border-radius: 10px;
    border-style: none;
    color: white;
    background-color: var(--Cyan);
    border: 3px solid var(--Cyan);
    transition: all 300ms ease-in-out;
}
.rand:hover{
    background-color: white;
    color: var(--Cyan);
    border: 3px solid var(--Cyan);
}

.show{
    width:fit-content;
    color: var(--Very-pale-orange);
    background-color: var(--Dark-brown);
    padding: 5px;
    border-radius: 5px;
    position:absolute;
    left: 50%;
    transform: translate(-50%,-135%);
    z-index: 3;
}
.show>h3{
    font-size: 1rem;
}
.sharp{
    width: 10px;
    height: 10px;
    background-color: var(--Dark-brown);
    rotate: 45deg;
    position: absolute;
    transform: translate(-50%,0);
    left: 50%;
    top: 90%;
}
.dontdisplay{
    display: none;
}












@media(width < 500px){
    p{
        font-size: 14px;
    }
    .this-month>h1{
        font-size: 1.8rem;
    }
    .last-month>h3{
        font-size: 1rem;
    }
    .rand{
        font-size: 1rem;
    }
}
@media(width < 340px){
    .total-amount{
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

