@import url('//fonts.googleapis.com/css?family=Italianno|Mr+De+Haviland|Pinyon+Script|Muli|PT+Sans');


/******** YLEISET *********/


html {
    height: 100%;
}

body {
    background-image: url(tausta.jpg);
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    line-height:23px;
    color:#34394d;
    height: 100%;
    margin: 0;
}

h1 {
    font-family: 'Italianno', cursive;
    line-height: 0;
    font-size: 140px;
    font-weight: lighter;
    padding-left: 50px;
    padding-top: 40px;
    padding-bottom: 0px;
    margin-bottom: 0;
    position: bottom;
    color: #fff;
    position:absolute;
}

#tausta h1 {
    font-family: 'Mr De Haviland', cursive;
    font-size: 280px;
    font-weight: lighter;
    margin-top: 55px;
    color: #fff;
    position:absolute;
    opacity: 0.3;
    z-index: -1;
}


h2 {
    font-family: 'Pinyon Script', cursive;
    font-size: 40px;
    color: #8d566a;
    font-weight: normal;
    text-shadow: 1px 1px 2px #fff;
    margin-left: 20px;
    background:transparent url(pikkukuva.png) no-repeat;
    padding-left:55px;
    padding-top: 5px;
}


h3 {
    font-family: 'Cambria', sans-serif;
    font-size: 17px;
    color: #91737f;
    text-shadow: 1px 1px 2px #dbdbdb;
}

h4 {
    font-family: 'Cambria', sans-serif;
    font-size: 20px;
    color: #91737f;
    text-shadow: 1px 1px 2px #cab9bc;
    text-align: center;
}

hr {
    border: 0;
    border-top: 3px double #b2839b;
    text-align: center;
    margin-top: 40px;
}

hr:after {
    content: '\2665';
    display: inline-block;
    position: relative;
    top: -15px;
    padding: 0 10px;
    background: #fff;
    color: #a0597d;
    font-size: 14px;
}

a {
    color:#7ba74e;
    text-decoration: none;
    -webkit-transition: all 900ms ease;
    transition: all 900ms ease;
}

a:hover {
    color:#a0597d;
    text-decoration: none;
    -webkit-transition: all 900ms ease;
    transition: all 900ms ease;
}

.sivukuva {
    height: 400px;
    width: auto;
    float: left;
    margin-right: 25px;
    box-shadow: 3px 3px 4px #cecece;
}

.sivukuva2 {
    height: 260px;
    width: auto;
    float: left;
    margin-right: 25px;
    box-shadow: 3px 3px 4px #cecece;
}

/********** RAKENNE *********/


#ylapalkki {
    width: 100%;
    height: 170px;
    background: rgba(0,0,0,0.3);
    display: flex;

}

#otsikko {
    width: 1000px;
    margin: 0 auto;
    height: 20px;
}

#tausta {
    width: 1100px;
    margin: 0 auto;
}

#sisalto {
    width: 1000px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto;
    padding: 13px;

    top: 170px;
    position:absolute;
    left:0;
    right:0;
    margin:0 auto;
    margin-bottom: 30px;

}

#tekstialue {
    font-size: 15px;
    font-family: 'Muli', sans-serif;
    background: #fff;
    padding: 10px 30px;
    text-shadow: 1px 1px #fff;
    text-align: justify;
}



/*------ etusivun lista -----*/

.etusivu {
    width: 100%;
    margin-bottom: 30px;
    clear: both;
}

.etusivu td:first-child() {
    width: 25%;
    padding-right: 20px;
    padding-right: 3%;
}


.etusivu td:nth-child(2) {
    width: 45%;
    padding-right: 5%;
}

.etusivu td:nth-child(3) {
    width: 23%;
}


/********** NAVIGAATIO *********/


