:root {
    --light: #FFF;
    --dark: #1B1C1E;
    --darkgray: #242421;
    --lightgray: #F6F6F6;
    --yellow: #F2B825;
    --lightgreen: #00A754;
    --green: #198043;
    --blueishgreen: #307B63;
    --blue: #179188;

    --card-shadow: 20px 20px 60px var(--darkgray);
	--card-shadow-hover: 10px 10px 30px var(--darkgray);

    --footer-min-height: 180px;
}

body {
    font-family: 'Barlow';
    color: var(--dark);
    font-size: 20px;
    transition: all 0.3s ease;
    background-color: var(--light);
}

.shadow-me {
    box-shadow: var(--card-shadow);
}

section {
    position: relative;
    z-index: 2;
}

h1, h2, h3,
.h1, .h2, .h3 {
    font-family: 'Rajdhani';
	font-weight: 700;
}

.ccm-page section h1:not(.accordion-header), .ccm-page section h2:not(.accordion-header), .ccm-page section h3:not(.accordion-header),
.ccm-page section .h1:not(.accordion-header), .ccm-page section .h2:not(.accordion-header), .ccm-page section .h3:not(.accordion-header) {
    margin-top: 2.5rem;
}

#lastLightSection h1:first-of-type, #lastLightSection h2:first-of-type, #lastLightSection h3:first-of-type, 
#lastLightSection .h1:first-of-type, #lastLightSection .h2:first-of-type, #lastLightSection .h3:first-of-type,
.ccm-page section .premise-card h1, .ccm-page section .premise-card h2, .ccm-page section .premise-card h3, 
.ccm-page section .premise-card .h1, .ccm-page section .premise-card .h2, .ccm-page section .premise-card .h3 {
    margin-top: 0px;
}

.smaller {
	font-size: 0.7em;
}

a {
	text-decoration: none;
	color: var(--green);
}

a:hover {
	color: var(--green);
}

.dark { color: var(--dark); }
.darkbg { background-color: var(--dark); color: var(--light); }
.darkbg a {
    color: var(--light);
}

.light { color: var(--light); }
.lightbg, .lightbg:hover { background-color: var(--light); color: var(--dark); }
.lightbg h1, .lightbg h2, .lightbg h3, .lightbg h4, .lightbg h5, .lightbg h6 {
    color: var(--green);
}

.darkgray { color: var(--darkgray); }
.darkgraybg {
    background-color: var(--darkgray);
    color: var(--light);
}
.darkgraybg a {
    color: var(--light);
}

.green { color: var(--green); }
.greenbg { 
	background-color: var(--green);
	color: var(--light);
}

.lightgreen { color: var(--lightgreen); }
.lightgreenbg { 
	background-color: var(--lightgreen);
	color: var(--light);
}

.blueishgreen { color: var(--blueishgreen); }
.blueishgreenbg { 
	background-color: var(--blueishgreen);
	color: var(--light);
}

.blue { color: var(--blue); }
.bluebg { 
	background-color: var(--blue);
	color: var(--light);
}

.yellow { color: var(--yellow); }
.yellowbg { 
	background-color: var(--yellow);
	color: var(--light);
}

