@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    margin: 0;
    padding: 0;

    font-family: "Open Sans";
    font-weight: 300;
}


:root {
    --primary-color: #ffffff;
    --secondary-color: antiquewhite;
    --accent-color: #FE0000;
}

#title {

    padding: 15px 0 10px 30%;

    height: fit-content;

    position: relative;
    display: flex;
    flex-flow: row nowrap;

    justify-content: left;

    background-color: white;
    color: black;
}

#title img#logo {
    position: absolute;
    width: 20%;

    left: 8%;
}

h1 {
    align-self: center;
    font-size: 4rem;
}

#top-hero {
    overflow: visible;
}

.hero {
    overflow: hidden;
    width: 100%;
    height: 70vh;

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: -9;

    background-color: rgba(0, 0, 0, 0.3);
}

.hero img#bg {
    position: absolute;
    top: 0;
    left: 0;

    z-index: -10;

    width: 90%;
    height: 100%;

    margin: 0 5%;
}

.hero .blurb {
    text-align: center;

    /* width: 50%; */
    padding: 0 10%;

    color: white;
    font-size: 3.5rem;
    text-shadow: black 0px 0px 9px;
}

#fam-pic {
    display: block;
    flex: none;

    filter: none;

    position: absolute;
    bottom: -5%;
    right: 0;

    width: 300px;
    height: 300px;

    z-index: -1;
}

.rounded {
    border-radius: 50%;
    box-shadow: 3px 3px 9px;
}

img {
    border-radius: 5px;
}

.spacer {
    margin: 40px 0;
    height: 1px;
}

nav {
    background-color: white;
    color: black;
    /* height: 50px; */
    padding: 0 5% 0 2%;
    position: sticky;
    z-index: 100;
    left: 0;
    top: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-flow: row wrap;

    justify-content: space-between;
    align-content: center;

    height: 100%;

    & h1 {
        border-right: solid;
        padding-right: 2%;
    }
}

nav ul a {
    height: 100%;
    padding: 2rem 10px;

    flex: 1;

    position: relative;

    align-content: center;
    text-decoration: none;
    overflow: hidden;
}

nav ul a li {

    height: 100%;

    color: black;
    /* font-weight: 900; */
    font-size: 1.5rem;
    text-align: center;

    transition: color 0 250ms;
    transition: font-size 400ms;
}

nav ul a:hover li {
    color: white;
    /* font-size: 2rem; */

    transition:
        color 0 100ms,
        font-size 200ms;
}

nav ul a:not(:first-child):hover {
    color: white;
    transition: padding 500ms;
}

nav ul a::before {
    position: absolute;
    content: '';

    z-index: -123;

    background-color: black;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    transition: all 500ms;

}

nav ul a:hover:not(:first-child)::before {
    content: '';
    height: 100%;

    transition: all 200ms;
}



/* nav ul a.faux-hov::after {
    content: '';
    transition: all 500ms, bottom 400ms 100ms;
    opacity: 100%;

    left: 0%;
    bottom: 20%;
    width: 100%;
    height: 6%;
    background-color: var(--accent-color);
} */


nav .logo {
    height: calc(2rem + 30px);
    transition: all 200ms;
}

nav a:has(.logo) {
    padding: 1rem 0 0 0;
}

nav .logo:hover {
    height: calc(2rem + 50px);
    filter: invert();
    background-color: white;
}

section h2 {
    font-size: 3rem;
    padding-left: 5%;
    border-left: black solid;
    margin-left: 10%;
    margin-bottom: 40px;
}

section h4 {
    display: inline-block;
    font-size: 2.5rem;

    padding: 0 1rem;
    border-bottom: black solid;
}

section {
    width: 80%;
    /* margin: 0 10%; */
    padding: 80px 10%;
}

.odd-section {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, var(--secondary-color) 3%, var(--secondary-color) 50%, var(--secondary-color) 97%, rgba(0, 0, 0, 0) 100%);
    /* padding: 20px 0; */
}

.row {
    display: flex;
    flex-direction: row;

    &[centered] {
        justify-content: space-around;
    }
}


#exp-logo {
    width: 100%;
    height: 100%;

}


.thing-caption {
    display: flex;
    flex-direction: row;

    justify-content: space-around;

    & .thing {
        flex: 1;
    }

    & p {
        flex: 2;
        padding: 10px 5%;
        /* font-size: large; */
    }
}

#menu-btn {
    display: none;
}

#menu-label {
    font-size: 3em;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    display: none;
}

.contact-form {

    padding: 15px 10px;

    & form {

        font-size: 2.2rem;

        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    & div {
        margin: 0 5% 15px 0;

        width: 45%;

        & input {
            width: 100%;
            padding: 15px 0 0 15px;
        }
    }

    & input {
        flex: 1;
        font-size: 3rem;
        /* width: 100%; */
    }

    & h3 {

        flex: 1;

        text-align: center;
        width: 100%;
        margin-bottom: 5px;
        max-height: 15%;
        text-decoration: underline solid black;

        border: none;
    }
}

.odd-section .contact-form {
    background-color: var(--primary-color);
}

#review-space {
    width: 100%;

    display: flex;
    flex-direction: column;

    margin-top: 45px;

}

#reviews {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
}

.review {
    display: flex;
    flex-direction: row;

    justify-content: center;

    & p {
        width: 60%;
        align-self: center;
    }

    & img {
        height: 150px;
        width: 150px;
    }
}


#more-reviews {
    margin-top: 25px;
}

#more-reviews button {
    display: block;
    margin: auto;
    width: 225px;

    aspect-ratio: 4/1;

    font-size: 1.5rem;

    font-family: 'Comic Sans MS';
    border-radius: 15px;
    border-style: outset;
}

