:root {

    --default-transition: all ease-in-out .25s;

    --nav-heading-color: #1f1f1f;

    --text-color: #1f1f1f;
    --text-color-dark: #e3e3e3;

    --background-color: #ffffff;


    --menu-background: #ebf0f9b3;

    --overlay-background: rgba(255, 255, 255, 0.3);

    --header-background: linear-gradient(to right, #0d6efd, #0a58ca);
    --header-color: #FFF;

    --zigzag-color: #EE918A;


    --card-background: #f8fafd;
    --card-background-dark: #292b2c;

    --card-background-hover: #c2e7ff52;


    --border-radius-l: 48px;
    --border-radius-m: 24px;
    --border-radius-s: 12px;
    --border-radius-xs: 6px;
}

@font-face {
    font-family: 'Montserrat';
    src: url(../fonts/montserrat/Montserrat-Regular.ttf);
}

/* ---- MOBILE FIRST ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
}

ul.dvv-nav-list {
    padding: 0;
}

/* Set the theme colors at the beginning so they can be overriden. */
/* body, */
/* 
* the rule below (body *) shouldn't exist but something is being loaded from WP and is overriding some colors 
* - remove this and sort out the WP css that's being loaded 
*/
body * {
    color: var(--text-color);
}

/* --- PERFECT SCROLLBARS (native CSS way) - we're skipping the BODY scrollbar (main window scrollbar) to avoid issues. */

body * {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

body *::-webkit-scrollbar {
    transition: var(--default-transition);
    width: 10px;
}

body *::-webkit-scrollbar-track {
    transition: var(--default-transition);
    background: transparent;
}

body *::-webkit-scrollbar-thumb {
    transition: var(--default-transition);
    background-color: transparent;
    border-radius: 20px;
    border: 2px solid transparent;
}

body *:hover {
    scrollbar-color: #c1c1c1c1 transparent;
}

body *:hover::-webkit-scrollbar-thumb {
    background-color: #c1c1c1c1;
}

body *::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8c1;
}

body *::-webkit-scrollbar-thumb:active {
    background-color: #787878c1;
}

/* --- PERFECT SCROLLBARS END ----------------------------------------------------------------------------------------- */

body,
html {
    font-size: 16px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: none;
    margin: 0;
}

/* Add some margins to the rows. */
.row {
    margin: 20px 0;
}

/* Site Header - Top Bar */
header .dvv-header-container {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    padding-left: 80px;
    padding-right: 20px;
    align-items: center;
}

header.dvv-header {
    height: 60px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: var(--header-background);
    backdrop-filter: blur(20px);
    z-index: 90;
}

header.dvv-header #dvv-toggle-light-dark {
    height: 60px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    font-size: 1.4em;
    background: none;
    border: none;
    color: var(--header-color);
    position: absolute;
    right: 0;
    cursor: pointer;
}

header.dvv-header #dvv-toggle-light-dark:hover {
    background-color: #3d3d3d3d;
}

body header.dvv-header #dvv-toggle-light-dark .icon-to-light {
    display: none;
}

body header.dvv-header #dvv-toggle-light-dark .icon-to-dark {
    display: block;
}

/* Transform Y at -100% to pull it up by it's height. */
footer.dvv-footer {
    height: 60px;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
}

footer.dvv-footer>div.dvv-footer-content {
    display: flex;
    flex-grow: 1;
    height: 100%;
    align-items: center;
    justify-content: center;

}

footer.dvv-footer .footer-copyright {
    font-size: .9rem;
    color: #979797;
    font-weight: 300;
}

button.dvv-sidebar-toggle.dvv-sidebar-toggle-mobile {
    display: block;
}

button.dvv-sidebar-toggle.dvv-sidebar-toggle-desktop {
    display: none;
}

button.dvv-sidebar-toggle {
    border: none;
    width: 40px;
    height: 40px;
    padding: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    cursor: pointer;
    z-index: 110;
    background: none;
    font-size: 30px;
}

button.dvv-sidebar-toggle>div {
    display: block;
    position: relative;
    height: 100%;
    pointer-events: none;
}

button.dvv-sidebar-toggle>div span {
    display: block;
    position: absolute;
    height: 4px;
    width: 1em;
    background: var(--header-color);
    border-radius: 4px;
    left: 0;
    opacity: 1;
    transition: var(--default-transition);
    pointer-events: none
}


