 @import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,700,300);
 @import url('https://fonts.googleapis.com/css?family=Sofia');
 @import url(http://fonts.googleapis.com/css?family=Open+Sans);
 @import url(http://fonts.googleapis.com/css?family=Abel);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,700);
 @import url(http://fonts.googleapis.com/css?family=Merriweather);
 @import url(http://fonts.googleapis.com/css?family=Playfair+Display+SC);
 @import url(http://fonts.googleapis.com/css?family=Homemade+Apple);
@import url('https://fonts.googleapis.com/css?family=Arapey:400,400i|Montserrat:400,400i,700,700i|Parisienne&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montez&family=Open+Sans&display=swap');

 body{
     margin: 0 auto;
  background: linear-gradient(180deg, rgba(0,0,0,1) 10%, rgba(36,9,15,0.9) 51%, rgba(37,4,11,0.9)),
                    url(tausta.png);
  background-repeat: none;
  background-size: cover;
  background-attachment: fixed;
     height: 100%;
  
    }
    .ylapalkki { /* YlÃ¤palkki */
        margin: 0 auto;
        width: 90%;
    }
     #linkit { /* YlÃ¤palkin sisÃ¤ltÃ¶ */
         width:97%;
         color: rgba(255, 255, 255, 0.8);
         margin:0 auto;
         padding:30px;
         background:#000;
         text-align:center;
    }

 #koko { /* Koko sivu */
     margin:0 auto;
     width:65%;
     height: 100%;
     background: rgba(255, 255, 255, 0.8);
     -webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
 .otsikko { /* Otsikkopalkki */
    background-image: url(otsikko.png);
    background-repeat:no-repeat;
    background-position:center;
    height: 240px;
    width: 65%;
    margin: 0 auto;
 }

    #otsikkoteksti { /* Otsikon sisÃ¤ltÃ¶ */
font-family: 'Montez', cursive;
     font-size: 77px;
     color: rgba(255, 255, 255, 1);
     text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
     text-align: center;
     margin: 0 auto;
     padding: 80px;
}
 #tekstit { /* Koko sivun sisÃ¤ltÃ¶ */
     margin:0 auto;
     border:0px;
     padding:20px;
     width:80%;
     font-family: Open Sans;
     color: #000;
     line-height: 26px;
     font-size: 14px;
     text-align:justify;
}
 #copy { /* Alapalkki sisÃ¤ltÃ¶ineen */
     width:100%;
     height: 100px;
     text-align:center;
     text-transform: uppercase;
     color:rgba(255, 255, 255, 0.2);
     font-family:Playfair Display SC;
     font-size:8.5pt;
     line-height: 26px;
     padding:20px 0 20px 0;
     margin: 0 auto;
     text-shadow: 1px 1px 2px #000;
     letter-spacing: 1px;
}

/* Linkit */
 a:link {
     color:#5a2733;
     text-decoration:none;
  text-shadow: 0px 1px 7px rgba(0,0,0, 0.2);
}
 a:visited {
     color:#5a2733;
     text-decoration:none;
}
 a:active, a:hover {
     color:#000;
     text-decoration:none;
     font-style:normal;
}
 #linkit a{
    font-family: 'Playfair Display SC', serif;
     font-size:13pt;
     text-transform: uppercase;
     letter-spacing: 1px;
     font-weight:normal;
     text-decoration:none;
     color: rgba(255, 255, 255, 0.8);
     margin:0 auto;
     padding:30px 40px 30px 40px;
}
 #linkit a:hover{
     background: rgba(255, 255, 255, 0.2);
     transition: 0.6s ease;
     padding:20px 40px 20px 40px;
     -webkit-border-radius:100px;
-moz-border-radius: 100px;
border-radius: 100px;
}