#nav {
    background: #7ba74e;
    width: 100%;
    height: 50px;
    -webkit-box-shadow: inset -1px 15px 50px -13px rgba(65,85,45,1);
    -moz-box-shadow: inset -1px 15px 50px -13px rgba(65,85,45,1);
    box-shadow: inset -1px 15px 50px -13px rgba(65,85,45,1);

}

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav ul li {
    float: left;
    width: 20%;
    text-align: center;
    padding-top: 15px;
}

#nav ul a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    font-family: 'Muli', sans-serif;
}

#nav .active,
#nav ul li:hover {
    background: #8fb569;
    height: 35px;
}



/*************** TEKSTIMUUNNOKSET *****************/



.historia {
    color: #91737f;
    text-shadow: 1px 1px 2px #cab9bc;
    font-style: italic;
}

.sitaatti {
    font-size: 25px;
    font-family: 'Pinyon Script', cursive;
    color: #a0597d;
    padding-left: 35px;
}

.small{
    font-size: 14px;
}

b {
    color: #91737f;
    text-shadow: 1px 1px 2px #cab9bc;
    font-style:bold;
}

.virtuaalihevonen {
    color: #91737f;
    text-shadow: 1px 1px 2px #cab9bc;
    font-style: italic;
    font-size: 14px;
    text-align: center
}


/*************** FOOTER *****************/


footer {
    background: #a0597d;
    width: 1000px;
    height: 60px;
    margin: 0 auto;
}

footer a {
    color: #e1d9dd;
}

footer a:hover {
    color: #782851;
}

#copyt {
    width: 1000px;
    height: 30px;
    margin: 0 auto;
    font-family: 'Muli', sans-serif;
}

#copytoikea p{
    float:right;
    color:#fff;
    font-size:15px;
    padding: 0 25px 0 0;
    font-family: 'Muli', sans-serif;
}

#copytvasen p {
    text-align: left;
    float:left;
    color:#fff;
    font-size:15px;
    line-height: 0.7em;
    padding: 10px 0 0 20px;
    font-family: 'Muli', sans-serif;
}


/*************** HEVOSSIVU *****************/


.perustiedot {
    text-align:left;
    font-size: 16px;
    border-collapse:collapse;
    vertical-align:middle;
    width:100%;
    margin-bottom: 60px;
    border-radius: 2px;
}

.perustiedot td {
    border-bottom:1px solid #91737f;
    padding:5px 4px;
    padding-left: 20px;
}

.perustiedot td:nth-child(even)  {
    width: 30%;
}

.perustiedot td:nth-child(odd)  {
    width: 20%;
    color: #91737f;
    text-shadow: 1px 1px 2px #cab9bc;
    font-style: italic;
    background: #efe6e7;
}

.tietoboksi {
    background: #efe6e7;
    padding: 3px 25px;
    border-radius: 2px;
    margin-bottom: 30px;
}

.meriitit {
    font-family: 'Muli', sans-serif;
    font-size: 16px;
    color: #91737f;
    text-shadow: 1px 1px 2px #cab9bc;
    font-style: italic;
}


/*---------------  Suku ----------------*/


.sukutaulu {
    background-image: url('kukka.png');
    background-position: top right;
    background-repeat: no-repeat;
    width:100%;
    margin:0px auto 0px auto;
    border-collapse:collapse;
    margin-bottom: 30px;
}

.sukutaulu td {
    padding:15px 0px;
    padding-left: 20px;
    font-size:14px;
    width: 33%;
    border-bottom: 1px solid #b2839b;
    color: #91737f;
    text-shadow: 1px 1px 2px #c7c7c7;
}

.sukutaulu td a {
    text-shadow: 1px 1px 2px #ebebeb;
}

.sukutaulu tr:nth-child(7) td:nth-child(1),
.sukutaulu tr:nth-child(5) td:nth-child(1),
.sukutaulu tr:nth-child(8) td:nth-child(1) {
    border-bottom: 0px double #b2839b;
}


/*---------------  Laatikot ja listat  ----------------*/


