@font-face {
font-family: 'arvo2';
src: url(../fonts/180425052925arvo2.woff) format('woff');
font-display: auto;
}

.arvo2otsikko1 {
font-family: 'arvo2' !important;
font-size:100px;
color: #e57f0b;
}

.arvo2otsikko2 {
font-family: 'arvo2' !important;
font-size:50px;
color: #e57f0b;
margin-bottom: 0px;
}

.arvo2 {
font-family: 'arvo2' !important;
}



/*   VARIT   */

.footer-tausta {
    background:#fff;
    color:#7a7a7a;
	border-top: 1px solid #efefef;
}

.bg-light {
    background:#fbfbfb!important;
}

.vihrea-tausta {
    background:#2bb8c2;
    color:#F2EDE9;
}

.vaaleanvihrea-tausta {
    background: #33967F;
    color:#F2EDE9;
}

.text-white {
    color:#F2EDE9!important;
}

.text-gray {
    color:#ccc;
}

 .frontpage_txt {
font-size:100px; 
margin-top:100px; 
}

.container {
  max-width: 960px;
}

section {
    padding:3rem 0;
}


@media (min-width:768px) {
    section {
        padding:5rem 0;
    }
    
    .d-md-flex {
        display: -webkit-box !important;      /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box !important;         /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox !important;      /* TWEENER - IE 10 */
        display: -webkit-flex !important;     /* NEW - Chrome */
        display: flex !important; 
    }
    
}

@media (min-width:1024px) {
    section {
        padding:7rem 0;
    }
    .logo_front { margin-left:80px; }
}

@media (max-width: 576px) {
    .gallery-grid {
        max-width: 400px;
    }
    .footer {
        text-align: center;
    }
}

@media (min-width: 576px) {
    .gallery-grid {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        max-width: 1140px;
    }
}

.kansikuva {
    background: url('../images/front1.jpg') no-repeat;
    background-size: cover;
    background-position: center -80px;
    padding-top:6rem;
    padding-bottom:4rem;
}

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

  .parallax {
    height: 200px; 
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }


@media (min-width:768px) {

    .kansikuva {
        padding-top:9%;
        padding-bottom:9%;
    }

    footer {
        padding:4rem 0;
    }

}


/* TYPOGRAPHY */ 

body {
    font-family: "Source Sans 3", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #F2EDE9;
    /*background:#268574;*/
    font-size:1rem;
    line-height:1.45;
    color:#7a7a7a;
}

.footer_logo { 
  font-family: "Source Sans 3", sans-serif;
}

.header_txt { 
  font-family: "Source Sans 3", sans-serif;
}

a {
    color:#e57f0b;
}
a:hover, .btn-link:hover {
    color: #e57f0b;
    text-decoration: underline;
}

.footer a {
    color:#7a7a7a;
}
.footer a:hover {
    color:#e57f0b;
    text-decoration: underline;
}

.somelinkki:hover {
    background:rgba(0,0,0,.05);
    transition: all 0.5s ease;
}

p {
    margin-bottom: 1.3em;
    font-size: 0.97em; 
    letter-spacing: -0.015em;
}

h1, h2, h3, h4 {
  font-weight: inherit;
  margin-top:20px;
  margin-bottom:20px;
  line-height: 1.2;
  font-family: "Oswald", sans-serif;
  color:#000;
  /* color:#268574; */
}

@media (min-width:768px) {

h1 {
  font-size: 2.3em;
  line-height: 1;
}

h2 {font-size: 2.369em;}

h3 {font-size: 1.777em;}

h4 {font-size: 1.555em;}

small, .font_small {font-size: 0.75em;}
    
}

/*
    FORM
*/

.btn-primary.green {
    background:#1D7868;
    transition: all 0.35s ease-in;
    border:1px solid transparent;
}
.btn-primary.green:hover {
    color:#F2EDE9;
    background:#268574;
    border:1px solid rgba(255,255,255,.2);
}

.btn-primary.brown {
    background:#2bb8c2;
    transition: all 0.35s ease-in;
    border:1px solid transparent;
}

.btn-primary.brown:hover {
    background:#21929a;
    color:#fff;
    border:1px solid transparent;
}

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

