:root {
    --white: #FFF;
    --light: #F7EFDD;
    --lightgray: #dfdfdf;
    --subtlecolor: #D5EBEE;
    --highlight: pink;
    --dark: #016455;
    --color-primary: #02816D;
    --color-secondary: #523178;

    --nav-top-buffer: 1.5rem;

    --dark-overlay: rgba(68, 68, 68, 0.4);

    --card-shadow: 20px 20px 60px var(--lightgray);
    --dark-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
    --border-radius: .25rem;
    --offset-amount: 10rem;
    --offset-amount-mobile: 7rem;

    --main-nav-height: 54px;

    --hero-banner-height: 6rem;

    --side-nav-width: 350px;
    --side-nav-mobile-width: 100%;

    --side-nav-padding-x: .75rem;

    --navbar-toggler-height: 35px;
}

body {
    color: var(--dark);
    background-color: var(--light);
    font-family: 'brandon-grotesque';
    font-size: 18px;
}

.anchor-offset {
    position: absolute;
    margin-top: -150px;
}

a {
    color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: '3dSans';
    font-weight: 400;
}

.curly-font, .curly-font h1, .curly-font h2,
.curly-font h3, .curly-font h4, .curly-font h5,
.curly-font h6 {
    font-family: 'curly sans'!important;
    font-weight: 400;
}

#siteContent {
    transition: margin-left .5s;
}

#siteContent img:not(#siteLogo) {
    opacity: 0;
    transition: opacity 1s ease-out;
}

#siteContent img:not(#siteLogo).visible {
    opacity: 1;
}

hr {
    border-top: 3px solid var(--dark);
}

#productInformation .table {
    background-color: transparent;
}

.table>:not(caption)>*>* {
    color: var(--dark);
}

#productInformation .table tr {
    border: none;
    border-bottom: 2px solid var(--white);
    border-width: 2px;
}

#productInformation .table td {
    background-color: transparent;
}

body.side-nav-open #siteContent {
    margin-left: var(--side-nav-width);
    transition: margin-left .5s;
}

.smaller {
    font-size: 0.7em;
}

.larger {
    font-size: 1.3em;
}

.row.offset-up {
    margin-top: -11rem;
    position: relative;
}

.offset-section-next {
    padding-bottom: calc(var(--offset-amount) + 2rem);
}

.offset-section-next + section .row.offsettable-row {
    margin-top: calc(var(--offset-amount)* -1);
    position: relative;
    z-index: 10;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-second);
}

.has-section-decoration-photo {
    position: relative;
    padding-top: calc(3rem + 75px)!important;
    padding-bottom: calc(3rem + 75px)!important;
}

.section-decoration-photo {
    width: 100%;
    position: absolute;
    top: -75px;
    text-align: center;
}

.section-decoration-photo img {
    width: auto;
    height: 150px;
}

/* Colors */

.text-primary {
    color: var(--color-primary)!important;
}

.text-secondary {
    color: var(--color-secondary)!important;
}

.text-dark {
    color: var(--dark)!important;
}

.bg-pattern {
    background-image: url('../img/taustacanvas-karkee_white_50.png');
    background-position: center;
    background-size: 100%;
    background-repeat: repeat-y;
}

.bg-primary {
    background-color: var(--color-primary)!important;
    color: var(--light);
}

.bg-light {
    background-color: var(--light)!important;
}

.bg-secondary {
    background-color: var(--color-secondary)!important;
    color: var(--light);
}

.bg-subtle {
    background-color: var(--subtlecolor)!important;
    color: var(--dark);
}

.bg-dark {
    background-color: var(--dark)!important;
    color: var(--light);
}

/* Button general shape */
.btn {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    font-family: '3dSans';
    font-weight: 400;
}

.btn-primary, .btn.btn- {
    background-color: var(--dark);
    color: var(--light);
    border-color: var(--dark);
}

