@import url('https://fonts.googleapis.com/css?&family=Elsie:wght@200|Nunito|Arapey|Raleway|Mrs+Saint+Delafield|Barlow:wght@300&display=swap');


html, body {
	background: url(t5.png);
	min-height: 100%; 
	margin: 0;
	font-family: "Nunito", sans-serif;
    color: #515151; 
	font-size: 11px; 
	letter-spacing: 2px;
}

#sisalto {
	background-color: rgb(251, 249, 249); 
	padding: 40px 0px;
	width: 1100px; 
	margin: auto;  
}

footer {
	background-color: #872341;
	color: #1e1e1ebd; 
	width: 1100px; 
	margin: auto; 
	text-align: center; 
	line-height: 24px; 
	text-transform: uppercase; 
}

footer a {
	color: rgba(169, 120, 137, 0.4); 
}

footer table {
	width: 100%; 
}

footer td {
	vertical-align: top;
	padding: 20px;
}

h6 {
	color: rgb(0 0 0 / 46%); 
	font-family: "Elsie", serif;
	font-weight: normal; 
	font-size: 18px; 
	margin: 10px;
}

/* navigaatio */


h1 {
	font-family: "Arapey", serif;
	color: #dabfbf; 
	margin: 0px 100px;
	font-size: 35px;
	letter-spacing: 10px; 
	font-weight: normal;
}

.navi {
	margin: auto;
	width: 1100px;
	padding: 0px;
	background-color: #872341;
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 99;
	text-transform: uppercase; 
	border-bottom: 1px solid #eeeeee91; 
}

.navi li {
	margin: 15px 20px;
	display: inline-block; 
	list-style-type: none; 
	letter-spacing: 3px;
}

.navi a, footer a {
	color: #dabfbf; 
	font-weight: bold; 
}

.navi a:hover, footer a:hover {
	font-weight: bold; 
	color: rgb(205 178 72 / 18%);
}

ul i {
	color: rgb(205 178 72 / 18%);
}

header {
	width: 1100px; 
	height: 350px;
	margin: auto; 
}

header img {
	height: 350px;
	width: 100%; 
	object-fit: cover;
	opacity: 0.6;
}

header p {
	font-family: "Arapey", serif;
	position: absolute; 
	letter-spacing: 5px;
	top: 80px; 
	margin: 10px 50px;
	font-size: 13px;
	color: rgb(204 204 204 / 70%); 
}


/* muut hilppeet */

.galleria {
	width: 800px;
	text-align: center; 
	margin: 30px auto;
}

.galleria img {
	margin: 5px;
	filter: grayscale(60%);
	border-radius: 3px;
	box-shadow: 0px 0px 5px rgba(113, 90, 90, 0.25); 
}

.galleria img:hover {
	filter: grayscale(0%);
	transition: 2s;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  border-left: 1px solid rgb(113 89 89 / 44%); 
}

::-webkit-scrollbar-thumb {
  background: rgb(135 35 65 / 30%);
}

/* tekstit */

p {
	margin: 30px auto;
	width: 800px; 
	word-spacing: 4px;  
	line-height: 26px; 
	text-align: justify;
}

em { 
	font-style: normal; 
	font-size: 10px;
	color: rgb(195 195 195); 
}

strong {
	font-size: 13px; 
	letter-spacing: 2px;
	text-transform: uppercase; 
	font-family: "Arapey", serif;
	font-weight: normal;  
	color: rgba(0,0,0,.3);
	line-height: 20px;
}


a {
	text-decoration: none; 
	color: #e4b19f; 
	font-weight: bold; 
}


h2 {
	font-family: "Elsie", serif;
	text-align: center; 
	font-weight: normal; 
	text-transform: uppercase;
	color: rgb(135 35 65 / 80%);
	font-size: 40px; 
	word-spacing: 5px;
	margin: 5px auto 0px auto;  
}

h3 {
	position: relative;
    text-align: center; 
	padding: 5px 0px; 
	margin: 70px 0px;
	font-family: "Elsie"; 
	font-weight: normal ; 
	text-transform: uppercase; 
	color: rgb(135 35 65 / 80%);
	text-shadow: 0px 2px 3px rgb(144 138 149 / 0.3); 
	font-size: 40px; 
	word-spacing: 5px; 
}

