/*---------------------General fonts and colors -----------------------------*/

body {
    font-family: Nunito, Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #444444;
    font-size: 1.1rem;
    line-height: 1.5;
}

a {
    color: #3498db;
}

a:hover {
    color: #5faee3;
    text-decoration: none;
}


/* h1 is used purely for crawl bots, it won't display the content */

h1 {
    visibility: hidden;
    font-size: 0rem;
    line-height: 0rem;
    margin-top: 0;
    margin-bottom: 0;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", sans-serif;
    font-weight: 900;
}


/* If the first line in a jumbotron is h5 it needs its top margin reducing by 1 line */

div.jumbo h5:first-child {
    margin-top: -1em;
}


/* For h5 in the jumbo add a line spacing above */

div.jumbo h5::before {
    content: "";
    height: 1rem;
    display: block;
}


/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/

section {
    padding: 60px 0;
}

.section-bg {
    background-color: #f7fbfe;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
    padding-top: 10px;
}

.section-title h2 {
    /*font-size: 32px;*/
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title h2::before {
    content: "";
    position: relative;
    display: block;
    height: 20px;
    /* content: "\a";
  white-space: pre;*/
}

.section-title p {
    margin-bottom: 0;
}

#Main-Section .jumbotron {
    padding-top: 2em;
}


/* Reduce top margin within the jumbotron (jumbo) class */

#Main-Section #Ground-Crew-Life .jumbo,
#Main-Section #Sqdn-History .jumbo,
#Main-Section #links .jumbo,
#Main-Section #Sqdn-Aircraft .jumbo,
#Main-Section #contacts .jumbo,
#Main-Section #RAF-Years .jumbo,
#Main-Section #Early-Years .jumbo {
    margin-top: -1em;
}


/* Used for spacing between rows */

.top40 {
    margin-top: 40px;
}


/* Used for spacing between rows */

.top10 {
    margin-top: 10px;
}

.jumbotron {
    padding-bottom: 15px;
}

#footer .copyright {
    font-family: Nunito, Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    text-align: center;
}

#footer .credits {
    font-family: Nunito, Helvetica Neue, Helvetica, Arial, sans-serif;
    /*padding-top: 5px;*/
    font-size: 1rem;
    color: #444444;
    text-align: center;
}


/************ Table Heading and background colors **************/

.bg-blue {
    background-color: #314190;
}

.font-white {
    color: white;
}


/************ END - Table Heading and background colors **************/


/************ Navbar color, size and font adjustments **************/

.bg-267-navbar-color {
    background-color: darkblue;
}


/* The heading text in the navbar */

.navbar-heading {
    font-size: 2rem !important;
    font-family: sans-serif;
    color: white;
}


/* If the screen size is 1250px wide or more, set the font-size of navbar-heading */

@media screen and (min-width: 1250px) {
    .navbar-heading {
        font-size: 2.3rem !important;
    }
    .navbar li {
        margin-left: 1em;
        margin-right: 1em;
    }
}


/* If the screen size is 1200px wide or less, set the font-size of navbar-heading */

@media screen and (max-width: 1200px) {
    .navbar-heading {
        font-size: 2rem !important;
    }
}


/* If the screen size is 10240px wide or less, set the font-size of navbar-heading */

@media screen and (max-width: 1024px) {
    .navbar-heading {
        font-size: 1.6rem !important;
    }
}


/* If the screen size is 768px wide or less, set the font-size of navbar-heading */

@media screen and (max-width: 768px) {
    .navbar-heading {
        font-size: 1.3rem !important;
    }
    .navbar-toggler-icon {
        font-size: 0.8em;
    }
}


/* If the screen size is 447px wide or less, set the font-size of navbar-heading */

@media screen and (max-width: 447px) {
    .navbar-heading {
        /*font-size: 0.9rem !important;*/
        font-size: 0.95rem !important;
    }
    .navbar-toggler-icon {
        font-size: 0.6em;
    }
}

