/* bodoni-moda-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/bodoni-moda-v28-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* libre-caslon-text-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/libre-caslon-text-v5-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Libre Caslon Text', sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

a {
    color: var(--highlight);
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: var(--primary);
}

h1, h2, h3, h4, h5 {
    font-family: 'Bodoni Moda', serif;
}

.invert-color {
    background-color: var(--primary);
    color: var(--text);
}
.invert-color h1, .invert-color h2, .invert-color h3, .invert-color h4, .invert-color h5 {
    color: var(--text);
}
.invert-color a {
    color: var(--text);
}
.invert-color a:hover {
    color: var(--secondary);
}

.button {
    transition: color 0.25s ease-in-out, background-size 0.25s ease-in-out, border-color 0.25s ease-in-out;
}
.button:hover {
    background-size: 100%;
    border-color: var(--primary);
    color: var(--text);
}
.glyphic {
    align-items: center;
    display: flex;
    gap: 1em;
    justify-content: space-around;
}
.glyphic > img {
    background-color: var(--secondary);
    border: 5px solid var(--secondary);
    border-radius: 100%;
    height: 1em;
    transition: all 0.25s ease-in-out;
    width: 1em;
}
.glyphic:hover > img {
    transform: rotate(45deg);
}
@media screen and (max-width: 960px){
    .button {
        padding: 1em;
    }
}

@media screen and (min-width: 961px){
    .center-desktop {
        text-align: center;
    }
    .mobile-only {
        display: none;
    }
}
@media screen and (max-width: 960px){
    .mobile-hide {
        display: none;
    }
}

.padded-sides {
    padding-left: 5vw;
    padding-right: 5vw;
}
.padded-up {
    padding-top: 5vh;
}
.padded-down {
    padding-bottom: 5vh;
}
.box-shadow {
    box-shadow: 0px 0px 12px 0px #888;
}
.filter-shadow {
    filter: drop-shadow(2px 4px 6px #777);
}

.text-column {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: start;
    margin: 0 auto;
    max-width: 800px;
    padding: 2em 1em;
}

.pretitle {
    color: var(--secondary);
    display: block;
    font-family: sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    margin: 1em 0em;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 3rem;
    justify-items: center;
}
@media screen and (max-width: 960px) {
    .grid-3 {
        grid-template-columns: 100%;
    }
}
.grid-3 > div {
    background-color: var(--secondary);
    border-radius: 10px;
    box-shadow: 0 5px 30px 0 rgba(28, 26, 51, 0.4);
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.grid-3 h3 {
    color: var(--text);
    margin: 0;
}

.side-by-side {
    padding: 0;
    position: relative;
    text-align: center;
}
.side-by-side > div {
    max-width: 50%;
    min-height: 400px;
    order: 1;
    width: 100%;
}
.side-by-side .side-text {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2em 0em;
}
.side-by-side .side-text p, .side-by-side .side-text ul {
    align-self: flex-start;
    padding: 0 5vw;
    text-align: left;
}
.side-by-side .side-image {
    line-height: 0;
    min-height: unset;
}
.side-by-side .side-image img {
    width: 100%;
}
@media screen and (max-width: 960px) {
    .side-by-side>div {
        max-width: 100%;
    }

    .side-by-side .side-image {
        order: 0;
    }
}

.flex-row.pair-view {
    align-items: center;
    gap: 2em;
    justify-content: center;
}
.flex-row.pair-view > div {
    display: flex;
}
.pair-view .flex-column {
    align-items: center;
    justify-content: center;
}
.pair-view .flex-column .flex-column {
    background-color: #fbfef6;
    box-shadow: 2px 2px 5px #383635;
    padding: 1em;
}
.pair-view p, .pair-view ul {
    max-width: calc(400px + 10vw);
}
.pair-view img {
    border-radius: 40px;
    filter: drop-shadow(2px 4px 6px black);
    width: 100%;
}
@media screen and (max-width: 960px){
    .flex-row.pair-view {
        gap: 0em;
    }
    .pair-view img {
        border-radius: 0;
        filter: unset;
    }
}

/* Accordion checkboxes */
.tab {
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    position: relative;
}
.tab input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.tab_content {
    border-bottom: 2px solid var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: none;
}
.tab input:checked ~ .tab_content {
    max-height: 200vh;
    transition: all 0.35s ease-in-out;
}

.accordion {
    color: var(--primary);
    border: 2px solid;
    border-radius: 0.5rem;
    overflow: hidden;
}
.tab_label,
.tab_close {
    align-items: center;
    background: var(--primary);
    color: var(--text);
    cursor: pointer;
    display: flex;
}
.tab_label {
    justify-content: space-between;
    padding: 1rem;
}
.tab_label img {
    transform: rotate(0deg);
    transition: all 0.35s;
    width: 2em;
}
.tab input:checked + .tab_label img {
    transform: rotate(180deg);
}
.tab_content p {
    margin: 0;
    padding: 1rem !important;
}
.tab_close {
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}
.accordion-radio {
    --theme: var(--secondary);
}

