/* DirectTo popup page */
gtn750-element #DirectTo.popup[state=Inactive] {
    display: none;
}
gtn750-element #DirectTo.popup[state=Active] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.50);
    z-index: 10;
    animation: slideRightIn 200ms;
}

gtn750-element #DirectTo .DirectToPopup {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 98%;
    margin: 1% 0 0 3%;
    background: linear-gradient(#2c302c 0%, #0c100c 10%, #080708 100%);
    box-shadow: -1.5vh 1vh 1vh black;
    border: solid #565656;
    border-width: 0.4vh 0 0.4vh 0.4vh;
    border-radius: 1.5vh 0 0 1.5vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Title */
gtn750-element #DirectTo .windowTitle {
    height: 8%;
}
/* Top buttons */
gtn750-element #DirectTo .DirectToButtons {
    height: 14%;
    width: 96%;
    display: flex;
    justify-content: space-between;
}

/* Page container */
gtn750-element #DirectTo .container{
    width: 96%;
    height: 77%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #004d8d;
    border: solid #004d8d;
    border-width: 0 0.3vh 0.3vh 0.3vh;
    border-radius: 0 0 2.5vh 2.5vh;
}
/* Page */
gtn750-element #DirectTo .DirectToInsidePage {
    width: 100%;
    height: 100%;
    background-color: black;
    border: solid #d9f1fd;
    border-width: 1vh;
    border-radius: 2.5vh;
    padding: 2%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
gtn750-element #DirectTo .DirectToInsidePage[state=Inactive] {
    display: none;
}

gtn750-element #DirectTo .buttonsContainer {
    width: 96%;
    height: 19%;
    min-height: 19%;
    margin: 1%;
}
gtn750-element #DirectTo .gradientButton {
    width: 100%;
    height: 100%;
}

gtn750-element #DirectTo .DirectToButton {
    width: 31%;
    height: 100%;
    background: linear-gradient(#7c9ebb 0%, #5180ad 70%, #004d8d 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: solid #004d8d;
    border-width: 0.3vh;
    border-radius: 1vh 1vh 0 0;
}
gtn750-element #DirectTo .DirectToButton[state=Inactive]:Hover:Active {
    background: linear-gradient(#d9f1fd 0%, #5180ad 100%);
}
gtn750-element #DirectTo .DirectToButton[state=Active] {
    border-width: 0.3vh 0.3vh 0 0.3vh;
    background: none;
    background-color:#d9f1fd;
    position: relative;
}
gtn750-element #DirectTo .DirectToButton[state=Active]::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5vh;
    background-color: #d9f1fd;
    width: 100%;
    height: 5vh;
}

gtn750-element #DirectTo .DirectToButton img {
    width: 100%;
}
gtn750-element #DirectTo .DirectToButton .title {
    padding-bottom: 5%;
    color: black;
    font-size: 2vh;
    margin-top: -0.7vh;
}

/* Waypoint button*/
gtn750-element #DirectTo .DirectToWaypointButton {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: left;
    padding-left: 1%;
}
/* Ident + logo*/
gtn750-element #DirectTo .DirectToWaypointButton div:first-child {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0.6vh;
}
/* Ident */
gtn750-element #DirectTo .DirectToWaypointButton div:first-child div:first-child {
    font-size: 4vh;
    margin-left: 0.6vh;
}
/* Ident name */
gtn750-element #DirectTo .DirectToWaypointButton div:last-child {
    color: #fbfbfb;
    white-space: nowrap;
    overflow: hidden;
    margin: 0.7vh 0.6vh 0 0.6vh;
    font-size: 2.5vh;
}
/* Ident logo container */
gtn750-element #DirectTo .DirectToWaypointButton div:first-child div:last-child {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2vh;
    margin-top: -1vh;
}
/* Ident logo img */
gtn750-element #DirectTo .DirectToWaypointButton img {
    height: 5vh;
}

/* Waypoint page */
gtn750-element #DirectToWaypoint #DirectToWaypointSelect {
    display: none;
}

