/*   VARIT   */


.floating-box-wrapper {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
}

.floating-box {
  background-color: #343a40;
  padding: 15px 20px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  letter-spacing: -0.015em;
  max-width: 250px;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.floating-box:hover {
  background-color: #000000;
  text-decoration: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  left: -10px;
  margin-right: 0px; 
  width: 30px;
  height: 30px;
  background-color: #343a40;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  z-index: 10000;
}

.close-btn:hover {
  background-color: #000000;
}


.vihrea-tausta {
    background:#171c1a;
    color:#F2EDE9;
}

.vaaleanvihrea-tausta {
    background: #171c1a;
    color:#F2EDE9;
}

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

.bg-footer {
    background:#343a40 !important;
}

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

.text-white {
	font-family: "Bebas Neue", sans-serif;
    color:#ffffff !important;
    font-size:35px;
}

.text-gradient {
	font-family: "Bebas Neue", sans-serif;
    font-size:35px;
	color: #fff;
	text-shadow: 1px 1px 2px #000000, 0 0 25px #000000, 0 0 5px black;
}
hr {
	margin-top: 1rem;
	margin-bottom: 1rem;
	border: 0;
	border-top: 1px solid #95640f;
}

.text-gray {
    color:#ccc;
}

.container {
  max-width: 960px;
}

section {
    padding:3rem 0;
}

.front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

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


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

/* TYPOGRAPHY */ 

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

a {
    color:#95640f;
}
a:hover, .btn-link:hover {
    color: #c9a94d;
    text-decoration: none;
}

.footer p {
    color:#e9e9e9 !important
}

.footer p strong {
    color:#c9a94d !important
}

.footer a {
    color:#e9e9e9;
}
.footer a:hover {
    color:#95640f;
    text-decoration: none;
}

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

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

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


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

.table-bordered td, .table-bordered th {
	border: 1px solid #95640f;
}

@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(180deg, #171C1A80 80%, #171C1A 96%);
	opacity: 1;
	transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	position: absolute;
}

/*
    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.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:#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-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;
    width:100px;
	position:relative; 
	top:-20px;
	margin-bottom:30px;
}

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

.scrolled .logo, .scrolled .logo2 {
    opacity:1;
	position:relative; 
	top:0px;
	width: 100px;
}

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

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

header a {
    color:#fff;
    font-family: "Bebas Neue", sans-serif;
    border-bottom: 1px solid transparent;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}

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

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

 .dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	display: none;
	float: left;
	min-width: 10rem;
	padding: .5rem 0;
	margin: .125rem 0 0;
	font-size: 1rem;
	color: #95640f;
	text-align: left;
	list-style: none;
	background-color: #171c1a;
	background-clip: padding-box;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: .25rem;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #c9a94d !important;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
        border-bottom-color: currentcolor;
        border-bottom-style: none;
        border-bottom-width: 0px;
}

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

.dropdown-item:hover {
	color: #000 !important;
	text-decoration: none;
	background-color: #95640f;
} 

.dropdown-divider {
	height: 0;
	margin: .5rem 0;
	overflow: hidden;
	border-top: 1px solid #95640f;
}

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

.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:#171c1a;
    }
    .navbar-collapse a {
        color: #c9a94d;
    }
    .navbar-collapse a:hover {
        color: #c9a94d;
    }
    
    .navbar-collapse .active a {
        color: #c9a94d;
    }
   
    .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:10px;
	}
	
}

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

.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: "Bebas Neue", 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: "Bebas Neue", sans-serif;
    letter-spacing: -0.03em;
    color: #000;
}

.cke_editable th {
  font-family: "Bebas Neue", 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;
}


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


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

/* 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;
}