.green-gradientbg-left-to-right {
    background: rgb(0,167,84);
    background: -moz-linear-gradient(90deg, rgba(0,167,84,1) 0%, rgba(12,148,76,1) 20%, rgba(17,147,106,1) 60%, rgba(23,145,136,1) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0,167,84,1) 0%, rgba(12,148,76,1) 20%, rgba(17,147,106,1) 60%, rgba(23,145,136,1) 100%);
    background: linear-gradient(90deg, rgba(0,167,84,1) 0%, rgba(12,148,76,1) 20%, rgba(17,147,106,1) 60%, rgba(23,145,136,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00a754",endColorstr="#179188",GradientType=1);
}

.green-gradientbg-top-down {
    background: rgb(0,167,84);
    background: -moz-linear-gradient(180deg, rgba(0,167,84,1) 0%, rgba(12,148,76,1) 20%, rgba(17,147,106,1) 60%, rgba(23,145,136,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(0,167,84,1) 0%, rgba(12,148,76,1) 20%, rgba(17,147,106,1) 60%, rgba(23,145,136,1) 100%);
    background: linear-gradient(180deg, rgba(0,167,84,1) 0%, rgba(12,148,76,1) 20%, rgba(17,147,106,1) 60%, rgba(23,145,136,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00a754",endColorstr="#179188",GradientType=1);
    color: var(--light);
}

.yellow-gradientbg-top-down,
.btn-primary,
.ccm-block-feature-link-text .btn- {
    background: rgb(242,184,37);
    background: -moz-linear-gradient(180deg, rgba(242,184,37,1) 0%, rgba(242,184,37,1) 50%, rgba(233,136,63,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(242,184,37,1) 0%, rgba(242,184,37,1) 50%, rgba(233,136,63,1) 100%);
    background: linear-gradient(180deg, rgba(242,184,37,1) 0%, rgba(242,184,37,1) 50%, rgba(233,136,63,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#f2b825",endColorstr="#e9883f",GradientType=1);
}

.btn {
    border-radius: 2rem;
    transition: all 0.3s ease;
    font-weight: 700;
    font-family: 'Rajdhani';
    padding: .5rem 2rem;
	text-decoration: none!important;
}

.btn-primary, .ccm-block-feature-link-text .btn- {
    color: var(--light)!important;
    border: none;
}

.btn-outline-primary {
    color: var(--dark);
    border-color: var(--dark);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--yellow);
    color: var(--dark);
    border-color: var(--dark);
}

.btn-secondary, .btn-secondary:hover, .btn-secondary:focus {
	background-color: var(--green);
	border-color: var(--green);
}

.btn-secondary.active {
	/* background-color: var(--parikkala-lightblue);
	border-color: var(--parikkala-lightblue); */
}

.btn-outline-secondary, .btn-outline-secondary:hover {
    border-color: var(--dark);
    color: var(--dark);
    background-color: transparent;
    font-weight: 700;
}

.btn-outline-secondary:hover {
    box-shadow: var(--card-shadow);
}

#sizeSelector {
    margin: 0px;
    padding: 0px;
    position: relative;
    display: flex;
}

#sizeSelector li {
    float: left;
    list-style: none;
    margin-left: 2px;
    margin-right: 2px;
    margin-top: auto;
}

#sizeSelector button {
    background-color: transparent;
    border: none;
    padding: 0px;
    margin: 0px;
    cursor: pointer;
}

#sizeSelector li#medium {
    font-size: 125%;
    margin-bottom: -3px;
}

#sizeSelector li#large {
    font-size: 150%;
    margin-bottom: -4px;
}

#sizeSelector li.selected-letter button {
    text-decoration: underline;
}

.container.wide {
    width: 90vw;
    max-width: 1600px;
}

body .ccm-page {
    position: relative;
}

/* Navbar */

nav.navbar {
    z-index: 3; /* Giving little z-index so it shows from behind a hero video */
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
}

nav.navbar .navbar-nav .btn {
    padding: .3rem 2rem;
}

nav.navbar .navbar-brand {
    /* padding: 2rem 2rem 0.5rem 2rem;
    margin-bottom: -6rem; */
}

nav.navbar.navbar-expand-lg .navbar-nav .nav-link {
    font-size: 19px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--light);
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

nav.navbar.navbar-expand-lg .navbar-nav .nav-link:hover {
    color: var(--yellow);
}

nav.navbar.navbar-expand-lg .navbar-nav .nav-link.active {
    color: var(--yellow);
    font-weight: 900;
}

#siteLogo {
    width: auto;
    height: 80px;
}

.navbar-toggler {
    color: var(--light);
    padding: 0px;
    border: none;
    font-size: 3rem;
    border-radius: 0px;
}

.bg-img { 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#toastLand {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
}

/* Hero area */

#pageHero.lazy video.bg-video {
    opacity: 0;
}

#pageHero {
    text-align: center;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    color: var(--light)!important;
}

