/*Website designed by Daniel Strathearn (takeflight@flight-sim.co.uk). Copyright © DS Flight Simulator 2023. All rights reserved.*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL,GRAD@48,400,0,0");
@import url("branding.css");

html{
    height: 100%;
    width: 100%;
}
body{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h2{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h3{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1em;
}
h4{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h5{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h6{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h7{
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* Links */

    .link{
        text-decoration: none;
        color: #003e70;
        font-weight: 600;
    }
    .basic_link{
        text-decoration: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .std_link{
        text-decoration: none;
        color: var(--colour-primary);
        font-weight: 600;
    }
    .std_link:hover{
        text-decoration: underline;
        color: var(--colour-primary-variant);
        font-weight: 600;
    }
    .grid_2x2{
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        justify-items: center;
        justify-content: center;
        gap: 20px;
        align-items: center;
    }
    .container_link{
        text-decoration: none;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-evenly;
        transition: all 300ms;
    }
    .container_link span{
        font-size: 6rem;
        padding: 20px 0px 20px 20px;
        width: 35%;
    }
    .container_link .link_text{
        display: block;
        width: 65%;
    }
    .link_text{
        margin-top: 25px;
    }
    .container_link:hover{
        background-image: var(--gradient-primary);
        color: var(--colour-white);
        transition: all 300ms;
    }
    .profile-img{
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 50%;
        display: grid;
        overflow: hidden;
        align-content: center;
        justify-items: center;
        justify-content: center;
    }
    .profile-img-lrg{
        height: 225px;
        width: 225px;
        border-radius: 75%;
        display: flex;
        overflow: hidden;
        align-content: center;
        justify-items: center;
        justify-content: center;
        border: #610606;
        background-image: var(--gradient-primary);
        background-size: cover;
    }
    .profile-img-sml{
        height: 50px;
        width: 50px;
        border-radius: 75%;
        display: flex;
        overflow: hidden;
        align-content: center;
        justify-items: center;
        justify-content: center;
        border: #610606;
        background-image: var(--gradient-primary);
        background-size: cover;
        margin: 7px;
    }
    .profile-img img{
        width: 97%;
        height: 97%;
    }
    .profile-img-lrg img, .profile-img-sml img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .profile-img-focused{
        width: 200px !important;
        height: 200px !important;
        border-radius: 50%;
        overflow: hidden;
        object-position: center center;
        display: flex;
    }


/* Button Links */

    #popup {
        opacity: 1;
        transition: transform 0.5s ease-in-out;
        transform: translateY(0);
        position: fixed;
        top: 0;
        left: 0;
        max-height: fit-content;
        width: -webkit-fill-available;
        z-index: 99999;
        visibility: visible;
        min-width: 250px;
        background-color: #333; 
        color: #fff; 
        text-align: center; 
        border-radius: 2px;
        padding: 16px; 
        bottom: 10px;
        margin: 5px;
    }

    .closePopupButton {
        margin-left: 15px;
        color: white;
        font-weight: bold;
        float: right;
        font-size: 22px;
        line-height: 24px !important;
        cursor: pointer;
        transition: 0.3s;
        scale: 150%;
    }

    .closePopupButton:hover{
        color: black;
    }

    .button1{
        background-color: var(--colour-primary);
        border-radius: 4px;
        padding: 8px;
        color: white!important;
        font-size: 90%;
        cursor: pointer;
        text-decoration: none;
    }
    .button1:hover{
        background-color: var(--colour-primary-variant);
        transition: all 300ms;
    }
    .button2{
        background-color: var(--colour-primary);
        border-radius: 4px !important;
        padding: 14px !important;
        color: white !important;
        font-size: 0.95rem;
        font-family: Wix Madefor Display, sans-serif;
        cursor: pointer;
        width: 100%;
        display: grid;
        text-align: center;
        text-decoration: none;
    }
    .button2:hover{
        background-color: var(--colour-primary-variant);
        transition: all 300ms;
    }
    .button3{
        background-color: var(--colour-success)!important;
        text-align: center;
        border-radius: 4px;
        padding: 8px;
        color: white!important;
        font-size: 0.95rem;
        cursor: pointer;
        text-decoration: none;
    }
    .button3:hover{
        background-color: var(--colour-success-variant)!important;
        transition: all 300ms;
    }
    .button4{
        background-color: var(--colour-dark_button)!important;
        text-align: center;
        border-radius: 4px;
        padding: 8px;
        color: white!important;
        font-size: 0.95rem;
        cursor: pointer;
        text-decoration: none;
    }
    .button4:hover{
        background-color: var(--colour-dark-variant)!important;
        transition: all 300ms;
    }
    .button5{
        background-color: var(--colour-danger)!important;
        text-align: center;
        border-radius: 4px;
        padding: 8px;
        color: white!important;
        font-size: 0.95rem;
        cursor: pointer;
        text-decoration: none;
    }
    .button5:hover{
        background-color: var(--colour-danger-variant)!important;
        transition: all 300ms;
    }
    .button_trio{
        display: flex;
    }
    .button_trio a{
        width: 15%;
    }


