:root{
    --bqg-blue: rgb(9,70,133);
    --bqg-grey: rgba(80,86,94, 0.5);
    --menu-count: 4;
}

* {
    box-sizing: border-box;
    font-family: "Baskerville";

}

html, body {
    margin: 0;
    padding: 0;
    background-color: white;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes at least the full height of the viewport */
}

/* Pre-loading in icons*/
body::after{
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    content: url(../Images/LinkedIn_icon-color.png) url(../Images/github-dark.png) url(../Images/instagram-dark.png)
}
main{
    flex: l;
}


/*-------------- General Classes ----------------------*/
.card {
    width: 100%;
    height: 100%;
    font-size: 24px;
    background: var(--bqg-blue);
    font-family: inherit;
    border-radius: 8px;
    align-items: center;
}

.container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-wrapper {
    width: 100%;
    margin: 0 auto;
}

.content-section {
    margin: 1em;
    max-width: 1200;
}

.section-header {
    text-align: center;
    font-size: 2.5em;
    margin: 2.5%;
}

.banner {
    width: 100%;
    background-color: var(--bqg-blue);
    height:fit-content;
    padding: 20px;
}

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

/* --------------- Nav classes ------------------------------------------- */
.mobile-menu-btn{
    display: none;
}

.mobile-header {
    display: none;
}

.main-header {
    width: 100%;
    height: 60px;
    background-color: white;
    display: flex;
    justify-content: space-between;
}
.main-header-logo {
    width: fit-content;
    height: 100%;
    padding-left: 60px;
    display: flex;
}

.main-header-logo img{
    width:60px;
    height:60px;
}

.main-header-nav {
    width: fit-content;
    height: 100%;
}

.main-header-nav ul{
    list-style: none;
    margin: 0;
}

.main-header-nav li{
    display: inline;
    float: left;
    font-size: 24px;
}

.main-header-nav li a{
    display: inline-block;
    padding: 0 10px;
    color: var(--bqg-blue);
    text-decoration: none;
    line-height: 60px;
}

.main-header-nav li a:hover {
    color: var(--bqg-grey);
}

