@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Radley:ital@0;1&display=swap');

body {
    background: #FAFAFA url(bg1.png) fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 0;
    margin: 0;
}
b {
    font-weight: 600;
}
a, a:visited {
    color: #606F77;
    text-decoration: none;
}
a:hover, a:active {
    color: #95A3AA;
	text-decoration: underline;
}
#wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
nav {
    width: 100%;
    margin: 0;
    padding: 0;
	background: #d6dbdc;
    text-align: center;
    border-top: 8px solid #c8cbcc;
    border-radius: 12px 12px 0 0;
}
nav ul {
    list-style: none;
    margin: 0 auto;
	text-transform: lowercase;
	font-style: italic;
    font-family: "Radley", serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
}
nav li {
    display: inline-block;
}
nav li a, nav li a:visited {
    display: block;
    padding: 15px 30px;
    color: #97a4a7;
	text-decoration: none;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
	-webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -o-transition: all 00.3s 5s ease-out; transition: all 0.3s ease-out;
}
nav li a:hover, nav li a:active {
    color: #fff;
	text-decoration: none;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
	-webkit-transition: all 0.3s ease-in; -moz-transition: all 0.3s ease-in; -o-transition: all 0.3s ease-in; transition: all 0.3s ease-in;
}
nav li a::before, nav li a::after {
	display: inline-block;
	opacity: 0;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
	-moz-transition: -moz-transform 0.3s, opacity 0.2s;
    transition: transform 0.3s, opacity 0.2s;
}
nav li a::before  {
	margin-right: 10px;
	color: rgba(96, 111, 119, 0.4);
	content: '\276F';
	font-style: normal;
	-webkit-transform: translateX(20px);
	-moz-transform: translateX(20px);
	transform: translateX(20px);
}
nav li a::after {
	margin-left: 10px;
	color: rgba(96, 111, 119, 0.4);
	content: '\276E';
	font-style: normal;
	-webkit-transform: translateX(-20px);
	-moz-transform: translateX(-20px);
	transform: translateX(-20px);
}
nav a:hover::before,
nav a:hover::after,
nav a:focus::before,
nav a:focus::after {
	opacity: 1;
	-webkit-transform: translateX(0px);
	-moz-transform: translateX(0px);
	transform: translateX(0px);
}
header {
    width: 100%;
    height: 190px;
    display: flow-root;
    margin: 0 auto;
    background: url(kuva1.png) center center no-repeat;
    text-align: center;
}
header span {
    display: block;
    margin: 70px auto 0 auto;
    text-align: center;
    font-family: "Radley", serif;
    font-size: 50px;
    font-weight: 400;
    color: #606F77;
    font-style: italic;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
	letter-spacing: 2px;
}
header i {
    display: block;
    margin: 0 auto 0 auto;
    text-align: center;
    font-family: "Radley", serif;
    font-size: 11px;
    font-weight: 400;
    color: #96a1a7;
    font-style: italic;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
	letter-spacing: 3px;
}
.sisalto {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 60px 50px 60px;
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
    color: #606F77;
    font-size: 13px;
    line-height: 1.7em;
    background: #eeeeee;
    border-bottom: 8px solid #c8cbcc;
    border-radius: 0 0 12px 12px;
}
h1 {
    font-family: "Radley", serif;
    color: #606F77;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0;
	text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
	padding: 0 0 8px 0;
}
h2 {
    font-family: "Radley", serif;
    font-style: italic;
    color: #606F77;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    border-top: 2px solid #d6dbdc;
    border-bottom: 2px solid #d6dbdc;
    margin: 30px 0 10px 0;
    padding: 7px 20px;
    border-radius: 10px;
}
footer {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 100px auto;
    font-family: "Radley", serif;
    text-align: center;
    color: #a3adb0;
    line-height: 1.5em;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    display: flex;
}
.footbox {
    width: 33%;
}
.sisalto ul {
    list-style: none;
    padding: 0 0 0 20px;
}
.sisalto ul li:before {
    content: '\2714';
    padding: 0 14px 0 0;
    color: rgba(96, 111, 119, 0.4);
    font-weight: 300;
}
.koristepaa {
    display: block;
    float: right;
    margin: -10px 0 0 30px;
    opacity: 0.9;
    height: 300px;
}
.loota {
    width: 90%;
    margin: 35px auto 0 auto;
    padding: 15px 30px;
    border-radius: 10px;
    background: rgba(196, 204, 208, 0.2);
}
h3 {
    display: block;
    margin: -35px 0 0 250px;
    font-family: "Radley", serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}