button.dvv-sidebar-toggle>div span:nth-child(1) {
    top: 15%;
}

button.dvv-sidebar-toggle>div span:nth-child(2),
button.dvv-sidebar-toggle>div span:nth-child(3) {
    top: 50%;
    margin-top: -2px;
}

button.dvv-sidebar-toggle>div span:nth-child(4) {
    bottom: 15%;
}

body.dvv-sidebar-expanded button.dvv-sidebar-toggle>div span:nth-child(1) {
    top: 50%;
    width: 0%;
    left: 50%;
}

body.dvv-sidebar-expanded button.dvv-sidebar-toggle>div span:nth-child(2) {
    transform: rotate(45deg);
}

body.dvv-sidebar-expanded button.dvv-sidebar-toggle>div span:nth-child(3) {
    transform: rotate(-45deg);
}

body.dvv-sidebar-expanded button.dvv-sidebar-toggle>div span:nth-child(4) {
    bottom: 50%;
    width: 0%;
    left: 50%;
}

main.dvv-main {
    padding: 60px 0;
    position: relative;
    width: 100%;
    min-height: 100%;
    z-index: 1;
    transition: var(--default-transition), background ease .1s;
}

main.dvv-main.not-logged-in {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

main.dvv-main .dvv-main-content {
    padding: 20px;
}

div#dvv-mobile-menu-overlay {
    background: var(--overlay-background);
    backdrop-filter: blur(3px);
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 89;
    transition: var(--default-transition);
    cursor: pointer;
    display: none;
}

@media (max-width: 959px) {
    body.dvv-sidebar-expanded div#dvv-mobile-menu-overlay {
        display: block;
    }
}

aside.dvv-sidebar {
    position: fixed;
    left: -1px;
    top: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--default-transition);
    box-shadow: 7px 0 60px rgba(0, 0, 0, 0.1);
}

aside.dvv-sidebar:hover,
body.dvv-sidebar-expanded aside.dvv-sidebar {
    width: 280px;
}

aside.dvv-sidebar>.dvv-site-branding {
    background-color: transparent;
    background: transparent;
    display: block;
    width: 280px;
    min-width: 280px;
    height: 60px;
    max-height: 60px;
    min-height: 60px;
    position: relative;
}

aside.dvv-sidebar>.dvv-side-menu {
    background: var(--menu-background);
    backdrop-filter: blur(10px);
    display: block;
    width: 280px;
    min-width: 280px;
    height: auto;
    overflow-y: auto;
    flex-grow: 1;
    overscroll-behavior: contain;
}

nav.dvv-side-nav li.dvv-nav-item {
    display: flex;
    flex-direction: column;
}

nav.dvv-side-nav h3.dvv-nav-heading {
    padding: 0 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 20px 0 10px;
    color: var(--nav-heading-color);
    white-space: nowrap;
    position: relative;
    text-align: center;
    font-weight: 500;
    width: 100%;
}

nav.dvv-side-nav h3.dvv-nav-heading span {
    color: var(--nav-heading-color);
    transition: var(--default-transition);
}

nav.dvv-side-nav h3.dvv-nav-heading:before {
    content: '\2022';
    transition: var(--default-transition);
    opacity: 1;
    position: absolute;
    left: 36px;
    top: -3px;
    font-size: 2em;
    color: #ee918a36;
}

nav.dvv-side-nav h3.dvv-nav-heading span {
    opacity: 0;

}

aside.dvv-sidebar:hover nav.dvv-side-nav h3.dvv-nav-heading span,
body.dvv-sidebar-expanded aside.dvv-sidebar nav.dvv-side-nav h3.dvv-nav-heading span {
    opacity: 1;
}

aside.dvv-sidebar:hover nav.dvv-side-nav h3.dvv-nav-heading:before,
body.dvv-sidebar-expanded aside.dvv-sidebar nav.dvv-side-nav h3.dvv-nav-heading:before {
    opacity: 0;
}

nav.dvv-side-nav .dvv-nav-link {
    display: block;
    text-decoration: none;
    background: none;
    border: none;
    height: 44px;
    line-height: 46px;
    padding: 0 40px 0 55px;
    margin: 5px 15px;
    border-radius: .25rem;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
    position: relative;
}

