/* aligns everything to perfect center */
div.main {
    position:absolute;
    top:50%;
    left:50%;
    -ms-transform:translate(-50%,-50%);
    transform:translate(-50%,-50%);
    width:fit-content;
    width:-moz-fit-content;
    text-align: center;
}

/* styles the input field and convert button */
button.submit {
    width: 200px;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
}

input[type=number], select {
    width: 200px;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
    font-size: 20px;
}

button.submit:hover {
    background-color: #45a049;
}

/* sets box */
div.main {
    border-radius: 5px;
    background-color: #fafafa;
    padding: 20px;
    -webkit-box-shadow:0px 0px 25px 0px rgba(0,0,0,.9);
    -moz-box-shadow:0px 0px 25px 0px rgba(0,0,0,.9);
    box-shadow:0px 0px 25px 0px rgba(0,0,0,.9);
}

/* header styling */
h2 {
    text-align: center;
}
h1 span {
    font-size: 12pt;
}

/* hides the number up/down buttons */
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;
    margin: 0; 
}

/* Controls responsive for bigger displays */
@media only screen and (min-width: 600px) {
    div.main {
        zoom:1.25;
    }
}
@media only screen and (min-width: 1600px) {
    div.main {
        zoom: 1.5;
    }
}
@media only screen and (min-width: 2000px) {
    div.main {
        zoom: 2;
    }
}

/* footer */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    text-align: center;
    width: 100%;
}

/* math button controls */
.display-toggle {
    display: none;
}

button.math {
    background-color: #4CAF50;
    color: white;
    margin: 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
body {
	font-family: Arial;
}