h4 {
    margin: 15px 0 -10px 0;
    color: rgba(96, 111, 119, 0.8);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
}
h4::before {
    content: '\276F';
    font-weight: 400;
    font-size: 12px;
    padding: 0 10px 0 0;
    color: #a3b5be;
    text-shadow: 0 0 2px rgba(96, 111, 119, 0.3);
}
.kehyskuva {
    height: 130px;
    border-radius: 10px;
    margin: 10px 6px;
    filter: grayscale(50%);
    opacity: 0.85;
    box-shadow: 0 0 8px rgba(96, 111, 119, 0.4);
	-webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -o-transition: all 00.3s 5s ease-out; transition: all 0.3s ease-out;
}
.kehyskuva:hover {
    filter: grayscale(0%);
    opacity: 1.0;
	-webkit-transition: all 0.3s ease-in; -moz-transition: all 0.3s ease-in; -o-transition: all 0.3s ease-in; transition: all 0.3s ease-in;
}

/* ======== HEPAN SIVUT ======== */

.ponikuva {
    display: block;
    text-align: center;
    margin: 15px auto 20px auto;
}
.ponikuva img {
    height: 250px;
    margin: 0 6px;
    filter: grayscale(50%);
    opacity: 0.85;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(96, 111, 119, 0.4);
	-webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -o-transition: all 00.3s 5s ease-out; transition: all 0.3s ease-out;
}
.ponikuva img:hover {
    filter: grayscale(0%);
    opacity: 1.0;
	-webkit-transition: all 0.3s ease-in; -moz-transition: all 0.3s ease-in; -o-transition: all 0.3s ease-in; transition: all 0.3s ease-in;
}
.perustiedot {
    width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 5px;
}
.perustiedot th {
    width: 15%;
    border-top: 2px solid rgba(196, 204, 208, 0.4);
    border-bottom: 2px solid rgba(196, 204, 208, 0.4);
    border-radius: 6px;
    text-align: right;
    font-family: "Radley", serif;
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
    padding: 2px 10px;
    color: #839199;
}
.perustiedot td {
    width: 35%;
    padding: 2px 6px;
}
#palkintorivi {
    display: flex;
    justify-content: center;
    margin: 5px 0 20px 0;
}
#palkintorivi .meriitti {
    background: rgba(196, 204, 208, 0.2);
    border-radius: 10px;
    margin: 20px 5px 5px 5px;
    padding: 10px 6px;
    text-align: center;
    width: 95px;
	line-height: 12px;
    font-family: "Radley", serif;
    font-style: italic;
    font-size: 10px;
    color: #95A3AA;
}
#palkintorivi .meriitti b {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    color: #606F77;
}
#palkintorivi .meriitti a {
	text-decoration: none;
    color: #95A3AA;
}
.suku {
    width: 100%;
    border-collapse: collapse;
}
.suku td {
    padding: 6px 10px;
    border-bottom: 1px dashed #dadbdb;
    text-align: right;
}
.suku td.ala {
    border-bottom: none;
}
.suku b {
    font-family: "Radley", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
}
.stieto {
    display: block;
    font-size: 10px;
    color: #9d99a5;
    line-height: 1.4em;
}
.stieto b {
    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
}
.ikur {
    background: url(sukukuva1.png) no-repeat right center;
    padding: 6px 50px 6px 10px !important;
}
.pkur {
    background: url(sukukuva2.png) no-repeat right center;
    padding: 6px 30px 6px 10px !important;
}
.evm {
    display: inline-block;
    margin: 0 0 0 5px;
    padding: 2px 5px;
    border-top: 1px solid rgba(196, 204, 208, 0.5);
    border-bottom: 1px solid rgba(196, 204, 208, 0.5);
    line-height: 1.5em;
    font-family: "Radley", serif;
    font-style: italic;
	font-size: 10px;
	letter-spacing: 1px;
    border-radius: 3px;
	vertical-align: middle;
	color: rgba(96, 111, 119, 0.5);
}
.varsat {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 20px 0;
    font-size: 12px;
}
.varsat tr {
    border-bottom: 1px solid #dfe0e1;
}
.varsat tr:last-child {
    border-bottom: none;
}
.varsat td {
    padding: 5px 10px;
}
.varsamerit {
    padding: 0 0 0 15px;
}
.kisatulokset {
    display: table;
    width: 100%;
    margin: 20px 0 0 0;
}
.kisat1 {
    display: inline-table;
    border-collapse: collapse;
    margin-right: 10px;
    width: 48%;
}
.kisat2 {
    display: inline-table;
    border-collapse: collapse;
    margin-left: 10px;
    width: 49%;
}
.kisat1 td, .kisat2 td {
    padding: 8px 12px;
    vertical-align: top;
}
.kisat1 th, .kisat2 th {
    padding: 6px 14px;
    text-align: left;
    font-family: "Radley", serif;
    font-weight: 400;
    text-transform: uppercase;
    background: rgba(196, 204, 208, 0.2);
    border-radius: 10px;
    letter-spacing: 1px;
}
.ponigalleria {
    display: block;
    margin: 20px auto;
}
.ponigalleria img {
    height: 150px;
    margin: 0 6px;
    filter: grayscale(50%);
    opacity: 0.85;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(96, 111, 119, 0.4);
	-webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -o-transition: all 00.3s 5s ease-out; transition: all 0.3s ease-out;
}
.ponigalleria img:hover {
    filter: grayscale(0%);
    opacity: 1.0;
	-webkit-transition: all 0.3s ease-in; -moz-transition: all 0.3s ease-in; -o-transition: all 0.3s ease-in; transition: all 0.3s ease-in;
}
.op {
    padding: 0 0 0 10px;
    color: #839199;
}
.op::before {
    content: '\276C';
    padding: 0 6px 0 0;
    color: rgba(196, 204, 208, 0.5);
    font-size: 19px;
    vertical-align: middle;
}
.op::after {
    content: '\276D';
    padding: 0 0 0 6px;
    color: rgba(196, 204, 208, 0.5);
    font-size: 19px;
    vertical-align: middle;
}