#pageHero + .repeater-content {
    padding-top: 6rem!important;
}

.page-template-frontpage-template #pageHero {
    /* height: 70vh; */
}

#pageHero #heroLogo {
    margin-bottom: 3rem;
}

.page-template-frontpage-template #pageHero #triangle-bottomleft {
    width: 0;
    height: 0;
    border-bottom: 30vh solid var(--light);
    border-right: 50vw solid transparent;
    position: absolute;
    left: 0px;
    bottom: 0px;
    z-index: 1;
}

.page-template-frontpage-template #pageHero #triangle-bottomright {
    width: 0;
    height: 0;
    border-bottom: 30vh solid var(--light);
    border-left: 50vw solid transparent;
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 1;
}

#pageHero #triangle-topright {
    width: 0;
    height: 0;
    border-top: 50vh solid var(--lightgreen);
    border-left: 40vw solid transparent;
    position: absolute;
    right: 0px;
    top: 0px;
    opacity: 0.8;
    z-index: 2;
}

#pageHero.large-hero {
    height: 95vh;
}

#pageHero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-top: 0;
}

#pageHero .ccm-block-feature-link-text p {
    font-size: 1.5rem;
    padding: 0 3rem;
}

#pageHero .ccm-block-feature-link-text p:first-of-type {
    margin-top: 1rem;
}

#pageHero .container {
    z-index: 3;
    padding-top: calc(3rem + 108px);
    padding-bottom: 5rem;
}

.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: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    max-width: unset;
    transition: all 1.5s ease-out;
}

/* General items */

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

h2.section-header {
    font-size: 5rem;
    font-weight: 900;
}

/* Highlight content */

.highlight-content h2 {
    font-size: 5rem;
    font-weight: 900;
}

.highlight-content a {
    text-decoration: none;
}

.highlight-content .ccm-block-feature-link-text .btn {
    margin-bottom: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Footer */

#lastLightSection {
    min-height: 50vh;
    background-position: top center;
    background-size: cover;
}

#lastLightSection.has-content {
    padding-bottom: var(--section-splitter-height)!important;
}

.page-template-frontpage-template #lastLightSection {
    background-position: right bottom;
    background-size: auto 70%;
    background-repeat: no-repeat;
    padding-bottom: var(--section-splitter-height)!important;
}

footer {
    position: relative;
    min-height: var(--footer-min-height);
}

footer a {
    text-decoration: none;
}

footer p:last-of-type {
    margin-bottom: 0px;
}

footer #triangle-topleft {
    width: 0;
    height: 0;
    border-top: calc(var(--footer-min-height) * 0.7) solid var(--green);
    border-right: 10vw solid transparent;
    position: absolute;
    left: 0px;
    top: 0px;
    opacity: 0.3;
    z-index: 2;
}

/* Inputs*/

.label-top-margin { /* if we need to line button with inputs with labels */
    margin-top: 32px;
}

.user-card.user-deactivated {
    opacity: 0.5;
}

.user-card .btn-group .btn {
    border-radius: 0px;
}

.user-card .progress {
    border-radius: 0px;
}

/* Back to Top */
#backToTop {
    font-family: 'Rajdhani';
    position: fixed;
    right: 7px;
    bottom: 50px;
    padding: 5px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    background-color: var(--dark);
    border-color: var(--dark);
    color: var(--light);
    border-radius: 100%;
    transition: all 0.3s ease;
    z-index: 100;
}

#backToTop div {
    /* margin-top: .3rem; */
}

#backToTop .bi {
    font-size: 1rem;
}

#backToTop:hover {
    /* padding: 5px 30px 5px 15px; */
}

#backToTop.hiding {
    right: -80px;
}

/* Accessability settings */

body.medium {
    font-size: 1.5em;
}

body.large {
    font-size: 2em;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
    transition: all 0.3s ease;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--lightgray);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--green);
}

div[id^="triangle-"] {
    transition: all 0.2s ease;
}

/* Mobile and other different size screen things */

