/*
Theme Name: Keski-Suomen Insinöörit
Theme URI: http://underscores.me/
Author: Joni Laitinen, Mainostoimisto Spym
Author URI: http://underscores.me/
Description: Keski-Suomen Insinöörit ry:lle tehty teema
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ksi
Tags:

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Keski-Suomen Insinöörit is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
 
7.0 - Alignments
9.0 - Widgets
10.0 - Content
	10.1 - Posts and pages
	10.2 - Asides
	10.3 - Comments
11.0 - Infinite scroll
12.0 - Media
	12.1 - Captions
	12.2 - Galleries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
Media queries
--------------------------------------------------------------*/

/* Large devices (large desktops, 1200px and up) */

/* Medium devices (desktops, 992px and up) */
@media (max-width: 992px) {
  h1 {
    font-size: 3em !important;
  }
  h2 {
    font-size: 2.5em !important;
  }
  h3 {
    font-size: 2em !important;
  }
  p {
    font-size: 90% !important;
  }
  .frontpage-number {
    font-size: 25pt !important;
  }
  .frontpage-number-header {
    font-size: 10pt !important;
  }
  .frontpage-icon {
    font-size: 40pt !important;
  }
  .frontpage-icon-element-div {
    width: 250px !important;
  }
  .frontpage-magazine-pic {
    width: 150px !important;
  }
  .frontpage-tapahtuma-div {
    width: 150px !important;
  }
  .frontpage-ajankohtaista-div {
    width: 100% !important;
  }
}

/* Small devices (tablets, 768px and up) */
@media (max-width: 768px) {
  .navbar {
    padding-bottom: 20px !important;
  }
  
  .menu-item {
    height: auto !important;
  }
  
  h1 {
    font-size: 2.5em !important;
  }
  h2 {
    font-size: 2em !important;
  }
  h3 {
    font-size: 1.25em !important;
  }
  p {
    font-size: 85% !important;
  }
  .frontpage-number {
    font-size: 20pt !important;
  }
  .frontpage-number-header {
    font-size: 7pt !important;
  }
  .frontpage-icon {
    font-size: 30pt !important;
  }
  .frontpage-icon-element-div {
    width: 150px !important;
  }
  .frontpage-magazine-pic {
    width: 125px !important;
  }
  .frontpage-tapahtuma-div {
    width: 125px !important;
  }
  .frontpage-ajankohtaista-div {
    width: 100% !important;
  }
  #footer-input-email {
    max-width: 100% !important;
  }
}

/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */


/*--------------------------------------------------------------
Overwrite Primary attributes
--------------------------------------------------------------*/
body {
  padding-top: 75px; /* For fixed and fluid navbar */
  font-family: 'Roboto', sans-serif;
}

h1 {
  color: rgb(86, 52, 138);
}

h2 {
  color: rgb(86, 52, 138);
}

h3 {
  color: rgb(86, 52, 138);
}

header.page-header {
  border-bottom: 0;
}

.nav-next {
  float: left;
}

.nav-previous {
  float: right;
}

/*--------------------------------------------------------------
Main Header
--------------------------------------------------------------*/
#ksi-logo {
  max-width: 150px;
}

.navbar {
  margin-bottom: 0;
  background-color: white;
}

.navbar-collapse ul li{
  padding-top: 10px;
  font-size: 12pt;
}

/* päävalikon korkeus */
.menu-item {
  height: 75px;
}

/* päävalikon alavalinnan korkeus */
.dropdown-menu > .menu-item {
  height: auto;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #555;
  background-color: white;
  border-bottom: 4px solid rgb(86, 52, 138);
  height: 100%;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  color: #555;
  background-color: white;
  border-bottom: 4px solid rgb(86, 52, 138);
  height: 100%;
}

/*--------------------------------------------------------------
Custom Frontpage
--------------------------------------------------------------*/
.frontpage-icon-element-div {
  float: left;
  width: 285px;
}

.frontpage-icon-element-div  a{
  color: #000000;
}

.frontpage-number {
  font-weight: bold;
  font-size: 30pt;
}

.frontpage-number-header {
  font-weight: bold;
  font-size: 14pt;
}

.frontpage-icon {
  font-size: 50pt;
  color: rgb(86, 52, 138);
}

.frontpage-magazine-pic {
  max-width: 175px;
}