/* Otsikot */


 h1 {
  color: #381e24;
font-weight: 100;
font-family: 'Montez', cursive;
  font-size: 35px;
  margin: 30px 50px 0px 40px;
  letter-spacing: 0;
  text-shadow: 0px 1px 8px rgba(0,0,0, 0.3);


}
 h2 {
     font-size: 17px;
     font-family: 'Playfair Display SC', serif;
     color: #381e24;
     padding: 20px;
     letter-spacing: 2px;
     line-height: 28px;
     text-transform: uppercase;
     font-weight: 500;
     border-bottom: 1px solid #e2ddd7;
     background: url('h.png') 100% no-repeat;
}
 h3 {
     font-size: 18px;
     font-family:Sofia;
     font-weight: 300;
     color: #381e24;
     padding: 10px;
     letter-spacing: 2px;
     line-height: 28px;
}
 h4 {
     font-size: 12px;
     font-family: 'Playfair Display SC', serif;
     color: #381e24;
     font-weight: 400;
     padding: 10px;
     letter-spacing: 2px;
     margin-top: -7px;
     line-height: 8px;
}
h5 {
    color: #381e24;
	font-family: 'Caveat Brush', cursive;
	font-weight:normal;
	font-size: 24px;
	margin: 0px;
	padding-left: 12px;
	text-shadow: #ccc 1px 1px 3px;
}

h6 {
  color: #381e24;
  font-weight: normal;
  font-family: 'Parisienne', cursive;
  font-size: 26px;
  margin: 10px 0 0 20px;
  letter-spacing: 0;
  text-shadow: 0px 1px 8px rgba(0,0,0, 0.1);
}

/* SÃ¤lÃ¤ */
.num {
    font-family:Abel;
    color: rgba(37,4,11,1);
    font-size: 13px;
}
 .right {
     text-align: right;
     font-size: 14px;
     font-family: 'Playfair Display SC', serif;
     letter-spacing: 1px;
}
#icon {
     font-size: 12px;
     color: #e2ddd7;
     margin-left: 5px;
     margin-right: 5px;
}
 .sivukuva {
    float: right;
    margin-left: 20px;
     padding:5px;
     height: 300px;
    -webkit-border-radius:5px;
     -moz-border-radius:5px;
     border-radius:5px;
     border:1px solid #e2ddd7;
}
.center {
     text-align: center;
     font-size: 15px;
     font-family: 'Playfair Display SC', serif;
     letter-spacing: 1px;
}
/* Hevosen sivu */
.loota {
     margin-top: 2.5%;
     /*background:url(korppi.png);*/
     background: linear-gradient(180deg, rgba(0,0,0,1) 10%, 
     rgba(36,9,15,0.9) 51%, rgba(37,4,11,0.9)),
     url(korppi2.png);
     background-repeat: no-repeat;
     background-position: bottom right;
     border:1px solid #ddd;
     font-family: Raleway;
     font-size: 15px;
     padding: 30px;
     width: 100%;
     color: rgba(255, 255, 255, 0.8);
     height: 200px;
     line-height: 23px;
}

.loota a:link {
     color: #8b6770;
     text-decoration:none;
}

 .loota a:visited {
     color:#8b6770;
     text-decoration:none;
}

.loota a:active, a:hover {
     color:#000;

}



.loota2
{
     padding: 20px;
     background: url(loota2.png);
     background-size: cover;
     font-family: Raleway;
     font-size: 15px;
     box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.1);
}
.palkinnot {
     font-family: Raleway;
     font-size: 15px;
     color:#5a2733;
    text-align: right;
    margin-top: -20px;
  text-shadow: 0px 1px 8px rgba(0,0,0, 0.3);
}

.hevoskuva {
     float: left;
     margin-right: 20px;
     margin-left: 20px;
      padding:5px;
      height: 260px;
     -webkit-border-radius:5px;
      -moz-border-radius:5px;
      border-radius:5px;
      border:1px solid #e2ddd7; box-shadow: #c0c0c0 0 3px 3px;
      background-color: #f8f8f8;
 }
 .pienihevoskuva
 {
     margin-left: 20px;
      padding:5px;
      height: 160px;
     -webkit-border-radius:5px;
      -moz-border-radius:5px;
      border-radius:5px;
      border:1px solid #e2ddd7;
      background-color: #f8f8f8;
 }



.kuvagalleria{text-align: center;} 

 .hkuva {
     padding:5px;
     height: 150px;
    -webkit-border-radius:5px;
     -moz-border-radius:5px;
     border-radius:5px;
     border:1px solid #e2ddd7;
     background-color: #fff;
}
 .kuvat {
     text-align: center;
     margin: 0 auto;
}



