:root {
    --green: #5ed47d;
    --lightGreen: #BFEECB;
    --blue: #172694;
    --orange: #ffa38b;
    --lightBlue: #E8E9F4;
    /* --beige: #F8F4F0; */ /*Alkuperäinen väri */
    --beige: #FFF;
    --lightOrange: #FFDAD1;
    --taidekesaOrange: #E67734;;
    --leffafestari: #6FC276;
    --leffafestari-secondary: #b3e8b7;
    --leffafestari-dark: #44894b;
}

body {
    font-family: 'GibsonBook';
    font-size: 1.2rem;
}

h1, h2, h3, h4 {
    font-family: 'GibsonSemibold';
    font-weight: bold;
}

h5, h6 {
    font-family: 'GibsonSemibold';
}

/* h2 {
    font-weight: 800;
} */

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

.leffafestari {
    color: var(--leffafestari);
}

.beigebg h1, .beigebg h2, .beigebg h6 {
    color: var(--blue);
}

.beigebg h6, .bluebg h6, .orangebg h6 {
    /*font-weight: bold;*/
    text-transform: uppercase; 
}

.beigebg h3 {
    color: var(--blue);
}

.bluebg h6, .orangebg h6 {
    color: #000;
    background-color: var(--green);
    padding: 0.35rem 1rem;
    margin-bottom: 25px;
    display: table;
}

.orangebg h6 {
    background-color: #fff;
}

.bluebg h3 {
    color: var(--orange);
}



.lightBluebg h2 {
    color: var(--blue);
    font-size: 3.5rem;
    font-family: 'GibsonSemibold';
}

.lightBluebg.kuvatonNostoalue p {
    font-size: 1.1rem;
}

/* COLORS */
.whitebg {
    background-color: #fff;
}
.white {
    color: #fff;
}
.black {
    color: #000;
}
.greybg {
    background-color: #f5f5f5;
}

.beigebg {
    background-color: var(--beige);
}

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

.lightBluebg{
    background-color: var(--lightBlue);
}

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

.lightGreenbg {
    background-color: var(--lightGreen);
}

.blue {
    color: var(--blue);
}

.orange {
    color: var(--orange);
}

.orangebg {
    background-color: var(--orange);
}

/* Leffafestari sivun täsmäyksiä */

.leffafestaribg {
    background-color: var(--leffafestari);
}

/*.leffafestaribg .orangesquareright img, 
.leffafestaribg .orangesquareleft img {
    max-width: 100%;
}*/

/* BUTTONS */
.btn {
    border-radius: 0;
    text-transform: uppercase;
    font-weight: bold;
    padding: .37rem 1.7rem;
}

.btn-primary {
    background-color: var(--blue);
    border-color: var(--blue);
    color: #fff;
    margin-bottom: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active{
    opacity: 0.7;
    background-color: var(--blue);
    border-color: var(--blue);
    text-decoration: none;
}

.btn-taidekesa, .btn-taidekesa:hover, .btn-taidekesa:focus {
	background-color: var(--taidekesaOrange);
	border-color: var(--taidekesaOrange);
	text-decoration: none;
    color: #FFF;
}

.bluebg .btn-primary, .greenbg .btn-primary, .orangebg .btn-primary, .bgImg .btn-primary, .bluebg .btn-primary:hover, .greenbg .btn-primary:hover, .orangebg .btn-primary:hover, .bgImg .btn-primary:hover { 
    background-color: #fff;
    border-color: #fff;
    color: #000;
}


.nostoalue .btn-primary {
    font-size: 1.1rem;
    font-family: 'GibsonSemibold';
    background-color: transparent;
    border-color: transparent;
    text-transform: none;
    padding: 0.37rem 0rem;
    text-align: left;
}

.beigebg.nostoalue .btn-primary {
    color: var(--blue);
    
}

.bluebg.nostoalue .btn-primary {
    color: #fff;
    
}

.nostoalue .btn-primary:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: " \f101";
}

.nostoalue .btn-primary:hover {
    background-color: transparent;
    border-color: transparent;
} 


/*.btn-primary:not(:disabled):not(.disabled):active {
    background-color: inherit;
    border: inherit;
    color: inherit;
}

.btn-primary.focus, .btn-primary:focus {}*/

.btn-secondary {
    background-color: #fff;
    border-color: #fff;
    color: #000;
    transition: all 0.2s ease;

}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled):active { 
    opacity: 0.7;
}

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

.bgImg .btn-orange, .btn-orange:not(:disabled):not(.disabled):active {
    background-color: var(--orange);
    border-color: var(--orange);
    color: #000;
}

/* LINKS */


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

a {
    color: #000;
}

section a, section a:hover {
	text-decoration: underline;
}

footer a, .bluebg a {
    color: #fff;
    transition: all 0.2s ease;
}

footer a:hover, .bluebg a:hover {
    opacity: 0.7;
}


.bigtextlink {
    font-size: 1.3rem;
    font-family: 'GibsonSemibold';
}

.bigtextlink:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: " \f101";
}
a.nav-link {
    font-weight: bold;
}

a.nav-link.active {
    background-color: var(--green);
}

a.btn-secondary {
    color: #000;
}

.henkilokortti a.btn-primary {
    margin: 0px 2px 5px 2px;
}

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

.bgImg.kaaretImg {
    background-position: left;
   
}

.imageplaceholder {
    background-size: 131%;
    background-position: -160% 60%;
    background-repeat: no-repeat;
    background-image: url('../img/ketju.svg');
    min-height: 300px;
}

/* .imageplaceholder.ph-right {
    background-size: 250%;
    background-position: 0% 60%;
} */

.imageplaceholder.ph-left {
    background-position: 290% 60%;
}