h3 img {
	padding: 0px 40px;
	opacity: 0.1;
	height: 30px;
}

h3:after {
	content: '';
    position: absolute;
    left: 300px;
	bottom: -5px;
    width: 500px;
    height: 1px;
    background: rgba(121, 107, 107, 0.1);
}

h5 {
	text-align: left; 
	font-family: "Elsie", serif;
	font-weight: normal; 
	text-transform: uppercase; 
	color: rgb(122 110 110);
	font-size: 22px; 
	margin: 30px 180px;
}

		/* TIEDOT */

.taulukko {
	width: 900px;
	border-spacing: 0px;
	margin: 50px auto; 
}

.taulukko th {
	padding: 13px 15px;
	text-align: left;
	text-transform: uppercase;
	background-color: #872341;
	color: rgb(255 255 255 / 60%);
}

.taulukko th:last-child {
	border-radius: 0px 20px 0px 0px; 
}

.tiedot td, .tiedot2 td {
	border-bottom: 1px solid rgba(113, 90, 90, 0.15); 
	vertical-align: middle;
}

.tiedot img, .tiedot2 img {
	display: block; 
	opacity: 0.7; 
	filter: grayscale(20%);
	object-fit: cover; 
	height: 349px;
	width: 555px;
}

.kuva {
	width: 555px; 
	padding: 0px; 
	background-color: #888;
	border: none !important;
}

.v {
	padding: 10px 20px;
}

.tiedot2 b {
	text-transform: uppercase; 
	color: #872341; 
	line-height: 25px;
}	

.tiedot i {
	color: rgb(205 178 72 / 29%); 
	font-size: 10px; 
	margin-right: 10px;
}

.tiedot2 i {
	display: none; 
}

.tiedot2 img {
	height: 415px; 
	width: 555px;
}

.vhno {
  	margin: auto; 
  	text-align: center; 
  	border-top: 1px solid rgba(121, 107, 107, 0.1); 
  	padding: 10px; 
	width: 60%; 
	color: #e2ada6;  
	word-spacing: 20px; 
	font-weight: bold; 
	font-size: 12px; 
}



		/* SUKU */ 

.suku {
	border-collapse: collapse; 
}

.suku td {
	padding: 10px 30px;
	line-height: 20px;
	border: 1px solid rgb(135 35 65 / 30%);
	width: 33%;
}

.suku i {
	color: rgb(205 178 72 / 20%); 
	margin: 0px 20px; 
}

.piilodiv {
    display:none; 
	width: 800px; 
	margin: 30px auto; 
}

.trigger {
	color: rgba(169, 120, 137, 0.5); 
}

.trigger:hover {
	color: rgb(205 178 72 / 43%); 
	transition: 2s;
	cursor: pointer; 
}

#sukuselvitys p {
	width: unset; 
	margin:0px; 
}

#sukuselvitys td {
	vertical-align: top; 
	width: 50%; 
}

#sukuselvitys td:first-child {
	border-right: 1px solid rgba(113, 90, 90, 0.25); 
	padding: 20px 25px 20px 0px;
}

#sukuselvitys td:last-child {
	padding: 20px 0px 20px 25px;
}

.varsat {
	border-collapse: collapse;
	width: 800px; 
	margin: auto;
}

.varsat td:nth-child(1) {
	text-transform: uppercase; 
	width: 20px;
	font-size: 10px;
}



	/* KILPAILUT */

.kisawrapper {
	display: flex;
	justify-content: space-evenly;
	align-items: flex-start;
	width: 900px;
	margin: 0px auto; 
}

.kisasivu {
	width: 250px;
	text-align: center; 
}

.kisasivu p {
	width: fit-content;  
	margin: 20px auto;
	text-align: center; 
}

.taso {
	background-image: url(frame.png);
	background-repeat: no-repeat; 
	background-size: cover; 
	height: 170px; 
	width: 170px; 
	margin: auto; 

}

.taso b {
	font-family: "Arapey", serif; 
	font-size: 30px; 
	line-height: 40px; 
	color: #872341;
}

