﻿/* basic styling so we can
   see what's going on */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif&family=Work+Sans:wght@300;500&display=swap');
:root {
    --background: rgba(255, 255, 255, 1.0);
    --camgreen85: rgba(34, 96, 55, 0.85);
}

body {
    margin: 0;
    font-family: 'IBM Plex', serif;
    font-size: 1.2rem;
    font-weight: 400;
    display: grid;
    grid-template-columns: 1.5em 1fr 1.5em;
    grid-template-areas:
        "hpix hpix hpix"
        ". main ."
        "footer footer footer"
}

*, *::before, *::after {
    box-sizing: border-box;
}

.phone{
    opacity: 0;
}

.hdrpix {
    display: flex;
    text-align: center;
    grid-area: hpix;
    background-image: url("../img/Feature2400_b.jpg"); 
    background-size: cover;
    background-position: center;
    align-content: center;
    justify-content: center;
    min-height: 85vh;
}


.hdrlogo{
    height: 50px;
}

.main-content {
    /*background: #DE6449;*/
    text-justify:auto;
    margin-top: 1em;
    margin-bottom: 1em;
    position: relative;
    grid-area: main;
    line-height: 1.5em;
    min-height:65vh;
}

.slideshowpix {
    display: flex;
    justify-content: center;
/*    border:2px solid red;*/
}

.sideme{
    display:flex;
    justify-content: end;
    border:2px solid blue;
}

.webelieve, .webelieve2{
    font-family: 'Work Sans', sans-serif;
    align-self: center;
    font-size: 2.2em;
    color: white;
    opacity: 0;
}

.webelievebackground, .webelievebackground2{
    position: absolute;
    align-self: end;
    text-align: center;
    padding: 1em;
    border-radius: 1em;
    transition-property: opacity;
    transition-duration: .25s;
    transition-timing-function: ease-in;
    transition-delay: 0s;
    background-color: var(--camgreen85);
    opacity: 0;
}

.slideshow, .slideshow2 {
    position: absolute;
    align-self: start;
    text-align: center;
    padding: 1px;
    transition-property: opacity;
    transition-duration: .25s;
    transition-timing-function: ease-in;
    transition-delay: 0s;
    background-color: transparent;
    opacity: 0;
}

.hide {
    opacity: 0;
}

.show{
    opacity: 1;
}

.sidebar {
    background: #407899;
}

footer {
    /*    background: #694D75;*/
    position: relative;
    background-image: url(../img/toolboxplane2400.jpg);
    background-size: cover;
    background-position: center;
    border-top: 2px solid #cccccc;
    grid-area: footer;
    text-align:center;
    align-content:center;
}

/* ======================
   contact stuff starts here 
   ========================*/

.location {
    display: flex;
    flex-direction: column;
    /*background-color: orchid;*/
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: 'Work Sans', sans-serif;
}

.address{
    /*background-color: violet;*/
    min-width: 300px;
}

.map{
    min-width: 200px;
    height: 200px;
    /*background-color: blueviolet;*/
}

.contact {
    display: flex;
    flex-direction: column;
    /*background-color: orchid;*/
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 2em;
}

.staffcontact{
    /*background-color: violet;*/
    min-width: 300px;
}

.staffpic{

    /*background-color: blueviolet;*/
}

.title {
    font-family: 'Work Sans', sans-serif;
}

.namecontact {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
}

/* ======================
   nav stuff starts here 
   ========================*/

header {
    background: var(--background);
    text-align: center;
    position: fixed;
    z-index: 999;
    width: 100%;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    border-bottom:2px solid #cccccc;
}

.nav-toggle {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

    .nav-toggle:focus ~ .nav-toggle-label {
        outline: 3px solid rgba(lightblue, .75);
    }

.nav-toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 2em;
    height: 100%;
    display: flex;
    align-items: center;
}

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: #333333;
        height: 2px;
        width: 2em;
        border-radius: 2px;
        position: relative;
    }

        .nav-toggle-label span::before,
        .nav-toggle-label span::after {
            content: '';
            position: absolute;
        }

        .nav-toggle-label span::before {
            bottom: 7px;
        }

        .nav-toggle-label span::after {
            top: 7px;
        }

nav {
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    background: var(--background);
    width: 100%;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 400ms ease-in-out;
    border-bottom: 2px solid #cccccc;
    margin-bottom: 1em;
}

    nav ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    nav li {
        margin-bottom: .5em;
        margin-left: 2em;
    }

    nav a {
        color: #666666;
        text-decoration: none;
        font-size: 1.4rem;
        text-transform: uppercase;
        opacity: 0;
        transition: opacity 150ms ease-in-out;
    }

        nav a:hover {
            color: #000;
        }

