.centered { position: absolute; top: 50%; left:50%; transform: translate(-50%,-50%); } .padded { padding: 5%; } body{ background-color: lightgray; transition: all 0.5s ease 0s; } .correct{ background-color: greenyellow; } .wrong{ background-color: red; } .question-size{ font-size: 1000%; color: white; } .answer-size{ font-size: 200%; height: auto; width: 100%; text-align: center; } .help-size{ font-size: 200%; color: white; } .hidden{ display: none; } .navbar-text > a > img{ max-height: 26px; }