body {
    color: gray;
    font-family: sans-serif;
    margin: 60px 0 200px 0;
}

h1 {
    margin: 30px 0 30px -60px;
    padding: 0 0 10px 60px;
    border-bottom: 2px solid lightgray;
}

form#login fieldset {
    background-color: #F8F8F8;
    border: 1px solid gray;
    margin: 20% 0 0 10%;
    padding: 10px 5px 0 5px;
    width: 400px;
}

form#login div {
    margin-bottom: 1em;
}

form#login label {
    display: block;
    font-size: 90%;
}

form#login input {
    color: black;
    height: 2em;
    margin-left: 20px;
    width: 380px;
}

form#login input[type=submit] {
    font-size: 120%;
    font-weight: bold;
    margin-left: 0;
    width: 100%;
}

form#login div#forgot a {
    color: gray;
    font-size: 80%;
    margin: 4em 0 0 0;
    text-decoration: none;
}

form#login div#forgot a:hover {
    text-decoration: underline;
}

dl {
    margin-left: 30px;
}

dt {
    color: black;
    font-weight: bold;
    margin-top: 1em;
}

dd {
    padding-left: 60px;
}

table {
    border-collapse: collapse; 
    border-spacing: 0;
}

table thead th {
    padding: 5px 0;
}

table thead th,
table tfoot th {
    background: black;
    color: white;
}

table tbody tr td {
    border-top: 1px dotted gray;
    color: gray;
    font-size: 90%;
}

table tbody tr:nth-child(odd) {
    background-color: #F8F8F8;
}

table#pilots {
    min-width: 60%;
}

table#pilots tbody td a {
    text-decoration: none;
    height: 16px;
    width: 16px;
}

table#pilots tbody td img {
    height: 16px;
    width: 16px;
}

table#pilots thead tr th:nth-child(1),
table#pilots tbody tr td:nth-child(1) {
    color: lightgray;
    font-size: 60%;
    text-align: right;
    padding-right: 5px;
}

table#pilots thead tr th:nth-child(2),
table#pilots tfoot tr th:nth-child(2),
table#pilots thead tr th:nth-child(3),
table#pilots tfoot tr th:nth-child(3) {
    text-align: left;
}

table#pilots tbody tr td:nth-child(2),
table#pilots tbody tr td:nth-child(3) {
    color: black;
}

table#pilots tbody tr td:nth-child(2) {
    font-weight: bold;
}

table#pilots tbody tr td:nth-child(4),
table#pilots tbody tr td:nth-child(5),
table#pilots tbody tr td:nth-child(6),
table#pilots tbody tr td:nth-child(7),
table#pilots tbody tr td:nth-child(8),
table#pilots tbody tr td:nth-child(9),
table#pilots tbody tr td:nth-child(10),
table#pilots tbody tr td:nth-child(11) {
    text-align: center;
    padding: 0;
}

table#pilots tbody tr td:nth-child(3),
table#pilots tbody tr td:nth-child(5),
table#pilots tbody tr td:nth-child(7) {
    border-right: 1px dotted gray;
}

table#pilots tfoot tr th {
    font-size: 80%;
}

table#aircrafts thead tr th,
table#aircrafts tbody tr td,
table#aircrafts tfoot tr th {
    text-align: left;
    min-width: 100px;
    padding: 4px 20px;
}

table#aircrafts thead tr th:nth-child(2),
table#aircrafts tbody tr td:nth-child(2),
table#aircrafts tfoot tr th:nth-child(2) {
    text-align: center;
}


div#contents {
    margin: 20px 0 0 60px;
}

div#navigation {
    background: black;
    font-size: 80%;
    font-weight: bold;
    height: 40px;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
}

div#navigation ol li {
    display: inline;
    margin: 0;
    padding: 0 0 0 20px;
}

div#navigation a {
    color: gray;
    text-decoration: none;
    padding-left: 20px;
}

div#navigation a:hover,
div#navigation a:visited {
    color: lightgray;
}

div#navigation ol li + li a {
    border-left: 1px solid gray;
}

div#error {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FFF0F0;
    border: 2px solid red;
    color: red;
    font-weight: bold;
    font-size: 110%;
    width: 80%;
    margin: 10px 10%;
    padding: 10px;
}

/* as per https://www.w3schools.com/howto/howto_js_fullscreen_overlay.asp */
/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    color: white;
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.overlay-content table {
    margin: 0 auto;
}

.overlay-content th {
    text-align: right;
}

.overlay-content td {
    text-align: left;
    padding: 10px 20px;
}

.overlay-content button,
.overlay-content input,
.overlay-content select {
    width: 200px;
}

.overlay-content button,
.overlay-content input,
.overlay-content textarea,
.overlay-content select {
    background-color: white;
    border: 1px solid gray;
}

.overlay-content input.error,
.overlay-content textarea.error,
.overlay-content select.error {
    background-color: #FFE0E0;
    border: 1px solid red;
}

/* The navigation links inside the overlay */
.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

div#AuthorizationEditor div#access {
    background-color: white;
    border: 1px solid gray;
    color: darkgray;
    width: 600px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    text-align: left;
}

div#AuthorizationEditor div#access form {
    text-align: left;
    margin-top: 0;
    padding-top: 0;
}

div#AuthorizationEditor div#access form h1 {
    margin-top: 0;
    padding-top: 0;
}

div#AuthorizationEditor div#access form h2,
div#AuthorizationEditor div#access form p {
    margin: 0;
    padding: 0;
}

div#AuthorizationEditor div#access form h2 {
    font-size: 110%;
}

div#AuthorizationEditor div#access form p {
    font-size: 90%;
}

div#AuthorizationEditor div#access div {
    clear: both;
    margin: 0 0 40px 0;
}

div#AuthorizationEditor div#access input[type=image] {
    float: left;
    border: 2px solid lightgray;
    margin: 0 10px 0 0;
    padding: 10px;
    width: 30px;
}

div#AuthorizationEditor div#access input[type=image].selected {
    border: 2px solid black;
}

div#AuthorizationEditor div#access input[type=image]:hover {
    border: 2px solid red;
}

