/*********** Table of Contents ***********
    1.0: Utilities
    1.0: Root
    1.1: Dark Mode
    3.0: Footers
    4.0: Launch Toast

*****************************************/
@import url('Component.css'); /* Importa all Components*/

:root:not(.darkMode) {
    --background-primary-color: whitesmoke;
    --background-secondary-color: #eeeeee;
    --background-primary-accent-color: #092b5a;
    --button-accent-color: #a50c0c;
    --selection-color: #4475a2;
    --border-color: #cacaca;
    --header-color: #465762;
    --widget-access: flex;
    --var-search-background-active: rgb(0 0 0 / 86%);
    --var-search-background-inactive: rgb(0 0 0 / 10%);
}

:root {
    --background-image: url(/-/media/AlliedPilots/BackgroundBanners/13.jpg);
    --background-black-75-color: #121111;
    --background-black-50-color: #212121;
    --background-black-25-color: #393939;
    --background-warning-color: #ffae00;
    --background-info-color: tan;
    --background-danger-color: #ff0000;
    --background-light-danger-color: #dc3545;
    --background-success-color: #52c33c;
    --background-APA-blue: #243d82;
    --font-size-small-body: 0.6rem;
    --font-size-medium-body: 0.7rem;
    --font-size-body: 0.9rem;
    --font-size-title: 1rem;
    --font-size-large-title: 1.5rem;
    --font-size-extra-large-title: 2rem;
    --color-secondary-accent: wheat;
}


/****************************/
/****** 1.0 - Utlities *******/
/****************************/

html,
body {
    scroll-behavior: smooth;
}

html {
    margin: 20px;
    background-color: #333;
    transition: ease 0.5s;
    height: auto;
    min-height: calc(100% - 40px);
}

@media only screen and (max-width: 576px) {
    html {
        margin: 0px !important;
    }
}

body {
    /*max-width: 1000px;*/
    position: relative;
    height: 100%;
    min-height: calc(100vh - 40px);
    background-color: transparent !important;
    font-size: var(--font-size-body);
}


p {
    font-size: var(--font-size-body);
}
a {
}

.hidden {
    display: none;
    transition-property: opacity;
    transition-duration: 0s;
    transition-delay: 0s;
    transition-timing-function: ease;
}

.row {
    margin: 0;
    /*z-index: 1;*/ /*=TC: Removed necause it was causing nested things to not have a valid z-index value, in my case external view pop-ups=*/
}

.main-content-container {
    max-width: 1400px;
    position: relative;
    /*z-index: 1;*/ /*=TC: Removed necause it was causing nested things to not have a valid z-index value, in my case the Grievance App popup=*/
}
.apa-generated-html .member-detailed-single, .apa-generated-html .member-detailed-double{
    border:none;
}
/******************************/
/****** 1.1 - Dark Mode *******/
/******************************/
:root.darkMode {
    /*    --background-secondary-color: transparent;
    --background-primary-color: transparent;*/
    --background-primary-color: #323232;
    --background-secondary-color: #e4e4e4;
}

/* width */
::-webkit-scrollbar {
    width: 12px;
}

/* Track */
 ::-webkit-scrollbar-track {
    background: transparent;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    transition: ease 1s;
    background: #888;
    border-radius: 10px;
}
/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient( 45deg, var(--background-primary-accent-color), transparent);
}
.cursor-pointer {
    cursor: pointer;
}


/****** 1.2 - Utilities section *******/

.left-0 {
    left: 0;
    position:absolute;
}
.right-0 {
    right: 0;
    position: absolute;
}

.right-auto{
    right: auto !important;
}

.bottom-0 {
    bottom: 0;
    position: absolute;
}

.top-0 {
    top: 0;
    position: absolute;
}
.z-index-0 {
    z-index: 0;
}
.z-index-1 {
    z-index: 1;
}
.z-index-2 {
    z-index: 2;
}
.overflow-scroll-y{
    overflow-y: scroll;
}
.more-button {
    border: none;
    background: var(--button-accent-color);
    transition: 1s ease;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor:pointer;
}
#Signin-button .more-button {
    border: none;
    background: #323232;
    transition: 1s ease;
    box-shadow: inset -2px 3px 2px black !important;
    color: white;
    padding: 5px 25px;
    border-radius: 0;
}

    #Signin-button .more-button:hover {
        background: var(--button-accent-color);
        transition: 1s ease;
        color: white;
        box-shadow: none !important;
    }

    #Signin-button .more-button a:hover {
        background: inherit;    
    }

#main-content {
    /*overflow: hidden;*/
    display: none;
    transition: ease 0.2s;
    box-shadow: 0px 0px 10px black !important;
    background-color: white;
    min-height: calc(100vh - 40px);
}
#site-content {
    transition: ease 0.5s;
    position:relative;
}

