*, *::before, *::after{ box-sizing: border-box; font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; font-weight: normal; } body{ padding: 0; margin: 0; background: linear-gradient(to right, black, rgba(117, 0, 128, 0.719)); } .calculator-grid { display: grid; justify-content: center; align-content:center; min-height: 100vh; grid-template-columns: repeat(4,100px); grid-template-rows: minmax(120px, auto) repeat(5,100px); } .calculator-grid > button { cursor: pointer; font-size: 2rem; border: 1px solid white; outline: none; background-color:rgb(104, 104, 104) } .calculator-grid > button:hover { background-color: rgba(231, 179, 196, 0.897); } .span-two{ grid-column: span 2; } .output { grid-column: 1 / -1; background-color: rgba(22, 22, 22, 0.938); display: flex; align-items:flex-end; justify-content: space-around; flex-direction: column; padding: 10px; word-wrap: break-word; word-wrap: break-all; } .output .previous-operand{ color: rgb(233, 221, 221,.75); font-size: 1.5rem; } .output .current-operand{ color: white; font-size: 2.2rem; }