/*
Theme Name: 	Kuopion Karateseura 2014
Theme URI: 		http://wisecamedia.fi
Version: 		1.0
Author: 		Juha Miettinen
Author URI: 	http://wisecamedia.fi
*/

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic,300);
@import url(https://fonts.googleapis.com/css?family=Oswald:400,700);
@-moz-document url-prefix(https://) {
	button::-moz-focus-inner,
	input[type="button"]::-moz-focus-inner,
	input[type="submit"]::-moz-focus-inner,
	input[type="reset"]::-moz-focus-inner {
		padding: 0 !important;
		border: 0 none !important;
	}
}

* {
	border: 0 none;
	color: inherit;
	font-family: inherit;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0 none;
	padding: 0;
}
input {
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
}
html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
}
body {
	background-color: #1a1a1a;
	color: #FFFFFF;
	font-family: 'Open Sans', 'Arial', sans-serif;
	font-size: 16px;
	font-weight: 400;
	height: 100%;
	line-height: 1.2;
}
a {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
nav a:hover {
	text-decoration: none;
}
nav a[href]:hover {
	text-decoration: underline;
}
iframe {
	max-width: 100%;
}
img {
	height: auto;
	max-width: 100%;
}
strong, b {
	font-weight: 600;
}
em, i {
	font-style: italic;
}
nav ul {
	list-style: none;
}
.alignleft {
	float: left;
	margin: 0 1em 1em 0;
}
.alignright {
	float: right;
	margin: 0 0 1em 1em;
}
.nav-mobile {
	display: none;
	border: 2px solid white;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	height: 44px;
	overflow: hidden;
	position: relative;
	vertical-align: middle;
	width: 44px;
}
.nav-mobile:before {
    border-bottom: 3px solid #FFFFFF;
    border-top: 8px double #FFFFFF;
    content: "";
    height: 2px;
    left: 50%;
    margin: -5px 0 0 -12px;
    position: absolute;
    top: 50%;
    width: 24px;
}
.nav-mobile select {
	height: 80px;
	left: -10px;
	top: -10px;
	opacity: 0.0;
	position: absolute;
	width: 80px;
}
ul.inline li {
	display: inline;
}
ul.inline li:after {
	content: ' | ';
	margin: 0 5px;
}
ul.inline li:last-child:after {
	display: none;
}
ul .current-menu-item a {
	color: #AAAAAA;
}
.content:after, .clearfloats:after {
	clear: both;
	content: '';
	display: block;
}
.content.master {
	margin: 0 auto;
	max-width: 1200px;
	-moz-transition: padding 0.5s;
	-ms-transition: padding 0.5s;
	-o-transition: padding 0.5s;
	-webkit-transition: padding 0.5s;
	transition: padding 0.5s;
}
#root {
	background-color: #000000;
	background-repeat: no-repeat;
}
#main {
	background-color: #000000;
	display: table;
	height: 100%;
	width: 100%;
}
.footer-parent {
	display: table-row;
	height: 1px;
}
header a:hover {
	text-decoration: none;
}
.header-top {
	background-color: rgba(17,17,17,0.57);
	padding: 40px 0;
}
header h1 {
	float: left;
}
header h1 a {
	background-image: url('images/header-kuopion_karateseura.png');
	background-position: center center;
	background-repeat: no-repeat;
	display: block;
	font-size: 0;
	height: 23px;
	width: 414px;
}
header nav {
	float: right;
	font-family: 'Oswald';
	font-weight: 400;
}
header nav > ul > li {
	display: inline-block;
	padding: 3px 10px;
}
header nav > ul > li > a {
	text-transform: uppercase;
}
header nav ul ul {
	background: #1A1A1A;
	color: white;
	display: none;
	left: 0;
	position: absolute;
	top: 100%;
	z-index: 99;
}
header nav ul ul li a {
	display: block;
	font-size: 90%;
	padding: 10px 10px;
}
header nav li.menu-item-has-children {
	position: relative;
}
header nav ul li:hover ul,
header nav ul li.tapped ul {
	display: block;
}
.header-top nav ul ul li > a:hover {
	background-color: #303030;
	color: #ff9900;
	text-decoration: none;
}
header nav > ul > li:last-child ul {
	left: auto;
	right: 0;
}
.header-bottom {
	background: transparent url('images/header-bottom_bg.jpg') no-repeat center center;
	background-size: cover;
	padding: 32px 0;
}

