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

body {
    background: #E8E5DA;
    padding: 0;
    margin: 0;
}
a:link {
    color: #725256;
    text-decoration: none;
}
a:visited {
    color: #725256;
    text-decoration: none;
}
a:hover {
    color: #373c38;
    text-decoration: none;
}
a:active {
    color: #373c38;
    text-decoration: none;
}
.ylapalkki {
    width: 100%;
    height: 145px;
    margin: 0 auto;
    background: #1f2724;
    font-family: "Libre Caslon Condensed", serif;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1.4em;
    text-align: center;
    letter-spacing: 3px;
    color: #95968c;
    display: table;
}
.ylabox {
    width: 20%;
    display: table-cell;
    vertical-align: middle;
    background: url(mini.png) top center no-repeat;
    background-position: 50% 15%;
}
.ylabox b {
    display: block;
    margin: 55px 0 0 0;
    font-size: 36px;
    font-weight: 400;
    color: #e4dbd4;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    letter-spacing: 5px;
}
.ylabox span {
    display: inline-block;
    margin: 11px 0 0 0;
    font-size: 14px;
    color: #d7d0c2;
}
.ylabox span:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: #B18A5A;
    margin-right: 10px;
    vertical-align: middle;
}
.ylabox span:after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: #B18A5A;
    margin-left: 10px;
    vertical-align: middle;
}
.ylabox-vas {
    width: 40%;
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    padding: 15px 60px 0 0;
}
.ylabox-oik {
    width: 40%;
    display: table-cell;
    vertical-align: middle;
    text-align: left;
    padding: 15px 0 0 60px;
}
.ylapalkki img {
    padding: 25px 0;
    margin: -20px 0 0 0;
}
.ylapalkki a:link, .ylapalkki a:visited {
    color: #bab1a8;
    display: inline-block;
    padding: 0 0 6px 0;
    margin: 0 10px;
    transition: all 0.3s ease-in;
}
.ylapalkki a:hover, .ylapalkki a:active {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease-out;
}
.nyk_sivu {
    border-bottom: 2px solid #987f5f;
}
#ylakuva {
    background-color: #474f56;
    background-image: url(poniini.png), url(poni.png), url(tausta2.png);
    background-size: auto, auto, cover;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: 37% top, 62% top, center top;
    width: 100%;
    height: 350px;
    margin: 0 auto;
}
#tekstialue {
    background: #d9d5c9;
    width: 100%;
    margin: 0 auto;
}
.tekstit {
    margin: 0 auto;
    width: 60%;
    padding: 30px 0;
    font-family: "Open Sans", sans-serif;
    color: #4A4842;
    font-size: 13px;
    line-height: 1.7em;
}
.sivukuva {
    float: right;
    margin: -65px 0 0 50px;
}
footer {
    width: 100%;
    margin: 0 auto;
    padding: 80px 0 40px 0;
    background: #1f2724;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    text-transform: uppercase;
    line-height: 1.4em;
    text-align: center;
    letter-spacing: 2px;
    color: #95968c;
    display: flex;
}
footer a, footer a:hover, footer a:visited, footer a:active {
    color: #95968c;
}
.footbox {
    width: 33%;
}
.footbox-logo {
    width: 33%;
    background: url(mini.png) top no-repeat;
    background-size: 25px;
    margin: -25px 0 0 0;
    font-family: "Libre Caslon Condensed", serif;
}
.footbox-logo b {
    display: block;
    margin: 35px 0 0 0;
    font-weight: 400;
    font-size: 13px;
}
.footbox-logo span {
    display: inline-block;
}
.footpic {
    text-align: center;
    margin-top: 20px;
}
h1 {
    display: inline-block;
    font-family: "Libre Caslon Condensed", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: #303D35;
    font-size: 30px;
    font-weight: 400;
    font-style: normal;
    border-top: 2px solid #B18A5A;
    padding: 26px 0 0 0;
}
h2 {
    display: flex;
    align-items: center; /* Pitää tekstin ja viivan samassa pystytasossa */
    gap: 15px;
    font-family: "Libre Caslon Condensed", serif;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: #4A4842;
    font-size: 22px;
    font-weight: 400;
    margin: 1em 0 0.5em 0;
}
h2::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: rgba(62, 58, 43, 0.15);
}
h3 {
    font-family: "Libre Caslon Condensed", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: #4A4842;
    font-size: 16px;
    font-weight: 400;
    margin: 0.15em 0 0.5em 0;
}
.loota {
    width: 80%;
    margin: 35px auto 10px auto;
    padding: 20px 35px;
    border-radius: 6px;
    border: 1px solid rgba(62, 58, 43, 0.15);
    font-size: 12px;
}
.loota b {
    font-family: "Libre Caslon Condensed", serif;
    font-size: 13px;
    letter-spacing: 1px;
}