.frontpage-tapahtuma-div {
  float: left;
  width: 180px;
  padding-right: 20px;
  padding-top: 25px;
  padding-bottom: 15px;
}

.frontpage-ajankohtaista-div {
  float: left;
  width: 380px;
  padding-right: 10px;
  padding-bottom: 5px;
}

/*--------------------------------------------------------------
Custom Yhdistys - Hallituksen yhteystiedot
--------------------------------------------------------------*/
.img-circle {
  border-radius: 50%;
  width: 100px;
  height: auto;
}

#hallitus-table {
  border-collapse: collapse;
   width: 100%;
}

/*#hallitus-table tr {
}

#hallitus-table tr td {
  width: 33%;
  padding-top: 10px;
  padding-bottom: 20px;
}

.hallitus-table-col1 {
  float: left;
  width: 110px;
  height: 130px;
}

.hallitus-table-col2 {
  float: left;
  width: 210px;
  padding-right: 10px;
  height: 130px;
/*  border: 1px solid black; */
}

/* Hallituksen jäsenelle, jolla ei ole omaa kuvaa */
#pic-user {
  padding-left: 5px;
  padding-right: 25px;
	text-align: center;
}

/*--------------------------------------------------------------
Custom Keski-Suomen INSINÖÖRI -lehti
--------------------------------------------------------------*/
.magazine-pic {
  float: left;
  padding-right: 5px;
  padding-bottom: 2px;
}

/*--------------------------------------------------------------
KSI default settings
--------------------------------------------------------------*/
.ksi-default-table {
/*  border: 1px solid gray; */
}

.ksi-default-table th {
  padding: 5px;
  padding-right: 5px;
  background-color: rgb(86, 52, 138);
  color: white;
}

.ksi-default-table td {
  padding: 5px;
  padding-right: 20px;
  border-bottom: 1px solid rgb(86, 52, 138);
}


/* ============================================================
  PRIMARY STRUCTURE
============================================================ */
/*.container {
  max-width: 960px;
  margin: 0 auto;
}*/
/* ============================================================
  SECTIONS
============================================================ */
section.module:last-child {
  margin-bottom: 0;
}
section.module.content {
  padding: 40px 0;
}
section.module.parallax {
  height: 500px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
section.module.parallax-content-page_ksi {
  height: 300px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

section.module.parallax-1 {
/*  background-image: url("img/195412-org.jpg"); */
  background-image: url("img/IMG_9834-4.jpg");
}

section h1 {
  font-size: 40pt;
  text-shadow: 1px 1px 7px #ffffff, -1px -1px 7px #ffffff;
}

section p {
  font-size: 16pt;
  text-shadow: 1px 1px 7px #ffffff, -1px -1px 7px #ffffff;
}

#frontpage-replace-parallax-small-screen {
  height: 300px;
  background-image: url("img/IMG_9834-4.jpg");
  background-size: 100% 100%;
  padding-top: 70px;
  text-align: center;
}

#frontpage-replace-parallax-small-screen h1 {
  font-size: 40pt;
  text-shadow: 1px 1px 7px #ffffff, -1px -1px 7px #ffffff;
}

#frontpage-replace-parallax-small-screen p {
  font-size: 16pt;
  text-shadow: 1px 1px 7px #ffffff, -1px -1px 7px #ffffff;
}

/*--------------------------------------------------------------
Word break
--------------------------------------------------------------*/ 
 #primary, #secondary {
  -ms-word-break: break-all;

  /* Be VERY careful with this, breaks normal words wh_erever */
/*  word-break: break-all; */

  /* Non standard for webkit */
  word-break: break-word;

  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
 }
 
/*--------------------------------------------------------------
7.0 Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}
 
 
/*--------------------------------------------------------------
9.0 Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
}
 
/* Make sure select elements fit in widgets */
.widget select {
	max-width: 100%;
}
 
/* Search widget */
.widget_search .search-submit {
	display: none;
}
 
/*--------------------------------------------------------------
10.0 Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
10.1 Posts and pages
--------------------------------------------------------------*/
.sticky {
}
.hentry {
	margin: 0 0 1.5em;
}
.byline,
.updated {
	display: none;
}
.single .byline,
.group-blog .byline {
	display: inline;
}
.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}
.page-links {
	clear: both;
	margin: 0 0 1.5em;
}
 