footer {
	background-color: #1a1a1a;
	border-top: 3em solid #202020;
	color: white;
	line-height: 1.4;
}
footer p {
	margin-bottom: 1.4em;
}
.footer-top {
	padding: 2.5em 0;
}
footer nav > ul > li {
	float: left;
	font-size: 90%;
	width: 16.66%;
}
footer nav > ul > li > a {
	text-transform: uppercase;
}
footer li a {
	margin-right: 5%;
}
footer a[href] {
	font-weight: 300;
}
.footer-developer {
	color: #444444;
	font-size: 90%;
	font-weight: 600;
	margin-top: -15px;
	padding: 15px 0;
	text-align:  center;
}
article.standard {
	padding: 2em 0 3em;
}
article section {
	padding: 2em 0;
}
.home article h2 {
	font-family: inherit;
	font-size: 190%;
	font-weight: 300;
}
article h2 {
	font-family: 'Oswald';
	font-size: 190%;
	margin-bottom: 1.4em;
	text-transform: uppercase;
}
article h3 {
	color: #ff9900;
	font-family: 'Oswald';
	font-size: 170%;
	margin-bottom: 1.1em;
	margin-top: 1.9em;
	text-transform: uppercase;
}
article h4 {
	font-family: 'Oswald';
	font-size: 150%;
	margin-bottom: 1.25em;
	margin-top: 1.8em;
}
article p {
	line-height: 1.4;
	margin-bottom: 1.4em;
}
article ol, article ul {
	padding-left: 1.1em;
}
article li {
	margin-bottom: 0.4em;
}
.home-highlight-cols {
	display: table;
	table-layout: fixed;
	width: 100%;
}
.highlights {
	display: table-cell;
	padding-right: 48px;
	vertical-align: top;
}
.home-hightlights-fb-col {
	display: table-cell;
	vertical-align: top;
	width: 320px;
}
/*.home-highlights-fb-col iframe {
	width: 100%;
}*/
.fb_iframe_widget {
	height: 700px;
}
.highlight-list {
	margin: 0 -2%;
}
.highlight-list-item {
	border-bottom: 5px solid #434343;
	float: left;
	font-family: 'Oswald';
	font-weight: 700;
	margin: 0 2% 2%;
	padding-bottom: 0.5em;
	text-align: center;
	text-transform: uppercase;
	width: 46%;
}
.highlight-list-item:nth-child(odd) {
	clear: left;
}
nav.highlights ul {
	padding: 0;
}
/*nav.highlights ul li:last-child {
	margin-right: 0;
}*/
.highlights-image .image {
	bottom: 5px;
	left: 5px;
	position: absolute;
	right: 5px;
	top: 5px;
}
.highlights-image .image:before {
	content: "";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}
.highlight-image img {
	vertical-align: middle;
}
.highlights-title {
	display: block;
	font-size: 110%;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
	margin-top: 0.5em;
}
.header-bottom .content.master {
	position: relative;
}
.header-bottom .content.master:after {
	background: transparent url("images/slider-shadow.png") no-repeat center top;
	background-size: 100% auto;
	content: "";
	padding-bottom: 1.8%;
	position: absolute;
	top: 100%;
	width: 100%;
}
.header-bottom .soliloquy-pager {
	display: none;
}
.header-bottom .soliloquy-container .soliloquy-controls-direction {
	display: block;
}
.header-bottom .soliloquy-container .soliloquy-controls-direction .soliloquy-prev {
	background: transparent url('images/ui-slider_prev.png') no-repeat center center;
	height: 43px;
	left: -53px;
	margin-top: -21px;
	width: 43px;
}
.header-bottom .soliloquy-container .soliloquy-controls-direction .soliloquy-next {
	background: transparent url('images/ui-slider_next.png') no-repeat center center;
	height: 43px;
	margin-top: -21px;
	right: -53px;
	width: 43px;
}

