@import url('https://fonts.googleapis.com/css2?family=Macondo&family=League+Spartan&family=Syne+Mono&display=swap');
@import url("fonts/font-awesome.min.css");
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

body {
	background: url('img/ptausta.jpg') no-repeat fixed;
	background-size: cover;
	color: #1a1a1a;
	font-size: 1.1em;
	line-height: 1.2;
    font-family: 'League Spartan', Sans-Serif;
	margin: 0 1em 1em 1em;
}

#all {
	margin: 0 auto;
	max-width: 1300px;
	min-width: 750px;
}

#header {
	position: fixed;
	top: 0;
}

#menu {
	height: 40px;
	vertical-align: middle;
	text-align: right;
	padding-top: 0.2em;
	padding-right: 1.1em;
	border-top: 2px solid #2e4d35;
	border-left: 2px solid #2e4d35;
	border-right: 2px solid #2e4d35;
	background: rgb(225 228 225 / 0.6);
}

#menu a {
    font-family: 'Macondo', cursive;
	font-size: 1.6em;
	margin: 0 1em;
	text-shadow: 1px 1px #f5e8c8;
}

#menu a {
	color: #2e4d35 !important;
	text-decoration: none;
	border-bottom: 0;
}

#menu a:hover {
	color: #7bb17b !important;
	text-shadow: 1px 1px #2e4d35;
	border-bottom: 0;
}

#content {
	background: rgb(225 228 225 / 0.8);
	border-left: 2px solid #2e4d35;
	border-right: 2px solid #2e4d35;
	padding: 1.5em;
	line-height: 1.3;
}

footer {
	padding: 0.5em 0 0.3em 0;
	border: 2px solid #2e4d35;
	border-top: none;
	text-align: center;
	background: rgb(255 225 239 / 0.5);
	vertical-align: middle;
}

h1 {
    font-family: 'Macondo', cursive;
	font-size: 2.9em;
	text-align: right;
	color: #2e4d35;
	text-shadow: 2px 2px #f5e8c8;
}

h1 span {
	font-size: 0.7em;
	padding-left: 0.5em;
}

h1 a {
	text-decoration: none !important;
	border-bottom: 0;
}

h1 a:hover {
	color: #7bb17b;
	text-shadow: 2px 2px #2e4d35;
}

h2, h3, h5 {
    font-family: 'Syne Mono', monospace;
	color: #2e4d35;
	text-shadow: 2px 2px #f5e8c8;
}

h3 {
	text-align: center;
}

h3 span {
	font-size: 0.8em;
	padding-left: 2em;
	text-shadow: none;
	font-weight: normal;
}

h3 span a {
	border-bottom: 0;
}

h4, th {
	font-size: 1.2em;
    font-family: 'Macondo', cursive;
	color: #2e4d35;
	font-weight: normal;
	text-shadow: none;
	text-align: center;
}

h4 a {
	color: #2e4d35;
	text-decoration: none !important;
	border-bottom: 0 !important;
}

h4 a:hover {
	color: #2e4d35;
	text-decoration: none !important;
	border-bottom: 0 !important;
}

h4 span {
	padding-left: 1.2em;
	font-weight: normal;
	font-size: 0.7em;
	color: #2e4d35;
    font-family: 'League Spartan', Sans-Serif;
}

th {
	background: rgb(123 177 123 / 0.5);
	padding: 0.5em 1em;
}

h5 {
	color: #2e4d35;
	font-weight: normal;
	text-shadow: none;
	margin: 0;
}

h5 a {
	text-decoration: none;
}

h5 span {
	padding: 0.3em;
}

a {
	color: #2e4d35;
	text-decoration: none;
	border-bottom: 1px dotted;
}

a:hover {
	color: #2e4d35;
	border-bottom: 1px solid #2e4d35;
}

a:visited {
	color: #2e4d35;
}

p {
}

table {
	border-collapse: collapse;
}

td {
	padding: 0.5em;
	border: 1px solid #2e4d35;
}

.noshow, .noshow2 {
	display: none;
}

.material-icons {
	padding-top: 0.3em;
}

.oikea {
	float: right;
}

.vasen {
	float: left;
}

.clear {
	clear: both;
}

.center {
	text-align: center;
}