label, .btn-primary {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom:0.25rem;
}

.btn-primary {
    padding: .75rem 1.75rem;
    position:relative;
    font-family: inherit;
}

.btn-outline-primary {
    padding: .5rem 1.25rem;
    border: 1px solid #1D7868;
}

.btn-link {
    color:#1D7868;
}

.btn-sm {
    font-size: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-outline-light {
    font-family: inherit;
}

.btn .material-icons {
    position: absolute;
    top:.75rem;
    right:4px;
    font-size:18px;
}

/* Custom default button */
.btn-secondary {
  color: #fff;
  text-shadow: none; /* Prevent inheritance from `body` */
  background-color: #e57f0b;
  border: .05rem solid #e57f0b;
}


.btn-secondary:hover,
.btn-secondary:focus {
  color: #fff;
  text-shadow: none; /* Prevent inheritance from `body` */
  background-color: #000;
  border: .05rem solid #000;
}

/*
 * Custom translucent site header
 */


.logo {
    opacity:0;
    max-width:80px;
}

.logo2 {
    max-width:80px;
    opacity:1;
}

.scrolled .logo, .scrolled .logo2 {
    max-width:60px;
    opacity:1;
}

#header {
    transition: top 0.2s ease-in-out;
}

.nav-up {
    top: -180px;
}

header a {
    color:#7a7a7a;
    font-family: "Oswald", sans-serif;
    border-bottom: 1px solid transparent;
    text-decoration: none;
	text-transform: uppercase;
    //transition: all 0.5s ease-in-out;
}

nav a:hover {
  border-bottom: 1px solid #e57f0b;
  text-decoration: none;
    color:#7a7a7a;
}

nav .active a {
  border-bottom: 1px solid #e57f0b;
  text-decoration: none;
    color:#7a7a7a;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529 !important;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 0.97em; 
	border-bottom: 1px solid #fff !important;
}

.nav-link {
	color: #495057;
	background-color: #f6f6f6;
	border: 1px solid #ddd !important;
	border-top-left-radius: .25rem;
	border-top-right-radius: .25rem;
	display: block;
}

#header {
    width:100%;
    display:block;
    padding: 0.5rem 0;
    transition: all 0.5s ease-in-out;
    font-size:1.15em;
    background:#fff;
} 

@media (min-width 768px) {
    #header {
        padding: 1.6rem;
    }
}

.header-wrapper[data-emergence=hidden] header {
    padding-top: inherit;
    padding-bottom: inherit;
}

section[data-emergence=hidden], div[data-emergence=hidden] {
    opacity: 0;
    transition: opacity 1.5s ease;
}

section[data-emergence=visible], div[data-emergence=visible] {
    opacity: 1;
}

.scrolled #header {
    padding: 0.5rem;
    font-size: 1.2em;
    background:#fff;
}

.navbar-toggler {
    padding: .25rem;
    border-radius:0;
    position: absolute;
    top:0;
    right:0;
    z-index:9999;
}

@media (max-width: 768px) {

    #header {
        background: transparent;;
    }

    .navbar-collapse {
        position: absolute;
        top:0;
        left:0;
        width:100%;
        background:#fbfbfb;
    }
    .navbar-collapse a {
        color: #7a7a7a;
    }
    .navbar-collapse a:hover {
        color: #7a7a7a;
    }
    
    .navbar-collapse .active a {
        color: #7a7a7a;
    }
   
    .nav-item {
    padding-top: .5rem!important;
    padding-bottom: .5rem!important;
    }
}

.dropdown-item.active, .dropdown-item:active {
	color: #fff !important;
	text-decoration: none;
	background-color: #e57f0b;
}  

.dropdown-item:hover {
	color: #fff !important;
	text-decoration: none;
	background-color: #e57f0b;
}   

/*
 * Extra utilities
 */
 