table {
	margin: 1em 0;
	max-width: 100%;
}
td {
	padding: 0.4em;
}
tr td:first-child {
	padding-left: 0;
}
tr td:last-child {
	padding-right: 0;
}

article a[href$=".pdf"] {
	background-image: url("images/ui-pdf.svg");
	background-position: left center;
	background-repeat: no-repeat;
	background-size: 1.2em auto;
	display: inline-block;
	height: 1.3em;
	padding-left: 2.1em;
	vertical-align: middle;
}

.youtube {
	display: block;
	position: relative;
	max-width: 320px;
}
.youtube br {
	display: none;
}
.youtube img {
	display: block;
	width: 100%;
}
.youtube a:after {
	background: rgba(0, 0, 0, 0.8) url('images/ui-play.png') no-repeat center center;
	background-size: 25% auto;
	bottom: 0;
	content: '';
	left: 0;
	position: absolute;
	top: 0;
	-moz-transition: 0.4s background-color;
	-webkit-transition: 0.4s background-color;
	transition: 0.4s background-color;
	width: 100%;
	z-index: 1;
}
.youtube a:hover {
	text-decoration: none;
}
.youtube a:hover:after {
	background-color: rgba(0,0,0,0);
}
a:hover .youtube-caption {
	text-shadow: 0 0 2px rgba(0,0,0,0.9);
}
.youtube-caption {
	color: #FFFFFF;
	bottom: 0.4em;
	font-size: 90%;
	font-weight: 700;
	position: absolute;
	text-align: center;
	width: 100%;
	z-index: 2;
}
.videos .youtube {
	float: left;
}
.gallery-item {
	display: inline-block;
}

.oranssi-huomioteksti {
	font-family: Oswald;
	text-transform: uppercase;
	color: #ff9900;
	font-size: 170%;
    margin-bottom: 1.1em;
    margin-top: 1.9em;
}

.valkoinen-huomioteksti {
	font-family: 'Oswald';
    font-size: 150%;
    margin-bottom: 1.25em;
    margin-top: 1.8em;
}

/*Korjaus videoihin*/

.wp-video,
.wp-video .mejs-container,
.wp-video .mejs-inner,
.wp-video video {
  max-width: 100% !important;
}

.mejs-offscreen {
    display: none;
}

.wp-video .mejs-container {
  min-width: 0 !important;
  width: 300px !important;   /* tai 100% jos haluat responsiiviseksi */
}

.wp-video .mejs-controls {
  width: 100% !important;
  display: flex;
  gap: 20px;
}

.mejs-controls .mejs-time-rail {
    display: none;
}

/* Piilota rikkinäinen fontti-ikoni */
.mejs-playpause-button button:before {
  content: "" !important;
}