.nav-toggle:checked ~ nav {
    transform: scale(1,1);
}

    .nav-toggle:checked ~ nav a {
        opacity: 1;
        transition: opacity 250ms ease-in-out 250ms;

    }

.logo, nav, .phone {
    grid-row: 1 / 2;
}

.footerbox{
    background-color: white;
    opacity: 0.8;
    display:flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer-col-1 {
    grid-area: footcol1;
    text-align: center;
    margin-top: 3em;
    margin-bottom: 1em;
    /*background-color: mistyrose;*/ 
}

.footer-col-2 {
    grid-area: footcol2;
    text-align:left;
    margin-left: 0;
    margin-bottom: 3em;
    /*min-width: 132px;
    background-color: lavender;*/
}

.footer-col-3{
    grid-area: footcol3;
    text-align:center;
}

.biocontainer {
    position: relative;
    width: 100%;
    font-family: 'Work Sans', sans-serif;
    /*background-color:blueviolet;*/
    text-align: center;
}

.bio{
    position:relative;
    min-width: 250px;
    max-width: 250px;
    display: inline-grid;
    margin: .25em;
    /*background-color: orchid;*/
}

.biopic{
    position: relative;
    width: 100%;
}

.bioname{
    /*background-color: violet;*/
    text-align: center;
}

@media screen and (min-width: 1060px) {
    body {
        grid-template-columns: 1.5em 1fr 2fr 2fr 1fr 1.5em;
        grid-template-areas:
            "hpix hpix hpix hpix hpix hpix"
            ". . main main . ."
            "footer footer footer footer footer footer"
    }

    .nav-toggle-label {
        display: none;
    }

    header {
        display: grid;
        grid-template-columns: 1fr auto minmax(600px, 3fr) 1fr;
    }

    .logo {
        z-index: 1;
        margin-right: 1em;
    }

    .hdrlogo{
        height: 70px;
    }

    .phone {
        opacity: 1;
        grid-column: 1 / 5;
        text-align: end;
        font-weight: 300;
        margin-right: 2em;
        margin-top: .5em;
    }

    .logo {
        grid-column: 2 / 3;
    }
    
    .location{
        flex-direction: row;
    }

    .contact{
        flex-direction: row;
    }

    nav {
        /* all: unset; /* this causes issues with Edge, since it's unsupported */
        /* the following lines are not from my video, but add Edge support */
        position: relative;
        text-align: left;
        transition: none;
        transform: scale(1,1);
        background: none;
        top: initial;
        left: initial;
        /* end Edge support stuff */

        grid-column: 3 / 4;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        border: none;
    }

        nav ul {
            display: flex;
        }

        nav li {
            margin-left: 1.8em;
            margin-bottom: 0;
        }

        nav a {
            opacity: 1;
            position: relative;
        }

            nav a::before {
                content: '';
                display: block;
                height: 5px;
                background: black;
                position: absolute;
                top: -.75em;
                left: 0;
                right: 0;
                transform: scale(0, 1);
                transition: transform ease-in-out 250ms;
            }

            nav a:hover::before {
                transform: scale(1,1);
            }

    .footerbox{
        flex-direction: row;
    }

    .footer-col-1 {
        margin-bottom: 3em;
        /*background-color: mistyrose;*/
    }

    .footer-col-2 {
        margin-left: 3em;
        margin-bottom: 0;
        /*min-width: 132px;
        background-color: lavender;*/
    }

    .footer-col-3{
        margin-left: 3em;
    }
}


header {
    grid-area: header;
}

h1 {
    font-family: 'Work Sans', sans-serif;
    font-size: 2.5rem;
    font-weight:600;
    line-height:2.5rem;
}

h2 {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.9rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.9rem;
}


.sidebar {
    grid-area: side;
}

.hdrnav {
    grid-area: hnav;
}


.teampix {
    grid-area: hpix;
    background-image: url("../img/CAMgroup2000.jpg");
    background-size: cover;
    background-position: center;
    min-height: 75vh;
}



.spaceme{
    margin-left: 1em;
    margin-right: 1em;
}

    .spaceme a {
        text-decoration: none;
        color: #666666;
    }

    .spaceme a:hover{
        color: #000;
    }