.roundImg {
    border-radius: 50%;
    height: 200px;
    width: 200px;
    margin: 0 auto;
}

.roundFrame {
    width: 200px;
    height: 200px;
    border-radius:50%;
    overflow:hidden;
    display: flex;
    justify-content: center;
}

.roundFrame .img-fluid {
    width: auto;
    max-width: none;
    max-height: 100%;
}

.squareImg {
    width: 100%;
    height: 0;
    padding-top: 100%;
    position: relative;
}

.squareLink {
    position: relative;
    width: 100%;
}
  
.squareLink:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}
  
.squareContent {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#siteLogo {
    height: 50px;
}

#kansanopistotLogo {
    height: 30px;
}

.yhteistyoLogo img {
    max-height: 60px;
    width: auto;
}
.orangesquareleft, .orangesquareright, .orangesquaremiddle {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.orangesquareleft:after, .orangesquareright:after, .orangesquaremiddle:after {
    content: '';
    position: absolute;
    height: 120%;
    width: 80%;
    top: -2rem;
    left: 0rem;
    /*background-color: var(--orange);*/
    background-color: var(--green);
    z-index: -1;
}

.orangesquareright:after {
    left: 4rem;
}

.orangesquaremiddle:after {
    width: 60%;
    left: 9rem;
}

.orangesquareright img, .orangesquareleft img {
    max-width: 97%;
    height: auto;  
}

.orangebg .orangesquareleft:after, .orangebg .orangesquaremiddle:after, .orangebg .orangesquareright:after {
    background-color: var(--lightOrange);
}

.carousel-control-next {
    right: -30px;
}

.carousel-control-prev {
    left: -30px;
}


/* .carousel-item {
    height: 400px;
} */


.herosection {
    min-height: 450px;
}

.navbar.content-nav {
    padding: 0.5rem 0rem;
}

.navbar .dropdown-menu {
    background-color: var(--lightGreen);
    border-radius: 0;
    border: none;
}

a.dropdown-item, a.dropdown-item:active, a.dropdown-item.active {
    color: #000;
    transition: none;
}

a.dropdown-item:hover, a.dropdown-item:focus {
    background-color: var(--lightOrange);
    opacity: 1;
}

a.dropdown-item:active, a.dropdown-item.active {
    background-color: var(--green);
}

.dropdown-item.no-link:hover {
    background-color: var(--lightGreen);
}

.arrow.show:before {
    content: '';
    border-bottom: 10px solid var(--lightGreen);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    position: absolute;
    top: -9px;
    left: 8%;
}

.arrow.arrow-right.show:before  {
    left: 63%;
}
.container.wider {
    max-width: 1600px;
}

.greenInfoBox {
    position: absolute;
    width: 120%;
    left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%)
}

.greenInfoBox p {
    font-size: 0.7rem;
    font-family: 'GibsonSemibold';
}

.blogikortti {
    word-wrap: break-word;

}

.pagination li a,
.pagination li span {
    padding: 0.25rem 0.35rem;
}

.pagination li.active span {
    color: #FFF;
    background-color: #172694;
    font-weight: bold;
}
/* FORMS */

.form-control {
    border-radius: 0;
    background-color: transparent;
    border: 1px solid #000;
}

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

/* Scrollbar */

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

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

/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient( 90deg, var(--green) 0%, var(--green) 100% );
    border-radius: 0px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #50b46b;
}

/* Back to Top */

#backToTop {
    position: fixed;
    right: 0px;
    bottom: 20px;
    padding: 10px 15px;
    font-size: 22px;
    background-color: var(--green);
    color: #FFF;
    border-radius: 0px;
    border: 1px solid #FFF;
    transition: all 0.3s ease;
    z-index: 100;
}

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

#keksiValitsinModalLabel img {
    height: 50px;
    width: auto;
}

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

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

#cookieBar button {
    white-space: nowrap;
}

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

/* Fontit / Fonts */

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

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

@font-face {
    font-family: 'GibsonBook';
    src: url('../fonts/Gibson-Book.eot') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/Gibson-Book.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/Gibson-Book.woff') format('woff'), /* Pretty Modern Browsers */
    url('../fonts/Gibson-Book.ttf')  format('truetype'); /* Safari, Android, iOS */
    font-weight: 400;
}

@font-face {
    font-family: 'GibsonSemibold';
    src: url('../fonts/Gibson-SemiBold.eot') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/Gibson-SemiBold.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/Gibson-SemiBold.woff') format('woff'), /* Pretty Modern Browsers */
    url('../fonts/Gibson-SemiBold.ttf')  format('truetype'); /* Safari, Android, iOS */
}

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

/*
* 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: 991px) {
    #cookieBar {
        width: 100%;
    }

    .navbar-nav a.nav-link {
        font-size: 0.8rem;
    }

	.bluebg .navbar-toggler .fa.fa-bars {
		color: #FFF;
	}
	
	.herosection .btn {
		margin: .5rem;
		float: left;
	}
	
	nav.navbar .dropdown-menu a.dropdown-item {
		font-size: 0.8em;
	}
}
@media (max-width: 767px){
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .navbar-nav a.nav-link {
        font-size: 1rem;
    }

    .navbar-collapse .nav-item .dropdown-menu.arrow.show:before {
     
        top: 32px;
        left: 8%;
    }

    /* .carousel-item {
        height: 800px;
    } */

    .imageplaceholder {
        background-image: none;
    }
}
@media (max-width: 576px) {
    .carousel-control-next {
        right: 0px;
    }
    
    .carousel-control-prev {
        left: 0px;
    }

    .arrow.show:before {
        top: 33px;
    }

    .arrow.arrow-right.show:before {
        top: -9px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2, .lightBluebg h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    
}