gtn750-element #DirectToWaypoint .part2 {
    flex-grow: 1;
    margin: 2vh 0 2vh 0;
    width: 90%;
    display: flex;
    flex-direction: column;
}
gtn750-element #DirectToWaypoint .part2 .value {
    color: #fbfbfb;
}
gtn750-element #DirectToWaypoint .part2 .Title {
    font-size: 2vh;
}
gtn750-element #DirectToWaypoint .part2 > div {
    display: flex;
    justify-content: space-between;
}
gtn750-element #DirectToWaypoint .part2 > div:nth-child(4) {
    margin-top: 2vh;
    margin-bottom: 3vh;
}
gtn750-element #DirectToWaypoint .part2 #DirectToWaypointTargetCity {
    min-height: 3vh;
    white-space: nowrap;
    overflow: hidden;
}
gtn750-element #DirectToWaypoint .part2 #DirectToWaypointTargetRegion {
    margin-bottom: 3vh;
    min-height: 3vh;
    white-space: nowrap;
    overflow: hidden;
}
gtn750-element #DirectToWaypoint .part2 .bearingContainer {
    display: flex;
    justify-content: space-between;
}
gtn750-element #DirectToWaypoint .part2 .bearingContainer img {
    height: 4vh;
    transform-origin: 50% 50%;
}
gtn750-element #DirectToWaypoint .part2 .bearingContainer .value {
    text-align: right;
    padding-left: 4vh;
    margin-right: -1vh;
}
gtn750-element #DirectToWaypoint .part2 #DirectToWaypointTargetDistance, gtn750-element #DirectToWaypoint .part2 #DirectToWaypointTargetPosition {
    text-align: right;
}
gtn750-element #DirectToWaypoint .part2 #DirectToWaypointTargetDistance span {
    font-size: 1.5vh;
    padding-left: 0.5vh;
}
gtn750-element #DirectToWaypoint .part2 #DirectToWaypointTargetPosition {
    margin-right: -1vh;
}
gtn750-element #DirectToWaypoint .part2 .buttonsContainer {
    height: 8vh;
    width: 33%;
}
gtn750-element #DirectToWaypoint .part3 {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
gtn750-element #DirectToWaypoint .part3 .title {
    font-size: 2vh;
}
gtn750-element #DirectToWaypoint .part3 .buttonsContainer {
    height: 8vh;
    width: 33%;
}
gtn750-element #DirectToWaypoint .DirectToWaypointButtonValue {
    position: absolute;
    bottom: 15%;
    width: 100%;
    text-align: center;

}

gtn750-element #DirectToFPL, gtn750-element #DirectToNearest {
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
    justify-content: flex-start;
}
gtn750-element #DirectToFPL.DirectToInsidePage, gtn750-element #DirectToNearest.DirectToInsidePage {
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}
gtn750-element #DirectToFPL::-webkit-scrollbar, gtn750-element #DirectToNearest::-webkit-scrollbar {
    width: 2vh;
}
gtn750-element #DirectToFPL::-webkit-scrollbar-track, gtn750-element #DirectToNearest::-webkit-scrollbar-track {
    background: none;
}
gtn750-element #DirectToFPL::-webkit-scrollbar-thumb, gtn750-element #DirectToNearest::-webkit-scrollbar-thumb {
    background:  #8b8b8b;
}
gtn750-element #DirectToFPL .buttonsContainer[state=Active], gtn750-element #DirectToNearest .buttonsContainer[state=Active] {
    display: block;
}
gtn750-element #DirectToFPL .buttonsContainer[state=Inactive], gtn750-element #DirectToNearest .buttonsContainer[state=Inactive] {
    display: none;
}

/* Nearest airport Ident logo container */
gtn750-element #DirectToNearest .DirectToWaypointButton div:first-child div:last-child {
    width: 50%;
    justify-content: space-between;
    padding-top: 3%;
    padding-left: 10%;
    margin-right: 3%;
    text-align: right;
}
/* Nearest airport Ident logo img */
gtn750-element #DirectToNearest .DirectToWaypointButton img {
    height: 4vh;
}
/* Nearest airport Ident distance unit */
gtn750-element #DirectToNearest .DirectToWaypointButton .unit {
    font-size: 1.5vh;
    padding-left: 1vh;
}