.navbar-nav {
    /*font-size: 1.4vw !important;*/
    font-size: 1.2em;
    font-family: sans-serif;
}


/* Keep the Main Heading Text white when hovered over */

.navbar-heading:hover {
    color: white;
}


/* Change the cover of the dropdown items when hovered over */

.dropdown-menu>a:hover {
    background-color: #79aefe !important;
}


/*
.navbar-nav :active {
  background-color: #79aefe;
  color: #79aefe;
}
*/


/* Keep parent of dropdown in the same hover over color */

.navbar-nav li:active,
.navbar-nav li::selection {
    color: #79aefe;
}


/*
li.show {
  color: #fe7979 !important;
}
*/


/* Change the cover of the menu items when hovered over */

.nav-item>a:hover {
    color: #79aefe !important;
}


/********* End Navbar color, size and font adjustments **************/


/********************** Carousel ************************************/

.carousel-caption {
    position: relative;
    left: 0;
    top: 0;
}


/* Make the image fully responsive */

.carousel-inner img {
    width: 90%;
    height: 90%;
}


/**********************  End Carousel *********************************/


/********************* Image and text together formatting *************/


/* eg Ron Early Years */


/*#RAF-Years .figure-img {
  max-width: 375px;
  max-height: 350px;
  align-content: center;
  align-items: center;
  justify-content: center;
  text-align: center;
}
*/

#RAF-Years .figure-img {
    width: auto;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#Early-Years .figure-img {
    width: auto;
    /* max-width: 200px;*/
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#Img-Gallery .figure-img {
    max-height: 250px;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* BS4 figure class, override to centre figure in column */

.figure {
    text-align: center;
    display: block;
}


/* BS4 class - format image captions */

.figure-caption {
    text-align: center;
}


/* BS4 class - format image captions */

#Img-Gallery .figure-caption {
    text-align: center;
    margin-bottom: 20px;
}

Image {
    margin-bottom: 10px;
    margin-top: 20px;
}


/********************* END Image and text together formatting *********/


/********************* Image Gallery Formatting from Lumia *******/


/*--------------------------------------------------------------
# Main-Section
--------------------------------------------------------------*/

.Main-Section {
    padding: 20px 0;
    /*padding: 60px 0; original padding */
}

.ImageGallery {
    padding: 60px 0;
}


/* ***************************************** New for Robs Version *********************************/

.Main-Section #ImageGallery-filters {
    padding: 0;
    margin: 0 0 35px 0;
    list-style: none;
    text-align: center;
}

.Main-Section #ImageGallery-filters li {
    cursor: pointer;
    margin: 0 15px 15px 0;
    display: inline-block;
    padding: 10px 20px;
    font-size: 12px;
    line-height: 20px;
    color: #444444;
    border-radius: 4px;
    text-transform: uppercase;
    background: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
}

.Main-Section #ImageGallery-filters li:hover,
.Main-Section #ImageGallery-filters li.filter-active {
    background: #3498db;
    color: #fff;
}

.Main-Section figure {
    overflow: hidden;
    /* height: 240px; /* Was originally 240px */
    /* height: fit-content; /* So that all of picture is shown on mobiles - RLM */
    position: relative;
    border-radius: 4px 4px 0 0;
    margin: 10px;
}

.Main-Section figure:hover img {
    opacity: 0.5;
    transition: 0.4s;
}

.Main-Section #ImageGallery-filters li:last-child {
    margin-right: 0;
}


/**************************** End of New for Robs ***************************************************/

.Main-Section .Main-Section-wrap {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.Main-Section .Main-Section-wrap:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}


/********************* Image Gallery Formatting  ********************/


/* **************************** Body fonts etc **********************/

@media screen and (max-width: 768px) {
    body .body-text,
    body p,
    ul li {
        font-size: 1rem;
    }
    .figure-caption {
        font-size: 0.8rem;
    }
    /* Table Fonts */
    #RAF-Service .Table-format,
    #Ground-Crew-Life .Table-format,
    #Sqdn-Aircraft-Table .Table-format {
        font-size: 0.9em;
    }
}

