body {
    font-family: 'OpenSans';
}

/* .ccm-page p, .ccm-page section li {
    font-size: 22px;
} */

.ccm-page section li {
    margin-bottom: 1rem;
}

.grecaptcha-badge {
    bottom: 200px!important;
}

/* Saavutettavuus */

#cookieBar {
    background-color: rgb(0, 0, 0);
    width: 75%;
    left: 0px;
    right: auto;
    text-align: center;
}

#cookieBar a {
    color: #FFF;
    text-decoration: underline;
}

#cookieBar button {
    white-space: nowrap;
}

#cookieBarMini {
    background-color: rgb(0, 0, 0);
    left: 0px;
    right: auto;
    text-align: center;
    color: #FFF;
    border: none;
    padding: .5rem .5rem 0rem .5rem;
}

#fonttiKoko {
    padding: 0.375rem 0.25rem;
}

.ccm-page nav.isolla .nav-link {
    font-size: 40px;
}

.ccm-page section.isolla p, .ccm-page section.isolla li {
    font-size: 2em;
}

.ccm-page #heroalue.isolla p {
    font-size: 2em;
}

.ccm-page #heroalue.isolla {
    height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: unset;
}

/* COLORS */
.bgcolor {
    background-color: #d7fff0;
}

.colortext {
    color: #d7fff0;
}

/* HERO */

#heroalue {
    height: 50vh;
    min-height: 500px;
    text-align: center;
}

#heroalue.pienempi {
    height: 30vh;
}

#heroalue h1 {
    font-size: 3.5rem;
}

#heroalue h4 {
    font-size: 2.2rem;
}

#heroalue p {
    font-size: 1.2em;
}

/* Fontit / Fonts */

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

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

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

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

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


/* text */

.form-control {
    border-radius: 0px;
    font-family: 'ArchivoBlack';
}

h1, h2, h3 {
    font-family: 'ArchivoBlack';
}

.backLink, .backLink:hover, .backLink:focus, .backLink:active {
    font-weight: bold;
    color: #000;
    font-size: 2em;
}

/*  */
.container.wider {
    max-width: 1600px;
}

#siteLogo {
    height: 50px;
}

/* Navigaatio */

.navbar-expand-lg .navbar-nav .nav-link {
    color: #000;
    font-size: 20px;
}

.navbar-brand, .navbar-brand:hover, .navbar-brand:focus, .navbar-brand:active {
    font-family: 'ArchivoBlack';
    color: #000;
}

.navbar-expand-lg .navbar-nav .nav-link.active {
    font-weight: bold;
}

/* BUTTONS */

.isoKuvaLinkki {
    min-height: 30rem;
}

.isoKuvaLinkki, .isoKuvaLinkki:focus, .isoKuvaLinkki:active {
    display: flex;
    width: 100%;
    text-align: center;
    color: #000;
}

.isoKuvaLinkki h3, .isoKuvaLinkki h4 {
    font-size: 2vw;
    transition: all 0.3s ease;
    width: 100%;
}

.isoKuvaLinkki h4 {
    font-size: 1.6vw;
    font-family: 'ArchivoBlack';
}

.isoKuvaLinkki:hover h3, .isoKuvaLinkki:hover h4, .isoKuvaLinkki:hover p {
    color: #000;
}

.btn {}

.btn-primary {
    background-color: #fffd82;
    border-color: #fffd82;
    color: #000;
    border-radius: 0px;
    font-family: 'ArchivoBlack';
} 

.btn-primary:hover, .btn-primary:not(:disabled):not(.disabled):active {
    background-color: #fffd82;
    border-color: #fffd82;
    color: #000;
    border-radius: 0px;
    font-family: 'ArchivoBlack';
}

.btn-primary.focus, .btn-primary:focus {
    background-color: #fffd82;
    border-color: #fffd82;
    color: #000;
    border-radius: 0px;
    font-family: 'ArchivoBlack';
}

.btn-secondary {}

.btn-secondary:hover, .btn-secondary:not(:disabled):not(.disabled):active { }