@media screen and (max-width: 960px) {
    .tab {
        max-width: 95%;
    }
}
/* END Accordion checkboxes */

.framed-image {
    display: inline-block;
    margin: 2%;
    position: relative;
}
.framed-image img {
    border-radius: 4px;
    box-shadow: 3px 3px 8px #000A;
    display: block;
    position: relative;
    z-index: 20;
}
.framed-image::after {
    background-color: var(--primary);
    border-radius: 4px;
    bottom: -10px;
    box-shadow: 1px 1px 6px #000A;
    content: "";
    left: 10px;
    position: absolute;
    right: -10px;
    top: 10px;
    transform: rotate(6deg);
    z-index: 10;
}
.framed-image.tilt::after {
    transform: rotate(355deg);
}

footer {
    background-color: var(--secondary);
    box-shadow: 0 0px 6px #000A;
    color: var(--text);
    font-size: 1rem;
    gap: 2em;
    justify-content: center;
    padding: 24px;
    position: relative;
}

footer>div {
    order: 2;
    padding: 1em;
    text-align: left;
    width: 400px
}
footer > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

footer h2 {
    font-size: 1.25em
}

footer h2,
footer a {
    color: var(--text)
}
footer a:hover {
    color: var(--highlight);
}

footer > div:last-child {
    justify-content: space-around;
}
footer > div:last-child > .flex-column {
    gap: 0.8rem;
}

footer .social-button {
    background-color: var(--background);
    box-shadow: 0px 0px 12px 0px #0005;
    border-radius: 100%;
    padding: 8px;
    transition: all 0.3s ease-in-out;
}
footer .social-button:hover {
    background-color: var(--primary);
    box-shadow: 0px 0px 6px 0px #555;
}
footer .social-button:hover > img {
    filter: invert();
}

@media screen and (max-width:1024px) {
    footer {
        gap: 4px;
    }
    
    footer>div:first-child {
        order: 0
    }

    footer>div:last-child {
        order: 1
    }

    footer > div:nth-child(2) {
        border: none;
    }

}



/* GLOBAL CUSTOMIZATIONS FOR SITE */
.scalloped-border {
    background-image: url("../images/jellies.webp");
    background-repeat: repeat-x;
    background-size: contain;
    height: 25px;
    position: absolute;
    bottom: -1px;
    width: 100%;
    z-index: 10;
}
.scalloped-border.down {
    bottom: unset;
    filter: drop-shadow(1px -4px 2px rgba(0, 0, 0, 0.3));
    top: -1px;
    transform: rotateX(180deg);
}

.hero-section .scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}
@keyframes scroll-indicator {
  0% {
    opacity: 1;
    transform: translateY(0vh);
  }
  80% {
    opacity: 0;
    transform: translateY(3.5vh);
  }
  100% {
    opacity: 0;
    transform: translateY(0vh);
  }
}
/* ------------------------------ */


/* Animations */
/* Critical CSS contains initial delay-animation pause. */
.delay-animation.visible {
    opacity: 1;
}
.activate {
    animation-play-state: running;
}
.fadeUp.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadeUp;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform;
}
@keyframes fadeUp {
  0% {}
  100% {
        transform: translateY(0px);
        opacity: 1;
        }
}

.fadeDown.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadeUp;
    opacity: 0;
    transform: translateY(-20px);
    will-change: transform;
}
@keyframes fadeUp {
  0% {}
  100% {
        transform: translateY(0px);
        opacity: 1;
        }
}

.fadeLeft.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadeLeft;
    opacity: 0;
    transform: translateX(20px);
    will-change: transform;
}
@keyframes fadeLeft {
  0% {}
  100% {
        transform: translateX(0px);
        opacity: 1;
        }
}

.fadeRight.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadeRight;
    opacity: 0;
    transform: translateX(-20px);
    will-change: transform;
}
@keyframes fadeRight {
  0% {}
  100% {
        transform: translateX(0px);
        opacity: 1;
        }
}


.expanding-divider {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    display: block;
    width: 0%;
}
.expanding-divider.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
.expanding-divider.exdiv10.activate {
    animation-name: exdiv10;
}
@keyframes exdiv10 {
  0% {}
  100% {
        opacity: 1;
        width: 10%;
        }
}
.expanding-divider.exdiv25.activate {
    animation-name: exdiv25;
}
@keyframes exdiv25 {
  0% {}
  100% {
        opacity: 1;
        width: 25%;
        }
}
.expanding-divider.exdiv50.activate {
    animation-name: exdiv50;
}
@keyframes exdiv50 {
  0% {}
  100% {
        opacity: 1;
        width: 50%;
        }
}
.expanding-divider.exdiv100.activate {
    animation-name: exdiv100;
}
@keyframes exdiv100 {
  0% {}
  100% {
        opacity: 1;
        width: 100%;
        }
}


/* See Settlers Irrigation for implementing this animation */
.numCounter.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    will-change: contents;
}
@keyframes numCounter_value {
  0% {
    --value: 0;
  }
  100% {
    --value: 100;
        }
}