.content-upper {
    min-height: calc(100vh - 115px);
    height: auto;
}

.intial-container {
    height: auto;
    background-color: var(--background-secondary-color);
}

.intial-container div {
    height: 100%;
}

.intial-container .img-container {
    width: 100px;
    margin-right: 10px;
}

.intial-container .bg-container {
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
    background-size: cover;
}

.intial-container img {
    padding: 0;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
    background-size: cover;
}

.intial-container ul {
    padding: 0;
}

.intial-container li {
    list-style: none;
    padding-top: 10px;
}

.content-max-width {
    max-width: 1200px;
    margin: 0 auto;
}

/*************************************/
/****** 2.0 - APA Logo *******/
/*************************************/
/* apa logo */
.page-logo {
    height: 4.125rem;
    /* width: 16.875rem; */
    -webkit-box-shadow: 0px 0px 28px 0px rgba(0, 0, 0, 0.13);
            box-shadow: 0px 0px 28px 0px rgba(0, 0, 0, 0.13);
    overflow: hidden;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-positive: 0;
    -webkit-box-flex: 0;
            flex-grow: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-height: 1px;
    padding: 0 2rem; }
    .page-logo img {
      width: 28px;
      height: 28px; }
    .page-logo .page-logo-link {
      -webkit-box-flex: 1;
          -ms-flex: 1 0 auto;
              flex: 1 0 auto; }
  
  .page-logo-text {
    margin-left: 0.5rem;
    font-weight: 300;
    font-size: 1rem;
    color: #fff;
    display: block;
    -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
    text-align: left; }

/*************************************/
/****** 2.1 - Floating buttons *******/
/*************************************/    

.nav-function-fixed .m-backtotop.news-view-close {
    display: none;
}
body:not(.nav-function-fixed) .m-backtotop.news-view-close {
    top: 1%;
    left: 321px;
}

.m-backtotop {
    z-index: 50;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    position: fixed;
    bottom: -50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #222;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
}
    .m-backtotop.feedback {
        bottom: calc(10% + 60px) !important;
        background-color: #a82f2f;
    }

    .m-backtotop.active {
        bottom: 10%;
        opacity: 1;
        right: 5%;
    }

    .m-backtotop > div {
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -ms-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }

        .m-backtotop > div.arrow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translateY(-50%) translateX(-50%);
            opacity: 1;
        }

        .m-backtotop > div.text {
            font-size: 5px;
            font-size: 0.5rem;
            line-height: 10px;
            text-transform: uppercase;
            font-weight: 500;
            font-family: "Open Sans", sans-serif;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translateY(50%) translateX(-50%);
            opacity: 0;
            margin-top: 1px;
        }
            .m-backtotop:hover > div.arrow {
                transform: translateY(-150%) translateX(-50%);
                opacity: 0;
            }

    .m-backtotop:hover > div.text {
        transform: translateY(-50%) translateX(-50%);
        opacity: 1;
    }

/*************************************/
/****** 2.2 - Main navbar *******/
/*************************************/
 @media only screen and (max-width: 992px) {
    #nav-ul {
        margin-top: -2.5rem;
    }
    .navbar-brand {
        z-index: 101;
    }
 }
 @media only screen and (max-width: 576px) {
    #nav-ul {
        margin-top: -3.2rem;
    }
        #nav-ul .public.utilities {
            margin-top: 1.5rem;
        }
        #nav-ul .nav-link {
            padding: 0.5rem 0.75rem;
        }
    #Signin-button {
        padding-top: 25px
    }
 }
 @media only screen and (max-width: 375px) {
    #nav-ul .nav-link {
        padding: 0.5rem 0.5rem;
    }

    #Signin-button {
        padding-top: 25px
    }
 }

