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

body {
    background-color: hsl(28, 79%, 87%);
    font-family: 'DM Sans', sans-serif;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: left;
    max-width: 400px;
    margin: auto;
    background-color: hsl(26, 66%, 93%);
    padding: 20px;
    border-radius: 10px;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 30px;
    max-width: 400px;
    margin: auto;
    background-color: hsl(10, 79%, 65%);
    color: white;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    margin-top: 60px;
    min-height: 100px;
}

.balance__label {
    font-size: 18px;
}

.balance__amount {
    font-weight: 600;
}

.spending__title {
    font-size: 30px;
    font-weight: 500;
    color: hsl(25, 47%, 15%);
}

.chart-bar {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: flex-end;
    margin-top: 60px;
    cursor: pointer;
}

.monday-bar {
    height: 70px;
    background-color: hsl(10, 79%, 65%);
    width: 40px;
    border-radius: 6px;
}

.tuesday-bar {
    height: 120px;
    background-color: hsl(10, 79%, 65%);
    width: 40px;
    border-radius: 6px;
}

.wednesday-bar {
    height: 190px;
    background-color: hsl(186, 34%, 65%);
    width: 40px;
    border-radius: 6px;
}

.thursday-bar {
    height: 100px;
    background-color: hsl(10, 79%, 65%);
    width: 40px;
    border-radius: 6px;
}

.friday-bar {
    height: 85px;
    background-color: hsl(10, 79%, 65%);
    width: 40px;
    border-radius: 6px;
}

.saturday-bar {
    height: 150px;
    background-color: hsl(10, 79%, 65%);
    width: 40px;
    border-radius: 6px;
}

.sunday-bar {
    height: 95px;
    background-color: hsl(10, 79%, 65%);
    width: 40px;
    border-radius: 6px;
}

.chart-bar div:hover {
    opacity: 0.8;
}

.chart-bar__labels {
    display: flex;
    gap: 29px;
    margin-left: 3px;
    margin-top: 10px;
    color: hsl(28, 10%, 53%);
}

.divider {
    max-width: 100%;
    background-color: hsl(28, 79%, 87%);
    height: 3px;
    margin-top: 35px;
}

.card__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.total__label, .comparison__label {
    color: hsl(28, 10%, 53%);
    font-size: 20px;
}

.total__amount {
    font-size: 35px;
    font-weight: 600;
    color: hsl(25, 47%, 15%);
}

.comparison {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
}

.comparison__value {
    color: hsl(25, 47%, 15%);
    font-size: 25px;
    font-weight: 600;
}

#amount1, #amount2, #amount3, #amount4, #amount5, #amount6, #amount7 {
    position: absolute;
    display: none;
}

#amount1.active, #amount2.active, #amount3.active, #amount4.active, #amount5.active, #amount6.active, #amount7.active {
    display: block;
    background-color: hsl(25, 47%, 15%);
    color: hsl(26, 66%, 93%);
    transform: translateY(-35px) translateX(-6.1px);
    max-width: 55px;
    padding: 3px;
    z-index: 1;
    text-align: center;
    border-radius: 3px;
}