/* Containers & Main Content */

    .container{
        background-color: white;
        text-align: center;
        padding: 20px;
        border-radius: 12px;
        color: var(--colour-dark);
    }
    .header{
        display: flex;
        width: 100vw;
        height: 65px;
        position: fixed;
        box-shadow: 1px 1px 20px #c2c2c2;
        background-color: whitesmoke;
        z-index: 998;
    }
    
    .logo{
        width: 65%;
        padding: 10px;
    }
    .logo img{
        height: 100%;
    }
    .live_clock{
        width: 10%;
        text-align: center;
        color: grey;
        font-weight: 400 !important;
        margin: 5px 0;
    }
    .hello_user{
        width: 25%;
        text-align: center;
    }
    .hello_user a {
        display: flex;
        gap: 20px;
        justify-content: center;
    }
    .main_body{
        display: flex;
        background-color: var(--colour-background);
        width: 100%;
        height: calc(10000vh);
    }
    .flex_div{
        display: flex; 
        justify-content: space-evenly;
        flex-direction: row;
        align-items: center;
    }
    .menu{
        display: flex;
        background-color: var(--colour-primary);
        width: 60px;
        flex-direction: column;
        height: 100%;
        position: fixed;
        top: 65px;
        transition: all 300ms;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .menu a{
        display: flex;
        padding-left: 1rem;
        gap: 1rem;
        align-items: center;
        position: relative;
        height: 3.5rem;
        color: whitesmoke;
        text-decoration: none;
        overflow: hidden;
    }
    .menu a:last-child{
        position: absolute;
        bottom: 4.75rem;
    }
    .menu a h3{
        display: none;
    }
    .menu:hover{
        width: 10%;
        background-image: var(--gradient-primary);
        transition: all 300ms;
    }
    body:has(.menu:hover) .menu{
        padding-top: 0.25rem;
    }
    body:has(.menu:hover) .menu a{
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    body:has(.menu:hover) .menu a h3{
        display: flex;
        transition: all 300ms;
    }
    body:has(.menu:hover) .menu a:last-child{
        color: white;
    }
    .menu a:hover{
        color: white;
    }
    .menu a:hover span{
        margin-left: 0.35rem;
        transition: all 300ms;
    }
    .menu h3 span{
        font-size: 14px !important;
        margin-top: 20px !important;
        margin-left: -56px !important;
    }
    .content{
        display: flex;
        flex: 1;
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
        margin-top: 65px;
        margin-left: 60px;
        height: calc(100% - 65px);
    }
    .title{
        text-align: center;
        min-height: 40px;
    }
    .main_content{
        display: grid;
        padding: 30px;
    }
    .flight-debrief{
        display: flex;
        gap: 30px;
        justify-content: space-evenly;
        flex-direction: row;
    }
    .flight-debrief-overview{
        background-color: var(--colour-white);
        border-radius: var(--border-radius-2);
        padding: 20px;
        width: 300px;
    }
    .flight-debrief-overview h2{
        margin: 0px;
    }
    #map{
        height: 670px;
        border-radius: var(--border-radius-2);
        width: calc(100% - 300px);
        z-index: 1;
    }
	.pilots{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1.5rem;
	}
    footer{
        display: flex;
        text-align: center;
        background-color: white;
        min-height: 40px;
        justify-content: center;
        align-items: center;
        margin-top: auto;
        height: fit-content;
        padding: 10px;
    }
    footer h7 {
        margin: 0;
    }


/* Forms */

    input[type="file"]{
        cursor: pointer;
        font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: var(--colour-background-variant);
        margin: 20px;
        width: 250px;
    }

    input[type="file"]::file-selector-button{
        cursor: pointer;
        font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: var(--colour-primary);
        color: var(--colour-white);
        padding: 10px;
        border-radius: var(--border-radius-1);
        transition: all 200ms;
        border: var(--colour-primary);
        font-weight: 400 !important;
    }

    .file_upload_button{
        padding: 10px !important;
        font-weight: 400 !important;
        font-size: 16px !important;
    }

    input[type="file"]::file-selector-button:hover{
        background-color: var(--colour-primary-variant);
    }

    .form__input,
    .form__button {
        font: 500 1.1rem 'Quicksand', sans-serif;
    }

    .form--hidden {
        display: none;
    }

    .form--visible {
        display: inherit;
    }

    .form > *:first-child {
        margin-top: 0;
    }

    .form > *:last-child {
        margin-bottom: 0;
    }

    .form__title {
        margin-bottom: 2rem;
        text-align: center;
    }

    .form__message {
        text-align: center;
        margin-bottom: 1rem;
    }

    .form__message--success {
        color: var(--colour-success);
    }

    .form__message--error {
        color: var(--colour-danger);
    }

    .form__input-group {
        margin-bottom: 1rem;
    }

    .form__input {
        display: block;
        width: 100%;
        padding: 0.75rem;
        box-sizing: border-box;
        border-radius: var(--border-radius-2);
        border: 1px solid #dddddd;
        outline: none;
        background: #eeeeee;
        transition: background 0.2s, border-color 0.2s;
    }

    .form__input-placeholder{
        text-align: left;
        margin-bottom: 5px;
    }

    select.form__input {
        margin-bottom: 1rem;
    }

    textarea.form__input {
        margin-bottom: 1rem;
        height: 250px;
        min-height: 50px;
        resize: vertical;
    }

    .form__input--checkbox {
        float: left;
        width: 20px;
        height: 20px;
        margin-top: 2px;
        margin-right: 10px;
    }

    .form__input--checkbox--text {
        margin: 1px 0px 0px 0px;
        text-align: left;
    }

    .form__input:focus {
        border-color: var(--colour-primary);
        background: #ffffff;
    }

    .form__input:disabled {
        cursor: not-allowed;
    }

    .form__input--error {
        color: var(--colour-danger);
        border-color: var(--colour-danger);
    }

    .form__input-error-message {
        margin-top: 0.5rem;
        font-size: 0.85rem;
        color: var(--colour-danger);
    }

    .form__button {
        width: 100%;
        padding: 1rem 2rem;
        font-weight: bold;
        font-size: 1.1rem;
        color: #ffffff;
        border: none;
        border-radius: var(--border-radius-1);
        outline: none;
        cursor: pointer;
        background: var(--colour-primary);
        transition: all 200ms;
    }

    .form__button:hover {
        background: var(--colour-primary-variant);
    }

    .form__button:disabled{
        background: var(--colour-info-dark);
        transform: scale(1) !important;
        cursor: not-allowed;
    }

    .form__button:active {
        transform: scale(0.99);
    }

    .form__text {
        text-align: center;
    }

    .form__link {
        color: var(--colour-primary-variant);
        text-decoration: none;
        cursor: pointer;
    }

    .form__link:hover {
        text-decoration: underline;
    }


/* Tables */

    #logbook{
        padding: 60px 60px 0px 60px;
    }
    .recent-flights h2{
        margin-bottom: 0.8rem;
    }
    .table-div{
        box-shadow: var(--box-shadow);
        overflow-x: auto;
        padding: 10px !important;
    }
    .table-div:hover{
        box-shadow: none;
    }
    .recent-flights table{
        background: var(--colour-white);
        width: 100%;
        border-radius: var(--card-border-radius);
        padding: var(--card-padding);
        text-align: center;
        box-shadow: var(--box-shadow);
        transition: all 300ms ease;
        table-layout: fixed;
        min-width: 500px;
    }
    .recent-flights table:hover{
        box-shadow: none;
    }
    table tbody td{
        height: 2.8rem;
        border-bottom: 1px solid var(--colour-light);
        color: var(--colour-dark-variant);
    }
    table tbody tr:last-child td{
        border: none;
    }
    .recent-flights a{
        text-align: center;
        display: block;
        margin: 1rem auto;
        color: var(--colour-primary);
        text-decoration: none;
    }