/* =============== PONIN SIVUT =============== */

.poni {
    display: grid;
    grid-template-columns: 0.45fr 1.15fr;
    gap: 30px;
    align-items: stretch;
    margin: 0 0 30px 0;
}
.ponipic {
    position: relative;
    width: 370px;
    height: 320px;
    background: rgba(62, 58, 43, 0.1);
    padding: 7px;
    border: 1px solid #a39589;
    border-radius: 6px;
}
.ponipic img {
    height: 100%;
    width: 100%;
    object-position: center;
    object-fit: cover;
}
.perustiedot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 12px;
}
.perus-info {
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(62, 58, 43, 0.15);
    border-radius: 8px;
}
.perus-info span {
    color: #6e6b65;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.perus-info b {
    font-size: 12px;
    font-weight: 500;
}
.op {
    display: inline-block;
    color: #303D35;
    position: relative;
    margin: 0;
}
.op::before {
    color: #6e6b65;
    font-weight: 300;
    font-size: 24px;
    content: "\207D";
    margin: 0 3px 0 8px;
    vertical-align: -7px;
}
.op::after {
    color: #6e6b65;
    font-weight: 300;
    font-size: 24px;
    content: "\207E";
    margin: 0 8px 0 3px;
    vertical-align: -7px;
}
.geno {
    display: inline;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 10px;
    color: #6e6b65;
}
.meriitit {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}
.meriitit span {
    text-align: center;
    padding: 8px 10px;
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.3em;
    border-radius: 3px;
    color: #6e6b65;
    border: 1px solid rgba(177, 138, 90, 0.6);
}
.meriitit a {
    color: #6b5840;
}
.poniteksti {
    width: 100%;
    margin: 0 auto;
    background: #4A4842;
}
.ponitekstialue {
    margin: 0 auto;
    width: 60%;
    padding: 30px 0;
    font-family: "Open Sans", sans-serif;
    color: #e5ded6;
    font-size: 13px;
    line-height: 1.7em;
}
.tumma {
    color: #d1d6c6;
}
.suku {
    width: 101%;
    margin: 0 -5px 0 -5px;
    border-collapse: separate;
    border-spacing: 5px; 
}
.suku td {
    width: 33%;
    border-left: 1px solid rgba(62, 58, 43, 0.15);
    border-top: 1px solid rgba(62, 58, 43, 0.15);
    padding: 10px 20px;
    border-radius: 16px;
    line-height: 1em;
}
.suku b {
    font-family: "Libre Caslon Condensed", serif;
    font-size: 14px;
    line-height: 1.7em;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.stieto {
    display: inline-block;
    font-size: 10px;
    line-height: 1.3em;
    color: #6e6b65;
}
.stieto b {
    font-family: "Open Sans", sans-serif;
    font-size: 10px;
    line-height: 1.3em;
    letter-spacing: 0;
}
.evm {
    display: inline-block;
    font-size: 9px;
    color: #6e6b65;
    text-transform: uppercase;
    margin: 0 0 0 8px;
    letter-spacing: 2px;
    border: 1px solid rgba(62, 58, 43, 0.15);
    border-radius: 3px;
    padding: 2px 5px;
    line-height: 1.3em;
}
.varsa-wrap {
    overflow: auto;
    margin: 30px 0 0 0;
    border-radius: 10px;
    border-bottom: 1px solid rgba(62, 58, 43, 0.15);
}
.varsat {
    width: 100%;
    border-collapse: collapse;
}
.varsat tr {
    border-bottom: 1px solid rgba(62, 58, 43, 0.15);
}
.varsat tr:last-child {
    border-bottom: none;
}
.varsat th {
    color: #6e6b65;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    padding: 5px 8px;
    background: rgba(62, 58, 43, 0.05);
}
.varsat td {
    font-size: 12px;
    padding: 5px 8px;
}
.varsat a {
    font-family: "Libre Caslon Condensed", serif;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.varsamerit {
    display: inline-block;
    font-size: 11px;
    padding: 0 0 0 8px;
    letter-spacing: 0.5px;
}
.kilpailut {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 25px;
    margin: 20px 0 50px 0;
}
.cupit {
    width: 100%;
    border-collapse: collapse;
}
.cupit tr {
    border-bottom: 1px solid rgba(62, 58, 43, 0.15);
}
.cupit tr:last-child {
    border-bottom: none;
}
.cupit th {
    color: #6e6b65;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    padding: 3px 8px;
    background: rgba(62, 58, 43, 0.05);
}
.cupit td {
    font-size: 12px;
    padding: 3px 6px;
}
.kisa-wrap {
    overflow: auto;
    margin: 0;
    border-radius: 6px;
}
.ponigalleria {
    display: block;
    margin: 20px auto;
}
.ponigalleria img {
    height: 180px;
    margin: 0 6px;
    background: rgba(62, 58, 43, 0.1);
    padding: 7px;
    border: 1px solid #a39589;
    border-radius: 6px;
}


/* =============== KISOJEN EDISTYMISPALKKI =============== */

.progress-bar {
	width: 100%;
	background-color: #fff;
	padding: 3px;
	border-radius: 6px;
    border: 1px solid rgba(85, 114, 0, 0.2);
}

.progress-bar-fill {
	display: block;
	height: 22px;
	/* background-color: #52655b; */
	background: linear-gradient(90deg,rgba(221, 217, 199, 1) 0%, rgba(175, 180, 137, 1) 50%, rgba(78, 88, 25, 1) 100%);
	border-radius: 3px;
	transition: width 500ms ease-in-out;
	max-width: 100%;
}

/* =============== PONILISTAUS =============== */

/* Ruudukko, johon mahtuu 2-3 ponia rinnakkain leveyden mukaan */
.poni-listaus {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px 15px; /* Pystysuuntainen ja vaakasuuntainen väli */
    margin-top: 20px;
}

/* Yksittäinen kompaktikortti */
.poni-malli {
    display: flex;
    align-items: center; /* Kuva ja teksti linjassa keskenään */
    gap: 10px;
}
.poni-kuva {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(62, 58, 43, 0.1);
    padding: 5px;
    border: 1px solid #a39589;
}
.poni-kuva img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.poni-tiedot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    line-height: 1.3em;
}
.poni-tiedot h4 {
    font-family: "Libre Caslon Condensed", serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin: 0 0 2px 0;
    font-weight: bold;
    color: #1a1a1a;
}
.poni-tiedot p {
    margin: 0;
}
.poni-tiedot .nomerit {
    color: #777777;
}


/* =============== KASVATTILISTA YMS. =============== */

.pikkulista ul li {
	list-style: none;
	text-align: left;
	font-weight: 400; 
	margin: 0;
	padding: 0;
}
.pikkulista ul li:before {
	content: '\2713';
	padding: 0 17px 0 0;
	color: #717d55;
	font-size: 12px;
	font-weight: 400;
}
.kasvatit {
    width: 100%;
    border-collapse: collapse;
    border: 0px solid #d9d1ca;
}
.kasvatit tr {
    border-bottom: 1px solid rgba(85, 114, 0, 0.1);
}
.kasvatit tr:last-child {
    border-bottom: none;
}
.kasvatit th {
    padding: 4px 0 4px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
}
.kasvatit td {
    padding: 4px 0;
    font-size: 11px;
}
.kasvatit .eka {
    padding-left: 10px;
}
.kasvatit .rotu {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #52655b;
    background: #f5f6eb;
    letter-spacing: 0.05em;
}
.kasvatit tr:hover {
    background: rgba(85, 114, 0, 0.05);
    transition: 0.1s;
}
.kasvwrapper {
    overflow: auto;
    border-radius: 10px;
    border: 1px solid rgba(85, 114, 0, 0.2);
}

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

.tooltip {
	color: inherit;
	cursor: help;
	display: inline-block;
	font-weight: normal;
	position: relative;
}
.tooltip .tooltiptext {
	background-color: #36403c;
	border-radius: 6px;
	bottom: 21px;
	color: #c5c6b8;
	left: 50%;
	margin-left: -60px;
	padding: 7px 10px;
	position: absolute;
	text-align: center;
	visibility: hidden;
	width: 140px;
	z-index: 999;
	line-height: 1em;
	font-style: normal;
	font-size: 11px;
	text-transform: none;
	letter-spacing: 0;
}
.tooltip:hover .tooltiptext {
	visibility: visible;
}
.tooltiptext::after {
	border-width: 5px;
	border-style: solid;
	border-color: #36403c transparent transparent transparent;
	content: " ";
	left: 50%;
	margin-left: -5px;
	position: absolute;
	top: 100%;
}


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

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