.kuvan2 {
width:200px;
margin-left:30px;
margin-top:10px;
margin-bottom:10px;
display:flex;
justify-content:right;
float:right;
      border-radius:5px;
      border:5px solid #e2ddd7; box-shadow: #c0c0c0 0 3px 3px;
      background-color: #f8f8f8;
}

 .sukutaulu {
     width: 100%;
     border-spacing: 10px;
   }
   
   .sukutaulu td {
     width: 33%;
     border: 1px solid #dfdfdf;
     background-color: rgba(255, 255, 255, 0.1);
     padding: 10px;
     font-size: 14px;
   }
   
   .sukutaulu span {
     color: rgba(37,4,11,1);
     font-family: Raleway;
     font-size: 12px;
     color: #8b6770;
     letter-spacing: 0px;
   }

   .jalkelaiset:hover {
     background-color: rgba(255,255,255,0.5);
}
 .jalkelaisetd {
     border: 1px solid #dfdfdf;
     background-color: rgba(255, 255, 255, 0.1);
     padding: 5px;
     font-size: 13px;
     text-indent: 8px;
}


.kisat {
  width: 100%;
  border: 1px solid #dfdfdf;
     background-color: rgba(255, 255, 255, 0.1);
     font-family: Open Sans;
     line-height: 24px;
     font-size: 14px;
     text-align:justify;
     background-color: rgba(255, 255, 255, 0.1);
}

.kisat strong, .kisat b {
  color: #6a3c47;
     font-family: Open Sans;
     line-height: 24px;
     font-size: 14px;
     text-align:justify;
     background-color: rgba(255, 255, 255, 0.1);
}

.kisat td {
  padding: 15px 35px;
     background-color: rgba(255, 255, 255, 0.1);
}

.kisat img {
  height: 120px;
}


 #paivis {
     background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #dfdfdf;
     font-size: 13px;
     padding: 20px;
     line-height: 20px;
     overflow-y: scroll;
     overflow-x: hidden;
     max-height: 270px;
     height:300px;
}
 ::-webkit-scrollbar {
     width: 10px;
     height: 10px;
}
 ::-webkit-scrollbar-button:start:decrement, ::-webkit-scrollbar-button:end:increment {
     height: 30px;
     display: block;
     background-color: transparent;
}
 ::-webkit-scrollbar-track-piece {
     background-color: #3b3b3b;
     -webkit-border-radius: 6px;
}
 ::-webkit-scrollbar-thumb:vertical {
     height: 50px;
     background-color: #666;
     border: 1px solid #C2ABAF;
     -webkit-border-radius: 6px;
}



th {
     padding: 2px;
     text-indent: 10px;
     background-color: rgba(37,4,11,0.9);
     color:rgba(255, 255, 255, 0.8);
     font-weight: 300;
     font-family: Merriweather;
     font-size: 11px;
     letter-spacing: 1px;
}

/* SKAALAUTUMINEN */

@media only screen and (max-width: 600px) {
    body {
        background: rgba(36,9,15,0.9);
    }
    #otsikkoteksti { 
     font-size: 60px;
     padding: 10px;
     text-align: left;
     margin-left: -30px;
}
    .otsikko { 
        width: 125vw; 
    height: 110px;
  background-image: none;
    }
    #koko { 
        width: 125vw; 
    }
    #tekstit
    {
        width: 108vw; 
    }
    .hevoskuva {
        width: 340px;
        float: none;
    }
    .ylapalkki { 
        width: 108vw; 
    }
     #linkit { 
        width: 108vw; 
    }
    .loota {
        width: 100vw; 
        height: auto;
    }
    h1 {
        font-size: 15px;
        text-align: left;
        margin: 0; padding: 0;
    }
    .palkinnot {
        text-align: left;
        font-size: 10px;
    }
     .jalkelaisetd {
     padding: 1px;
     font-size: 11px;
     text-indent: 0px;
}
 #linkit a{
     font-size:11pt;
     padding:10px;
}
}