html {
    overflow-y: scroll;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #eee; /* Applying here to style overscroll */
    font-family: "Lato", Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #323232;
    font-size: 16px;
    min-width: 480px;
}

main {
    display: inline-block;
    min-width: 100%;
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#f9f9f9', endColorstr='#ffffff')"; /* IE 8-9 */
    background: linear-gradient(180deg, #f9f9f9 0%, #fff 250px);
    background-color: #fff; /* Real background color */
    overflow: hidden;
    padding-bottom: 5em;
}

@media only screen and (min-height: 700px) {
    main {
        min-height: 500px;
    }
}

@media only screen and (max-height: 699px) {
    main {
        min-height: 50vh;
    }
}

header {
    display: inline-block;
    min-width: 100%;
    background-color: #4B4B4B;
    padding: 5px 0;

    color: white;
    font-size: 30px;
}

footer {
    display: inline-block;
    min-width: 100%;
}

#logo {
    color: white;
    text-decoration: none;
}

nav {
    float: right;
    font-size: 22px;
    padding-top: 6px;
    padding-bottom: 6px;
}

nav form {
    display: inline;
}

nav button {
    background:none!important;
    color:inherit;
    border:none;
    padding:0!important;
    font: inherit;
    cursor: pointer;
}

nav a, nav button {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    padding: 0px 0px;
    line-height: 1;
}

nav a:hover, nav button:hover {
    color: #c5c5c5;
}

nav a:focus, nav button:focus, #logo:focus {
    outline-color: #c2c2c2;
}

/* Override default to override a:visited */
a {
    color: blue;
}

.table {
    min-width: 100%;
    margin-top: 15px;
    border-spacing: 0;
    position: relative;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table td, .table th {
    padding: 3px 10px;
}

.table th, .table td {
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table td.shrink, .table th.shrink {
    width: 0;
    padding: 0;
}

.table button, .table .button {
    margin: 3px;
}

.content-wrapper {
    min-width: 520px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.table-form {
    width: 410px;
}

.table-form table {
    width: 100%;
}

.table-form td {
    vertical-align: top;
}

.table-form tr td:first-child {
    width: 150px
}

.table-form td > label {
    /*Fixes some alignment issues*/
    margin-top: 1px;
}

label {
    display: inline-block;
}

tr.separator td:first-child {
    padding: 3px 0;
    border-bottom: 1px solid #b3b3b3;
}

input {
    display: inline-block;
}

input[type="text"], input[type="number"], input[type="email"],
input[type="password"], textarea {
    width: 100%;
    border: 1px solid #ddd;
    box-shadow: none;
    border-radius: 0;
    box-sizing: border-box;
    padding: 2px;
    font-size: 16px;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus,
input[type="password"]:focus, textarea:focus {
    outline: none;
    border: 1px solid black;
}

textarea {
  resize: vertical;
}

button, .button {
    display: inline-block;
    border: none;
    padding: 5px 15px;
    margin: 0;
    text-decoration: none;
    background: #f3f3f3;
    color: black;
    font-family: sans-serif;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #c5c5c5;
    white-space: nowrap;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
    background: #dadada;
}

button:focus, .button:focus {
    outline: 1px solid black;
}

button:active, .button:active {
}

button:disabled, .button:disabled {
    color: #838383;
    background: #e6e6e6;
    cursor: default;
}

a:focus {
    outline: 1px solid black;
}

/* firefix */
button::-moz-focus-inner {
    border: 0;
}

button.danger, .button.danger {
    background: #fcc;
}

button.danger:hover, button.danger:focus,
.button.danger:hover, .button.danger:focus {
    background: #e6a9a9;
}

.message {
    margin-top: 20px;
    padding: 5px 15px 5px 15px;
    border: 1px solid;
    border-radius: 5px;
}

.message::before {
    font-weight: bold;
    padding-right: 15px;
}

.message.error::before {
    content: 'ERROR';
}

.message.error {
    background-color: #f3bebe;
}

.message.info::before {
    content: 'NOTICE';
}

.message.info {
    background-color: #bcdcff;
}

.spacer {
    margin-top: 40px;
    margin-bottom: 40px;
}

hr {
    border-color: #e9e9e9;
    border-style: solid;
    margin-left: 5%;
    margin-right: 5%;
}

.disabled {
    color: #aeaeae;
}