@media (max-width: 1450px){
    .container.wide {
        width: 100%;
    }
}

@media (max-width: 1350px){
    nav.navbar.navbar-expand-lg .navbar-nav .nav-link {
        padding: 2rem .75rem;
        font-size: 0.9em;
    }

    #siteLogo {
        height: 50px;
    }
}

@media (max-width: 1200px){
    nav.navbar .navbar-brand {
        padding: .5rem;
    }

    nav.navbar.navbar-expand-lg .navbar-nav .nav-link {
        font-size: 0.75em;
    }

    .page-template-frontpage-template #pageHero #triangle-bottomleft,
    .page-template-frontpage-template #pageHero #triangle-bottomright {
        border-bottom-width: 20vw;
    }
}

@media (max-width: 991px){
    /* Navigation */
    nav.navbar {
        background-color: var(--green);
    }

    nav.navbar .navbar-brand {
        padding: 0rem .5rem;
    }

    #siteLogo {
        height: 48px;
    }

    nav.navbar .container.wide {
        padding-left: 0px;
        padding-right: 0px;
    }

    nav.navbar.navbar-expand-lg .navbar-nav .nav-link {
        padding: 1rem;
        font-size: 19px;
    }

    nav.navbar .nav-item:first-of-type {
        margin-top: 1rem;
    }

    nav.navbar.navbar-expand-lg .navbar-nav .nav-link.active,
    nav.navbar.navbar-expand-lg .navbar-nav .nav-link:active {
        /* background-color: var(--dark); */
        color: var(--yellow);
    }

    nav.navbar .navbar-nav .btn {
        padding: .5rem 2rem;
        width: 100%;
    }

    /* Hero */

    #pageHero h2 {
        font-size: 1.7rem;
    }

    #pageHero h1 {
        font-size: 2rem;
    }

    #pageHero .container {
        padding-top: 5rem;
        padding-bottom: calc(5rem - 65px);
    }

    #pageHero .ccm-block-feature-link-text p {
        font-size: 1.3rem;
        padding-left: 0px;
        padding-right: 0px;
    }

    #pageHero {
        height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #pageHero #heroLogo {
        width: 40%;
        height: auto;
        margin-bottom: 2rem;
    }

    #pageHero.large-hero {
        height: 60vh;
        min-height: 500px;
    }

    .page-template-frontpage-template #pageHero #triangle-bottomleft,
    .page-template-frontpage-template #pageHero #triangle-bottomright {
        border-bottom-width: 12.5vw;
    }

    #pageHero #triangle-topright {
        border-top-width: 15rem;
    }

    /* Accordion */

    .accordion-item .accordion-button,
    .accordion-item .accordion-button:not(.collapsed) {
        font-size: 1.5rem;
        padding: 1.5rem;
    }

    /* Close to footer */

    .page-template-frontpage-template #lastLightSection {
        background-size: 150% auto;
        padding-bottom: calc(var(--section-splitter-height) / 3)!important;
    }

    /* Footer */

    footer #triangle-topleft {
        border-right: 30vw solid transparent;
    }
}

@media (max-width: 800px){
}

@media (max-width: 500px){

}

/* Users */

/* Fontit / Fonts */

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Thin.ttf');
    font-weight: 100;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-ThinItalic.ttf');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-ExtraLight.ttf');
    font-weight: 200;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-ExtraLightItalic.ttf');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-LightItalic.ttf');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Italic.ttf');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Medium.ttf');
    font-weight: 500;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-MediumItalic.ttf');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-SemiBold.ttf');
    font-weight: 600;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-SemiBoldItalic.ttf');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Bold.ttf');
    font-weight: 700;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-BoldItalic.ttf');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-ExtraBold.ttf');
    font-weight: 800;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-ExtraBoldItalic.ttf');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-Black.ttf');
    font-weight: 900;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/Barlow-BlackItalic.ttf');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Medium.ttf');
    font-weight: 500;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-SemiBold.ttf');
    font-weight: 600;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/Rajdhani-Bold.ttf');
    font-weight: 700;
}