.left {
	text-align: left;
}

.right {
	text-align: right;
}

.pre {
	white-space: pre;
}

.pre span {
	padding: 0 0.3em;
}

.pic1 {
	height: 200px;
	clear: left;
	margin-top: 0.4em;
	margin-right: 1.4em;
	border-radius: 50%;
}

.pic1:hover {
	border-color: #f5e8c8;
	filter: none;
}

.dod {
	filter: grayscale(1);
}

.pic2 {
	margin-right: 0.5em;
	margin-bottom: 1em;
}

img {
	border: 4px double #1a1a1a;
}

#pyoreat, #muutasukkaat, #henkilokunta {
	text-align: center;
}

#pyoreat img {
	margin: 0 0.5em;
	border-radius: 50%;
}

#pyoreat a, #muutasukkaat a, #henkilokunta a {
	border-bottom: none;
}

#henkilokunta img {
	margin: 0 0.6em;
	border-radius: 30%;
}

#muutasukkaat img {
	margin: 0 1em;
	border-radius: 25%;
}

#heppalista {
	width: 100%;
}

#heppalista h5 a {
    font-weight: bold;
	color: #2e4d35 !important;
}

#heppalista td {
	width: 49%;
	border: none;
}

#heppalista img {
	border-radius: 50%;
	height: 160px;
	margin-right: 0.5em;
}

#heppalista img:hover {
	border-color: #f5e8c8;
}

#heppalista div {
	font-size: 0.8em;
	clear: both;
	text-align: left;
}

.varillinen {
	margin: 1em auto;
	min-width: 530px;
}

.varillinen tr:nth-child(2n + 1) {
	background: rgb(245 232 200 / 0.5);
}

.varillinen tr:nth-child(2n + 2) {
	background: rgb(123 177 123 / 0.5);
}

.varillinen h5 {
	font-weight: bold;
	color: #2e4d35;
	text-shadow: 1px 1px #ECCCD6;
}

#galleria {
	text-align: center;
	margin: 1em auto;
}

#galleria img {
	border: 4px double #2e4d35;
	margin-right: 0.5em;
	
}

#galleria img:hover {
	border: 4px double #f5e8c8;
}

#galleria a {
	border-bottom: none;
}

.pitkateksti {
	background: rgb(225 228 225 / 0.5);
	padding: 0 1em;
	border: 4px double #2e4d35;
	margin-bottom: 1em;
	-webkit-border-radius: 25px;
	-moz-border-radius: 25px;
	border-radius: 25px;
}

.tavarat {
	text-align: center;
}

.tavarat a {
	border-bottom: none;
}

.tavarat img {
	max-height: 109px;
	margin: 0 0.5em;
	border: none;
}

#padding {
	clear: both;
	padding-top: 1.5em;
}

.sukupuu {
	width: 100%;
	font-size: 1em;
}

.sukupuu td, .sukupuu a {
	color: #000 !important;
}

.sukupuu td {
	width: 33%;
	padding: 0.8em;
	line-height: 1.7;
	background: rgb(123 177 123 / 0.3);
}

.sukupuu th {
	font-size: 1.1em;
    font-family: 'League Spartan', Sans-Serif;
}

.ema {
	background: rgb(245 232 200 / 0.3) !important;
	
}

.reunus td {
	border: 1px solid #2e4d35;
}

#varsat h4 {
	font-weight: bold;
	text-align: left;
	color: #2e4d35;
	margin: 0.5em;
}

#varsat td {
	border: none;
	padding: 0.3em;
	font-size: 1em;
}

.teksti {
	background: rgb(123 177 123 / 0.5);
	padding: 0.6em 1.2em 0em;
	border: 4px double #2e4d35;
	margin-bottom: 1em;
}

.teksti h4 {
	margin: 0.3em;
}

.teksti h4 a {
	border-bottom: 1px dashed !important;
}

.teksti h4 a:hover {
	border-bottom: 1px solid !important;
}

.kakkosvari {
	background: rgb(225 228 225 / 0.5);
}
	

.kisat td {
	vertical-align: top;
}

.kuvav {
	float: left;
	border: 4px double #2e4d35;
	margin-right: 0.6em;
}

.varitonvasen {
	float: left;
	margin-right: 0.6em;
	border: none;
}

