body {
    background-image: url("images/blue-mountains.webp");
    background-size: cover;
    margin: 0em;
    font-family: "Mulish", sans-serif;
    background-color: #050f24;
}

.center {
    text-align: center;
}

h1.home {
    padding-top: 0.2em;
    font-size: 4em;
    background-color: hsl(208, 100%, 97%, 0);
    text-align: left;
    margin-top: 0em;
    margin-bottom: 0em;
}

h1.section.work {
    padding-bottom: 0.5em;
}

h2.home {
    padding-bottom: 2em;
    padding-right: 1em;
    font-size: 1.3em;
}

h3 {
    margin-bottom: 0em;
}

hr {
    border: 0.05em solid black;
    margin-top: -1em;
}

p.section {
    margin-top: 0em;
}

ul {
    padding-left: 1em;
}

ol {
    list-style-type: none;
    padding-left: 0em;
}

img.home {
    box-shadow: 5px 5px 30px;
    margin-top: 5em;
    width: 90%;
    margin-left: 1em;
}

ul.home {
    list-style-type: none;
    font-size: 2em;
}

section.home {
    padding-top: 1.5em;
    padding-left: 1em;
}

header.section {
    padding-left: 100%;
    background-color: #050f24;
    margin-top: -5em;
    position: fixed;
    height: 4em;
}

header.home {
    margin-top: -5em;
    padding-left: 100%;
    background-color: #050f24;
    position: fixed;
    height: 4em;
    z-index: 1;
}

.wrapper {
    margin: 0 auto;
    width: min(1000px, 90%);
}

.exp-grid {
    display: grid;
    grid-template-columns: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: auto;
}

.work-grid {
    display: grid;
    grid-template-columns: auto;
}

.img-grid {
    display: grid;
    grid-template-columns: auto;
    justify-content: center;
}

.img-size {
    max-width: 100%;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: auto;
    row-gap: 1em;
}

.align {
    text-align: left;
}

main.home {
    display: grid;
    grid-template-columns: auto;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 3em;
    background-color: hsl(208, 100%, 97%, 0.3);
    margin-top: 5em;
    -webkit-backdrop-filter: blur(0.2em);
    backdrop-filter: blur(0.2em);

}

main.home a {
    padding: 1.5em;
    background-color: #050f24;
    color: white;
    text-decoration: none;
    border: solid 3px #050f24;
    transition: 0.3s;
}

.btn {
    padding: 0.5em;
    background-color: #050f24;
    color: white;
    text-decoration: none;
    border: solid 3px #050f24;
    transition: 0.3s;
    max-height: 3em;
    text-align: center;
    }

.btn:hover {
    text-decoration: none;
    background-color: aliceblue;
    color: #050f24;
    border: solid 3px #050f24;
}

.work-samples-btn {
    padding: 2em;
    background-color: #050f24;
    color: white;
    text-decoration: none;
    border: solid 3px #050f24;
    transition: 0.3s;
    max-height: 3em;
    text-align: center;
    }

.work-samples-btn:hover {
    text-decoration: none;
    background-color: aliceblue;
    color: #050f24;
    border: solid 3px #050f24;
}

.work-samples-grid {
    display: grid;
    grid-template-columns: auto;
    column-gap: 2em;
    row-gap: 2em;
}

main.section p {
    margin-bottom: 1.5em;
    padding-left: 1em;
    padding-right: 1em;
}

main.home a:hover {
    background-color: aliceblue;
    color: #050f24;
    border: solid 3px #050f24;
}

main.section {
    padding-bottom: 3em;
    background-color: hsl(208, 100%, 97%, 0.6);
    padding-right: 3em;
    padding-left: 3em;
    padding-top: 1em;
    margin-top: 5em;
    margin-bottom: 1em;
}

main.contact {
    padding-bottom: 3em;
    background-color: hsl(208, 100%, 97%, 0.6);
    padding-right: 1em;
    padding-left: 1em;
    padding-top: 1em;
    margin-top: 5em;
}

footer {
    background-color: #36474f ;
    padding-bottom: 2em;
    margin-top: 3em;
    padding-top: 1em;
    padding-left: 1em;
}

