@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Protest+Revolution&display=swap');

html {
	background: url(t2.jpg) no-repeat;
	background-size: cover; 
	background-attachment: fixed; 
	letter-spacing: 1px;
	font-family: "Open Sans", sans-serif;
	font-size: 12px; 
	color: #4a4a4a; 
	text-align: justify;
	line-height: 22px;
}

body {
	margin: 0;
	background-color: rgb(58 77 58 / 50%); 
	min-height: 100%; 
	width: 100%; 
	position: absolute; 
}

header {
	margin: 0px auto;
	width: 900px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.otsikko {
header: 30px auto;
margin: 0px auto;
}

h1 {
	font-family: "Protest Revolution", serif;
	text-transform: uppercase; 
	color: #2a382a; 
	font-size: 45px; 
	text-shadow: 0 0 3px #55595c; 
	font-weight: normal; 
	font-style: ; 
}

.navi {
	width: 905px;
	margin: 0px auto;
	display: flex;
	justify-content: space-between;
	background-color: #2a382a; 
	text-transform: uppercase; 
	font-weight: bold; 
	box-shadow: 0 0 4px #121212;
}

ul {
	padding-left: 0px; 
}

.navi li {
	list-style-type: none; 
	text-align: center; 
	padding: 10px; 
	width: 100%; 
}

.sisalto {
	background-color: #d5d5d5; 
	padding: 30px 0px;
	width: 900px; 
	margin: 0px auto;
	box-shadow: 0 0 8px #869a86 inset; 
}

footer {
	width: 905px;
	margin: 0 auto 50px auto;
	background-color: #2a382a;
	text-transform: uppercase;
	box-shadow: 0 0 4px #121212;
	padding: 10px 0px;
	text-align: center;
	color: #a6aaa3;
	font-size: 10px; 
	letter-spacing: 1.5px; 
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
}

footer img {
	opacity: 0.5; 
	height: 80px;
}


/* tekstit */

p {
	margin: 20px 80px; 
	}

p a { 
	text-decoration: none;
	color: #98a590;
	transition: 1s;
} 

p a:hover { 
	color: #587c42; 
	transition: 1s;
}
	
a {
	text-decoration: none;
	color: #dde4d9;  
	font-weight: bold; 
}

a:hover, .taulu2 a:hover {
	color: #587c42; 
	transition: 1s;
}

em {
	font-style: normal; 
	font-size: 10px; 
	color: rgb(43 61 43 / 50%); 
}

h2 {
	font-size: 25px; 
	text-transform: uppercase; 
	margin: 0px 80px 30px 80px; 
	color: #3a4d3a;
	text-align: center;
}

.nimi {
	margin: 0px 80px 80px 80px; 
}

h2:before {
	content: url(kuvat/logo3.png);
	opacity: 0.1; 
	display: block;  
	transform: scale(0.4);
	margin-bottom: -10px; 
}

h3 {
	font-size: 15px; 
	margin: 40px 100px; 
	text-transform: uppercase; 
	color: #a6aaa3;
}

/* sisältö */

.tieto, .taulu {
	width: 800px;
	margin: 60px auto;
	text-align: center; 
	border-top: 8px solid #7c8b7c; 
	border-bottom: 8px solid#7c8b7c; 
	background-color: #a6aaa3; 
}

.tieto td {
	width: 250px; 
}

.paakuva {
	height: 250px; 
	width: 250px; 
	border-radius: 50%; 
	margin: -50px 0px;
	background-color: #3a4d3a; 
	padding: 8px; 
	box-shadow: 0 0 5px #474b4d; 
}

.lippu {
	height: 15px;
	border-radius: 50%;
} 
}
.meriitit {
	font-weight: bold; 
	color: #637863; 
}

.suku, .kisat {
	margin: 20px auto; 
}

.suku td {
	padding: 10px; 
	text-align: left; 
}

.taulu2 {
	width: 750px; 
	margin: 0px auto 20px auto; 
	border-collapse: collapse; 
}

.taulu2 td {
	border-bottom: 3px double #dde4d9; 
	vertical-align: top; 
	padding: 10px; 
}

.taulu2 a {
	color: #98a590;
}

.kisat td {
	padding: 10px;
	text-align: left;
	vertical-align: top;
	line-height: 25px; 
}

.meriitit td {
	padding: 10px;
	text-align: center;
	vertical-align: top;
	line-height: 25px; 
	border: 0px auto;

}

.nly {
	margin: 20px auto; 
}

.nly td {
	width: 50%;
}

.nly tr:nth-child(1) {
	font-weight: bold; 
	color: #637863; 
}

.galleria {
	width: 800px;
	margin: 40px auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.galleria img {
	height: 150px; 
	margin: 10px; 
	background-color: #3a4d3a; 
	padding: 8px; 
	box-shadow: 0 0 5px #474b4d; 
	transition: 1s;
}

.rhla {
	height: 80px;
	margin: 0px;
	align: center; 
}


	/* listaus */

.trigger {
    color: #dde4d9;
	text-transform: uppercase; 
	background-color: #637863; 
	padding: 5px; 
	margin: 5px; 
	width: 240px; 
	text-align: center; 
}

.trigger:hover {
    color: #2a382a; 
    cursor: pointer;
	transition: 1s; 
}	

.valikko {
	width: 800px;
	margin: 20px auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

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

.listaus {
	display: flex;
	flex-wrap: wrap;
}

.heppa {
	margin: 15px 5px;
	text-align: center; 
	width: 255px; 
}

.heppa a {
		text-decoration: none;
	color: #98a590;
	transition: 1s;
}

.heppa a:hover { 
		color: #587c42; 
	transition: 1s;
}

h4 {
	text-transform: uppercase; 
	color: #7c8b7c; 
	margin: 10px 10px 5px 10px;
}

.heppa em {
	color: #55595c; 
}

.heppa img {
	height: 150px;
	width: 150px; 
	border-radius: 50%;
	background-color: #3a4d3a; 
	padding: 5px; 
	box-shadow: 0 0 5px #474b4d; 
}

.heppa a:hover {
	opacity: 0.7;
	transition: 1s;
}


*::before,
*::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

.container {
	width: 70%;
	margin-inline: auto;
	margin-block: 40px;
}

.flexbox {
	width: 800px;
	margin-block: 20px;
	margin-inline: auto;
	text-align: center;
	
	/* flexbox määrittelyt */
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-around; /* center | space-between määrittää sijainnin horisontaalisti  */
	align-items: center; /* start | end määrittää sijainnin vertikaalisti */
}

.column {
	padding: 10px;
}

.tieto-flex { /* esimerkki miten flexboxia voi muotoilla */
	border-top: 8px solid #7c8b7c; 
	border-bottom: 8px solid#7c8b7c; 
	background-color: #a6aaa3; 
}