/**** Header styling ****/
#main {
    margin-top: 0;
}

.planes-header {
    position: relative;
    background: black;
    text-align: center;
    color: white;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: 0;
    overflow: hidden;
}

.planes-header-flex {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.planes-header-content {
    width: 90%;
    margin: auto;
}

.planes-nav {
    padding: 20px 0;
    font-size: 1.2em;
    letter-spacing: 1px;
    color: #f7cd0d;
}

.planes-link-wrapper {
    padding: 5px 15px;
    cursor: pointer;
}
.planes-link {
    transition: .5s all;
}
.planes-link:hover {
    color: white;
}

.header-h2 {
    margin-bottom: 25px;
}

@media (min-width:768px) {
    .header-wrapper {
        padding: 35px 0 !important;
    }
}

/**** Shared styles between all single planes ****/
.single-plane-wrapper h1 {
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 0;
}
.plane-image-mobile {
    width: 100%;
    height: auto;
    margin-bottom: -1px;
}

.plane-bottom-wrapper {
    background-color: grey;
    color: white;
}

.plane-bottom-grid {
    background: rgba(0,0,0,.3);
    width: 100%;
    margin: auto;
    padding: 20px 0;
    text-align: center;
}

.plane-bottom-column {
    border-bottom: solid 1px rgba(255,255,255,.7);
    width: 90%;
    margin: auto;
}
.plane-bottom-column:last-child {
    border-bottom: 0px;
}

.plane-bottom-column-flex {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
}

.plane-stat-half {
    width: 50%;
}

.plane-stat-wrapper {
    padding: 20px 0;
}

.plane-bottom-title {
    font-weight: 400;
    text-transform: uppercase;
    font-size: .8em;
    opacity: .7;
    width: 90%;
    margin: 10px auto;
}
.plane-bottom-stat {
    width: 90%;
    margin: auto;
    font-weight: 700;
    font-size: 1.5em;
    letter-spacing: 1px;
}

.modern-bottom-stat {
    width: 90%;
    margin: auto;
    font-weight: 600;
    letter-spacing: 1px;
}

.plane-stat-armament {
    font-size: .8em;
    width: 80%;
}

.single-plane-top-content {
    display: none;
}
.single-plane-middle-content {
    width: 90%;
    margin: auto;
    padding: 20px;
    line-height: 1.5;
}

/* This changes earlier than 768 because the text on the plane graphic gets a little messed up before that */
@media (min-width:900px) {
    .plane-image-mobile {
        display: none;
    }
    
    .single-plane-top {
        height: 55vw;
        max-height: 900px;
        display: flex;
        background-size: auto 100%;
        align-items: flex-end;
    }
    
    .single-plane-top-content {
        font-size: 1em;
        display: block;
        width: 35vw;
        line-height: 1.5;
    }
    
    .single-plane-wrapper:nth-child(even) .single-plane-top {
        background-position: top left;
    }
    .single-plane-wrapper:nth-child(odd) .single-plane-top {
        background-position: top right;
    }
    
    .single-plane-wrapper:nth-child(even) .single-plane-top-content {
        margin: 0 0px 0 auto;
        padding: 0 5vw 5vw 0px;
    }
    .single-plane-wrapper:nth-child(odd) .single-plane-top-content {
        padding: 0 0 5vw 5vw;    
    }
    
    .single-plane-middle-wrapper {
        display: none;
    }
    
    .plane-bottom-grid {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .plane-bottom-column {
        flex: 1;
        width: calc(100% / 3);
        box-sizing: border-box;
        border-right: 1px solid rgba(255,255,255,.5);
        border-bottom: 0;
    }
    .plane-bottom-column:last-child {
        border-right: 0px;
    }
}

/**** Modern Planes ****/
.modern-planes-wrapper {
    text-align: center;
    background: #37455b;
}

/* .modern-planes-grid {
    margin-top: 25px;
} */

.modern-plane-top {
    height: 75vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all .5s;
}

.modern-plane-top:hover {
    opacity: .8;
}

.modern-plane-bottom {
    padding: 40px 0;
    width: 110%;
    margin: auto;
}
.modern-plane-bottom h3 {
    font-size: 3.5em;
    letter-spacing: 2px;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .modern-planes-grid {
        display: flex;
    }
    
    .modern-plane-wrapper {
        width: 25%;
        flex: 1;
    }

    .modern-plane-top {
        height: 15vw;
    }
    
    .modern-plane-bottom {
        width: 100%;
        background-image: linear-gradient(to bottom right, #37455b, #162030);
        min-height: 355px;
    }
}