.taso p {
	padding: 35px 0px;
	color: rgba(93, 69, 69, 0.51); 
}

.palkinto {
	height: 50px; 
}

h4 {
	color: rgb(204 147 164); 
	text-transform: uppercase; 
	margin: 20px 0px; 
	font-size: 13px; 
}

.sijat, .nly {
	width: 700px; 
    margin: 0px;
    border-spacing: 0px;
	border-bottom: 1px solid rgb(135 35 65 / 30%);
}

.sijat td, .varsat td, .nly td {
  padding: 10px 15px;
  text-align: left;
  vertical-align: middle;
}

.sijat td:first-child, .nly td:first-child {
	border-left: 1px solid rgb(135 35 65 / 30%);
	width: 50px; 
}

.sijat td:last-child, .nly td:last-child {
	border-right: 1px solid rgb(135 35 65 / 30%);
	color: rgb(197 180 185); 
}

.sijat tr:nth-child(even), .varsat tr:nth-child(even), .nly tr:nth-child(even) {
	background-color: rgb(164 148 148 / 10%); 
}

.sijat img, .nly img {
	height: 8px; 
}

.sijat p {
	width: unset; 
	margin: 20px;
}

.nly {
	margin-top: 40px;
	border-top: 1px solid rgb(135 35 65 / 30%);
}


		/* PK */

.pk {
	width: 800px;
}

.pk p {
	margin: 30px 20px;
}

.date {
	background-color: #872341;
	font-family: "Arapey", serif; 
	font-size: 45px; 
	width: 110px; 
	color: rgb(205 178 72 / 29%); 
	text-align: center; 
	border-radius: 20px 0px 0px 0px;
	padding: 0px 10px;
}

.date i {
	font-size: 40px;
}

.pk td:nth-child(2) {
	border-radius: 0px 20px 0px 0px;
	border-bottom: 1px solid rgba(113, 90, 90, 0.15); 
	line-height: 20px;
	padding-left: 30px; 
}

.pk td:nth-child(2) b {
	text-transform: uppercase;
	color: rgb(204 147 164); 
	font-size: 13px; 
}


/* MERIITTIBADGET */

.meriittinauha{
    text-align:center;
    margin:30px auto;
    width:100%;
    display:block;
}

.meriitti{
    display:inline-block;
    padding:9px 18px;
    margin:4px;
    background:#872341;
    color:#fff;
    text-transform:uppercase;
    letter-spacing:1.5px;
    min-width:115px;
}

.meriitti i{
    margin-right:6px;
}

.meriitti b{
    color:#fff;
    font-size:10px;
}

.meriitti em{
    display:block;
    color:rgba(255,255,255,.65);
    font-size:7px;
}

.meriitti.kesken{
    background:#e6e6e6;
    color:#999;
}

.meriitti.kesken b,
.meriitti.kesken i{
    color:#999;
}

.meriitti.kesken em{
    color:#aaa;
}
/* tavoite */

.meriittinauha-item.kesken{
    background:#f1f1f1;
    border-bottom-color:#d6d6d6;
    color:#aaa;
}

.meriittinauha-item.kesken i,
.meriittinauha-item.kesken b{
    color:#aaa;
}

.meriittinauha-item.kesken em{
    color:#bbb;
}

/* poistetaan nauhan nuolet jos vanhasta j채i */

.meriittinauha-item:after{
    display:none;
}


.rotukirja-lista{
    width:900px;
    margin:40px auto;
}

.rotukirja-kortti{
    display:grid;
    grid-template-columns:210px 1fr 60px;
    align-items:center;
    width:900px;
    min-height:150px;
    margin:18px auto;
    background:rgba(255,255,255,.35);
    border:1px solid rgba(113,90,90,.12);
    text-decoration:none;
    color:#515151;
    overflow:hidden;
}

.rotukirja-kortti > img,
.rotukirja-eikuvaa{
    grid-column:1;
    width:210px;
    height:150px;
    object-fit:cover;
    display:block;
}

.rotukirja-eikuvaa{
    background:rgba(135,35,65,.04);
}

.rotukirja-info{
    grid-column:2;
    text-align:center;
    padding:0 30px;
}

