@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Meddon&family=Mrs+Saint+Delafield&family=Ms+Madi&family=Qwitcher+Grypen:wght@400;700&display=swap');

html {
	background-image:
		radial-gradient(
			circle,
			rgba(255, 255, 255, 0.8) 0%,
			#f0eec2 85%,
			#f0eec2 98%
		),
		url(bg.jpg);

	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
	background-position: 0 0;

	letter-spacing: 0.04rem;
	color: #444552;
	line-height: 1.5rem;
	min-height: 100%;
}

body {
	margin: 0;
	min-width: 1000px;
	min-height: 100vh;
	background: transparent;
}

p {
	font-family: "Crimson Text", serif;
}

a {
	font-weight: bold; 
	text-decoration: none; 
	color: #be6057; 
}

em, .sijoitukset td:nth-child(5) {
	font-style: normal; 
	text-transform: uppercase; 
	font-size: 0.8rem;
	letter-spacing: 0.1rem;
	color: #586456ad; 
}

h1 {
	font-family: "Meddon";
	font-style: italic; 
	color: #ffffff; 
	text-shadow: 0 0 1px #6d8668; 
	font-size: 2.8rem;
}

h2 {
	font-style: italic; 
	font-size: 2.1rem;
	margin: 50px 100px;
	text-shadow: 0 0 2px #7e7f86; 
}

h2:first-letter {
	Font-family: "Meddon";
	color: #be6057; 
	font-size: 2.5rem;
	margin-right: 3px;
}

header {
	padding: 50px; 
	text-align: center; 
}

header img {
	width: 220px; 
	filter: sepia(30%);
	opacity: 0.7; 
}

main {
	width: 1000px; 
	margin: auto; 
	background-color: rgb(255 255 255); 
	display: flow-root;
}

.tieto-luonne-osio {
	display: flex; 
}

.tieto {
	margin: 40px 30px; 
}

.tieto p {
	text-align: center;
	margin: 30px auto;
	text-shadow: 0 0 1px #6d8668; 
}

.tieto img {
	width: 250px; 
	filter: sepia(60%);
	opacity: 0.8; 
}

.meriitti-rivi {
	margin-top: -40px; 
	margin-left: 170px; 
}

.meriitti {
	background-color: #be6057;
	padding: 3px 8px; 
	font-size: 0.8rem;
	letter-spacing: 0.1rem;
	border-radius: 3px;
	margin: 0 3px; 
	color: #f0eec2eb; 
}

/* LUONNE */

.luonne {
    position: relative;
    margin: 40px 30px;
    padding: 20px;
    background: #f6f5d7;
    border: 1px solid #eee;
}

.luonne:before {
	position: absolute; 
	content: "✦";
	top: -12px; 
	right: 50%; 
	font-size: 1.2rem;
	color: #be6057; 
}

.luonne:after, .suku:after, .sijoitukset:after {
	position: absolute; 
	content: "✦";
	bottom: -14px; 
	right: 50%; 
	font-size: 1.2rem;
	color: #be6057; 
}


/* GALLERIA */

.galleria {
	margin: 50px auto;
	width: 900px;
	display: flex;
	justify-content: center;
}

.galleria img {
	height: 200px; 
	margin: 5px 10px;
	border-radius: 3px; 
	padding: 5px; 
	border: 1px solid #eeecc7;
	background-color: #f6f5d7;
}

/* SUKU */

.suku {
    position: relative;
    margin: 40px 30px;
}

.suku table {
    width: 100%;
    border-collapse: collapse;
    background: #f6f5d7;
	border: 1px solid #eee;
}

.suku th {
    background: #be6057;
	border-radius: 5px 5px 0px 0px;
    color: #f0eec2;
    text-transform: uppercase;
    text-align: left;
}

.suku td, .suku th {
	padding: 6px 10px; 
}

.suku td {
	position: relative;
	border-bottom: 2px solid #eeecc3;
}

.td1::before, .td2:before {
	content: ""; 
	position: absolute;    
	inset: 10px;
	background-color: #eeecc3;   
	-webkit-mask: url("sulkeet.svg") center / contain no-repeat;    
	mask: url("sulkeet.svg") center / contain no-repeat;  
	mask-position: right; 
	z-index: 0;    
	pointer-events: none;
}

.td1 > *, .td2 > * {
	position: relative;
	z-index: 1;
}

.selite {
	text-transform: uppercase; 
	font-size: 0.8rem; 
	letter-spacing: 0.2rem;
	font-weight: bold; 
}

.suku em:before {
	content: "✦";
	color: #be6057; 
	margin-right: 5px; 
}

.varsalista table {
	margin: 20px auto 80px auto; 
	width: 80%;
}

.varsalista table td {
	border-bottom: 1px solid #eee; 
	padding: 5px; 
}


/* KILPAILUT */

.kisat {
    margin: 40px 30px;
}

.sijoitukset {
	position: relative; 
    width: 100%;
    border-collapse: collapse;
    background: #f6f5d7;
	    border: 1px solid #eee;
}

.sijoitukset th {
    background: #be6057;
    color: #f0eec2;
    text-transform: uppercase;
    text-align: left;
	border-radius: 5px 5px 0px 0px;
}

.sijoitukset td {
	border-bottom: 2px solid #eeecc3;
}

.sijoitukset td, .sijoitukset th {
	padding: 6px 10px; 
}