/* =============== HEVOSLISTAUS =============== */

.hevoslista {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.hevoslista td {
    width: 25%;
    font-size: 11px;
    line-height: 1.2em;
    padding: 10px 10px 10px 0;
}
.hevoslista img {
    display: block;
    float: left;
    height: 50px;
    border-radius: 10px;
    border-left: 3px solid #b7bcbd;
    margin: 0 8px 0 0;
    filter: grayscale(50%);
    opacity: 0.85;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.15);
    font-size: 10px;
}
.hevoslista a {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    padding: 5px 0 0 0;
}
.hevoslista tr {
    border-bottom: 1px dashed #dadbdb;
}
.hevoslista tr:last-child {
    border-bottom: none;
}

/* =============== KASVATTILISTAUS =============== */

.kasvwrapper {
    overflow: auto;
    border-radius: 6px;
    border: 1px solid rgba(96, 111, 119, 0.1);
    margin: 15px 0 20px 0;
}
.kasvatit {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-style: hidden;
}
.kasvatit td {
    font-size: 11px;
    padding: 3px 6px;
}
.kasvatit th {
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    padding: 3px 6px;
    background: rgba(96, 111, 119, 0.25);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
}
.kasvatit tr {
    border-bottom: 1px solid rgba(96, 111, 119, 0.1);
}
.kasvatit tr:nth-child(even) {
    background: rgba(96, 111, 119, 0.05);
}
.kasvatit tr:last-child {
    border-bottom: none !important;
}
.asia {
    font-size: 11px !important;
    border-right: 1px solid rgba(96, 111, 119, 0.1);
}
.kasvatit b {
    font-size: 12px;
}

/* ======== TOOLTIP ======== */

.tooltip {
	color: inherit;
	cursor: help;
	display: inline-block;
	font-weight: normal;
	position: relative;
}

.tooltip .tooltiptext {
	background-color: #adb8bc;
	border-radius: 6px;
	bottom: 21px;
	color: #fff;
	left: 50%;
	margin-left: -60px;
	padding: 7px 10px;
	position: absolute;
	text-align: center;
	visibility: hidden;
	width: auto;
	max-width: 180px;
	min-width: 80px;
	z-index: 999;
	line-height: 1.1em;
	font-style: normal;
	font-size: 11px;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

.tooltip:hover .tooltiptext {
	visibility: visible;
}

.tooltiptext::after {
	border-width: 5px;
	border-style: solid;
	border-color: #adb8bc transparent transparent transparent;
	content: " ";
	left: 50%;
	margin-left: -5px;
	position: absolute;
	top: 100%;
}

/* ======== MAALAUS ======== */

::selection {
	background: #606f77; /* WebKit/Blink Browsers */
	color: #fff;
	text-shadow: none;
}
::-moz-selection {
	background: #606f77; /* Gecko Browsers */
	color: #fff;
	text-shadow: none;
}