/*   VARIT   */

.vihrea-tausta {
    background:#222d34;
    color:#F2EDE9;
}

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

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

.text-white {
    color:#F2EDE9!important;
    font-size:35px;
}

.text-gray {
    color:#ccc;
}

.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/front.jpg') no-repeat top center;
    background-size: cover;
    padding-top:6rem;
    padding-bottom:4rem;
}
.background-cover {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 30%;
}

@media (min-width:768px) {

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

    footer {
        padding:4rem 0;
    }
}

/* TYPOGRAPHY */ 

body {
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #F2EDE9;
    /*background:#268574;*/
    font-size:1rem;
    line-height:1.45;
    color:#484848;
}

.footer_logo { 
  font-family: 'Cinzel', serif;
}

.header_txt { 
  font-family: 'Cinzel', serif;
}

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

.footer a {
    color:#f2ede9 !important
}
.footer a:hover {
    color:#268574;
    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 {
  margin: 1.414em 0 0.5em;
  font-weight: inherit;
  line-height: 1.2;
  font-family: 'Cinzel', serif;
  letter-spacing: -0.03em;
  color:#000;
  /* color:#268574; */
}

@media (min-width:768px) {

h1 {
  margin-top: 0;
  font-size: 3.157em;
  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:#C2946B;
    transition: all 0.35s ease-in;
    border:1px solid transparent;
}

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

.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,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
  background-color: #fff;
  border: .05rem solid #fff;
}

/*
 * 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:#F2EDE9;
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid transparent;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}

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

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

.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;
        border-bottom-color: currentcolor;
        border-bottom-style: none;
        border-bottom-width: 0px;
        font-size: 0.97em; 
}

.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.35em;
} 

@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:#222d34;
}

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

@media (max-width: 768px) {

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

.dropdown-item.active, .dropdown-item:active {
	color: #212529;
	text-decoration: none;
	background-color: #F2EDE9;
}    

/*
 * Extra utilities
 */

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

.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 {
    font-size: 1em;
}

.cke_editable a {
    text-decoration: none;
}

.cke_editable h1, .cke_editable h2 {
    margin: 0em 0 0.5em;
    font-weight: inherit;
    line-height: 1.2;
    font-family: 'Cinzel', serif;
    letter-spacing: -0.03em;
    color: #000;
}


.cke_editable h3, .cke_editable h4 {
    margin: 1.414em 0 0.5em;
    font-weight: inherit;
    line-height: 1.2;
    font-family: 'Cinzel', serif;
    letter-spacing: -0.03em;
    color: #000;
}


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

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

  .toplink {
    text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
  } 

}

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

  .toplink {
    text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
  }   
  
    
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    .toplink {
    text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
  }
}

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

  .toplink {
    text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
  }
}

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