.main-header-sm {
    width: fit-content;
    height: 100%;
    padding-right: 60px;
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.main-header-sm-lin{
    width: 30px;
    height: 30px;
    background-image: url(../Images/LinkedIn_icon.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.main-header-sm-git{
    width: 30px;
    height: 30px;
    background-image: url(../Images/Github_icon.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.main-header-sm-inst{
    width: 30px;
    height: 30px;
    background-image: url(../Images/instagram.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.main-header-sm-lin:hover{
    background-image: url(../Images/LinkedIn_icon-color.png);
}

.main-header-sm-inst:hover{
    background-image: url(../Images/instagram-dark.png);
}

.main-header-sm-git:hover{
    background-image: url(../Images/github-dark.png);
}

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


/*----------- Contact Button Classes ------------------*/

a{
    text-decoration: none;
    cursor: pointer;

}
.contactButton {
    background: rgb(9,70,133);
    color: white;
    font-family: inherit;
    padding: 0.45em;
    padding-left: 1em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.9em;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #00AFB9;
    overflow: hidden;
    position: relative;
    height: 2.8em;
    padding-right: 3em;
}

.iconButton {
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #00AFB9;
    right: 0.3em;
    transition: all 0.3s;
}
  
.contactButton:hover {
    transform: translate(-0.05em, -0.05em);
    box-shadow: 0.15em 0.15em var(--bqg-grey);
}

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

/*--------------- Footer Classes ------------------*/

.main-footer {
    width: 100%;
    background-color: white;
    color: var(--bqg-blue);
    padding: .25em 0;
    display: flex;
    justify-content: space-between;
}

.main-footer-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: .5em 0 0 2em;   
}

.main-footer-container img {
    width:60px;
    height:60px;
}

.main-footer-container ul{
    list-style: none;
    margin: 0; 
}

.footer-nav li{
    display: inline;
    float: left;
    font-size: 16px;
}

.footer-nav img{
    width: 30px;
    height: 30px;
}


.footer-nav li a{
    display: inline-block;
    padding: 0 10px;
    color: var(--bqg-blue);
    text-decoration: none;
    line-height: 60px;
    font-size: 24px;
}


.footer-sitemap {
    flex-basis: 100%;
    display: flex;
}

.footer-sitemap ul:nth-child(1){
    flex-basis: 20%;
}

.footer-sitemap ul:nth-child(1) img{
    width: 60px;
    height: 60px;   
}

.footer-sitemap ul:nth-child(2){
    flex-basis: 40%;
}

.footer-sitemap ul:nth-child(3){
    flex-basis: 20%;
}

.footer-sitemap ul:nth-child(3) li{
    flex-basis: 20%;
    line-height: 30px;
    font-size: 18px;
    padding:5px 0;
}

.footer-sitemap ul:nth-child(3) h3{
    font-size: 24px;
}

.footer-sitemap ul:nth-child(3) img {
    height: 30px;
    width: 30px;
}


.footer-sitemap p{
    color: var(--bqg-blue);
}

.footer-sitemap h3{
    color: var(--bqg-blue);
}

.footer-sitemap li a{
    display: inline-block;
    padding: 0 10px;
    color: var(--bqg-blue);
    text-decoration: none;
    line-height: 30px;
    font-size: 24px;
}

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

/* MOBILE VERSION */

@media only screen and (max-width: 600px) {
    /*--------- General section-----------------*/
    .section-header {
        text-align: center;
        font-size: 1.75em;
        margin: 5%;
    }

    .card {
        flex-grow: 0.8;
        font-size: 16px;
        line-height: 20px ;
    }
    
    /*------------------------------------------*/
    /*--------- Header -------------------------*/

    .mobile-header {
        width: 100%;
        height: 60px;
        background-color: white;
        display: flex;
        justify-content: space-between;
    }

    .mobile-header-logo {
        height: 60px;
        width:  60px;
        margin: 0;
        margin-left: 5%;
        display: flex;
        justify-content: center;
    }

    .main-header {
        display: None;
    }
    .main-header-logo {
        height: 20%;
        width: 100%;
        padding:0;
        margin: 0;
        display: flex;
        justify-content: center;
    }
    .main-header-logo img{
        height: 180px;
        width: 180px;
        align-self: center;
        cursor: pointer;
    }

    .mobile-menu-btn{
        position: absolute;
        display: flex;
        justify-content: center;
        width: 60px;
        height: 60px;
        top:0;
        right: 5%;
        z-index: 200;
        background-color: white;
    }

    .mobile-menu-btn img{
        height: 80%;
        align-self: center;
    }

    .main-header {
        height: 100vh;
        flex-wrap: wrap;
        flex-direction: column;
        padding: 0;
        justify-content: flex-start;
    }

    .main-header-nav {
        width: 100%;
        height: 40vh;
        flex-wrap: wrap;
        flex-direction: column;
        padding: 0;
        align-content: stretch;
        background-color: white;
        z-index: 200;
    }

    .main-header-sm {
        padding: 0px;
        width: 100%;
        height: 20vh;
        flex-wrap: wrap;
        padding: 0;
        justify-content: center;
        background-color: white;
        z-index: 200;
    }

    .main-header-nav ul{
        list-style: none;
        margin: 0;
        height: 100%;
        width: 100%;
        padding: 0;
        flex-wrap: wrap;
        flex-direction: column;
        align-content: space-between;
    }

    .main-header-nav ul li{
        width: 100%;
        height: calc(100% / var(--menu-count));
        padding: 0;
        margin: 0;
        border-top: 1px solid #ddd;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: center;
        transition: all ease-in-out 100ms;
    }

    .main-header-nav ul li:nth-last-child(1) {
        border-bottom: 1px solid #ddd;
    }

    .main-header-nav ul li a{
        width: 100%;
        height: fit-content;
        padding: 0;
        margin: 0;
        text-align: center;
        font-size: 2.5rem;
    }

    .main-header-nav ul li a:hover{
        background-color: transparent;
        color: var(--bqg-blue);
    }

    .main-header-nav {
        overflow-y: scroll;
        overflow-x: hidden;
    }

    /*---------------------------------------------*/
    /*--------------- Footer Classes --------------*/

    .footer-sitemap ul:nth-child(3) li:nth-child(1) {
        display: none;
    }

    .footer-sitemap ul:nth-child(3) li:nth-child(2) {
        display: none;
    }


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

    /*--- Burger Menu ----*/
    .burger-container{
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 60px;
        height: 60px;
        top:0;
        right: 5%;
        z-index: 200;
        background-color: white;
        text-align: center;
    }

    .burger {
        position: absolute;
        width: 40px;
        height: 30px;
        background: transparent;
        cursor: pointer;
        display: block;
        
    }
    
    .burger input {
    display: none;
    }
    
    .burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--bqg-blue);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    }
    
    .burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
    }
    
    .burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
    }
    
    .burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-50%);
    }
    
    .burger input:checked ~ span:nth-of-type(1) {
    top: 0;
    left: 5px;
    transform: rotate(405deg);
    }
    
    .burger input:checked ~ span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
    }
    
    .burger input:checked ~ span:nth-of-type(3) {
    top: 28px;
    left: 5px;
    transform: rotate(-405deg);
    }
}
