@import url('https://fonts.googleapis.com/css?family=Tangerine');
@import url('https://fonts.googleapis.com/css?family=Lovers+Quarrel');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed');


html,body {
    overflow-x: hidden; 
}

body {
	background-image: url(https://www.cornfield-chase.com/fernweh/kuvat/syksytausta.jpg);
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	margin: 0;
}

/* navigaatio */

.yla {
	height: 120px;
	background-image: url(https://www.cornfield-chase.com/fernweh/kuvat/yla.png);
	background-repeat: x-repeat;
	padding: 0;
	text-align: center;
	overflow: hidden;
}

.ylasisalto {
	width: 1000px;
	margin: 0 auto;
}

.navi ul {
	max-width: 70%;
	margin: 0 auto;
	margin-left: 20px;
	padding: 0;
	float: left;
}

.navi li {
	font-family: 'Open Sans Condensed';
	display: inline-block;
	width: 100px;
	margin: 0 auto;
	text-align: center;
}

.navi li a {
	font-family: 'Open Sans Condensed';
	color: rgba(161, 84, 69, .7);
	line-height: 60px;
	padding: 30px 20px;
	text-decoration: none;
	letter-spacing: 2px;
	font-weight: lighter;
	line-height: 120px;
	border-radius: 20px;
}

.navi li a:hover {
	color: rgba(0, 0, 0, 1);
	text-shadow: 0 0 15px rgba(161, 84, 69, 1);
}


/* otsikko */
 
.otsikko {
	width: 30%;
	margin: 0 auto;
	float: right;
}

h1 {
    font-family: 'Lovers Quarrel', cursive;
	font-size: 5em;
	font-weight: lighter;
	color: rgba(161, 84, 69, .9);
	text-align: center;
	margin-top: 0;
	line-height: 120px;
}


/* tekstikentt� */

.teksti {
	font-family: 'Source Sans Pro';
	font-size: 0.9em;
	width: 1000px;
	margin: 50px auto;
	background-color: rgba(255, 255, 255, .8);
	border-radius: 20px;
	padding: 10px 40px 5px;
	border: 2px solid rgba(161, 84, 69, .2);
	overflow: auto;
}

h2, h3 {
	font-family: 'Tangerine', cursive;
	color: rgba(58, 62, 40, 1);
	margin-bottom: -10px;
	font-size: 3em;
}

h3 {
	font-size: 2em;
}

b, strong {
	color: rgba(161, 84, 69, .7);
}

i, em {
	color: rgba(58, 62, 40, .9);
}

p {
	text-align: justify;
}

a {
	color: rgba(58, 62, 40, 1);
	text-decoration: none;
}
	

a:hover {
	color: rgba(161, 84, 69, .7);
	text-decoration: underline;
}

/* koristekuvarivi */

.koriste {
	margin: 40px auto;
	width: 100%;
}

.koriste img {
	display: inline-block;
	width: 30%;
	border-radius: 30px;
	margin: 0px 10px;
	padding: 3px;
	box-shadow: 0px 5px 10px 1px rgba(58, 62, 40, .4);
}

/* copyt */
.ala {
	width: 100%;
	margin-top: 5px;
	color: rgba(0, 0, 0, .4);
	font-size: .7em;
	float: right;
}

.ala a {
	color: rgba(0, 0, 0, .5);
	text-decoration: none;
}

.ala a:hover {
	color: rgba(0, 0, 0, 1);
}

.ala p {
	text-align: right;
	line-height: 1.2em;
}

/* 2 palstaa */
#palsta2_1 { width: 46%; padding: 2%; float: left;  } /* Vasen palsta */
#palsta2_2 { width: 46%; padding: 2%; float: right; } /* Oikea palsta */


/* 3 palstaa */
#col3_1 { width: 29%; padding: 2%; float: left; } /* Vasen palsta */
#col3_2 { width: 29%; padding: 2%; float: left; } /* Keskimm�inen palsta */
#col3_3 { width: 29%; padding: 2%; float: left; } /* Oikea palsta */

/* Hevosulkoasu */

#perustiedot {
width: 100%;
border-spacing:5px;
}

#perustiedot td {
padding: 5px 8px;
float: center;
}

.sukutaulu {
 border-bottom: 1px solid #cccccc;
 text-align: center;

}

.sukutaulu2 {
 text-align: center;

}

#kisakalenteri {
width: 100%;
border-spacing:5px;
}

#kisakalenteri td {
padding: 5px 8px;
float: center;
}

.hevosenkuva {
max-width: 80%;
border-radius: 30px;
margin: 0 auto;
display: block;
padding: 3px;
box-shadow: 0px 5px 10px 1px rgba(58, 62, 40, .4);
}

.porrastetut {
    display: flex;
    align-items: center;
    justify-content: center;
}

.porr-column {
    flex: 1 1;
}

/* Aikajanan tyylit */
.level-bar {
    width: 98%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin: 10px 0;
    position: relative;
}

.level-bar-inner {
    height: 100%;
    background-color: rgba(161, 84, 69, .7);/* Vihreä väri edustaa hevosen tasoa */
    border-radius: 8px;
    position: relative;
}

.level-bar-inner span {
    position: absolute;
    color: white;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translateY(-50%) translateX(-50%); /* Keskittää tekstin */
    font-size: 14px;
    font-weight: bold;
}

/* Ympyrän tyylit */
.level-circle {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#458393 0%, #f0f0f0 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border: 4px solid #ccc;
}

.level-circle span {
    position: absolute;
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

/* Etusivu */

#kisakalenteri {
width: 100%;
border-spacing:5px;
}

#kisakalenteri td {
padding: 5px 8px;
float: center;
}

/* Hevoset-sivu */


button.accordion {
	background-color:transparent;
    cursor: pointer;
    padding: 0px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}


div.panel {
    padding: 0px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
	text-align:justify;
}

#hevoslistaus {
width: 100%;
border-spacing:5px;
}

#hevoslistaus td {
padding: 5px 8px;
float: center;
}

.hevoslistauskuva {
max-width: 70%;
border-radius: 30px;
margin: 0 auto;
display: block;
padding: 3px;
box-shadow: 0px 5px 10px 1px rgba(58, 62, 40, .4);
}

pre {
    font-family: 'Source Sans Pro';
    font-size: 0.9em;
}

.copy {
	font-family: 'Source Sans Pro', cursive;
    font-size: 0.8em;
	float: left;
} 