/*************************************/
/**** 2.3 - Dropdown Icon buttons ****/
/*************************************/
.dropdown-icon-menu .template-button {
    background: none;
}
.dropdown-icon-menu > ul > li .btn,
.dropdown-icon-menu .header-btn {
    display: inline-flex;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid gainsboro;
    height: 2.25rem;
    /*width: 3.25rem;*/
    /* vertical-align: middle; */
    line-height: 2.125rem;
    /*margin-right: 0.9375rem;*/
    font-size: 21px;
    padding: 0 11px;
    cursor: default;
    color: #a6a6a6;
    position: relative;
    background: #505050 !important;
    border-color: #363636 !important;
    /*
        &.active {
            @extend %header-btn-active;
        }*/
}
    #main-content .dropdown-icon-menu a span {
        color: #a6a6a6;
    }
    .dropdown-icon-menu > ul > li .btn:hover,
    .dropdown-icon-menu .header-btn:hover {
        /* -webkit-box-shadow: none;
                box-shadow: none;
        border-color: #886ab5;
        background: #a38cc6 !important;
        color: #fff;  */
        -webkit-box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.37);
        box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.37);
        color: #fff !important;
    }    
    .dropdown-icon-menu > .btn {
        z-index: 1; }
        
    .dropdown-icon-menu > ul {
        opacity: 0;
        list-style: none;
        margin: 0;
        position: absolute;
        background: transparent;
        height: 2.25rem;
        padding: 2.75rem 4px 5px;
        width: 3.5rem;
        margin-left: 1px;
        margin-top: -2.5rem;
        left: -5px;
        overflow: hidden;
        -webkit-box-shadow: 0 3px 3px rgba(0, 0, 0, 0.12), 0 0 3px rgba(0, 0, 0, 0.24);
                box-shadow: 0 3px 3px rgba(0, 0, 0, 0.12), 0 0 3px rgba(0, 0, 0, 0.24);
        border-radius: 0.25rem;
        -webkit-transition: all 270ms cubic-bezier(0.34, 1.25, 0.3, 1);
        transition: all 270ms cubic-bezier(0.34, 1.25, 0.3, 1); 
    }
        .dropdown-icon-menu > ul > li {
            margin-bottom: 4px;
            position: relative;
        }
            .dropdown-icon-menu > ul > li:last-child {
                margin-bottom: 0; 

            }

@media (min-width: 992px) {
    .dropdown-icon-menu:hover > ul {
        display: block;
        opacity: 1;
        /*
        * n = number of buttons minus 1 
        *     eg. $header-btn-height * 2n
        */
        /* height: 7.75rem; */
        height: auto;
    }

        .dropdown-icon-menu:hover > ul:hover {
            overflow: visible;
        }
}        
        
/*************************************/
/**** 2.4 - Dropdown Items Animated ****/
/*************************************/
.dropdown-menu {
    background-color: #444444;
}
    .dropdown-menu:hover .dropdown-item {
        background-color: #444444;
        color: white;
    }
    .dropdown-menu-animated {
        -webkit-transform: scale(0.8) !important;
        transform: scale(0.8) !important;
        -webkit-transition: all 270ms cubic-bezier(0.34, 1.25, 0.3, 1);
        transition: all 270ms cubic-bezier(0.34, 1.25, 0.3, 1);
        opacity: 0;
        left: auto;
        right: 0%;
        min-width: 14rem;
        visibility: hidden;
        display: block;
    }
    .dropdown-menu-animated .dropdown-item {
        font-size: var(--font-size-title);
        color: gray;
        transition: 0.3s;
    }
        .dropdown-menu-animated .dropdown-item:hover {
            color: #fe7a6f;
            background-color: #444444;
        }

    #hide-favorites:hover {
        color: green !important;
    }

        .show > .dropdown-menu-animated {
            -webkit-transform: scale(1) !important;
            transform: scale(1) !important;
            -webkit-transform-origin: 29px -50px;
            transform-origin: 29px -50px;
            opacity: 1;
            visibility: visible;
        }

.dropdown-item #hide-favorites .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .dropdown-item #hide-favorites .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.switch {
    display: inline-block;
    height: 20px;
    position: relative;
    width: 32px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: inset 1px 1px 2px black;
}

.slider:before {
    position: absolute;
    content: "";
     height: 12px;
     width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: 1px 1px 2px black;
}

 input:checked + .slider {
    background-color: green; /*var(--button-accent-color);*/
}

 input:checked + .slider:before {
    -webkit-transform: translateX(12px);
    -ms-transform: translateX(12px);
    transform: translateX(12px);
}


/****************************/
/****** 3.0 - Footers *******/
/****************************/

footer ul,
footer li {
    list-style: none;
    display: flex;
    font-size: var(--font-size-body);
}

footer li a {
    text-decoration: underline !important;
}

footer li:hover .fa {
    color: var(--button-accent-color);
    cursor: pointer;
}

.social-media a {
    width: 40px;
    outline: none;
    color: white;
    border: none;
    background: #68131300;
}