/* PLAY-kolmio */
.mejs-play .mejs-playpause-button button {
  width: 0;
  height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* PAUSE-kaksi palkkia */
.mejs-pause .mejs-playpause-button button {
  width: 18px;
  height: 18px;
  position: relative;
}

/* REPLAY: näytä sama kolmio kuin play */
.wp-video .mejs-controls .mejs-playpause-button.mejs-replay button:before{
  content: "" !important;
  position: absolute;
  left: 9px;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}


.mejs-pause .mejs-playpause-button button:before,
.mejs-pause .mejs-playpause-button button:after {
  content: "";
  position: absolute;
  top: 0;
  width: 5px;
  height: 18px;
  background: #fff;
}

.mejs-pause .mejs-playpause-button button:before {
  left: 2px;
}

.mejs-pause .mejs-playpause-button button:after {
  right: 2px;
}

/* Varmista että nappi oikeasti näkyy ja on mitoiltaan ok */
.wp-video .mejs-controls .mejs-playpause-button button{
  position: relative !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Nollaa mahdollinen ikonifontti/vanha :before */
.wp-video .mejs-controls .mejs-playpause-button button:before,
.wp-video .mejs-controls .mejs-playpause-button button:after{
  content: "" !important;
}

/* PLAY-kolmio (kun wrapperissa mejs-play) */
.wp-video .mejs-controls .mejs-playpause-button.mejs-play button:before{
  content: "" !important;
  position: absolute;
  left: 9px;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* PAUSE (kun wrapperissa mejs-pause) */
.wp-video .mejs-controls .mejs-playpause-button.mejs-pause button:before,
.wp-video .mejs-controls .mejs-playpause-button.mejs-pause button:after{
  content: "" !important;
  position: absolute;
  top: 6px;
  width: 5px;
  height: 14px;
  background: currentColor;
}
.wp-video .mejs-controls .mejs-playpause-button.mejs-pause button:before{ left: 7px; }
.wp-video .mejs-controls .mejs-playpause-button.mejs-pause button:after{ right: 7px; }

/* Estä aria-labelin tulostuminen näkyviin */
.wp-video .mejs-volume-slider, .wp-video .mejs-volume-slider::before,
.wp-video .mejs-volume-slider::after{
  content: none !important;
  display: none !important;
}

/*Korjaus videoihin loppuu*/

@media screen and (min-width: 769px) {
	body:not(.home) #root {
		background: #000000 url('images/root_bg.jpg') no-repeat center top;
	}
	article.standard {
		margin-top: 240px;
	}
}

@media screen and (min-width: 1350px) {
.soliloquy-container {
		max-width: 100% !important;
	}
}

@media screen and (max-width: 1350px) {
	.header-bottom .soliloquy-container ..soliloquy-controls-direction .soliloquy-prev {
		left: 10px;
	}
	.header-bottom .soliloquy-container ..soliloquy-controls-direction .soliloquy-next {
		right: 10px;
	}

}
@media screen and (max-width: 1250px) {
	#main {
		display: block;
	}
	.footer-parent {
		display: block;
	}
}

@media screen and (min-width: 1200px) {
.soliloquy-container {
		max-width: 90% !important;
	}
}

@media screen and (max-width: 1200px) {
	body:not(.home) #root {
		background-size: 140% auto;
	}
	.content.master {
		padding-left: 30px;
		padding-right: 30px;
	}
	.header-top {
		padding: 20px 0;
	}
	.header-bottom .content.master {
		padding-left: 0;
		padding-right: 0;
	}
	header h1 a {
		background-size: 100% auto;
		height: 30px;
		width: 207px;
	}
	header nav {
		line-height: 30px;
	}
	header nav > ul > li {
		margin: 0 0 0 16px;
		padding: 0;
	}
	nav {
		font-size: 80%;
	}
	article.standard {
		margin-top: 11%;
	}
}

@media screen and (max-width: 1000px) {
	body {
		font-size: 15px;
	}
	footer nav > ul > li {
		font-size: 100%;
	}
}

@media screen and (min-width: 960px) {
.soliloquy-container {
		max-width: 85% !important;
	}
}

@media screen and (max-width: 960px) {
	header .tagline {
		font-size: 120%;
		width: 35%;
	}
	
	.home table,
	.home table tbody,
	.home table tbody tr,
	.home table tbody tr td,
	.home table tbody tr td p {
		display: block;
		width: 100% !important;
		text-align: left;
	}

	.home table tbody tr td h3,
	.home table tbody tr td h4 {
		text-align: left;
	}
	
	.peruskurssi table,
	.peruskurssi table tbody,
	.peruskurssi table tbody tr,
	.peruskurssi table tbody tr td,
	.peruskurssi table tbody tr td p {
		display: block;
		width: 100% !important;
	}
	
	.peruskurssi table tbody tr td:first-child {
		display: flex;
		justify-content: center;
		padding-bottom: 50px;
	}
	
	.materiaalipankki table,
	.materiaalipankki table tbody,
	.materiaalipankki table tbody tr,
	.materiaalipankki table tbody tr td,
	.materiaalipankki table tbody tr td p {
		display: block;
		width: 100% !important;
	}
	
	.materiaalipankki table tbody tr td a {
		word-break: break-all;
	}
}