/*--------------------------------------------------------------
10.2 Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}
 
/*--------------------------------------------------------------
10.3 Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}
.bypostauthor {
}

/*--------------------------------------------------------------
10.4 Footer
--------------------------------------------------------------*/
.site-footer {
  background-color: rgb(236,236,236);
  border-top: 1px solid rgb(216,216,216);
  color: rgb(43, 43, 43);
}

#site-footer-address_col {
  padding-top: 30px;
  padding-bottom: 30px;
}

#site-footer-subscribe_col {
  padding-top: 20px;
  padding-bottom: 30px;
  padding-left: 50px;
  background-color: white;
  height: 100%;
}

.site-footer-header {
  font-weight: bold;
  font-size: 14pt;
}

.site-info {
  background-color: rgb(46, 46, 46);
  color: rgb(106, 106, 106);
  padding-top: 8px;
  padding-bottom: 8px;
}

#footer-input-email {
  max-width: 395px;
}

/* Overwrite Jetpack Contact-From style for Submit button */
.contact-submit > .pushbutton-wide {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: rgb(86, 52, 138);
  color: white;
  border-radius: 0;
  padding: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

.contact-submit > .pushbutton-wide:visited {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: rgb(86, 52, 138);
  color: white;
  border-radius: 0;
  padding: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

.contact-submit > .pushbutton-wide:hover {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: white;
  color: rgb(86, 52, 138);
  border-radius: 0;
  padding: 4px;
  padding-left: 10px;
  padding-right: 10px;
}

/*--------------------------------------------------------------
10.5 Buttons
--------------------------------------------------------------*/
.btn-ksi-fill {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: rgb(86, 52, 138);
  color: white;
  border-radius: 0;
}

.btn-ksi-fill:visited {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: rgb(86, 52, 138);
  color: white;
  border-radius: 0;
}

.btn-ksi-fill:hover {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: white;
  color: rgb(86, 52, 138);
  border-radius: 0;
}

.btn-ksi-nofill {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: transparent;
  color: rgb(86, 52, 138);
  border-radius: 0;
}

.btn-ksi-nofill:visited {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: white;
  color: rgb(86, 52, 138);
  border-radius: 0;
}

.btn-ksi-nofill:hover {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: rgb(86, 52, 138);
  color: white;
  border-radius: 0;
}

.btn-ksi-fill-reverse {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(255, 255, 255);
  background-color: rgb(255, 255, 255);
  color: rgb(86, 52, 138);
  border-radius: 0;
}

.btn-ksi-fill-reverse:visited {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(255, 255, 255);
  background-color: rgb(255, 255, 255);
  color: rgb(86, 52, 138);
  border-radius: 0;
}

.btn-ksi-fill-reverse:hover {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(255, 255, 255);
  background-color: rgb(86, 52, 138);
  color:  rgb(255, 255, 255);
  border-radius: 0;
}

.btn-ksi-nofill-reverse {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(255, 255, 255);
  background-color: transparent;
  color: rgb(255, 255, 255);
  border-radius: 0;
}

.btn-ksi-nofill-reverse:visited {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(255, 255, 255);
  background-color: transparent;
  color: rgb(255, 255, 255);
  border-radius: 0;
}

.btn-ksi-nofill-reverse:hover {
  border-style: solid;
  border-width: 2px;
  border-color: rgb(86, 52, 138);
  background-color: rgb(255, 255, 255);
  color: rgb(86, 52, 138);
  border-radius: 0;
}

/*--------------------------------------------------------------
11.0 Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .paging-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
	display: none;
}
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */
.infinity-end.neverending .site-footer {
	display: block;
}
 
/*--------------------------------------------------------------
12.0 Media
--------------------------------------------------------------*/
.page-content img.wp-smiley,
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}
/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
	max-width: 100%;
}
 
/*--------------------------------------------------------------
12.1 Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0 auto;
}
.wp-caption-text {
	text-align: center;
}
.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}
 
/*--------------------------------------------------------------
12.2 Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}
.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}
.gallery-columns-2 .gallery-item {
	max-width: 50%;
}
.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
	max-width: 25%;
}
.gallery-columns-5 .gallery-item {
	max-width: 20%;
}
.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}
.gallery-caption {}