.jalkelaislista,
.nayttelylista {
    width: 100%;
    color: #91737f;
    text-shadow: 1px 1px 2px #cab9bc;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size:14px;
}

.jalkelaislista td,
.nayttelylista td {
    border-bottom: 1px solid #91737f;
    padding: 13px 0px;
}

.jalkelaislista tr:last-child td,
.nayttelylista tr:last-child td{
    border-bottom: 0px solid #91737f;
}

.jalkelaislista td:nth-child(1){
    width: 11%;
}

.jalkelaislista td:nth-child(2){
    width: 9%;
}

.jalkelaislista td:nth-child(3),
.jalkelaislista td:nth-child(4){
    width: 28%;
}

.jalkelaislista td:nth-child(5){
    width: 24%;
}

.nayttelylista td:nth-child(1){
    width: 12%;
}

.nayttelylista td:nth-child(2){
    width: 8%;
}

.nayttelylista td:nth-child(3){
    width: 24%;
}

.nayttelylista td:nth-child(4){
    width: 32%;
}

.nayttelylista td:nth-child(5){
    width: 24%;
}

.kilpailut {
    width: 100%;
}

.kilpailut td {
    width: 33%;
    vertical-align: text-top;
    font-size:12px;
}


/*---------------  Tabsit eli hevossivun navi  ----------------*/



.tabsheppa {
    width: 100%;
    margin-top: 80px;
    border-bottom: 3px double #b2839b;
}

.tabsheppa ul {
    margin:0;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    padding:0;
}

.tabsheppa ul li {
    text-align:center;
    display:inline-block;
    list-style:none;
    padding: 10px 20px 6px 20px;
    font-weight:bold;
    font-size: 15px;
	display: inline;
	border: 1px solid #b2839b;
	border-bottom-width: 0;
    margin: 0 3px 0 3px;
    background: #fff;
}

.tabsheppa a {
    text-decoration: none;
}

.tabsheppa ul li.active,
.tabsheppa ul li:hover{
    position:parent;
	border-color: #e2e1e1;
    border-top-right-radius: 20px;
}

.tab-contentheppa {
    clear:both;
    display:block;
    max-width:960px;
    width: 100%;
    height:auto;
    text-align: justify;
    padding:5px 0;
    margin:0;
    margin-top: 30px;
}

.tab-contentheppa.active {
    display: block;
}

/*---------------  Hevossivun kuvat  ----------------*/

.etusivukuva {
    height: auto;
    width: 700px;
    overflow: hidden;
    border-top-right-radius: 40px;
    border: 1px solid #cab9bc;
    cursor: pointer;
    padding: 10px;
}

.kuvadiv{
    text-align: center;
    width: 100%;
}

.galleriakuva{
    width: auto;
    height:280px;
    float: left;
    box-shadow: 3px 3px 4px #cecece;
    margin: 20px;
    cursor:pointer;
}

.light-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.6);
    top: 0;
    left: 0;
    cursor: pointer;
}

.light-box img {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
.light-box p {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
 .light-box img:hover {
    cursor: pointer;
}

.hide {
    display: none;
}



/*************** HEVOSSIVU *****************/



.kokolista{  
  content: "";
  clear: both;
  display: table;
}


.kokolista hr {
    border: 0;
    border-top: 3px double #b2839b;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.kokolista hr:after {
    content: '\2665';
    display: inline-block;
    position: relative;
    top: -15px;
    padding: 0 10px;
    background: #fff;
    color: #a0597d;
    font-size: 14px;
}


.hevoslista {
    width: 50%;
    float: left;
    margin-bottom: 30px;
}

.hevoslista img {
    width: 193px;
    height: 130px;
    border-top-right-radius: 40px;
    border: 1px solid #cab9bc;
    padding: 4px;
    float: left;
    margin-right: 10px;
}

.hevoslista li {
    font-size: 12px;
    list-style: none;
}