.diagrams-section__container { display: flex; justify-content: center; flex-direction: column; text-align: center; } .myChart { margin-bottom: 20px; padding: 10px; border-radius: 15px; border: 1px solid rgb(245, 245, 245); transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); } .myChart:hover { box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); } .caption { margin: 0 auto 40px auto; font-size: 12px; } @media (max-width: 670px) { .diagrams-section__container { width: 90vw; } }