footer.section {
    margin-top: 0em;
}

footer a {
    color: aliceblue;
    text-decoration: none;
    padding: 0.5em;
}

footer a:hover {
    text-decoration: underline;
}

/*Get in Touch Form*/

textarea {
    width: 100%;
    height: 15em;
    margin-bottom: 2em;
}

.hide {
    border: 0em;
}

input {
    padding: 0.5em;
    margin-bottom: 1em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 100%;
}

.submit {
    background-color: #050f24;
    color: white;
    text-decoration: none;
    border: solid 3px #050f24;
    transition: 0.3s;
    max-height: 3em;
    text-align: center;
    width: 100%;
    }

.submit:hover {
    text-decoration: none;
    background-color: aliceblue;
    color: #050f24;
    border: solid 3px #050f24;
}

.message {
    padding-left: 0em;
}

.error-parent {
    background-color: #36474f;
    color: aliceblue;
    padding: 1em;
    margin-bottom: 1em;
}

/*Navigation CSS*/

.nav-main {
    top: 0;
    z-index: 100;
    width: 100%;
}

/* hide the check box - input type=checkbox*/
.nav-main-menu-toggle {
    display: none;
}

/* style the checkbox's label */
.nav-main-menu-toggle-icon {
    position: fixed;
    z-index: 200;
    width: 64px;
    height: 64px;
    top: 0;
    left: 0;
    cursor: pointer;
    background-color: #050f24;
}