.template-footer-upper h1,
.template-footer-upper h2,
.template-footer-upper h3,
.template-footer-upper h4,
.template-footer-lower h1,
.template-footer-lower h2,
.template-footer-lower h3,
.template-footer-lower h4 {
    color: gainsboro;
}
.template-footer-upper span,
.template-footer-upper p,
.template-footer-upper i,
.template-footer-upper .contact-card .contact-phone i,
.template-footer-upper .contact-card .contact-email i,
.template-footer-upper .contact-card .contact-location i,
.template-footer-upper .contact-card .contact-fax i,
.template-footer-upper .contact-card .contact-hours i,
.template-footer-upper a,
.template-footer-lower span,
.template-footer-lower p,
.template-footer-lower i,
.template-footer-lower .contact-card .contact-phone i,
.template-footer-lower .contact-card .contact-email i,
.template-footer-lower .contact-card .contact-location i,
.template-footer-lower .contact-card .contact-fax i,
.template-footer-lower .contact-card .contact-hours i,
.template-footer-lower a {
    color: gainsboro;
}
/****** Utilities *******/
.kenburns-wrap {
    position: relative;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.kenburns-wrap .kenburns {
    position: absolute;
    top: -999px;
    bottom: -999px;
    left: -999px;
    right: -999px;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
    margin: auto;
    -webkit-animation: 115s ppb_kenburns linear infinite alternate;
    animation: 115s ppb_kenburns linear infinite alternate;
}

@-webkit-keyframes ppb_kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    25% {
        transform: scale(1.3) translate(10%, 10%);
    }
    50% {
        transform: scale(1) translate(0, 0);
    }
    75% {
        transform: scale(1.3) translate(10%, 10%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

@keyframes ppb_kenburns {
    0% {
        transform: scale(1.3) translate(-10%, 10%);
    }
    25% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.3) translate(10%, 10%);
    }
    75% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.3) translate(-10%, 10%);
    }
}

.effect {
    text-align: center;
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: #fff;
    font-family: "Roboto", sans-serif;
    width: auto;
}

.effect:hover {
    color: white;
    text-decoration: none;
}


/* effect-1 styles */

.effect.effect-1 {
    transition: all 0.2s linear 0s;
}

    .effect.effect-1:before {
        font-family: "Material Icons";
        content: "\e5cc";
        font-size: var(--font-size-body);
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        right: -15px;
        top: 0;
        opacity: 0;
        height: 100%;
        width: auto;
        transition: all 0.2s linear 0s;
    }

.effect.effect-1:hover {
    text-indent: -20px;
}

.effect.effect-1:hover:before {
    opacity: 1;
    text-indent: 0px;
}

/*.effect.effect-1 {
    transition: all 0.2s linear 0s;
}

.effect.effect-1:hover {
    text-indent: -20px;
}*/

.effect .material-icons {
    position: absolute;
    opacity: 0;
    transition: all 0.2s linear 0s;
}
    .effect.effect-1:hover {
        text-indent: -15%;
        transition: all 0.2s linear 0s;
    }
    .effect.effect-1:hover .material-icons {
        opacity: 1;
        text-indent: 15%;
        transition: all 0.2s linear 0s;
    }

@media only screen and (max-width: 321px) {
    .m-backtotop, .m-backtotop.feedback {
        display: none;
    }
    
    .sidenav.openSideMenu>.m-backtotop.news-view-close {
        display: block;
        left: 270px;
    }
}

@media only screen and (max-width: 376px) {
    .m-backtotop.news-view-close {
        left: auto;
        right: 5%;
        opacity: 1;
    }
}

@media only screen and (max-width: 576px) {
    html {
        margin: 0px !important;
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
    }

    #sidenav hr {
        background-color: white;
    }

    #sidenav a,
    #sidenav .dropdown-btn {
        color: white;
    }
}
@media only screen and (min-width: 992px) {
    .fixed-nav#closeSideNav, .fixed-nav.toggle-menu-item {
        display: none;
    }
}


/*********************************/
/****** 4.0 - Launch toast *******/
/*********************************/
#toast {
    visibility: hidden;
    max-width: 50px;
    height: 50px;
    /*margin-left: -125px;*/
    margin: auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    position: fixed;
    z-index: 10000;
    left: 0;
    right: 0;
    bottom: 30px;
    font-size: 17px;
    white-space: nowrap;
}

    #toast #img {
        width: 50px;
        height: 50px;
        float: left;
        padding-top: 16px;
        padding-bottom: 16px;
        box-sizing: border-box;
        background-color: #111;
        color: #fff;
    }

    #toast #desc {
        color: #fff;
        padding: 16px;
        overflow: hidden;
        white-space: nowrap;
    }

    #toast.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, expand 0.5s 0.5s, stay 3s 1s, shrink 0.5s 2s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, expand 0.5s 0.5s, stay 3s 1s, shrink 0.5s 4s, fadeout 0.5s 4.5s;
    }

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes expand {
    from {
        min-width: 50px;
    }

    to {
        min-width: 350px;
    }
}

@keyframes expand {
    from {
        min-width: 50px;
    }

    to {
        min-width: 350px;
    }
}

@-webkit-keyframes stay {
    from {
        min-width: 350px;
    }

    to {
        min-width: 350px;
    }
}

@keyframes stay {
    from {
        min-width: 350px;
    }

    to {
        min-width: 350px;
    }
}

@-webkit-keyframes shrink {
    from {
        min-width: 350px;
    }

    to {
        min-width: 50px;
    }
}

@keyframes shrink {
    from {
        min-width: 350px;
    }

    to {
        min-width: 50px;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 60px;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 60px;
        opacity: 0;
    }
}