.rotukirja-info h2{
    font-size:24px;
    line-height:30px;
    margin:0 0 6px 0;
    width:auto;
    text-align:center;
    clear:none;
}

.rotukirja-info em{
    display:block;
    font-size:12px;
    line-height:20px;
	font-weight: normal; 
}

.lista-jakaja{
    display:block;
    width:240px;
    height:auto;
    margin:10px auto;
}

.rotukirja-meriitit{
    font-family:"Arapey", serif;
    text-transform:uppercase;
    letter-spacing:3px;
}

.meriitti-item{
    color:#8b5060;
}

.meriitti-ero{
    color:#cfcfcf;
    margin:0 12px;
}

.rotukirja-nuoli{
    grid-column:3;
    text-align:center;
    font-size:28px;
    color:#872341;
}
.rotukirja-eikuvaa{
    width:210px;
    height:150px;
    background:rgba(135,35,65,.04);
}

/* ==================================================
   KUUNOKAN ESITTELYSIVUN RAKENNUSPALIKAT
   ================================================== */

.esittely-pieniotsikko {
	display: block;
	margin-bottom: 12px;
	color: rgba(135,35,65,.55);
	font-family: "Arapey", serif;
	font-size: 14px;
	letter-spacing: 4px;
	text-transform: uppercase;
}


/* TEKSTI + KUVA */

.esittely-kaksipalsta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 70px;
	align-items: center;
	width: 800px;
	margin: 70px auto 100px auto;
}

.esittely-kaksipalsta h2,
.esittely-faktapari h2,
.esittely-karttaosio h2,
.esittely-pohjapiirros h2,
.esittely-tiimi > h2,
.esittely-kylannosto h2 {
	margin: 0 0 25px 0;
	text-align: left;
	font-size: 28px;
	letter-spacing: 4px;
}

.esittely-teksti p,
.esittely-karttateksti p,
.esittely-pohjateksti p,
.esittely-kylateksti > p {
	width: auto;
	margin: 18px 0;
}

.esittely-kuva img {
	display: block;
	width: 100%;
	height: 380px;
	object-fit: cover;
	opacity: .88;
}


/* LEVEÄ KUVAKAISTA */

.esittely-kuvakaista {
	width: 100%;
	margin: 110px 0;
}

.esittely-kuvakaista img {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
	opacity: .85;
}

.esittely-kuvakaista figcaption {
	width: 760px;
	margin: 18px auto 0 auto;
	color: rgba(81,81,81,.55);
	font-family: "Arapey", serif;
	font-size: 12px;
	letter-spacing: 2px;
	text-align: center;
}


/* ALUEKARTTA */

.esittely-karttaosio {
	display: grid;
	grid-template-columns: 1.15fr .70fr;
	gap: 40px;
	align-items: center;
	width: 800px;
	margin: 110px auto;
}

.esittely-karttakuva img {
	display: block;
	width: 100%;
	max-height: 580px;
	object-fit: contain;
}

.esittely-karttaselite {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px 20px;
	margin: 35px 0 0 0;
	padding: 0;
	list-style: none;
}

.esittely-karttaselite li {
	line-height: 20px;
}

.esittely-karttaselite b {
	display: inline-block;
	font-size: 12px;
	width: 18px;
	color: #872341;
	font-family: "Arapey", serif;
}


/* POHJAPIIRROS */

.esittely-pohjapiirros {
	display: grid;
	grid-template-columns: .7fr 1.15fr;
	gap: 40px;
	align-items: center;
	width: 800px;
	margin: 120px auto;
}

.esittely-pohjakuva img {
	display: block;
	width: 100%;
	max-height: 480px;
	object-fit: contain;
	opacity: .78;
}

.esittely-fasiliteetit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 25px;
	margin-top: 30px;
}

.esittely-fasiliteetit span {
	padding: 11px 0;
	border-bottom: 1px solid rgba(113,90,90,.11);
	color: rgba(81,81,81,.75);
}


/* HENKILÖT */

.esittely-tiimi {
	width: 800px;
	margin: 40px auto;
	text-align: center;
}