/* Media Queries for Tablets and Phones */

    @media screen and (max-width: 415px) {
        .logo img{
            width: 100%;
            height: auto;
        }
    }
    @media screen and (max-height: 560px) {
        .menu{
            max-height: calc(100vh - 20px);
        }
        .menu a:last-child{
            bottom: 0px !important;
        }
    
    }
    @media screen and (max-width: 768px) {
        .menu{
            display: none;
        }
        .content{
            width: 100%;
            margin-left: 0px;
        }
        .logo{
            width: 100% !important;
        }
        .live_clock{
            display: none;
        }
        .hello_user{
            display: none;
        }
        .logo{
            display: flex;
            justify-content: center;
        }
        .flex_div{
            flex-direction: column;
            gap: 20px;
        }
        .flight-debrief{
            flex-direction: column;
        }
        .flight-debrief-overview{
            width: calc(100% - 40px);
        }
        #map{
            width: 100%;
        }
    }


/* Media Queries for Laptops */

    @media screen and (max-width: 1000px) {
        .logo{
            width: 55%;
        }
        .live_clock{
            display: none;
        }
        .hello_user{
            width: 45% !important;
        }
        .grid_2x2{
            flex-direction: column;
        }
        .container_link{
            width: 95%;
        }
    }

    @media screen and (max-width: 1400px) {
        .logo{
            width: 55%;
        }
        .live_clock{
            width: 15%;
        }
        .hello_user{
            width: 30%;
        }
    }


/* Media Queries for Desktop */

    @media screen and (max-width: 1920px) {
        .menu:hover{
            width: 200px;
            transition: all 300ms;
        }
    }