:root { font-size: 16px; } .blue-bg { background-color: #40a9e3; } .black-bg { background-color: black; } .red-bg { background-color: #d1240c; } .green-bg { background-color: #5cab06; } h1.generic-header { line-height: 6rem; font-size: 7rem; text-transform: uppercase; } @media only screen and (max-width: 1068px){ h1.generic-header { font-size: 10vw; line-height: 12vw; } }