html {
    --fontFamilySerif: Georgia, 'Times New Roman', Times, serif;
    --fontFamilySansSerif: Verdana, Geneva, Tahoma, sans-serif;

    --duration: .7s;

    box-sizing: border-box;
}

html *,
html *::before,
html *::after {

    box-sizing: inherit;

}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 40
}

h1 {
    margin: 0;
    padding: 0;
    color: var(--textColorNormal);
    font-family: var(--fontFamilySerif);
    font-size: 2.6rem;
    white-space: nowrap;
}

h3 {
    margin: 0;
    padding: 0;
    font-family: var(--fontFamilySerif);
    font-weight: bold;
    white-space: nowrap;
    /* text-shadow: 1px 1px 2px maroon, 0 0 1em cornflowerblue, 0 0 0.2em cornflowerblue; */
    text-align: center;
}

.menu {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: top;
    font-size: 1rem;
    margin: 0;
    min-width: 360px;
    width: 100%;
    /* max-width: 720px; */
    /* height: 5em; */
}
.menu__section {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
}
.menu__section:first-of-type {
    flex-grow: 1;
    justify-self: flex-start;
}
.menu__section:last-of-type {
    justify-self: flex-end;
}

.menu__container {
    --textColorNormal: rgba(255, 245, 238, 1.0);
    /* seashell */
    --textColorSubtle: rgba(255, 245, 238, 1.0);
    /* seashell */
    --textShadowNormal: 1em 1em 2em black;
    /* , 0 0 0.2em cornflowerblue, 0 0 1em cornflowerblue; */
    --bgColorHeader: rgba(0, 64, 128, 0.75);
    /* --bgColorHeader: rgba(0, 64, 128, 0); */
    --fgColorHeader: seashell;
    --bgColorArticle: rgba(0, 0, 0, 0);
    --fgColorArticle: seashell;
    --bgColorFooter: rgba(128, 0, 0, 0.75);
    --bgColorFooter: transparent;
    --fgColorFooter: seashell;

    flex-grow: 0;
    flex-shrink: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-bottom:  1px solid black;
    box-shadow: 15px 10px 5px 3px rgba(0, 0, 0, 0.2); 
    z-index: 100;
}

.bottom__container {
    font-size: 0.75rem;
    position: fixed;
    bottom: 1em;
    margin: 0 auto;
    z-index: 100;
}

.bottom__container a {
    font-size: 0.5rem;
    border-radius: 0.5em;
    padding: 0.5em;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25));
    color: seashell;
    text-decoration: none;
    font-weight: 900;
    font-family: var(--fontFamilySansSerif);
    transition: font-size 0.5s ease-in-out 0.25s, background 0.5s ease-in 0.25s;
}

.bottom__container:hover a {
    font-size: 0.75rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.5));
}

input {
    z-index: -100;
    position: fixed;
    appearance: none;
    --webkit-appearance: none;

}

.menu__item {
    flex-grow: 0;
    flex-shrink: 1;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.75rem;
    margin: 1em 0.25em;
    height: 3em;
    /* width: 3em; */
    border-radius: 1em;
    /* border: 0.25em solid transparent; */
    padding: 0.5em;
    color: var(--textColorNormal);
    cursor: pointer;
    transition: all 0.5s ease-out 0.25s;
}

.menu__item h3,
.menu__item .symbol {
    font-size: inherit;
    color: var(--textColorNormal);
    padding-left: 0.5em;
    transition: all 0.5s ease-out 0.25s;
}

.menu__item.active {
    cursor: unset;
    /* background-color: rgba(0, 0, 0, 0.25); */
}

section h3 {
    transition: all 0.5s ease-out 0.25s;
}