.btn-primary:active, .btn-primary:focus, .btn-primary:hover, .btn-primary.disabled, .btn-primary:disabled, :not(.btn-check)+.btn-primary:active, .btn-primary:first-child:active
.btn.btn-:active, .btn.btn-:focus, .btn.btn-:hover, .btn.btn-.disabled, .btn.btn-:disabled, :not(.btn-check)+.btn.btn-:active, .btn-primary:first-child:active {
    background-color: var(--dark);
    color: var(--light);
    border-color: var(--dark);
}

.bg-primary .btn-primary, 
.bg-primary .btn.btn- {
    background-color: var(--dark);
    color: var(--light);
    border-color: var(--dark);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--light);
}

.btn-secondary:hover, 
.btn-secondary:focus, 
.btn-secondary:active {
    background-color: var(--color-secondary);
    color: var(--light);
    opacity: 0.9;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-transparent {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-secondary);
    border-radius: 0px;
    color: var(--color-secondary);
}

.btn-transparent:hover, 
.btn-transparent:active, 
.btn-transparent:focus {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0px;
    color: var(--color-primary);
}

.btn-transparent.active {
    background-color: var(--white);
    border: 2px solid var(--color-secondary);
    border-radius: var(--border-radius);
}

/* Navbar */

#sideNav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: var(--top-navbar-height);
    left: 0;
    overflow-x: hidden;
    transition: width 0.5s ease;
    padding-top: 60px;
}

.border-radius {
    border-radius: var(--border-radius);
}

.ccm-toolbar-visible #sideNav {
    top: calc(var(--top-navbar-height) + 48px);
}

body.side-nav-open #sideNav {
    width: var(--side-nav-width);
    padding-left: .75rem;
    padding-right: .75rem;
}

#mainNav {
    padding: 5px 0 5px 0px;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10;
    width: 100%;
}

#mainNav .border-radius {
    box-shadow: var(--dark-shadow);
}

.compact-nav #mainNav {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 0;
}

.ccm-toolbar-visible .compact-nav #mainNav {
    top: 48px;
}

.compact-nav #mainNav .border-radius {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#mainNav .navbar-toggler {
    border: none;
    color: var(--color-secondary);
    font-size: 2rem;
    padding: 0;
}

#mainNav .nav-link {
    color: var(--color-secondary);
    font-size: 1.5rem;
    padding: .5rem 1.25rem;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
    font-family: '3dSans';
    font-weight: 400;
}

#mainNav .nav-link.active {
    background-color: var(--color-secondary);
    color: var(--light);
}

#mainNav {
    top: var(--nav-top-buffer);
}

.ccm-toolbar-visible #mainNav {
    top: calc(var(--nav-top-buffer) + 48px);
}

nav.navbar .navbar-nav .btn {
    padding: .3rem 2rem;
}

#languageMobile {
    flex-direction: row;
}

.nav-link-lang {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    padding: 1rem .25rem;
}

.nav-link-lang.active {
    color: var(--dark);
}

.navbar-nav .dropdown-menu {
    border-radius: var(--border-radius);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--highlight);
    color: var(--light);
}

#siteLogo {
    width: auto;
    height: 58px;
}

.modal-content {
    border-radius: var(--border-radius);
}

#socialIcons .nav-link {
    margin: .5rem;
    font-size: 1rem;
    padding: 0;
}

#socialIcons a,
#socialIconsMobile a,
#socialIconsFooter a {
    color: var(--color-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#socialIcons a:hover,
#socialIconsFooter a:hover {
    color: var(--color-primary);
}

#socialIconsMobile {
    display: none;
    padding: .5rem .75rem;
}

#socialIconsMobile a {
    font-size: 1rem;
    padding: 2px 4px;
    border: 2px solid;
}

.bg-img {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

#toastLand {
    max-width: calc(100vw - 4rem);
    position: fixed;
    bottom: 2rem;
    right: 2rem;
}

.tilt-right {
    transform: rotate(4deg);
}

.tilt-left {
    transform: rotate(-4deg);
}

/* Hero area */

#colorHeader {
    min-height: 300px;
    position: relative;
    display: flex;
}

#colorHeader img {
    position: relative;
    height: 200px;
    width: auto;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: -50px;
}