.btn-secondary.focus, .btn-secondary:focus {}

/* LINKS */
a:hover {
    text-decoration: none;
}

.kokemusKortti {
    background-color: #FFF;
}

.kokemusKortti h3 {
	font-size: 1.4rem;
}

.henkiloIkoni {
    background-color: #b4e7fb;
    border-radius: 10px;
    text-align: center;
    color: #FFF;
    padding: 1rem .5rem;
    width: 100%;
}

.henkiloIkoni .fa-user {
    font-size: 3rem;
}

/* IMAGES */
.bgImg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blogikortti {
    word-wrap: break-word;
}

/* Concrete5 things */


.ccm-pagination-wrapper .pagination {
    justify-content: center;
}

.ccm-page section li.active {
	font-weight: bold;
}

.ccm-pagination-wrapper li {
    margin-left: 1rem;
}
.ccm-pagination-wrapper a {
    color: #000;
    transition: all 0.2s ease;
}
.ccm-pagination-wrapper a:hover {
    opacity: 0.5;
}

div.ccm-panel-content ul.nav li {
    width: 100%;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #e8e8e8;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient( 90deg, #000 0%, #000 100% );
    border-radius: 0px;
    transition: all 0.3s ease;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(54, 54, 54);
}

/* Back to Top */

#backToTop {
    position: fixed;
    right: 0px;
    bottom: 110px;
    padding: 10px 15px;
    font-size: 22px;
    background-color: #000;
    color: #FFF;
    border-radius: 0px;
    border: 1px solid #FFF;
    transition: all 0.3s ease;
}

#backToTop:hover {
    padding: 10px 30px 10px 15px;
}

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

#backToTop svg {
    height: 30px;
    fill: white;
}

#backToTop:hover svg {
    animation: bouncingIcon 1s;
}

#msgWrapper {
    position: relative;
    z-index: 1051;
}

#msgHere {
    position: fixed;
    z-index: 20;
    left: 20px;
    bottom: 20px;
    max-width: 400px;
}

/*
* https://daneden.github.io/animate.css/
*/

@-webkit-keyframes bouncingIcon {
    from,
    20%,
    53%,
    80%,
    to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    40%,
    43% {
        -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        -webkit-transform: translate3d(0, -15px, 0);
        transform: translate3d(0, -10px, 0);
    }
    
    70% {
        -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        -webkit-transform: translate3d(0, -10px, 0);
        transform: translate3d(0, -5px, 0);
    }
    
    90% {
        -webkit-transform: translate3d(0, -4px, 0);
        transform: translate3d(0, -4px, 0);
    }
}

@media (max-width: 1920px){
    .isoKuvaLinkki {
        min-height: 20rem;
    }
}

@media (max-width: 991px) {
    #heroalue h1 {
        font-size: 2.5rem;
    }

    #heroalue h4 {
        font-size: 1.4rem;
    }

    #heroalue p {
        font-size: 1em;
    }

    #heroalue.pienempi {
        height: auto;
        min-height: unset;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .isoKuvaLinkki {
        min-height: 10rem;
    }

    .isoKuvaLinkki h3 {
        font-size: 2rem;
    }

    .isoKuvaLinkki h4 {
        font-size: 1.6rem;
    }

    footer {
        text-align: center;
    }

    footer img.img-fluid {
        max-width: 60%;
        margin-bottom: 2rem;
    }

    .isoKuvaLinkki p {
        font-size: 15px;
    }
}
@media (max-width: 767px){}
@media (max-width: 576px) {
    #heroalue h1 {
        font-size: 1.9rem;
    }

    .isoKuvaLinkki h4 {
        font-size: 1.4rem;
    }
    
    .px-0.px-md-3.pb-3.px-lg-5.pb-lg-5 h1 {
		font-size: 1.5rem;
	}
}

@media (max-width: 400px) {
    #heroalue h1 {
        font-size: 1.7rem;
    }

    .isoKuvaLinkki h3, .isoKuvaLinkki h4 {
        word-break: break-word;
    }
}