* {
    border: 0px solid black;
    box-sizing: border-box;
}

body {
    background-color: white;
    margin: 0px;
    font-family: Arial, sans-serif;
}

/*need this to keep font from changing when rotating phone*/
html {
    -webkit-text-size-adjust: 100%;
}

/* COMMENTED OUT
table, td, tr, th {
    border: 0px solid black;
    border-collapse: collapse;
}
*/

/* COMMENTED OUT
dark blue: #355064
light blue: #496173
light brown: #d3ad80
dark brown: #784421
*/



.header-container {
    width: 100%;
    height: 100px;
    background: white url("images/bgBlue.png") repeat-x left bottom;
    top: 0px;
}

.header { 
    height: 100px;
    background: transparent url("images/bgBrown.png") no-repeat center top;

}

.navbar ul, .footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
}

.navbar li a, .footer li a {
    display: block;
    color: #d3ad80;
    text-align: center;
    padding: 9px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    background-color: #355064;
}

.navbar li a:hover, .footer li a:hover {
    background-color: #496173;
}

.logo {
    height: 80px;
    margin: auto;
    width: 100%;
    margin-bottom: -20px;
}

.logo-img {
    display: block;
    margin:auto;
    height: 80px;
    padding-top: 3px;
    padding-left: 0px;
    padding-right: 160px;
    margin-top: 3px;
}

.slogan {
        display: none;
        float: right;
        margin-top: -42px;
        margin-right: 20px;
        font-family: georgia, arial;
        color: #355064;
}


/* PAGE BODY */

 
.main-body {
    padding: 0px 20px 50px 20px;
    background-color: white;
    margin-top: 70px;
}

.body-section h1 {
    color: #355064;
    padding-top: 12px;
    padding-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: 24px;
    text-align: center;
}

.body-section h2 {
    color: #355064;
    padding-top: 12px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    text-align: center;
}

.body-section h3 {
    color: #355064;
    padding-top: 12px;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.body-section p {
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.body-section a {
    padding: 2px;
    color: black;
}

.body-section a:hover {
    background-color: #355064;
    color: white;
}

input {
    padding: 5px;
    margin: 5px 0px;
    border: 1px solid black;
    border-radius: 5px;
    /*-webkit-transition: 0.25s;
    transition: 0.25s;*/
    outline: none;
}

input[type=number] { 
    width: 100%;
}

input:focus {
    border: 1px solid #9a9a9a;
}
   
/*buttons*/
input[type=button], 
input[type=submit], 
input[type=reset], 
button.computeButton {
    background-color: #4caf50;
    border: none;
    color: white;
    padding: 8px 30px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    outline: none;
}

input[type=button]:hover, 
input[type=submit]:hover, 
input[type=reset]:hover, 
button.computeButton:hover {
    background-color: #4cbf50;
}

button.computeButton {
    display: block;
    margin: auto;
}

div.calculator {
    border: 0px solid red;
    text-align: center;
    margin-bottom: 30px;
}

div.calculator-graphic {
    border: 0px solid blue;
    margin: auto;
    width: 100%;
    text-align: center;
}

img.tool-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0px 0px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.frequency-input input[type="number"],
.wavelength-input input[type="number"] {
    width: 100px;
    font-size: 16px;
}

.frequency-input,
.frequency-units,
.wavelength-input,
.wavelength-units {
    margin: 0px;
    display: inline-block;
    vertical-align: middle;
}

.frequency-units input[type="radio"],
.wavelength-units input[type="radio"]{
    display:none;  /*hides the radio bubble*/
}

.frequency-units label,
.wavelength-units label {
    margin: 1px;
    display:inline-block;
    float: left;
    background-color:#ccc;
    padding: 5px 10px;
    font-size:12px;
    border: 0px solid #333;
    border-radius: 0px;     
}

.frequency-units label:hover,
.wavelength-units label:hover {
    background-color: #999;
    cursor: pointer;
}

.frequency-units input[type="radio"]:checked + label,
.wavelength-units input[type="radio"]:checked + label { 
    background-color:#355064;
    color: #fff;
}

.calculator hr {
    border-width:1px; 
    border-color:#355064; 
    width:100%; 
    margin-top:20px; 
    margin-bottom:0px;"
}

.bottom-half hr {
    border-width:1px; 
    border-color:#355064; 
    width:100%; 
    margin-top:32px; 
    margin-bottom:0px;"
}

div.calculator-explanation {
    border: 0px solid blue;
    clear: both;
    position: relative;
    top: 0px;
    text-align: justify;
}

div.formula {
    padding: 0px 30px 0px 30px; 
}

div.formula p {
    text-align: center;
}

div.download-chart {
    border: 0px solid blue;
    margin-top: 0px;
}

.no-spinners [type='number'] {
  -moz-appearance:textfield;
}

.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.footer {
    background-color: #355064;
    height: 34px;
    text-align: right;
    margin-bottom: 20px;
    position: relative;
    top: 0px;
    clear: both;
}











@media (min-width: 750px) {
/* REMOVE ANYTHING THAT IS ALREADY SET ABOVE*/


    .header, .footer, .main-body {
        width: 100%;
        margin: auto;
    }

    .body-section, .myadspace {
        width: 100%;
        margin: auto;
    }
    
    .header {
        background: transparent url("images/bgBrown.png") no-repeat left top;

    }

    .navbar {
        border: 0px solid red;
        display: block;
        width: auto;
        margin: auto;
        margin-left: 190px;
    }

    .navbar li {
        float: left;
    }

    .logo-img {
        float: left;
        padding-left: 10px;
        padding-right: 0px;
    }

    .slogan {
        display: inline;
    }
    
    .main-body {
        border: 0px solid red;
        width: 600px;
    }

    button.computeButton {
        display: inline-block;
        text-align: left;
    }
   
    div.calculator {
        border: 0px solid red;
        float: center;
        width: 100%;
    }
    
    img.tool-image {
        display: block;
        margin: auto;
        text-align: center;
        max-width: 320px;
    }
    
    .footer ul {
        float: right;
    }
    
    .footer li {
        float: left;
    }
    
}



@media (min-width: 950px) {
/* REMOVE ANYTHING THAT IS ALREADY SET ABOVE*/

    .main-body {
        width: 800px;
    }

    div.calculator {
        float: left;
        width: 60%;
        padding-right:20px;
    }

    div.calculator-graphic {
        display: inline-block;
        float: left;
        width: 40%;
    }
   
}