/* Set button styles */
#gleim-avwp input[type=submit] {
    background-color: #c10000;
    color: #fff;
}

#gleim-avwp input[type=submit]:hover {
    background-color: #d44d4d;
}

/* Set line height */
#gleim-avwp .contentContainerCenter {
    line-height: 1.33;
}

/* Style body links */
#gleim-avwp .contentContainerCenter a {
    color: #1e73be;
}

#gleim-avwp .contentContainerCenter a:hover {
    color: #333;
}

/* Style top bar links like Log in */
#gleim-avwp .infinite-top-bar a {
    color: #000;
}

#gleim-avwp .infinite-top-bar a:hover {
    color: #c10000;
}

/* Left align TCO tool tables */
#gleim-avwp .printcontent table {
    text-align: left;
}

/* Left align TCO tool tables */
#gleim-avwp .leftNavTable,
#gleim-avwp .leftNavTable tr {
    background-color: #e2e3db;
    text-align: left;
}

/* Fix TCO tool left nav */
#gleim-avwp .leftNavTable .buttonToLink {
    background-color: #e2e3db;
    color: #0072bc !important;
    cursor: pointer;
}

#gleim-avwp .leftNavTable .buttonToLink:hover {
    background-color: #e2e3db;
    text-decoration: underline;
}

#gleim-avwp .leftNavTable .buttonToLinkDisabled {
    background-color: #e2e3db;
    color: #666 !important;
    cursor: auto;
    text-decoration: none;
}

#gleim-avwp .leftNavTable img {
    transform: translateY(-40%);
}

#gleim-avwp .leftNavTable input {
    color: #000;
    padding-left: 5px;
    padding-right: 5px;
}

/* Set default body font */
#gleim-avwp {
    font-family: "Open Sans", sans-serif;
}

/* Space out links in footer */
#gleim-avwp #infinite-fixed-footer p a {
    line-height: 25px;
}

/* Space out social media icons in footer */
#gleim-avwp #infinite-fixed-footer p span {
    line-height: 40px;
}

/* Remove style of pagination list on FAR/AIM search */
#gleim-avwp #innerwrap .genText .pagination {
    list-style-type: none;
}

/* Style pagination list as horizontal on FAR/AIM search */
#gleim-avwp #innerwrap .genText .pagination li {
    display: inline-block;
    margin-right: 10px;
}

/* Space out search results on FAR/AIM search */
#gleim-avwp #innerwrap .genText li {
    padding-bottom: 5px;
    padding-top: 5px;
}

/* Pad and center body content and limit width */
#gleim-avwp #innerwrap,
#gleim-avwp .contentContainerCenter,
#gleim-avwp .mainColCentered,
#gleim-avwp .mainColWithSidebar,
#gleim-avwp .mainColWithoutSidebar,
#gleim-avwp .page_padding {
    margin: auto;
    max-width: 1280px;
    padding: 20px;
}

/* Put footer in fixed position */
#gleim-avwp .infinite-fixed-footer {
    position: static;
}

/* Remove extra footer space from fixed position footer */
#gleim-avwp .infinite-fixed-footer-placeholder {
    display: none;
}

/* The top bar background is black so text should be white */
#gleim-avwp .infinite-top-bar-background,
#gleim-avwp .infinite-top-bar-left-text {
    background-color: #fff !important;
    color: #000 !important;
}

/* The bottom border of the top bar is red */
#gleim-avwp .infinite-top-bar {
    border-bottom: 2px solid #c00000;
    line-height: 25px;
}

/* Fixing text inputs */
#gleim-avwp img.topImage {
   margin-bottom: 30px;
   width: 100%;
}

#gleim-avwp input.largeTextInput {
   width: 300px !important;
}

#gleim-avwp input.mediumTextInput {
   width: 150px !important;
}

#gleim-avwp input.smallTextInput {
   width: 75px !important;
}

#gleim-avwp input[type="text"],
#gleim-avwp input[type="email"],
#gleim-avwp input[type="url"],
#gleim-avwp input[type="password"],
#gleim-avwp input[type="search"] {
    width: 90%;
}

/*------------page footer placement--------------------------*/
/* Stretch the Infinite theme's wrapper chain to the viewport so
   the footer (WordPress's and/or page_footer_small) sits at the
   bottom edge of short pages. */
body.infinite-body {
   display: flex;
   flex-direction: column;
   min-height: 100vh;
}
body.infinite-body > .infinite-body-outer-wrapper {
   flex: 1 0 auto;
   display: flex;
   flex-direction: column;
}
/* The aviation Infinite fragments have no .infinite-page-wrapper; the
   footer sits directly under .infinite-body-outer-wrapper once
   avwp_footer.php closes .infinite-body-wrapper. Grow the body
   wrapper but keep it block: its content wrappers (.mainColCentered
   etc.) use margin:auto, which a flex column would turn into
   vertical centering on short pages. */
.infinite-body-outer-wrapper > .infinite-body-wrapper {
   flex: 1 0 auto;
}