#RAF-Service .Table-text-centre,
#Sqdn-Aircraft-Table .Table-text-centre {
    text-align: center;
}

#RAF-Service .Table-format {
    font-weight: normal;
}

#Sqdn-Aircraft-Table .Table-format {
    font-weight: normal;
    border: 2px solid black;
    /* Width of the table in the container */
    width: 85%;
    /* Puts the table in the center */
    margin: auto;
}

#Ground-Crew-Life .Table-format {
    font-weight: normal;
    /* Width of the table in the container */
    width: 80%;
    /* Puts the table in the center */
    margin: auto;
    text-align: center;
    margin-bottom: 20px;
}

#RAF-Service .Table-Year-Heading {
    text-align: center;
    background-color: #314190;
    color: white;
    border-width: 1em;
    border-color: black;
}

#RAF-Service .Table-Heading,
#Sqdn-Aircraft-Table .Table-Heading {
    text-align: center;
    background-color: #c9cbdc;
    font-weight: bolder;
    background-color: #314190;
    color: white;
    font-weight: normal;
    line-height: normal;
}

#RAF-Years .horizontal-line,
#Sqdn-Aircraft-Table .horizontal-line {
    margin-top: 2em;
    margin-bottom: 2em;
}

#Sqdn-Aircraft-Table table td {
    text-align: center;
}

#footer .horizontal-line {
    margin-top: 2em;
    height: 1px;
    background-color: rgb(182, 179, 179);
}


/**************************** End Body fonts etc ********************/


/* Hamburger Menu Support to slide in and out */

body {
    position: relative;
    overflow-x: hidden;
}

.nav .open>a,
.nav .open>a:hover,
.nav .open>a:focus {
    background-color: transparent;
}


/***************************** This is the modal style for clicking on an image ********/

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {
    opacity: 0.7;
}


/* The Modal (background) */

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}


/* Modal Content (image) */

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}


/* Caption of Modal Image */

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}


/* Add Animation */

.modal-content,
#caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0);
    }
    to {
        -webkit-transform: scale(1);
    }
}

@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}


/* The Close Button */

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* 100% Image Width on Smaller Screens */

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 80%;
    }
}


/* 100% Image Width on Larger Screens */

@media only screen and (min-width: 701px) {
    .modal-content {
        width: calc(100vh - 243px);
    }
}


/********************************* End of MODAL sytling *******************************/


/*-------------------------------*/


/*           Wrappers            */


/*-------------------------------*/

#wrapper {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#wrapper.toggled {
    padding-left: 220px;
}

#sidebar-wrapper {
    z-index: 1000;
    left: 220px;
    width: 0;
    height: 100%;
    margin-left: -220px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1a1a1a;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#sidebar-wrapper::-webkit-scrollbar {
    display: none;
}

#wrapper.toggled #sidebar-wrapper {
    width: 220px;
}

#page-content-wrapper {
    width: 100%;
    padding-top: 70px;
}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -220px;
}


/*-------------------------------*/


/*     Sidebar nav styles        */


/*-------------------------------*/

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li {
    position: relative;
    line-height: 20px;
    display: inline-block;
    width: 100%;
}

.sidebar-nav li:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 3px;
    background-color: #1c1c1c;
    -webkit-transition: width 0.2s ease-in;
    -moz-transition: width 0.2s ease-in;
    -ms-transition: width 0.2s ease-in;
    transition: width 0.2s ease-in;
}

.sidebar-nav li:first-child a {
    color: #fff;
    background-color: #1a1a1a;
}

.sidebar-nav li:nth-child(2):before {
    background-color: #ec1b5a;
}

.sidebar-nav li:nth-child(3):before {
    background-color: #79aefe;
}

.sidebar-nav li:nth-child(4):before {
    background-color: #314190;
}

.sidebar-nav li:nth-child(5):before {
    background-color: #279636;
}

