html, body {
    padding: 0 !important; margin: 0 !important;

}
body {
	overflow-x: hidden;
}
.rinc {
    background-image: url('/themes/materialize/images/BG_3.jpg');
    background-repeat: no-repeat !important;
    background-position: 30% 60%;
}
.subpage-container {
    background-image: url('/themes/materialize/images/bg_2_1600px.jpg');
    background-repeat: no-repeat !important;
    background-position: top center;
}
.rinc nav {
    background-color: transparent !important;
    box-shadow: none;
    color: #575756;
    text-transform: uppercase;
    padding-top:30px;
}

.rinc a {
    color: #575756;
}

.rinc .white-subpage a {
    color: #34b7e8;
}

.rinc .white-subpage a:hover {
    color: #000000;
}

.rinc .nav a:hover,
.rinc .nav-selected a:hover {
    background: #575756 !important; color: #fff;
}

.rinc .nav-selected a {
    background: #000 !important; color: #fff;
}

.rinc .teal {
	background-color: #ececec !important;
}
.rinc .teal-text {
	color: #000 !important;
}

.rinc #logo-container {
    float:left;
}

.rinc .jokkari-buffer { margin-top: 900px !important; }


.rinc .jokkari-feature {
    float: right !important; max-width: 65% !important;
    margin-top: -300px !important; margin-bottom: 30px !important;
    text-align: center !important;
}

.rinc .jokkari-feature p { text-shadow: 0px 1px 2px rgba(255, 255, 255, 1); }

.rinc .jokkari-feature h1 { font-weight: bold; font-style: italic; }
.rinc .jokkari-feature h2 { font-weight: normal; font-size: 1.9rem; }

.rinc .jokkari-feature-subpage {
    min-width: 65% !important; text-align: center; float:right; margin-top: 40px;
    text-align: center !important;
}

.rinc .jokkari-feature-subpage h1 { font-weight: bold; font-style: italic; font-size: 4.6rem !important;  }


.rinc .section { clear:both !important; }

.rinc .sidebar-img img {
    width: 90%; height: 90%;
    max-width: 100%;
}

.rinc .white-subpage {
    background: rgba(255, 255, 255, 0.7); width: 100% !important;
    margin-top: 40px; padding-top: 50px; padding-bottom: 50px;
    clear:both;
    font-size: 120%;
}

.rinc .white-subpage h1 {
    font-size: 3rem; font-weight: bold; font-style: italic;
}

.rinc .white-subpage h2 {
    font-size: 1.5rem; font-weight: bold; margin-bottom: 0; padding-bottom: 0;
}

.rinc hr {
    background: none; border: 1px solid #eee; width: 100%; margin-top: 20px; margin-bottom: 20px;
}

.rinc .jokkari-logos {
    text-align: center; color: #8a8a8a;
    min-height: 100px;
}

.rinc .jokkari-copyright {
    text-align: center; font-weight: bold;

}

.rinc .page-footer {
    min-height: 200px;
    background: #000 !important;
    color: #fff !important;
    border-top: 10px #34b7e8 solid;
}

.rinc  .videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.rinc  .videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.rinc .show-image {
	height: 450px;
	overflow: hidden;
}

.rinc .show-image img {
	max-width: 100%;
	width: 100% !important;
	height: auto !important;
	overflow: none;
	padding-top: 10px !important;
}

.rinc .referenssi {
	margin: 1.5% !important;
	padding: 2% !important;
	background-color: rgba(211, 211, 211, 0.3);
}

.rinc .referenssi h2 {
	margin-bottom: 1.5% !important;
	font-size: 2rem !important;
}

.rinc .referenssi h4 {
	padding: 5% !important;
}

.rinc h4 {
	font-size: 2rem !important;
	font-style:italic;
}

.rinc .valmentaja p {
	font-size: 110%;
}
.rinc .valmentaja h2 {
	font-size: 1.8rem;
}


