@font-face {
    font-display: auto;
    font-family: 'abhayalibre-regular';
    src: url('../fonts/abhayalibre-regular-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
  --primary: #5667ad;
  --secondary: #76adeb;
  --background: #ffffff;
  --text: #222222;
  --highlight: #ffda79;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {
    font-family: 'abhayalibre-regular', 'Times New Roman', serif;
}
h1 {
    font-size: calc(2em + 1.25vw);
}
h2 {
    font-size: calc(1.75em + 0.75vw);
}
h3 {
    font-size: calc(1.5em + 0.5vw);
}
h4 {
    font-size: calc(1.2em + 0.25vw);
}
h5 {
    font-size: 1.1em;
}
p {
    line-height: 1.5;
}

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

nav {
    align-items: center;
    background-color: var(--primary);
    box-shadow: #222 0px 2px 4px;
    display: flex;
    height: 100%;
    max-height: 4em;
    position: fixed;
    top: 0;
    transition: all 0.1s ease-in-out;
    width: 100%;
    z-index: 100;
}
nav ul {
    align-items: center;
    display: flex;
    gap: 48px;
    justify-content: flex-end;
    list-style: none;
    margin: 0em 2em;
    padding: 0;
}
nav li {
    cursor: pointer;
    padding: 0.5em 0em;
    position: relative;
    text-align: center;
    transition: all 0.25s ease-in-out, --navBorder1 0.3s linear, --navBorder2 1s linear;
}
nav li > a, nav li > span {
    color: var(--background);
    display: block;
    font-family: 'abhayalibre-regular', 'Times New Roman', serif;
    font-size: 1.25em;
    font-weight: normal;
    padding-top: 3px;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}
nav > a:first-child {
    display: block;
    font-size: 1em;
    margin-left: 2em;
    margin-right: auto;
    min-height: 4em;
    padding: initial;
    position: relative;
}

nav li:hover > a, nav li:hover > span {
    color: var(--highlight);
}
.nav-logo {
    filter: drop-shadow(0px 6px 4px #222);
    height: 8em;
    padding: 4px 0px 0px 0px;
    position: absolute;
    top: 0%;
    transition: all 0.25s ease-in-out;
    width: 8em;
}
.nav-logo:hover {
    filter: drop-shadow(0px 6px 4px #CCC);
}
.nav-submenu-header {
    align-items: center;
    cursor: default;
    display: flex;
    position: relative;
}
.nav-submenu-header span {
    color: var(--background) !important;
}
.nav-submenu-header img {
    transform: rotate(0deg);
    transition: all 0.35s;
    width: 2em;
}
.nav-submenu-header:hover img {
    transform: rotate(180deg);
}
.nav-submenu {
    align-items: end;
    background-color: var(--primary);
    box-shadow: #222 2px 3px 3px;
    display: none;
    flex-direction: column;
    gap: 0px;
    margin: 0;
    padding: 0em 1em 1em 0.5em;
    position: absolute;
    right: 0;
    top: 100%;
    width: 150%;
}
.nav-submenu li {
    border-right: 1px solid var(--background);
    padding-right: 1em;
    text-align: right;
}
.nav-submenu-header:hover .nav-submenu {
    display: flex;
}



.burger-wrapper {
    position: absolute;
    right: 0;
    top: 0;
}
.nav-burger {
    color: var(--background);
    cursor: pointer;
    display: none;
    height: 4em;
    position: relative;
    width: 5em;
    margin-left: auto;
}
.nav-burger span {
    background-color: currentColor;
    display: block;
    height: 2px;
    left: calc(50% - 8px);
    position: absolute;
    transform-origin: center;
    transition-duration: 86ms;
    transition-property: background-color, opacity, transform;
    transition-timing-function: ease-out;
    width: 20px;
}
.nav-burger span:nth-child(1) {
    top: calc(50% - 6px);
}
.nav-burger span:nth-child(2) {
    top: calc(50% - 1px);
}
.nav-burger span:nth-child(3) {
    top: calc(50% + 4px);
}
.nav-burger.is-active span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
@media screen and (max-width: 960px){
    nav {
        flex-direction: column;
        height: 100%;
        max-height: 3em;
        padding: 0.25em 0em 0.5em 0em;
    }
    nav > a:first-child {
        margin-left: 1em;
    }
    nav.is-active {
        max-height: 100vh;
        overflow-y: scroll;
    }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 24px;
        justify-content: flex-start;
    }
    nav.is-active > ul {
        display: flex;
        margin-bottom: 2em;
        margin-top: 5em;
    }
    .nav-burger {
        display: block;
    }
    .nav-logo {
        height: 5em;
        padding: unset;
        width: 5em;
    }

    .nav-submenu-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-submenu-header > span {
        padding-left: 2em;
    }
    .nav-submenu {
        align-items: center;
        border-left: 1px solid var(--background);
        border-right: 1px solid var(--background);
        box-shadow: none;
        margin-top: 12px;
        padding: 0;
        position: initial;
    }
    .nav-submenu li {
        border-right: none;
        padding-right: 0;
    }
}

.center {
    text-align: center;
}

.button {
    background-color: var(--background);
    border: 2.5px solid var(--secondary);
    border-radius: 12px;
    color: var(--secondary);
    cursor: pointer;
    display: inline-block;
    font-family: 'ostrich_sans_medium', Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0.5em 0.5em;
    padding: 1em 2em;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    width: fit-content;
}
.button:hover {
    background-color: var(--secondary);
    border-color: var(--highlight);
    color: var(--background);
}
.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: 0.3em 0.5em;
    }
}

.flex-center {
    align-items: center;
    justify-content: center;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
.flex-gap {
    gap: 20px;
}
.flex-row {
    display: flex;
}
.flex-wrap {
    flex-wrap: wrap;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 3rem;
}
@media screen and (max-width: 960px) {
    .grid-3 {
        grid-template-columns: 100%;
    }
}
.grid-3 > div {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 30px 0 rgba(28, 26, 51, 0.10);
    color: var(--text);
    padding: 10%;
}
.grid-3 h3 {
    color: var(--text);
    margin: 0;
}

.side-by-side {
    overflow: hidden;
    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 {
    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 {
    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: white;
    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);
}

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

footer {
    background-color: var(--primary);
    box-shadow: #222 0px -2px 4px;
    color: var(--background);
    gap: 2em;
    justify-content: center;
}
footer > div {
    order: 2;
    padding: 2%;
    text-align: center;
    width: 400px;
}
footer h1 {
    font-size: 1.25em;
}
footer h1, footer a {
    color: var(--background);
}
@media screen and (max-width: 1024px){
    footer > div:first-child {
        order: 0;
    }
    footer > div:last-child {
        order: 1;
    }
}
.social-button {
    background-color: var(--background);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: inline-block;
    height: 32px;
    padding: 16px;
    transition: all 0.2s ease-in-out;
    width: 32px;
}
.social-button > img {
    aspect-ratio: 1 / 1;
    transition: all 0.2s ease-in-out;
    width: 32px;
}
.social-button:hover {
    background-color: var(--secondary);
    border-color: var(--highlight);
}
.social-button:hover > img {
    filter: brightness(10);
}
.footer-logo {
    filter: drop-shadow(0px 0px 0px transparent);
    transition: all 0.25s ease-in-out;
}
.footer-logo:hover {
    filter: drop-shadow(0px 6px 4px #CCC);
}


.delay-animation {
    animation-play-state: paused;
    opacity: 0;
}
.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;
        }
}

.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;
        }
}