/*   VARIT   */

.vihrea-tausta {
    background:#004c99;
    color:#000;
}

#bs-gdpr-cookies-modal-message, #bs-gdpr-cookies-modal-more-link {
color:#889690;
}

.modal-content p, .modal-content a {
color:#889690;
}

.vaaleanvihrea-tausta {
    background: #668842;
    color:#000;
}

.bg-light {
    background:#ece8e2 !important;
}
.bg-dark {
    background:#1a66cc !important;
}

.bg-editor {
    background:#ffffff !important;
	color:#000000 !important;
}

.text-white {
	font-family: "Roboto", sans-serif;
    color:#ffffff !important;
    font-size: 100%;
	text-align: center;
}

.text-white p {
	font-family: "Roboto", sans-serif;
    color:#ffffff !important;
    font-size: 100%;
	text-align: center;
}

.text-white-slogan {
font-family: "Saira Condensed", sans-serif; 
font-size:40px !important; 
text-transform: uppercase; 
font-weight: bold; 
color:#ffffff !important;
margin-top: 0.1em;
line-height: 1.2; 
margin-bottom: 0.1em;
text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;'
}


.front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}
	
.front-text {
font-family: "Saira Condensed", sans-serif;
font-weight: 600;
font-size: 60px;
color:#ffffff !important;
text-transform: uppercase;
text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
margin-top: 6em;
line-height: 1.5; 
margin-bottom: 0.3em;
}

.front-text-sub {
font-family: "Saira Condensed", sans-serif;
font-weight: 600;
font-size: 60px;
color:#ffffff !important;
text-transform: uppercase;
text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
}

.front-sub-text {
margin-top:0px;
text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black; 
font-size:22px;
}

.menubutton {
position:relative; top:-10px; 
margin-left:30px; 
margin-right:30px;
}

hr {
	margin-top: 1rem;
	margin-bottom: 1rem;
	border: 0;
	border-top: 1px solid #ece8e2;
}

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

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


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

@media (min-width:768px) {

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

    footer {
        padding:0rem 0;
    }
}

/* TYPOGRAPHY */ 

body {
   font-family: "Roboto", sans-serif;
   font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ece8e2;
    /*background:#268574;*/
    font-size:1rem;
    line-height:1.45;
    color:#000;
}

a {
    color:#004c99;
}
a:hover, .btn-link:hover {
    color: #3399ff;
    text-decoration: none;
}

.footer a {
    color:#f2ede9 !important
}
.footer a:hover {
    color:#3399ff !important;
    text-decoration: none;
}

.footer p {
	color:#fff;
}


.somelinkki:hover {
    color:#3399ff !important;
    transition: all 0.5s ease;
}

p {
    margin-bottom: 1.3em;
    font-size:1rem;
	color:#000;
}

h1, h2, h3, h4, h5 {
  font-family: "Saira Condensed", sans-serif;
  margin: 0.5em 0 0.5em;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color:#000;
}

h2 {
  font-family: "Saira Condensed", sans-serif;
  font-size: 4rem !important;
  margin-top: 0.3em;
  margin-right: 0px;
  margin-bottom: 0.1em;
  margin-left: 0px;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color:#000;
}