body {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.bounds {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    scroll-behavior: smooth;
    border: 1px solid black;
    background-image: url('https://www.saccourt.ca.gov/images/wrrfrc-front-01.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position-x: 33%;
}

.quotes {
    display: grid;
    font-size: 1rem;
    width: 100%;
    margin: 2em;
    max-width: 360px;
    font-family: var(--fontFamilySerif);
    font-weight: bold;
}

blockquote::before {
    content: open-quote;
    font-size: 4em;
    line-height: 0.1em;
    vertical-align: -0.4em;
    opacity: 0.5;
}

blockquote {
    display: inline;
}

blockquote::after {
    display: fixed;
    content: close-quote;
    opacity: 0;
}

.quotes blockquote {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    margin: 0;
    width: 100%;
    /* max-width: 300px; */

    text-align: left;
    /* text-shadow: var(--textShadowNormal); */

    transition: opacity 1.5s ease-in-out;
}

.quotes footer {
    opacity: 0;
    text-align: right;
    padding: 1em 0;

    transition: opacity 1.5s ease-in-out;

}

.btn {
    position: fixed;
    transform: translateY(-50%);
    font-size: 1rem;
    margin-top: 3.25em;
    height: 3em;
    width: 3em;
    border-radius: 50%;
    border: 0.25em solid transparent;
    background-color: rgba(0, 0, 0, 0.5);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: -99999;
    transition: border 0.5s ease-in-out;
}

.btn.next {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg width="18" height="18" viewBox="0 0 34 34" xmlns="http://www.w3.org/2000/svg"><title>Shape</title><path d="M25.557 14.7L13.818 2.961 16.8 0l16.8 16.8-16.8 16.8-2.961-2.961L25.557 18.9H0v-4.2z" fill="%23FFF" fill-rule="evenodd"/></svg>');
    /* right: calc(50% - min(375px, 37.5% + 15px)); */
    right: calc(0.5 * (100vw - max(360px, min(80%, 720px))) + 1em);
}

.btn.prev {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg width="18" height="18" viewBox="0 0 34 34" xmlns="http://www.w3.org/2000/svg"><title>Shape</title><path d="M33.6 14.7H8.043L19.782 2.961 16.8 0 0 16.8l16.8 16.8 2.961-2.961L8.043 18.9H33.6z" fill="%23FFF" fill-rule="evenodd"/></svg>');
    /* left: calc(50% - min(375px, 37.5% + 15px)); */
    left: calc(0.5 * (100vw - max(360px, min(80%, 720px))) + 1em);
}

.btn:hover {
    border-color: black;
}

.content {

    flex-grow: 1;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    width: 100%;
    min-height: 100%;
    padding: 0;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    color: var(--textColorNormal);
    background: linear-gradient(to bottom, var(--accent-color), rgba(255, 255, 255, 0.75) 10em);
}

section {
    flex-shrink: 0;
    flex-grow: 1;
    /* margin: 1em; */
    min-width: 360px; /* min(75%, 720px);*/
    width: 100%;
    min-height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), rgba(255, 255, 255, 0.75) 10em);
    padding: 0 0 1em 0;
    scroll-snap-align: left;
    overflow: hidden;
    color: #004687;
    transition: opacity 1s ease-in-out 0s;
}

section.active {
    opacity: 1;
}

/* section:first-of-type {
    margin-left: 50%;
} */

/* section:last-of-type {
    margin-right: 50%;
} */

section > * {
    margin: 0;
    padding: 1em 2em;
}

section .row {
    flex-grow: 1;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

section .picture-frame {
    min-width: 180px;
    min-height: 180px;
    width: 180px;
    height: 180px;
    overflow: hidden;
    shape-outside: circle();
    border-radius: 50%;
    /* border: 1px solid; */
}

section img {
    /* margin-top: -0.5rem; */
    margin-left: -12%;
}

section .subtitle {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: 900;
}

section .subtitle > * {
    white-space: nowrap;
}

section ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
}
section li {
    padding-right: 2em;
}

section h3 {
    text-shadow: 5px 2.5px rgba(0, 0, 0, 0.2);
}

.section--family-law p,
.section--estate-planning p,
.section--real-estate p,
.section--about-anson p {
    display: none;
}

/* .menu__item:nth-of-type(1),
section:nth-of-type(1) {
    --accent-color: rgb(243, 238, 195, 1); 
} */
.menu__item:nth-of-type(1),
section:nth-of-type(1),
section:nth-of-type(2) {
    --accent-color: rgb(176, 208, 211, 1);
}
.menu__item:nth-of-type(2),
section:nth-of-type(3) {
    --accent-color: rgb(192, 132, 151, 1); 
}
.menu__item:nth-of-type(3),
section:nth-of-type(4) {
    --accent-color: rgb(247, 175, 157, 1); 
}
.menu__item:nth-of-type(4),
section:nth-of-type(5) {
    --accent-color: rgb(247, 227, 175, 1);
}

.menu__item:hover,
.menu__item:focus,
.menu__item.active {
    border-color: var(--accent-color);
}

.menu__item:hover > *,
.menu__item:focus > *,
.menu__item.active > * {
    color: var(--accent-color);
}

.section__header {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    /* background-color: var(--accent-color); */
    /* box-shadow: 15px 10px 5px 3px rgba(0, 0, 0, 0.25);  */
    font-weight: 900;
}

.section__header {
    font-size: 1.5rem;
    padding: 0.75em 0;
}


section p {
    font-family: var(--fontFamilySansSerif);
}


@media screen and (min-width: 720px) {
    section ul {
        max-height: 180px;
    }
}