
/* 
    MICRO FARM CSS
    orange: f58220 - #f5821F
    blue: 1b489b #19469D

*/

:root {
    --primary: #19469D;
    /* --primary: rgba(25,70,157,.65); */
    --accent: #f5821F;
    --truewhite: #fff;
    --trueblack: #000;
    --gray: #666;
  }

*,*::before,*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #333;
    background-color: #eee;
    font-size: 1.2em;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    grid-area: header;
    color: #fff;
    background-color: #ddd;
}

img {
    margin-top: .5em;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

h1 {
    margin-top: .25em;
    font-size: 2.5rem;
    color: var(--primary);
}

h2 {
    margin-top: .35em;
    font-size: 1.75rem;
}

h3 {
    margin-top: 0;
    font-size: 1rem;
}

p {
    margin-bottom: 1em;
    font-size: 1.25rem;
    line-height: 1.25;
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows:  1fr;
    grid-template-areas: "nav"
                         "main"
                         "footer";
}

nav {
    grid-area: nav;
}

.main {
    grid-area: main;
}

footer {
    grid-area: footer;
}

.overlay-outer-box {
    display: none;
    grid-column: 1/-1;
    grid-row: main;
    background: rgb(0, 0, 0);
    text-align: center;
    opacity: 75%;
}

.overlay-outer-box p {
    margin-top: 6em;
    color: #fff;
    font-size: 2em;
    text-align: center;
}

.overlay-outer-box .closeBtn {
    width: 150px;
    height: 50px;
    color: #fff;
    background-color: #19469D;
    font-size: 1em;
    text-align: center;
}

.overlay-outer-box .closeBtn:hover {
    color: #fff;
    background-color: var(--accent);
}

.overlay-outer-box .closeBtn:active {
    color: #333;
    background-color: #666;
}

.logo {
    color: #fff;
}

.nav-bar {
    position: fixed;
    padding: 1em;
    width: 100%;
    text-align: center;
    background-color: rgba(25,70,157,.85);
    z-index: 999;
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1em;
    width: 100%;
    text-align: left;
    background-color: rgba(25,70,157,.85);
    transform: scale(1,0);
    transform-origin: top;
    transition: 400ms ease-in-out;
}

.nav-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    margin-bottom: 1em;
    margin-left: 1em;
}

.nav-links a {
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

.nav-links a:hover {
    color: #fa9a00;
}

.nav-toggle {
    display: none;
}

.nav-toggle:checked ~ .nav-links {
    transform: scale(1,1);
}

.nav-toggle:checked ~ .nav-links a {
    opacity: 1;
    transition: opacity 250ms ease-in-out 250ms;
}

.nav-toggle-label {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    margin-left: 1em;
    color: #fff;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    position: relative;
    display: block;
    width: 2em;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 10px;
}

.nav-toggle-label span::after {
    top: 10px;
}


main {
    grid-area: main;
    margin-top: 3.5em;
    padding: 2rem;
    background-color: #eee;
}

.contactgroup {
    padding: 1.5em;
    padding-top: 3em;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.contactform .formrow {
    display: flex;
    padding: .15em;
    width: 100%;
    font-size: 1em;
    justify-content: flex-start; /* Aligns content to the left */
    align-items: flex-start;    /* Aligns content to the top */
}

.inputlabel {
    padding: .35em;
    display: inline-block;
    width: 150px;
    height: 30px;
}

.inputlabel {
    display: none;
}

.contactform input[type=text] {
    padding: .35em;
    width: 100%;
    height: 30px;
}

.contactform select {
    padding: .35em;
    width: 100%;
    height: 30px;
}

.contactform textarea {
    padding: .35em;
    width: 100%;
    height: 200px;
}

.contactform button {
    padding: .5em;
    color: #fff;
    background-color: var(--primary);
    font-size: 1em;
    cursor: pointer;
}

.contactform button:hover {
    color: #fff;
    background-color: var(--accent);
}

.contactform button:active {
    color: #333;
    background-color: #666;
}

.contactinfo h1 {
    font-size: 1.75em;
    color: var(--primary);
}

.contactinfo p {
    font-size: 1em;
}

footer {
    grid-area: footer;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    justify-items: center;
    text-align: center;
    line-height: 1.5;
    padding: 2em;
    color: #fff;
    background-color: var(--primary);
    /* background-color: #666; */
}

footer h4 {
    padding: 5px;
    font-size: 1.25em;
    color: #fff;
    /* border-radius: 5%; */
    /* background-color: var(--primary); */
}

/* IMG PROFILE */
.footer-profile  img {
    display: flex;
    margin: 0 auto 1em auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    /* background-color: #ddd; */
}

/* IMG LOGO */
.footer-contact img {
    display: flex;
    margin: 0 auto 1em auto;
    width: 100px;
    height: 100px;
    background-color: #ddd;
    
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    /* gap: .25em; */
    color: #fff;
    background-color: var(--primary);
}

footer a {
    color: var(--accent);
}

footer a:hover {
    color: #809bd2;
    text-decoration: underline;
}

@media screen and (min-width: 1000px) {

    /* .nav-toggle-label {
        display: none;
    }

    .nav-bar {
        display: grid;
        grid-template-columns: 100px auto minmax(600px, 1fr) 100px;
        padding: 2em;
    } */

    /* .logo {
        grid-column: 2 / 3;
    } */

    /* .nav-links {
        all: unset;
        grid-column: 3 / 4;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .nav-links a {
        position: relative;
        opacity: 1;
        
    }

    .nav-links ul {
        display: flex;
        justify-content: flex-end;
    }

    .nav-links li {
        margin-left: 2em;
        margin-bottom: 0;
    } 

    .nav-links a::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -.5em;
        display: block;
        height: 5px;
        background: #fa9a00;
        transform: scale(0,1);
        transition: transform ease-in-out 250ms;
    }

    .nav-links a:hover::before {
        transform: scale(1,1);
    }  */

    /* .inputlabel {
        display: none;
    }

    .contactgroup {
        padding-top: 6em; 
        display: grid;
        grid-template-columns: 1fr 1fr;
    } */
/* 
    footer {
        grid-area: footer;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2em;
        justify-items: center;
        text-align: center;
        line-height: 1.5;
        padding: 2em;
        color: #fff;
        background-color: var(--primary);
    } */

}