nav.dvv-side-nav .dvv-nav-link.active span,
nav.dvv-side-nav .dvv-nav-link.active i {
    font-weight: bolder;
    color: #0d6efd;
}

nav.dvv-side-nav .dvv-nav-link>span {
    opacity: 0;
    transition: var(--default-transition);
}

aside.dvv-sidebar:hover nav.dvv-side-nav .dvv-nav-link>span,
body.dvv-sidebar-expanded aside.dvv-sidebar nav.dvv-side-nav .dvv-nav-link>span {
    opacity: 1;
}

nav.dvv-side-nav .dvv-nav-link>.dvv-nav-icon,
nav.dvv-side-nav .dvv-nav-link>.dvv-nav-chevron {
    position: absolute;
    font-size: 1.5em;
    left: 0;
    width: 50px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--default-transition);
}

nav.dvv-side-nav .dvv-nav-link>.dvv-nav-chevron {
    font-size: 1.2em;
    left: auto;
    right: 0;
    opacity: 0;

}

aside.dvv-sidebar:hover nav.dvv-side-nav .dvv-nav-link>.dvv-nav-chevron,
body.dvv-sidebar-expanded aside.dvv-sidebar nav.dvv-side-nav .dvv-nav-link>.dvv-nav-chevron {
    opacity: 1;
}

nav.dvv-side-nav .dvv-nav-link:hover {
    background: #d4d9e182;
}

/* 
* In order to animate the menus we have to control the height of the element. However setting height of 0 will not work. There is a limit to transitions using set height.
* We would need to set a fixed height/max-height or it will not work with height: auto when we want it to open.
* That's why we're not gonna manipulate the height of the parent but rather the height of the children.
* For the list items we can set a fixed height when open, and 0 height when closed, and the ease transition will do the rest:
*/
nav.dvv-side-nav li.has-subnav ul.dvv-sub-nav-list {
    overflow: hidden;
    transition: var(--default-transition);
    margin-left: 38px;
    border-left: 4px solid #0d6efd;
    /* border-radius: 0.25em; */
}

nav.dvv-side-nav li.has-subnav ul.dvv-sub-nav-list li {
    transition: var(--default-transition);
    max-height: 0;
}

/* Set max height when the submenu is open to be a specific number. This is the important bit, transitions do not work from 0 height to height auto.  */
nav.dvv-side-nav li.has-subnav.open ul.dvv-sub-nav-list li {
    transition: var(--default-transition);
    max-height: 54px;
}

nav.dvv-side-nav li.has-subnav ul.dvv-sub-nav-list li .dvv-nav-link {
    padding: 0 30px;
    left: -12px;
}

/* !!! IMPORTANT !!! Do not use breakpoints other than these based off of the GRID css library, and always code mobile first!!! */

/* Extra Small devices (mobile phones and tablets 600px and below - code goes without media queries) ------------ */

/* Small devices (landscape phones and tablets 600px and up) ---------------------------------------------------- */
@media (min-width: 600px) {}

/* Medium devices (tablets and laptops 960px and up) ------------------------------------------------------------ */
@media (min-width: 960px) {

    /* Header will be fixed on non-mobile devices. */
    header.dvv-header {
        position: fixed;
    }

    /* Switch from mobile menu to desktop menu. */
    button.dvv-sidebar-toggle.dvv-sidebar-toggle-mobile {
        display: none;
    }

    button.dvv-sidebar-toggle.dvv-sidebar-toggle-desktop {
        display: block;
    }

    footer.dvv-footer,
    main.dvv-main {
        padding-left: 80px;
    }

    body.dvv-sidebar-expanded footer.dvv-footer,
    body.dvv-sidebar-expanded main.dvv-main {
        padding-left: 280px;
    }

    aside.dvv-sidebar {
        width: 80px;
        min-width: 80px;
    }
}

/* Large devices (desktops, 1264px and up) ------------------------------------------------------------ */
@media (min-width: 1264px) {}

/* Extra large devices (large desktops, 1904px and up) ----------------------------------------------- */
@media (min-width: 1904px) {}

/* 
* In extreme cases we could add breakpoints for over 2000px screens etc, but it's not necessary
*  - we'll just never use the container class and do fluid full width containers. 
*/

/* ===============================================================================================================================================  */

/* CARDS  */

.card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-transparent:focus,
.btn-transparent {
    box-shadow: none;
}