.esittely-tiimi > .esittely-pieniotsikko {
	text-align: center;
}

.esittely-tiimi > h2 {
	text-align: center;
}

.esittely-henkilolista {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-top: 55px;
}

.esittely-henkilo {
	text-align: left;
	border-top: 1px solid rgba(135,35,65,.15);
	padding-top: 18px;
}

.esittely-henkilo img {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
	opacity: .88;
}

.esittely-henkilo h3 {
	position: static;
	margin: 22px 0 5px 0;
	padding: 0;
	font-family: "Elsie", serif;
	font-size: 18px;
	letter-spacing: 3px;
	line-height: 25px; 
	text-align: left;
	text-shadow: none;
}

.esittely-henkilo h3:after {
	display: none;
}

.esittely-henkilo p {
	width: auto;
	margin: 8px 0;
	text-align: left;
	line-height: 20px;
}

.esittely-rooli {
	color: rgba(135,35,65,.65);
	font-family: "Arapey", serif;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.esittely-lempihevonen {
	font-size: 10px;
	color: rgba(81,81,81,.60);
}

.esittely-henkilo blockquote {
	margin: 22px 0 0 0;
	font-family: "Arapey", serif;
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 24px;
	color: rgba(81,81,81,.70);
}


/* RUUKINVALKAMA-NOSTO */

.esittely-kylannosto {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	align-items: stretch;
	width: 100%;
	margin: 120px 0 30px 0;
	background: rgba(135,35,65,.035);
}

.esittely-kylakuva img {
	display: block;
	width: 100%;
	height: 430px;
	object-fit: cover;
	opacity: .86;
}

.esittely-kylateksti {
	padding: 65px 65px;
}

.esittely-kylasitaatti {
	margin-top: 40px !important;
	font-family: "Arapey", serif;
	font-size: 17px;
	font-style: italic;
	letter-spacing: 2px;
	color: rgba(135,35,65,.55);
}


/* nostot */

.kuunokka-tiesitko {
    position: relative;
    box-sizing: border-box;
    width: 175px;
    min-height: 0;
    margin: 20px 70px;
    padding: 35px 20px 22px;
    border: 1px solid rgba(121, 107, 107, 0.15);
    border-radius: 3px;
    background: rgba(244, 238, 229, 0.48);
    text-align: center;
}

.kuunokka-tiesitko-lehti {
    position: absolute;
    top: -30px;
    left: -15px;
    width: 45px;
    height: auto;
    opacity: 0.38;
    transform: rotate(20deg);
    pointer-events: none;
}

.kuunokka-tiesitko h4 {
    margin: 5px 0 16px;
    font-family: "Elsie", serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 3px;
    color: rgba(93, 69, 69, 0.8);
}

.kuunokka-tiesitko p {
    width: auto;
    margin: 0;
    font-family: "Arapey", serif;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1px;
    text-align: center;
    color: rgba(81, 81, 81, 0.82);
}


/* sitaattinosto */

.sitaatti {
    position: relative;
    box-sizing: border-box;
    width: 800px;
    margin: 25px auto;
    padding: 17px 50px 30px 25px;
    text-align: center;
}

.sitaatti:after {
    content: "";
    display: block;
    width: 350px;
    height: 1px;
    margin: 14px auto -40px;
    background: rgba(121, 107, 107, 0.13);
}

.sitaatti blockquote {
    margin: 0;
    font-family: "Arapey", cursive;
    font-size: 15px;
    line-height: 28px;
    letter-spacing: 1px;
    color: rgba(93, 69, 69, 0.66);
}

.sitaatti figcaption {
    margin-top: 8px;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(93, 69, 69, 0.72);
}

.sitaatti-lehti {
    position: absolute;
    right: 40px;
    bottom: -25px;
    width: 70px;
    height: auto;
    opacity: 0.3;
	transform: rotate(15deg) scaleX(-1);
    pointer-events: none;
}


/* sijoitteluvaihtoehdot */

.kuunokka-tiesitko.vasen {
    float: left;
    margin: 15px 35px 15px 170px;
}

.kuunokka-tiesitko.oikea {
    float: right;
    margin: 15px 170px 10px 35px;
}
