html { height: 100%; margin: 0; padding: 0; } body { background-image: url("bg.jpg"); background-repeat: no-repeat; background-position: center; background-size: cover; height: 100%; margin: 0; padding: 0; border: 1px solid transparent; } .panel { height: 60%; min-height: 192px; margin-left: 15%; margin-right: 15%; margin-top: 20%; font-size: 15px; text-align: center; text-decoration: none; outline: none; color: #000000; background-color: #9e79c0; 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; }