#contact { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--background-color-2); } #contact h2 { margin-bottom: 5rem; } #contact-form { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 80%; } #contact input[type=text], #contact input[type=email] { width: 100%; max-width: 25rem; } #contact textarea { width: 100%; } .contact-radio-container { display: flex; flex-direction: row; } .contact-radio-item { display: flex; flex-direction: column; margin:1rem; } #contact label { margin-bottom:0.5rem; } #contact h4 { margin-top:2rem; } @media only screen and (max-width: 500px) { #contact-form { width: 90%; } }