.img-link {
  position: relative;
  display: block;
  -o-transition: 0.2s;
  -ms-transition: 0.2s;
  -moz-transition: 0.2s;
  -webkit-transition: 0.2s;
  transition: 0.2s; 
  }
  
  .img-link:hover { text-decoration: none; }
    
  .img-link:hover .child-img:before, .img-link:hover .article-img:before { background-color: rgba(11, 13, 8, 0.37); }


  .img-link h3 {
	padding: 0 50px;
	margin: 0;
	text-shadow: 0 0 10px #000;
	top: 50%;
	-webkit-transform: translateY(-50%) !important;
	transform: translateY(-50%) !important;
	text-align: center;
	width: 100%;
	color: #fff;
	position: absolute;
	z-index: 2;
  -webkit-filter: drop-shadow(5px 5px 5px #222);filter: drop-shadow(5px 5px 5px #222);
  }

.child-img {
	-o-transition: 0.1s;
	-ms-transition: 0.1s;
	-moz-transition: 0.1s;
	-webkit-transition: 0.1s;
	transition: 0.1s;
	position: relative;
	height: 20rem;
	background-position: center;
	background-size: cover;
	padding: 3rem;
	display: flex;
	justify-content: center;
}

.child-img:before {
  content: '';
  top: 0;
  -o-transition: 0.2s;
  -ms-transition: 0.2s;
  -moz-transition: 0.2s;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  z-index: 1;
  background-color: rgba(101, 115, 72, 0);
  position: absolute;
  width: 100%;
  height: 100%; }


.child-content {
	margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}  

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }

.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }

.flex-equal > * {
  -ms-flex: 1;
  -webkit-box-flex: 1;
  flex: 1;
}
@media (min-width: 768px) {
  .flex-md-equal > * {
    -ms-flex: 1;
    -webkit-box-flex: 1;
    flex: 1;
  }
}

/*
  .toplink {
    text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
  } 
  
  
  .scrolled #header .toplink {
    text-shadow: none;
  } 

*/

.overflow-hidden { overflow: hidden; }

/*==========================================================*/
/* Slider
/*==========================================================*/


.carousel-indicators {
    bottom: 0px;
}

.carousel-indicators .active {
    background-color: #2980b9;
}

.carousel-control.left,
.carousel-control.right {
	opacity: 1;
	filter: alpha(opacity=100);
	background-image: none;
	background-repeat: no-repeat;
	text-shadow: none;
	position: absolute;
	top: 45%;
	z-index: 5;
	display: inline-block;
}

.carousel-control.left {
	left: 0px;
}

.carousel-control.right {
	right: 0px;
}

/* Carousel Header Styles */
.header-text {
    position: absolute;
    top: 20%;
    width: 96.66666666666666%;  
}
  
.header-text h1 {
    font-size: 44px;
    color: #fff;
    margin-bottom:20px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.header-text p  {
  font-size: 18px;
	color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5); 
}


.carousel-indicators-thumbs {
position: absolute;
left:0px;
bottom: 0px;
width:100%;
padding: 0px;
text-align: center;
list-style: none;
z-index: 15;
}

.carousel-indicators-thumbs li {
display: inline-block;
border: 1px solid #ddd;
max-width: 80px;
margin:2px;
}

.carousel-indicators-thumbs li:hover {
display: inline-block;
opacity: 0.5;
}



#bs-gdpr-cookies-modal-advanced-types  li {
list-style-type: none;
}

.cke_button__source_label {
    display: none !important;
}

/*==================================================
=            CKEditor                             =
==================================================*/


.cke_editable {
    background: #fff;
}

.cke_editable p {

}

.cke_editable a {
    text-decoration: none;
}



/*==================================================
=            Bootstrap 3 Media Queries             =
==================================================*/

/* Large desktops and laptops */
@media (min-width: 1200px) {

}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {


}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {

}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {

  .scrolled #header {
  	padding: 2.5rem !important;
  	font-size: 1.2em;
  	background: #2bb8c2;
  }
  
  .parallax {
    background-image: url("../images/front3.jpg");
    height: 200px; 
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  
}

/* Portrait phones and smaller */
@media (max-width: 480px) {
    
 .frontpage_txt {
font-size:60px; 
margin-top:100px; 
}
	
  .nav-item  {
      padding-bottom: .5rem !important;
      padding-top: .5rem !important;
  }
   
}


