main { display: grid; grid-template-rows: auto 2fr; justify-content: center; width: 100%; margin-top: 5%; } h1 { display: grid; justify-self: center; color: white; } .details_box { display: grid; color: white; border-style: solid; border-width: thin; border-color: rgba(0, 0, 0, 0.3); padding: 10%; background-color: rgba(0, 0, 0, 0.1); height: auto; margin-bottom: 5%; border-radius: 2%; }