/*
*
* ===  MAIN CSS  ===
*
*/

*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }

html { margin: 0; padding: 0; min-height: 100%; max-width: 100%; overflow-x: hidden; } 
body { margin: 0; padding: 0; min-height: 100%; max-width: 100%; overflow-x: hidden; background: rgb(255, 255, 255); background: radial-gradient(circle, rgb(255, 255, 255) 30%, rgb(174, 176, 179) 100%); }

main { display: flex; justify-content: center; padding-top: 100px;}

article { margin: 20px; max-width: 300px; }
aside { margin: 20px; width: 400px; background-color: rgba(255, 255, 255, 0.8); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); position: relative; }
.container { padding: 20px; }
aside .container { margin-bottom: 80px; }

h2 { color: #4e6c87; font-size: 30px; margin: 20px; margin-bottom: 0; }

#registerContainer, #registerAdd { display: flex; flex-wrap: wrap; justify-content: space-between; }
#registerContainer input { font-size: 16px; background-color: rgba(0, 0, 0, 0.1); padding: 10px 15px; margin-top: 10px; border-radius: 5px; width: 100%; border: none; cursor: pointer; text-align: left; }
#registerContainer input:hover { box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6); }
#registerContainer .itemContainer { display: flex; flex-direction: row; width: 100%; justify-content: space-between; }
#registerContainer .itemContainer input:last-child { width: 12%; text-align: center; margin-left: 10px; background-color: rgb(189, 209, 224); }
#registerAdd { background-color: rgb(133, 164, 181); padding: 20px; position: absolute; bottom: 0; width: 100%; display: flex; flex-wrap: nowrap; justify-content: space-between; }
#registerAdd input { min-width: 20%; max-width: 25%; padding: 10px; border: none; text-align: right; }
#registerAdd input:hover { cursor: pointer; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6); }
#registerAdd input:focus { outline: none; border: none; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6); }
#registerAdd input:first-child { max-width: 50%; }
#registerAdd input:last-child { max-width: 20%; text-align: center; }
#registerAdd input[type=number], input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; -moz-appearance: textfield; }

#calculatorContainer { display: flex; flex-wrap: wrap; justify-content: space-between; }
#calculatorContainer input { font-size: 20px; background-color: rgba(255, 2550, 255, 1); padding: 10px 15px; margin-top: 10px; border-radius: 5px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); border: none; width: 23%; cursor: pointer; }
#calculatorContainer input.method { background-color: rgb(189, 209, 224); }
#calculatorContainer input.method:last-child { background-color: rgb(133, 164, 181); }
#calculatorContainer input:hover { box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6); }
#calculatorContainer input:first-child { width: 74%; text-align: right; }
#calculatorContainer input[type=number]:focus { border: none; outline: none; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.6); }
#calculatorContainer input[type=number] { -webkit-appearance: none; -moz-appearance: textfield; }


/*
*
* ===  MEDIA QUERIES  ===
*
*/

@media (max-width: 800px) {
  main { flex-direction: column; align-items: center; padding-top: 20px; }
  aside { max-width: 300px; }
  #registerContainer .itemContainer input:last-child { width: 15%; }
}
