.parent { animation: fadeInAnimation ease 0.5s; animation-iteration-count: 1; animation-fill-mode: forwards; } @keyframes fadeInAnimation { 0% { opacity: 0; } 100% { opacity: 1; } } .parent{ display: flex; .row{ align-items: center; justify-content: space-between; --bs-gutter-x:0; .card{ margin-top: 2vh; margin-bottom: 2vh; } } h1{ margin: 0; padding-bottom: 1.5vw; } } @media screen and (max-width: 400px) { } @media screen and (max-height: 400px) { .parent{ display: grid; } }