@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Italianno&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');

.dod img {
	filter: grayscale(1);
}
.dod img:hover {
	filter: none;
}

body {
	background: url('img/meinwen-bg.jpg') no-repeat fixed;
	background-size: cover;
	color: #462F32;
	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: 1000px;
	min-width: 750px;
}

header {
	background: url('img/meinwen-banner.png') no-repeat;
	margin: auto;
	height: 336px;
}

#menu {
	padding-left: 2.4em;
	height: 36px;
	border-left: 3px solid #8A5E64;
	border-right: 3px solid #8A5E64;
	margin-top: 239px;
	background: rgb(255 225 239 / 0.4);
}

#content {
	background: rgb(255 225 239 / 0.7);
	border-left: 3px solid #8A5E64;
	border-right: 3px solid #8A5E64;
	padding: 0.3em 1.5em;
	line-height: 1.3;
}

footer {
	padding: 0.5em 0 0.3em 0;
	border: 3px solid #8A5E64;
	border-top: none;
	text-align: center;
	background: rgb(255 225 239 / 0.4);
	vertical-align: middle;
}

h1 {
    font-family: 'Dancing Script', cursive;
	font-size: 2.9em;
	text-align: right;
	color: #CC5A95;
	text-shadow: 2px 2px #EDE4E6;
	margin-top: 0.1em;
}

h1 span {
	font-size: 0.7em;
	padding-left: 0.5em;
}

h2, h3, h5 {
    font-family: 'Syne Mono', monospace;
	color: #CC5A95;
	text-shadow: 1px 1px #EDE4E6;
}

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 {
	font-size: 1.2em;
    font-family: 'Dancing Script', cursive;
	color: #462F32;
	font-weight: normal;
	text-shadow: none;
	text-align: center;
}

h4 a {
	color: #462F32;
	text-decoration: none !important;
	border-bottom: 0 !important;
}

h4 a:hover {
	color: #CC5A95;
	text-decoration: none !important;
	border-bottom: 0 !important;
}

h5 {
	color: #462F32;
	font-weight: normal;
	text-shadow: none;
	margin: 0;
}

h5 a {
	text-decoration: none;
}

h5 span {
	padding: 0.3em;
}

#menu ul {
	margin-top: 0;
}

#menu li {
	display: inline;
    font-family: 'Dancing Script', cursive;
	font-size: 1.7em;
	padding: 1em;
	text-shadow: 1px 1px #EDE4E6;
}

#menu li a {
	color: #462F32 !important;
	text-decoration: none;
	border-bottom: 0;
}

#menu li a:hover {
	color: #CC5A95 !important;
	text-shadow: 1px 1px #313915;
	border-bottom: 0;
}

a {
	color: #CC5A95;
	text-decoration: none;
	border-bottom: 1px dotted;
}

a:hover {
	color: #462F32;
	border-bottom: 1px solid #462F32;
}

a:visited {
	color: #462F32;
}

#active a {
	color: #CC5A95 !important;
}

p {
}

table {
	border-collapse: collapse;
}

td {
	padding: 0.5em;
	border: 1px solid #CC5A95;
}

.noshow, .noshow2 {
	display: none;
}

.material-icons {
	padding-top: 0.3em;
}

.oikea {
	float: right;
}

.vasen {
	float: left;
}

.nobborder, .nobborder:hover {
	border-bottom: 0;
}

.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 {
	border: 4px double #CC5A95;
	clear: left;
	margin-top: 0.4em;
	margin-right: 1.4em;
}

.pic2 {
	border: 4px double #CC5A95;
	margin-right: 0.5em;
	margin-bottom: 1em;
}

#ponilista {
	width: 100%;
}

#ponilista h5 a {
    font-weight: bold;
	color: #CC5A95 !important;
}

#ponilista td {
	width: 49%;
	border: none;
}

#ponilista .pic2 {
	border-radius: 50%;
	height: 160px;
}

#ponilista div {
	font-size: 0.8em;
	clear: both;
	text-align: right;
}

#varillinen {
	margin: 1em auto;
	min-width: 530px;
}