/* position the span in the label - this is the hamburger of the hamburger icon */
.nav-main-menu-toggle-icon span {
    width: 80%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

/**
 * .nav-main-menu-toggle-icon span
 * - build the hamburger icon
 * - ::before and ::after are pseudo elements
 * - they do not exist in the markup but we can style them
 * - every element that has content has ::before and ::after
 * - each line is 6px tall with a 3px border radius
 */
.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle-icon span,
.nav-main-menu-toggle-icon span::after {
    background-color: aliceblue;
    height: 6px;
    position: absolute;
    content: '';
    transition: all 2s cubic-bezier(0.075, 0.82, 0.165, 1);
    border-radius: 3px;
}

.nav-main-menu-toggle-icon span::before {
    width: 100%;
    top: -10px;
}

.nav-main-menu-toggle-icon span::after {
    width: 100%;
    top: 10px;
}

/**
 * .element ~ element
 * - is the General sibling combinator
 * - find .nav-main-menu-toggle:checked
 * - when the input is checked...
 * - style the .nav-main-menu-toggle-icon span
 * - a trick to use the input type="checkbox" to trigger changes in our layout
 */
.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span {
    background-color: transparent;
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::after {
    top: 0;
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::before {
    transform: rotate(-135deg);
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::after {
    transform: rotate(135deg);
}

/* style the UL left 0 width 0 can not be seen */
.nav-main-menu {
    position: fixed;
    z-index: 50;
    top: 3em;
    left: -1em;
    width: 0;
    height: calc(100vh - 3em);
    transition:
        width .5s .25s ease-in,
        box-shadow .25s ease-in;
    box-shadow: none;
    overflow-y: auto;
    list-style-type: none;
    background-color: hsl(208, 100%, 97%, 0.9);
    -webkit-backdrop-filter: blur(0.2em);
    backdrop-filter: blur(0.2em)
}

/* when input checked show the UL */
.nav-main-menu-toggle:checked~.nav-main-menu {
    width: 60vw;
    box-shadow: 0 0 0 100vw transparent;

}

/* style the anchor */
.nav-main-menu a {
    display: block;
    font-size: 1.5em;
    line-height: 2;
    font-weight: 300;
    color: black;
    text-decoration: none;
    text-indent: 1.25rem;
    transition: all .25s ease-in;
}

/* create and style the anchor's ::before pseudo element */
.nav-main-menu a::before {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateX(-280%);
    content: "";
    display: inline-block;
    width: 10px;
}

/* style the ::before when :hover on anchor */
.nav-main-menu a:hover::before {
    transform: translateX(50vw);
    opacity: 0;
}

@media (min-width: 768px) {

    img.home {
        margin-top: 0em;
        width: 100%;
        margin-left: 0em;
    }

    .img-size {
        max-width: 100%;
    }
    
    .photo-gallery-grid {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto auto auto;
        column-gap: 1em;
    }

    main.home {
        grid-template-columns: auto auto;
        padding-top: 5em;
        padding-left: 2em;
        padding-right: 2em;
        padding-bottom: 5em;
    }

    header.home {
        background-color: transparent;
        padding: 0em;
        position: relative;
        margin-top: 0em;
    }

    header.section {
        background-color: transparent;
        padding: 0em;
        position: relative;
        margin-top: 0em;
    }

    h1.home {
        padding-top: 0em;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: 8em 8em 8em;
    }

    .align {
        text-align: right;
    }

    footer {
        margin-top: 7em;
    }

    .skills-grid {
        grid-template-columns: 20em 20em;
    }

    section.home {
        padding-top: 0em;
        padding-right: 0.5em;
        margin-top: -2.5em;
    }

    .work-samples-grid {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        column-gap: 2em;
        row-gap: 2em;
        padding-bottom: 10em;
    }

    footer.section {
        margin-top: 3em;
    }

    .contact-grid {
        grid-template-columns: 18em;
    }

    .exp-grid {
        grid-template-columns: auto auto;
    }

    textarea {
        font-family: inherit;
        font-size: inherit;
    }

    .submit {
        width: 20em;
    }

    main.section {
        margin-top: 0em;
    }

    main.contact {
        margin-top: 0em;
}

    main.section.dw {
        margin-bottom: 25em;
    }

    /*Navigation styling for tablet and larger*/

    /*  hide the checkbox and the hamburger */
    .nav-main-menu-toggle,
    .nav-main-menu-toggle-icon {
        display: none;
    }

    /*  override and reset to no style */
    .nav-main-menu {
        display: flex;
        padding-left: 0px;
        position: relative;
        z-index: 0;
        left: auto;
        width: auto;
        height: auto;
        transition: none;
        box-shadow: none;
        overflow: hidden;
        top: 0em;
        align-items: center;
        justify-content: end;
        margin-top: 0em;
        background-color: transparent;
    }

    /*  override and reset to no style */
    .nav-main-menu-toggle:checked~.nav-main-menu {
        width: auto;
        box-shadow: none;
    }

    /*  override and basic style for navigation large screen */
    .nav-main-menu a {
        position: static;
        display: block;
        text-indent: 0;
        padding: 0 1em;
        transition: all .25s linear;
        text-align: center;
    }

    /*  hide the a:::before */
    .nav-main-menu a::before {
        display: none;
    }

    /*  basic style for navigation large screen */
    .nav-main-menu a:hover {
        text-indent: 0;
        color: aliceblue;
        background-color: #050f24;
        box-shadow: 0 0px 0px currentColor;
    }

    .nav-main-menu a:active {
        text-indent: 0;
        color: white;
        background-color: #050f24;
    }
}

@media (min-width: 1024px){
    main.home {
        padding-bottom: 7em;
        padding-top: 7em;
        padding-left: 4em;
        padding-right: 4em;
    }

    main.section.dw {
        margin-bottom: 30em;
    }

    .skills-grid {
        grid-template-columns: 18em 18em 18em;
    }

    .btn {
        max-width: 20em;
    }

    footer {
        margin-top: 10em;
    }

    section.home {
        padding-top: 1.5em;
    }

    h1.home {
        padding-top: 0.2em;
    }

    h2.home {
        font-size: 1.5em;
    }
}

@media (min-width: 2000px) {
    main.home {
    padding-bottom: 12em;
    padding-top: 12em;
    padding-right: 6em;
    padding-left: 6em;
    margin-left: -8em;
    margin-right: -8em;
    margin-top: 10em;
    margin-bottom: 14em;
    }

    main.section {
    margin-bottom: 25em;
}

    main.contact {
        margin-top: 25em;
}

    main.section.dw {
        margin-bottom: 35em;
    }

    img.home {
        margin-top: -3.5em;
    }

    .work-samples-grid {
        padding-bottom: 20em;
    }
}