@media screen and (min-width: 801px) {
	.videos .youtube {
		margin: 0 0.66% 1.32% 0;
		width: 24.5%;
	}
	.videos .youtube:nth-child(4n) {
		margin-right: 0;
	}
}

@media screen and (max-width: 800px) {
	h1, h2, h3 {
		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		hyphens: auto;
	}
	.header-top {
		padding: 10px 0;
	}
	header h1 {
		float: none;
	}
	header h1 a {
		margin: 0 auto 15px;
	}
	header nav {
		float: none;
		line-height: 1.2;
		text-align: center;
	}
	header nav > ul > li {
		margin: 0.5em;
	}
	header nav ul ul {
		text-align: left;
	}
	footer nav > ul {
		margin-top: -1.5em;
	}
	footer nav > ul > li {
		margin-top: 1.5em;
		width: 33.33%;
	}
	.videos .youtube {
		margin: 0 0.5% 1% 0;
		width: 33%;
	}
	.videos .youtube:nth-child(3n) {
		margin-right: 0;
	}
}

@media screen and (min-width: 768px) {
.soliloquy-container {
		max-width: 80% !important;
	}
}

@media screen and (max-width: 768px) {
	article.standard {
		margin-top: 0;
	}
}

@media screen and (max-width: 767px) {
	.home-highlights-cols,
	.highlights,
	.home-highlights-fb-col {
		display: block;
		padding: 0;
		width: auto;
	}
	.home-highlights-fb-col {
		margin-top: 24px;
	}
	.fb_iframe_widget {
		max-width: 280px;
		width: 100% !important;
	}
	/*.home-highlights-fb-col iframe {
		max-width: 340px;
		width: 100%;
	}*/
}

@media screen and (max-width: 680px) {
	/*nav.highlights li {
		margin-bottom: 1em;
		margin-left: 2%;
		margin-right: 0;
		width: 49%;
	}
	nav.highlights ul li:nth-child(odd) {
		margin-left: 0;
	}*/
	.highlights-title {
		/*font-size: 90%;*/
		/*height: 2.8em;*/
	}
	.highlights img {
		width: 100%;
	}
}

@media screen and (max-width: 640px) {
	body {
		font-size: 14px;
	}
}

@media screen and (min-width: 480px) {
.soliloquy-container {
		max-width: 75% !important;
	}
}

@media screen and (max-width: 480px) {
	body {
		font-size: 13px;
	}
	/*nav.highlights li {
		margin-bottom: 1em;
		margin-left: 4%;
		margin-right: 0;
		width: 48%;
	}*/
	footer {
		border-top-width: 2em;
	}
	.highlights-title {
		font-size: 90%;
	}
	.footer-top {
		display: none;
	}
	.footer-developer {
		margin-top: 0;
	}
	header nav > ul > li {
		float: left;
		margin: 0;
		padding: 0;
		width: 50%;
	}
	header nav > ul > li > a {
		display: block;
		padding: 0.8em 1em;
		text-align: center;
	}
	header nav > ul > li ul {
		width: 100%;
	}
	table {
		/* font-size: 70%; */
	}
	.videos .youtube {
		margin: 0 0 2% 1%;
		width: 49%;
	}
	.videos .youtube:nth-child(odd) {
		margin-left: 0;
	}
	.youtube-caption {
		font-size: 60%;
	}
}

/*@media screen and ( max-width: 479px ) {
	.home-highlights-fb-col iframe {
		width: 280px
	}
}*/

@media screen and (min-width: 320px) {
.soliloquy-container {
		max-width: 65% !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

@media screen and (max-width: 320px) {
	body {
		font-size: 12px;
	}
	.content.master {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
	.header-bottom .content.master {
		padding: 0 !important;
	}
	table {
		font-size: 50%;
	}
}