h5 {
  font-weight: 400;
  font-size: 20px !important;
  margin-right: 0px;
  margin-left: 0px;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

th {
  font-family: "Saira Condensed", sans-serif;
  font-size: 1.6em; 
  margin: 1.414em 0 0.5em;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color:#000;
}

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


.background-overlay {
	background-color: transparent;
	/*
	background-image: linear-gradient(to bottom, 
	  #076e36 0%, 
	  rgba(7, 110, 54, 0) 33%, 
	  rgba(7, 110, 54, 0) 100%);
	*/ 
	background-image: linear-gradient(to bottom, 
	  rgba(0, 76, 153, 0) 0%, 
	  rgba(0, 76, 153, 0.3) 65%, 
	  #004c99 100%);
	opacity: 1;
	transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	position: absolute;
}


.background-overlay2 {
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	position: absolute;
	background-color: #004c99;
	opacity: 0.8;
	mix-blend-mode: multiply;
	transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}


/*
    FORM
*/

.btn-primary.red {
    background:#cb4f3a;
    transition: all 0.35s ease-in;
    border:1px solid transparent;
}
.btn-primary.red:hover {
    color:#fff;
    background:#8e2f1e;
    border:1px solid rgba(255,255,255,.2);
}

.btn-primary.brown {
    background:#171c1a;
    transition: all 0.35s ease-in;
    border: 1px solid rgba(255,255,255,.2);
}

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

.btn-primary.green {
    background:#004c99;
    transition: all 0.35s ease-in;
    border: 1px solid rgba(255,255,255,.2);
}

.btn-primary.green:hover {
    background:#1a66cc;
    color:#fff;
    border:1px solid #1a66cc;
}

.btn-dark {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: .75rem 1.75rem;
	border:1px solid #C2946B;
}


.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;
    color:#484848;
}

/* 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:1;
	position:relative; 
	top:-22px;
	height:70px;
	font-size:35px;
	font-family: "Saira Condensed", sans-serif;
}

.logo2 {
    max-height:55px;
    opacity:1;
}

.scrolled .logo, .scrolled .logo2 {
    opacity:1;
	position:relative; 
	top:-15px;
	height:70px;
}

.navbar-nav {
	margin-top: 30px !important;
}

.scrolled .navbar-nav {
	margin-top: 30px !important;
}
	
.nav-item {
	margin-top: 10px !important;
}
	
.scrolled .nav-item {
	margin-top: 20px !important;
}

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

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

header a {
    color:#F2EDE9;
    font-family: "Roboto", sans-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-menu {
	font-size:0.875rem;
	color: #212529;
	text-align: left;
	list-style: none;
}

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

.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:1rem;
} 

@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.1rem;
    font-size:0.875rem;
    background:#004c99;
}

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

.carousel-img  {
height:450px; 
}

.carousel-img-thumb  {
height:150px; 
}


@media (max-width: 768px) {

	.logo {
		opacity:1;
		position:relative; 
		top:-22px;
		font-size:35px;
		font-family: "Saira Condensed", sans-serif;
		margin: 0 auto !important;
		display: block;
		text-align: center;
	}

	.carousel-img  {
	height:300px; 
	}
	
	.front-text {
	font-family: "Saira Condensed", sans-serif;
	font-size: 2.5rem;
	color:#ffffff !important;
	text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
	line-height: 1.5;
	padding-top:150px; 
	}
	
	.text-white-slogan {
	font-family: "Saira Condensed", sans-serif; 
	font-size: 1.8rem !important;
	color:#ffffff !important;
	line-height: 1; 
	text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
	}
	
	.front-text-sub {
	font-family: "Saira Condensed", sans-serif;
	font-weight: 600;
	font-size: 3.5rem;
	color:#ffffff !important;
	text-transform: uppercase;
	text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
	display: block; 
    margin-top: 30px !important;
	}
	
	.front-sub-text {
	margin-top:0px;
	text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black; 
	font-size:18px;
	}

    .navbar-collapse {
        position: absolute;
        top:0;
        left:0;
        width:100%;
        background:#004c99;
		padding-bottom:30px;
    }
    .navbar-collapse a {
        color: #fff;
    }
    .navbar-collapse a:hover {
        color: #fff;
    }
    
    .navbar-collapse .active a {
        color: #fff;
    }
   
    .nav-item {
	width:100%;
    padding-top: .5rem!important;
    padding-bottom: .5rem!important;
	margin-left: auto;
	margin-right: auto;
    }
	
	.navbar-nav {
	margin-top: 0px !important;
	text-align: center;
	}
	
	.logo {
	position: relative;
	top:-5px;
	}
}

.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: 1.1em;
	color: #000;
}

.cke_editable a {
    text-decoration: underline;
	color: #000;
}

.cke_editable h1, .cke_editable h2 {
    margin: 0em 0 0.5em;
    font-weight: inherit;
    line-height: 1.2;
    font-family: "Saira Condensed", sans-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: "Saira Condensed", sans-serif;
    letter-spacing: -0.03em;
    color: #000;
}

.cke_editable h5 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px !important;
  margin-top: 0em;
  margin-right: 0px;
  margin-bottom: 0em;
  margin-left: 0px;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color:#889690;
}


/*==================================================
=            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;
  }
  
	.menubutton {
	top:10px;
	margin-top:30px; 
	margin-left:0px; 
	margin-right:0px;
	}
   
}




/* DATATABLE */
.page-item.active .page-link {
	z-index: 1;
	color: #484848;
	background-color: rgba(0,0,0,.05);
	border-color: #dee2e6;
}

.page-link {
	position: relative;
	display: block;
	padding: .5rem .75rem;
	margin-left: -1px;
	line-height: 1.25;
	color: #484848;
	background-color: #fff;
	border: 1px solid #dee2e6;
}

.page-link:hover {
	color: #484848;
}

