html { height: 100%; margin: 0; padding: 0; } body { background-image: url("bg.jpg"); height: 100%; margin: 0; padding: 0; } .panel { height: 60%; margin-left: 15%; margin-right: 15%; margin-top: 15%; font-size: 15px; text-align: center; text-decoration: none; outline: none; color: #000000; background-color: #9e79c0; border: none; border-radius: 15px; box-shadow: 0 9px 9px 9px #55335c; } .content { margin-top: -10%; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); } .input { max-width: 15%; min-width: 15%; color: #000000; background-color: #ffffff; border: none; border-radius: 15px; padding: 3px; text-align: center; } .result { max-width: 15%; min-width: 15%; color: #000000; background-color: #ffffff; border: none; border-radius: 15px; padding: 3px; text-align: center; margin-right: 3px; } .change { border: none; background-color: #9e79c0; cursor: pointer; } .change:active { border: none; background-color: #55335c; } .convert { padding: 10px 20px; text-align: center; text-decoration: none; outline: none; color: #000000; background-color: #a925c4; border: none; border-radius: 15px; box-shadow: 0 9px #7e5683; border: none; cursor: pointer; } .convert:active { border: none; background-color: #7e5683; } .myTitle { padding-bottom: 10%; } input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance: textfield; appearance: textfield; } select { max-width: 48px; font-size: x-small; }