.kuvao {
	float: right;
	border: 4px double #2e4d35;
	margin-left: 0.6em;
}

.varitonoikea {
	float: right;
	margin-left: 0.6em;
	border: none;
}

.ruokinta {
	padding-left: 3em;
	margin-bottom: 1em;
}

.ruokinta img {
	max-height: 130px;
	border: none;
}

.palkinnot {
	text-align: left;
}

.palkinnot a {
	border-bottom: none !important;
}

.palkinnot img {
	max-height: 200px;
}

#porrastetut {
	margin: 1em auto;
}
#porrastetut td {
	border: none;
}

.kisa-progress {
	float: left;
	display: flex;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: conic-gradient(#2e4d35 var(--progress), #EEC8DC 0deg);
	font-size: 0;
}

.kisa-progress::after {
	content: attr(data-progress) '%';
	display: flex;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	margin: 10px;
	border-radius: 50%;
	background: #FBF0F5;
	font-size: 1rem;
	text-align: center;
	color: #2e4d35;
}

.kisa-taso {
	float: left;
	text-align: center;
	line-height: 2;
	width: 100px;
	padding: 0.8em 0;
	border: 4px double #2e4d35;
	margin-left: 2em;
	background-color: #FBF0F5;
}

.kisa-pisteet {
	float: left;
	line-height: 1.5;
	padding: 0.5em 0.8em 0.6em 0.8em;
	border: 4px double #2e4d35;
	margin-left: 2em;
	background-color: #FBF0F5;
}

.kisa-pisteet-erj {
	float: left;
	padding: 0.2em 0.8em;
	line-height: 1.3;
	border: 4px double #2e4d35;
	margin-left: 2em;
	background-color: #FBF0F5;
}

.kisa-pisteet-kerj {
	float: left;
	padding: 0.4em 2.39em 0.2em 0.8em;
	line-height: 1;
	border: 4px double #2e4d35;
	margin-left: 2em;
	background-color: #FBF0F5;
}

.paikky {
	line-height: 1.7;
	font-size: 0.9em;
}


.linkkinen {
	margin: 1em;
	padding: 0.9em;
	background: rgb(245 232 200);
	color: #2e4d35;
	border: double #2e4d35;
	font-size: 1em;
	text-align: center;
	text-decoration: none;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	border-radius: 20px;
}

.linkkinen a:hover {
	opacity: 0.8;
}

.kirjalista {
	opacity: 0.6;
}
.kirjalista.active {
	opacity: 1;
}



@media screen and (max-width: 1200px) {
	#galleria img {
		height: 85px;
	}
	
	.hide {
		display: none;
	}
	
	.noshow2 {
		display: inline;
	}

}

@media screen and (max-width: 980px) {

#pyoreat img {
	height: 100px;
}
#henkilokunta img {
	height: 90px;
	margin: 0.3em;
}

}


@media screen and (max-width: 950px) {	
	#heppalista {
		font-size: 0.9em;
	}
	#heppalista img {
		height: 110px;
	}
	
	
	.varusteet img {
		max-height: 80px;
	}

}

@media screen and (max-width: 850px) {
	h1 {
		font-size: 2.6em;
	}
	
	.pieni {
		font-size: 0.95em;
	}
	
}

.rmp-progress {
	height: 20px;
	position: relative;
	background: rgb(228,184,201,0.4);
	-moz-border-radius: 25px;
	-webkit-border-radius: 25px;
	border-radius: 25px;
	box-sizing: content-box;
	border: 1px solid #2e4d35;
	margin-bottom: 10px;
}

.rmp-progress > div {
	display: block;
	height: 100%;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
	background-color: #28a745;
	position: relative;
	overflow: hidden;
	text-align: center;
	line-height: 1.1;
}

.rmp-progress > div > span {
	color: #fff;
	font-size: 12px;
	text-align: center;
}

.rmp-green > div {
	background-color: #28a745;
}

.rmp-blue > div {
	background-color: #17a2b8;
}

.rmp-orange > div {
	background-color: #ffc107;
}

.rmp-red > div {
	background-color: #dc3545;
}

.rmp-nolla > div {
	background-color: rgba(192, 192, 192, 0);
}
.rmp-nolla > div > span {
	color: #000
}