.animoitu-etusivu {
	background-image: url('/themes/materialize/images/black-ice.jpg');
	background-size: cover;
	background-position: center;
}
.animoitu-etusivu #logo-container {
	position: absolute;
}
.animoitu-etusivu .container * {
	color: #ffffff!important;
}
.animoitu-etusivu .jokkari-feature {
    margin-top: 0px !important;
    float: none!important;
    margin-left: auto;
    margin-right: auto;
}
.kiekkoanimaatio {
    width: 100%;
    position: relative;
    display: table;
    height: 500px;
    margin-top: -94px;
    pointer-events: none;
}
.kiekkoanimaatio-kiekko {
    position: absolute;
    border-radius: 50%;
    background-image: url(/themes/materialize/images/jokkari-kiekko.png);
    background-position: center;
    background-size: cover;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
	transform: rotate(126deg);
	animation-fill-mode: forwards;
}
.animoitu-etusivu .jokkari-buffer {
    margin: 200px !important;
}
.animoitu-etusivu #logo-container img {
	filter: invert(100%);
}
.kiekkoanimaatio-kiekko-aloitus {
	animation: puck-spin 6s infinite;
}
.kiekkoanimaatio-kiekko-wrapper {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 100px;
    left: 50%;
    margin-left: -200px;
    border-radius: 50%;
    box-shadow: 36px 30px 90px #000000;
    transform: translate(200%, -500px);
    animation-fill-mode: forwards;
}
.kiekkoanimaatio-kiekko-wrapper-aloitus {
	animation: puck-slide 6s infinite;
}
.kiekkoanimaatio-kiekko-leima {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    text-align: center;
    line-height: 55px;
    transform: rotate(20deg);
    margin-top: 150px;
	display: none;
}
.leimanakyvilla {
	display: block;
}
.kiekkoanimaatio-kiekkoanimaatio-leima-etunimi {
    font-size: 88px;
    color: #ffffff !important;
	animation: puck-etunimi 6s infinite;
}
.kiekkoanimaatio-kiekkoanimaatio-leima-sukunimi {
    font-size: 56px;
    color: #34b7e8 !important;
	animation: puck-sukunimi 6s infinite;
}
@keyframes puck-etunimi {
  0% {
    opacity: 0;
  }
  50% {
	  opacity: 0;
  }
  55% {
	  opacity: 0;
  }
  56% {
	  opacity: 1;
  }
  100% {
	  opacity: 1;
  }
}
@keyframes puck-sukunimi {
	0% {
      opacity: 0;
    }
    50% {
  	  opacity: 0;
    }
    60% {
  	  opacity: 0;
    }
    61% {
  	  opacity: 1;
    }
    100% {
  	  opacity: 1;
    }
  }


@keyframes puck-slide {
  0% {
    transform: translate(200%, -500px);
  }
  50% {
	  transform: translate(0%, 0px);
  }
  80% {
	  transform: translate(0%, 0px);
  }
  100% {
	  animation-timing-function: linear;
	  transform: translate(-4000%, 0px);
  }
}
@keyframes puck-spin {
  0% {
    transform: rotate(126deg);
  }
  50% {
	  transform: rotate(0deg);
  }
  80% {
	  transform: rotate(0deg);
  }
  100% {
	  transform: rotate(300deg);
  }
}
.animoitu-etusivu-aloitus {
	overflow: hidden;
	animation: etusivu-hyppy 6s infinite;
}
@keyframes etusivu-hyppy {
  0% {
    transform: scale(1);
  }
  55% {
	  transform: scale(1);
  }
  56% {
	  transform: scale(1.05);
  }
  57% {
	  transform: scale(1);
  }
  60% {
	  transform: scale(1);
  }
  61% {
	  transform: scale(1.05);
  }
  62% {
	  transform: scale(1);
  }
  100% {
	  transform: scale(1);
  }
}
@media only screen and (min-width: 1099px){

    .rinc #logo-container img {
        height:100%; padding-top: 50px !important;
    }
    .rinc .logo-subpage img {
        height:300px !important; padding-top: 0 !important;
    }

    nav .brand-logo {
        position: relative;
    }
}



@media only screen and (max-width : 1100px) {

    nav {
        height: auto !important;
        width: 100% !important;
    }
    .rinc .nav-wrapper { display:flex; flex-flow: column; }
    .rinc .nav-wrapper #logo-container { order: 2; }
    .rinc .nav-wrapper .button-collapse { order: 1; }

    .rinc #logo-container, .rinc .jokkari-feature, .rinc .jokkari-feature-subpage {
        float:none !important; clear:both !important;
        position: relative !important;
        width: 100% !important;  max-width: none !important;
        text-align: center !important;
    }

    .rinc .jokkari-feature, .rinc .jokkari-feature-subpage {
        margin:0 !important; padding:0 !important;
    }

    .rinc #logo-container img {
        max-width: 90% !important; height: auto !important;
    }
    .rinc .logo-subpage img {
        height:100px !important; padding-top: 0 !important;
    }

    nav .brand-logo {
        position: relative;
    }

}


@media only screen and (max-width : 760px) {

	.kiekkoanimaatio {
	    width: 100%;
	    position: relative;
	    display: table;
	    height: 310px;
	    margin-top: -144px;
	    pointer-events: none;
	    transform: scale(0.6);
	}

}