.page-template-blog-single-template #colorHeader img {
    height: 500px;
    margin-bottom: -375px;
    max-width: 100%;
}

.page-template-blog-single-template #colorHeader + section {
    padding-top: 400px!important;
}

#pageHero {
    height: 75vh;
    min-height: 20rem;
    position: relative;
    overflow: hidden;
    display: flex;
    color: var(--light);
    z-index: 2;
}

#pageHero h1,
#pageHero h2,
#pageHero h3 {
    color: var(--light);
}

#heroOverlay {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background-image: linear-gradient(rgba(59 49 49 / 0), rgba(59 49 49 / 90));
    opacity: .25;
}

#pageHero.large-hero {
    height: 70vh;
}

#pageHero h1 {
    font-size: 4.6em;
    font-weight: 900;
}

#pageHero h2 {
    font-size: 3em;
    font-weight: 900;
}

#pageHero .ccm-block-feature-link-text p {
    font-size: 1.5em;
}

#pageHero .ccm-block-feature-link-text p:first-of-type {
    margin-top: 4rem;
}

#pageHero .container,
#pageHero .container-fluid {
    z-index: 2;
}

#pageHero img {
    max-height: 150px;
    width: auto;
}

.bg-video-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
}

.bg-video-wrapper .bg-video {
    opacity: 1;
    position: absolute;
    object-fit: cover;
    left: 0;
    top: -25%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    max-width: unset;
    transition: all 1.5s ease-out;
}

.page-item:last-child .page-link {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.page-item:first-child .page-link {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.page-item:not(.next) .page-link {
    color: var(--color-primary);
}

.page-item.active .page-link {
    background-color: var(--color-primary);
    color: var(--light);
    border-color: var(--color-primary);
}

.page-item.active .page-link:hover {
    color: var(--light);
}

.page-item.prev .page-link,
.page-item.next .page-link {
    color: var(--color-primary)¨;
}

.page-item .page-link:hover {
    color: var(--color-primary);
}

.pagination-wrapper .page-item.prev.disabled,
.pagination-wrapper .page-item.next.disabled,
.ccm-pagination-wrapper .page-item.prev.disabled,
.ccm-pagination-wrapper .page-item.next.disabled {
    display: none;
}

/* General items */

.page-card {
    text-decoration: none;
    color: var(--color-secondary);
}

.page-card .image-area {
    aspect-ratio: 1/1;
    width: 100%;
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

.page-card .image-area img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.kt-pair img {
    object-fit: fill;
    object-position: 50% 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

#mainNavigation .accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
    font-size: 1rem;
    text-align: left;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: var(--bs-accordion-transition);
}

#mainNavigation .accordion-button:not(.collapsed) {
    box-shadow: inset 0 calc(-1* var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

#mainNavigation .accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}

#mainNavigation .accordion-item,
#mainNavigation .list-group-item {
    border: none;
    border-radius: 0;
}

#mainNavigation .accordion-body {
    padding: 0px 0px 0px 20px;
}


/* Footer */

#logoBanner img {
    height: 150px;
    width: auto;
}

.parallax {
    background-attachment: fixed;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
}

/* Back to Top */
#backToTop {
    position: fixed;
    right: 10px;
    bottom: 110px;
    font-size: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--color-secondary);
    color: var(--white);
    transition: all 0.3s ease;
    z-index: 100;
    height: 4rem;
    width: 4rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--white);
}

#backToTop i {
    color: var(--white);
    position: relative;
    z-index: 2;
    margin-top: -0.3rem;
    display: block;
}

#backToTop.hiding {
    right: -80px;
}

/* Accessability settings */

body.medium {
    font-size: 1.5em;
}

body.large {
    font-size: 2em;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 13px;
    transition: all 0.3s ease;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--lightgray);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--dark);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Mobile and other different size screen things */

@media (max-width: 1450px) {

}

@media (max-width: 1350px) {

}