.sidebar-nav li:nth-child(6):before {
    background-color: #7d5d81;
}

.sidebar-nav li:nth-child(7):before {
    background-color: #ead24c;
}

.sidebar-nav li:nth-child(8):before {
    background-color: #2d2366;
}

.sidebar-nav li:nth-child(9):before {
    background-color: #35acdf;
}

.sidebar-nav li:hover:before,
.sidebar-nav li.open:hover:before {
    width: 100%;
    -webkit-transition: width 0.2s ease-in;
    -moz-transition: width 0.2s ease-in;
    -ms-transition: width 0.2s ease-in;
    transition: width 0.2s ease-in;
}

.sidebar-nav li a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 10px 15px 10px 30px;
}

.sidebar-nav li a:hover,
.sidebar-nav li a:active,
.sidebar-nav li a:focus,
.sidebar-nav li.open a:hover,
.sidebar-nav li.open a:active,
.sidebar-nav li.open a:focus {
    color: #fff;
    text-decoration: none;
    background-color: transparent;
}

.sidebar-nav>.sidebar-brand {
    height: 65px;
    font-size: 20px;
    line-height: 44px;
}

.sidebar-nav .dropdown-menu {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    background-color: #222;
    box-shadow: none;
}


/*-------------------------------*/


/*       Hamburger-Cross         */


/*-------------------------------*/

.hamburger {
    position: fixed;
    top: 20px;
    z-index: 999;
    display: block;
    width: 32px;
    height: 32px;
    margin-left: 15px;
    background: transparent;
    border: none;
}

.hamburger:hover,
.hamburger:focus,
.hamburger:active {
    outline: none;
}

.hamburger.is-closed:before {
    content: "";
    display: block;
    width: 100px;
    font-size: 14px;
    color: #fff;
    line-height: 32px;
    text-align: center;
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transition: all 0.35s ease-in-out;
}

.hamburger.is-closed:hover:before {
    opacity: 1;
    display: block;
    -webkit-transform: translate3d(-100px, 0, 0);
    -webkit-transition: all 0.35s ease-in-out;
}

.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom,
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
    position: absolute;
    left: 0;
    height: 4px;
    width: 100%;
}

.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom {
    background-color: #1a1a1a;
}

.hamburger.is-closed .hamb-top {
    top: 5px;
    -webkit-transition: all 0.35s ease-in-out;
}

.hamburger.is-closed .hamb-middle {
    top: 50%;
    margin-top: -2px;
}

.hamburger.is-closed .hamb-bottom {
    bottom: 5px;
    -webkit-transition: all 0.35s ease-in-out;
}

.hamburger.is-closed:hover .hamb-top {
    top: 0;
    -webkit-transition: all 0.35s ease-in-out;
}

.hamburger.is-closed:hover .hamb-bottom {
    bottom: 0;
    -webkit-transition: all 0.35s ease-in-out;
}

.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
    background-color: #1a1a1a;
}

.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-bottom {
    top: 50%;
    margin-top: -2px;
}

.hamburger.is-open .hamb-top {
    -webkit-transform: rotate(45deg);
    -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.73, 1, 0.28, 0.08);
}

.hamburger.is-open .hamb-middle {
    display: none;
}

.hamburger.is-open .hamb-bottom {
    -webkit-transform: rotate(-45deg);
    -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.73, 1, 0.28, 0.08);
}

.hamburger.is-open:before {
    content: "";
    display: block;
    width: 100px;
    font-size: 14px;
    color: #fff;
    line-height: 32px;
    text-align: center;
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transition: all 0.35s ease-in-out;
}

.hamburger.is-open:hover:before {
    opacity: 1;
    display: block;
    -webkit-transform: translate3d(-100px, 0, 0);
    -webkit-transition: all 0.35s ease-in-out;
}


/*-------------------------------*/


/*            Overlay            */


/*-------------------------------*/

.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(250, 250, 250, 0.8);
    z-index: 1;
}


/* End Hamburger slide in Menu */