/*   VARIT   */

.vihrea-tausta {
    background-color: rgba(0,0,0,0.7);
    /* background:#268574; */
    color:#F2EDE9;
}

.vaaleanvihrea-tausta {
    background-color: rgba(0,0,0,0.7);
    /* background: #33967F; */
    color:#F2EDE9;
}

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

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

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

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

@media (min-width:768px) {

    footer {
        padding:4rem 0;
    }
}

/* TYPOGRAPHY */ 

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

a {
    color:#0066cc;
}
a:hover, .btn-link:hover {
    color:#23527c;
    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; */
    font-size: 1.2em; 
    letter-spacing: -0.015em;
}

h1, h2, h3, h4 {
  margin: 1.414em 0 0.5em;
  font-weight: inherit;
  line-height: 1.2;
  font-family: 'EB Garamond', serif;
  letter-spacing: -0.03em;
  color:#484848;
}

.lead {
    font-size: 1.5em;
}

@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: #47AD9B; */
}

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: 'EB Garamond', 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;
}


#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:#268574; */
    background-color: rgba(0,0,0,0.7);
}

.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:#F2EDE9;
    }
    .navbar-collapse a {
        color: #484848;
    }
    .navbar-collapse a:hover {
        color: #268574;
    }
    
    .navbar-collapse .active a {
        color: #268574;
    }
}

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

.tooltip-inner {
    max-width: 350px;
    /* If max-width does not work, try using width instead */
    width: 350px; 
    font-size:12px;
}

/* ---- MASONRY ---- */

.masonry { /* Masonry container */
    -webkit-column-count: 4;
  -moz-column-count:4;
  column-count: 4;
  -webkit-column-gap: 1em;
  -moz-column-gap: 1em;
  column-gap: 1em;
   margin: 1.5em;
    padding: 0;
    -moz-column-gap: 1.5em;
    -webkit-column-gap: 1.5em;
    column-gap: 1.5em;
    font-size: .85em;
}
.item {
    display: inline-block;
    background: #fff;
    padding: 1em;
    margin: 0 0 1.5em;
    width: 100%;
	-webkit-transition:1s ease all;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-shadow: 2px 2px 4px 0 #ccc;
}
.item img{max-width:100%;}

@media only screen and (max-width: 320px) {
    .masonry {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
}

@media only screen and (min-width: 321px) and (max-width: 768px){
    .masonry {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}
@media only screen and (min-width: 769px) and (max-width: 1200px){
    .masonry {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}
@media only screen and (min-width: 1201px) {
    .masonry {
        -moz-column-count: 4;
        -webkit-column-count: 4;
        column-count: 4;
    }
}

.badges {
background-color: #484848;
}