#more-reviews button:hover {
    color: blue;
}

#more-reviews button:active {
    color: green;
    border-style: inset;
}


.bef-aft {
    width: 500px;
    height: 300px;

    overflow: hidden;

    position: relative;

    box-shadow: black 0px 0px 10px;
    border-radius: 10px;


    & #pics {
        /* width: 85%; */
        margin: auto;
        height: 85%;

        position: relative;

        & .pair,
        & img {
            width: 100%;
            height: 100%;

            position: absolute;
            top: 0px;
            left: 0px;

            /* transition: left 1s; */
        }

        & .pair #bef,
        & .pair #aft {
            z-index: 10;
            width: 100%;
            height: 100%;

            & p {
                padding: 10px 0;
                position: absolute;
                width: 100%;
                bottom: 0;
                text-align: center;

                background-color: rgba(255, 255, 255, 0.4);
            }
        }

    }

    & #arrows {

        width: 100%;
        height: 15%;

        position: relative;

        & #back,
        & #next {
            width: 50%;
            height: 100%;

            text-align: center;
            font-size: 4rem;
            font-weight: 700;

            box-sizing: border-box;
            border-radius: 0;

            position: absolute;
            bottom: 0;

            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 0px;

            background-image: linear-gradient(0deg, rgba(233, 233, 237, 1) 0%, rgba(233, 233, 237, 0) 100%);

        }

        & #back {
            border-right: solid black 1px;
            left: 0;

        }

        & #next {
            right: 0;
        }

    }

    /* & .pair#in-from-left{
        left: -100%;
        transform: translateX(100%);
        transition: transform 1s;
    }
    & .pair#in-from-right{
        left: 100%;
        transform: translateX(-100%);
        transition: transform 1s;
    }
    & .pair#out-to-left{
        
        transform: translateX(-100%);
        transition: transform 1s;
    }
    & .pair#out-to-right{
        transform: translateX(100%);
        transition: transform 1s;
    } */

    & .pair#out-to-left {
        left: -100%;
        z-index: 100;
        transition: left 1s;
    }

    & .pair#out-to-right {
        left: 100%;
        z-index: 100;
        transition: left 1s;
    }


}

.rembed-carousel {
    & iframe {
        margin: auto;
    }
}

.columns {
    display: flex;
    flex-direction: row;

    justify-content: space-between;

    & .column {
        display: flex;
        flex-direction: column;

        width: 48%;

        align-items: center;
        justify-content: space-between;

        &> :not(:first-child) {
            margin-top: 30px;
        }
    }
}

.review p img.quot {
    display: inline;
    height: 1rem;
    width: 1rem;

}




footer {
    background-color: black;

    margin-top: 50px;

    padding: 25px 10%;

    display: flex;
    flex-direction: row;
    color: white;

    justify-content: space-around;

    & * {
        font-weight: 500;
    }

    & #contact-us {


        & a {
            /* text-decoration: none; */
            color: white;
        }
    }

    & #notice {
        align-self: center;
    }
}

#back-to-top {
    content: 'Back To Top';
    position: fixed;
    bottom: 50px;
    right: 50px;

    width: 60px;
    height: 100px;

    background-color: black;
    color: var(--primary-color);


}

#bottom {
    position: relative;
    padding: 35px 5%;


    & #name {
        margin-top: 1rem;
        margin-right: 10rem;
        font-size: 4rem;
        font-weight: 500;
        text-align: center;
    }

    & .headshot {
        position: absolute;
        top: -123px;

    }

    & .icons {
        position: absolute;
        right: 0;
        top: 15%;

        width: 30%;
        height: 100%;

        & div {
            height: 50%;

            & img {
                height: 100%;
            }
        }

        & #social-media {
            padding: 0 20%;
            display: flex;
            align-items: center;
        }
    }
}

@media(max-width:600px) {
    #bottom {
        position: relative;
        padding: 35px 5%;

        display: block;

        /* flex-flow: column wrap; */

        &>* {
            position: relative;
            display: flex;
            flex-direction: row;
            /* height: 150px; */
            width: 100%;
            justify-content: center;
            margin-top: 30px;

        }

        & #name {
            margin: 0;
            font-size: 4rem;
            font-weight: 500;
            text-align: center;
        }

        & .headshot {
            position: relative;
            top: 0;
            left: 0;
        }

        & .icons {
            position: relative;
            width: 100%;

            flex-direction: column;

            & div {
                height: 50%;

                & img {
                    height: 100px;
                }
            }

            & #social-media {
                margin-top: 20%;
                padding: 0 20%;
                align-items: center;
            }
        }
    }

    footer {
        margin-top: 0;
    }

    #notice {
        display: flex;
        flex-direction: column;
    }

    nav ul {
        display: block;
        flex-wrap: wrap;
        max-height: 0;
        overflow: hidden;

        transition: all 400ms;

    }

    nav ul a li {
        width: 100%;
    }

    #menu-label {
        display: block;
    }


    #menu-btn:checked~ul {
        max-height: 400px;
    }

    nav ul {
        align-content: center;

    }

    nav ul a:not(:first-child) {
        /* position: absolute; */
        top: -100%;
    }

    nav ul a:not(:first-child):hover li {
        color: black;
        transition: padding 500ms;
    }

    nav ul a:not(:first-child)::before {
        content: '';
        position: absolute;
        top: 100%;

        transition: all 200ms;
    }

    nav ul a:hover:not(:first-child)::before {
        height: 50%;

        position: absolute;
        top: 50%;

        transition: all 200ms;
    }
}