#varillinen tr:nth-child(2n + 1) {
	background: rgb(228 184 201 / 0.5);
}

#varillinen tr:nth-child(2n + 2) {
	background: rgb(236 204 214 / 0.5);
}

#varillinen h5 {
	font-weight: bold;
	color: #462F32;
	text-shadow: 1px 1px #ECCCD6;
}

#lyhyesti li {
	list-style-type: circle;
}

#galleria {
	text-align: center;
	margin: 1em auto;
}

#galleria img {
	border: 4px double #CC5A95;
	margin-right: 0.5em;
}

#galleria img:hover {
	border: 4px double #E4B8C5;
}

#galleria a {
	border-bottom: none;
}

.tavarat {
	text-align: center;
}

.tavarat a {
	border-bottom: none;
}

.tavarat img {
	max-height: 109px;
	margin: 0 0.5em;
}

.sukupuu {
	width: 100%;
	font-size: 0.9em;
}

.sukupuu td {
	width: 33%;
	padding: 0.4em;
	border: none;
}

.bracket {
	background: no-repeat url('img/meinwen-bracket2.png');
	background-position: 95% 50%;
	background-size: auto 65%;
}

.pitkasuku {
	background-size: auto 50%;
}

.reunus td {
	border: 1px solid #CC5A95;
}

#varsat h4 {
	font-weight: bold;
	text-align: left;
	color: #CC5A95;
	margin: 0.5em;
}

#varsat h4 span {
	padding-left: 1em;
	font-weight: normal;
	font-size: 0.8em;
	color: #462F32;
    font-family: 'League Spartan', Sans-Serif;
}

#varsat td {
	border: none;
	padding: 0.3em;
}

.varsatpalk td {
	vertical-align: top;
	height: 2.5em;
}


.teksti {
	background: rgb(236 204 214 / 0.5);
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	border-radius: 20px;
	padding: 0.5em;
	border: 3px double #CC5A95;
	margin-bottom: 1em;
}

.teksti h4 {
	margin: 0.3em;
}

.teksti h4 a {
	border-bottom: 2px dotted !important;
}

.teksti h4 a:hover {
	border-bottom: 1px solid !important;
}

.kisat td {
	vertical-align: top;
}

.kuvav {
	float: left;
	border: 4px double #CC5A95;
	margin-right: 0.5em;
}

.varitonvasen {
	float: left;
	margin-right: 0.5em;;
}

.kuvao {
	float: right;
	border: 4px double #CC5A95;
	margin-left: 0.5em;
}

.varitonoikea {
	float: right;
	margin-left: 0.5em;
}

.ruokinta {
	padding-left: 3em;
	margin-bottom: 1em;
}

.ruokinta img {
	max-height: 130px;
}

.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(#CC5A95 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: #CC5A95;
}

.kisa-taso {
	float: left;
	text-align: center;
	line-height: 2;
	width: 100px;
	padding: 0.8em 0;
	border: 4px double #CC5A95;
	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 #CC5A95;
	margin-left: 2em;
	background-color: #FBF0F5;
}

.kisa-pisteet-erj {
	float: left;
	padding: 0.2em 0.8em;
	line-height: 1.3;
	border: 4px double #CC5A95;
	margin-left: 2em;
	background-color: #FBF0F5;
}

.paikky {
	line-height: 1.7;
	font-size: 0.9em;
}

.palkinto {
	color: #AF3676;
}


@media screen and (max-width: 950px) {
	#galleria img {
		height: 85px;
	}

}


@media screen and (max-width: 900px) {	
	#ponilista {
		font-size: 0.9em;
	}
	#ponilista .pic2 {
		height: 110px;
	}
	.hide2 {
		display: none;
	}
	
	.noshow2 {
		display: inline;
	}
	
	.varusteet img {
		max-height: 80px;
	}

}

@media screen and (max-width: 850px) {
	h1 {
		font-size: 2.6em;
	}
	
	#menu {
	margin-top: 191px;
	}
	
	.noshow {
		display: inline;
	}
	
	.hide {
		display: none;
	}
	
	.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 #462F32;
	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
}