@media (max-width: 1200px) {
    /* #mainNav.fixed-top {
        position: relative;
        margin-top: 0;
        padding: 0;
    } */

    #mainNav {
        position: relative;
        top: 0;
        padding: 0;
    }

    .ccm-toolbar-visible #mainNav {
        top: 0;
    }

    .offset-section-next + section .row.offsettable-row {
        margin-top: calc(var(--offset-amount) * 0.5 * -1);
    }

    .navbar-toggler .bi-list {
        display: none;
    }

    .navbar-toggler .bi-x-lg {
        display: block;
    }

    .navbar-toggler.collapsed .bi-list {
        display: block;
    }

    .navbar-toggler.collapsed .bi-x-lg {
        display: none;
    }

    #mainNav .d-flex.border-radius {
        flex-wrap: inherit;
        align-items: center;
        justify-content: space-between;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #mainNav .nav-link {
        text-align: center;
    }

    #socialIcons {
        flex-direction: row;
        justify-content: center;
    }

    #socialIcons .nav-item {
        width: auto;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    #mainNavigation {
        border-bottom: 10px solid var(--color-secondary);
        padding-bottom: 1.5rem;
    }

    #colorHeader {
        min-height: 200px;
    }

    #colorHeader img {
        width: 50%;
        height: auto;
        margin-bottom: -35px;
    }

    .page-template-blog-single-template #colorHeader img {
        height: auto;
        margin-bottom: -30px;
        width: 80%;
    }

    .page-template-blog-single-template #colorHeader + section {
        padding-top: 30px!important;
    }
}

@media (max-width: 991px) {
    .page-card .h3 {
        font-size: 1.1rem;
    }

    .page-card .btn {
        font-size: 0.9rem;
        padding: .25rem .5rem;
    }

    .bg-video-wrapper .bg-video {
        height: 100%;
        top: 0;
    }

    #sideNav.open {
        width: var(--side-nav-mobile-width);
    }

    #siteContent.move-aside {
        width: 0;
        margin: 0;
    }

    #pageHero h1 {
        font-size: 2em;
    }

    #socialIconsMobile {
        display: flex;
    }

    nav.navbar .nav-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav.navbar#mainNav .nav-link.active {
        color: var(--light);
        padding-top: 0.9rem;
        padding-bottom: 1rem;
        padding-right: 1rem;
        padding-left: 1rem;
        margin: 0;
        border-bottom: none;
    }

    nav.navbar .navbar-nav .btn {
        padding: .5rem 2rem;
        width: 100%;
    }

    #pageHero h2 {
        font-size: 3em;
    }

    #pageHero .ccm-block-feature-link-text p {
        font-size: 1.2em;
    }

    #pageHero {
        padding-top: 2rem;
        padding-bottom: 2rem;
        aspect-ratio: 16 / 9;
        min-height: unset;
        height: auto;
    }

    #pageHero.large-hero {
        height: 60vh;
        min-height: 500px;
    }

    #footerNav .nav-link,
    #footerNav .nav-link.active {
        font-size: 0.8rem;
    }

    nav.navbar #mainNavigation .nav-item::before,
    #footerNav .nav-item::before {
        content: none;
    }

    .page-item:not(.next) .page-link {
        font-size: 1rem;
        padding: .25rem 0.7rem;
        margin-right: .25rem;
    }

    .page-item.prev,
    .page-item.next {
        display: none;
    }

    #logoBanner img {
        height: auto;
        width: auto;
        max-width: 100%;
    }
}

@media (max-width: 767px) {}

@media (max-width: 576px) {}

/* Users */

.round-avatar {
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    aspect-ratio: 1;
    height: 200px;
    width: auto;
    border: 2px solid var(--lightgray);
    border-radius: 50%;
}

/* Fontit / Fonts */

@font-face {
    font-family: '3dSans';
    src: url('../fonts/canvas-3d-sans-regular.ttf') format("truetype-variations");
    font-weight: 1 999;
}

@font-face {
    font-family: 'curly sans';
    src: url('../fonts/canvas-curly-sans-combined.ttf') format("truetype-variations");
    font-weight: 1 999;
}

@font-face {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "brandon-grotesque", sans-serif;
    font-weight: 700;
    font-style: italic;
}