.animated-graph-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.graph-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
}

.animated-graph {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 260px;
    padding: 10px;
}

/* BAR ANIMATION */
.bar {
    width: 14%;
    background: linear-gradient(to top, #75B833, #a6dd65);
    height: 0%;
    border-radius: 12px 12px 0 0;
    position: relative;
    display: flex;
    justify-content: center;
    animation: grow 1.4s ease forwards;
}

/* Animation delays for each bar */
.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }

/* Grow animation */
@keyframes grow {
    to {
        height: var(--value);
    }
}

.bar:hover {
    opacity: 0.85;
    transform: scale(1.03);
    transition: 0.3s;
}

.bar span {
    position: absolute;
    bottom: -45px;
    font-size: 13px;
    text-align: center;
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .animated-graph {
        height: 200px;
        gap: 6px;
    }

    .bar span {
        font-size: 10px;
        bottom: -38px;
    }

    .graph-title {
        font-size: 18px;
    }
}
