body{ width: 100%; font-size: 12px; font-family: Arial, Helvetica, sans-serif; } .container{ width: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; } .form{ display: flex; justify-content: center; flex-direction: column; align-items: center; margin-top: 25px; margin-bottom: 25px; width: 300px; height: 200px; background-color:#EEEFF1; border: 1px solid coral; } input{ outline: none; border: none; margin-bottom: 20px; } button{ outline: none; border: none; border: 2px solid white; cursor: pointer; width: 100px; height: 25px; background-color: coral; color: white; } #successBox{ width: 300px; height: 125px; background-color: chartreuse; display: none; margin: 0 auto; } #failureBox{ width: 300px; height: 125px; background-color: red; display: none; margin: 0 auto; } #successBox h1{ text-align: center; font-size: 48px; color: white; } #failureBox h1{ text-align: center; font-size: 48px; color: white; }