﻿
.flight-preview {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-content: stretch;
    background-color: #F5F5F5F8;
}

.flight-header {
    height: 5vh;
    padding: 0 0.5rem;
    /*Set the flexbox for header*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flight-header > div {
    /* Les 3 div à l'intérieur prennent la place qu'ils veulent */
    flex-grow: 1;
    font-size: 2rem;
    font-weight: 500;
}

.close-flight-modal {
    flex-basis: 5%;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .3;
}

.close-flight-modal:hover {
    opacity: .5;
    cursor: pointer;
}

.flight-to {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flight-to > * {
    margin: 0 1rem;
}

.flight-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flight-info > * {
    margin: 0 1rem;
}

.flight-ldg {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flight-ldg > * {
    margin: 0 1rem;
}

/* Image au centre */
.pilot-perf-preview {
    display: flex;
    flex-direction: row;
    height: 80vh;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pilot-chart {
    transition: opacity 0.3s ease-in-out;
    height: 98%;

    /* disable selection */
    user-select: none;
}

.pilot-chart > img,
.pilot-chart > video {
    height: inherit;
    width: auto;
}

.image-nav {
    align-self: stretch;
    min-width: 5%;
    display: flex;
    align-items: center;
    justify-content: center;

    /* disable selection */
    user-select: none;
}

.image-nav > img {
    width: 3rem;
    filter: invert(58%) sepia(13%) saturate(0%) hue-rotate(174deg) brightness(105%) contrast(96%);
}

.image-nav:hover {
    cursor: pointer;
}

/*Miniature*/
.pilot-perf-miniature {
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.miniature-item {
    flex-basis: 15%;
    max-height: 95%;
    max-width: 20%;
    max-height: 95%;
    min-width: 5%;
    margin: 0 0.5rem;
    overflow: hidden;

    /* disable selection */
    user-select: none;
}

    .miniature-item:hover {
        cursor: pointer;
    }

.miniature-selected {
    border: 3px solid #9E9E9E;
}

/* Remove navigation buton when we are in portrait mode */
@media only screen and (max-width: 1200px) and (orientation: portrait) {
    .pilot-chart {
        height: auto;
        width: 100%;
    }

    .image-nav {
        display: none;
    }
}

/* Remove miniatue in landscape mode */
@media only screen and (max-height: 650px) and (orientation: landscape) {
    .pilot-perf-preview {
        height: 90vh;
    }

    .pilot-perf-miniature {
        display: none;
    }
}
