
:root {
    --eblue: #1034a6;
    --lighttan: #ffebaa;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

html {
    font-size: 16px;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    background-color: var(--eblue);
    /* Setting height here will mess up the iPhone */
}

header,
footer {
    background-color: var(--eblue);
    position: sticky;
    /* background: linear-gradient(to top right, goldenrod, gold, goldenrod); */
    background: linear-gradient(179deg, goldenrod, goldenrod, goldenrod, gold,  goldenrod, goldenrod, goldenrod, goldenrod, goldenrod, goldenrod);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    z-index: 1;
}

header {
    grid-row: 1;
    top: 0;
}

main {
    grid-row: 2;
    background-image: linear-gradient(90deg, goldenrod 0%, var(--lighttan) 100%);
    color: black;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    text-align: left;
    font-size: 1.5rem;
}

footer {
    grid-row: 3;
    bottom: 0;
    font-size: 2rem;
    padding: 10px;
}

.logo-header {
    display: flex;
}

.logo-box {
    width: 80px;
    height: auto;
    flex-grow: 0;
    overflow: hidden;
    padding: 0 10px;
    display: grid;
    place-items: center;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.header-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.header-nav h1 {
    font-size: 3rem;
    margin: 0;
}



nav ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li {
    flex: 1;
    font-size: 2rem;
}

nav a {
    display: block;
    text-decoration: none;
}

.selected-tab,
nav a:focus,
nav a:hover {
    background-image: linear-gradient(90deg, goldenrod 0%, var(--lighttan) 50%, var(--eblue), 51%, var(--eblue) 100%);
    -webkit-text-fill-color: var(--eblue);
}

.profile-picture {
    height: 70%;
    border-radius: 50%;
}

.slogan {
    font-style: italic;
    font-size: 2.5rem;
    animation: flyInFromRight 2s ease-out forwards;
}

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about {
    padding: 10px;
}

.services-layout {
    display: grid;
    grid-template-areas:
        "i i i i"
        ". practice-areas themis ."
        "sq sq sq sq"
}

.services-intro {
    padding: 10px;
    grid-area: i;
}

.practice-areas {
    padding: 10px;
    grid-area: practice-areas;
}

.themis {
    padding: 10px;
    margin-top: 35px;
    grid-area: themis;
    border-radius: 50%;
}

.services-questions {
    padding: 10px;
    grid-area: sq;
}

.fees {
    padding: 10px;
}

.wrap-image-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.langdell-img {
    width: 640px;
    height: auto;
}

.langdell-caption {
    font-size: .8rem;
}


@keyframes flyInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1000px) {
    .langdell-img {
        width: 320px;
        height: auto;
    }

    .langdell-caption {
        font-size: .48rem;
    }
}

@media (max-width: 768px) {
    nav li {
        font-size: 1rem;
    }

    main {
        font-size: 1rem;
    }
}

@media (max-width: 540px) {

    .selected-tab,
    nav a:focus,
    nav a:hover {
        background-image: linear-gradient(90deg, goldenrod 0%, var(--lighttan) 90%, var(--eblue), 91%, var(--eblue) 100%);
        -webkit-text-fill-color: var(--eblue);
    }
}

@media (max-width: 508px) {

    .header-nav h1 {
        font-size: 2rem;
    }

    .logo-image {
        width: 60px;
        height: auto;
        flex-grow: 0;
    }

    .profile-picture {
        height: 40vh;
        border-radius: 50%;
    }

    footer {
        grid-row: 3;
        bottom: 0;
        font-size: 1.8rem;
        padding: 10px;
    }


}

/* * {
    border: 1px solid red !important;
} */
