@import url('https://fonts.googleapis.com/css?family=Arapey:400,400i|Montserrat:400,400i,700,700i&display=swap');

body {
  background-image: url('tausta.jpg');
  background-repeat: none;
  background-size: cover;
  background-attachment: fixed;
  background-position: center bottom;
}

a {
  color: #61489b;
  text-shadow: 0px 1px 11.76px rgba(255, 184, 242, 0.33);
  text-decoration: none;
  position: relative;
}

.dark-content-box a {
  color: #fff;
}

.content-box p a:before, .dark-content-box p a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #855ce3;
  visibility: hidden;
  -webkit-transform: scaleX(0.3);
  transform: scaleX(0.3);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content-box p a:hover:before, .dark-content-box p a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

a:hover {
  color: #855ce3;
  -webkit-transition: color .5s; /* For Safari 3.0 to 6.0 */
  transition: color .5s;
  text-shadow: 0px 2px 3.92px rgba(0, 0, 0, 0.25);
}

.wrapper {
  width: 1100px;
  margin: 100px auto 0 auto;
  padding-bottom: 20px;
  border: 1px solid rgb(105, 78, 115);
  background: url('otsikko_bg.png') no-repeat 0px 0px, rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 29.4px 0.6px rgba(255, 184, 242, 0.1);
  border-radius: 45px 0 45px 0;
}

header {
  position: absolute;
  top: 0;
  width: 1100px;
}

.img-header {
  display: block;
  margin: 0 auto;
}

header a:hover:before {
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
}

nav {
  width: 1000px;
  margin: 320px auto 0 auto;
  display: table; 
  position: relative;
  z-index: 25;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

nav ul li {
  display: inline-block;
  margin: 0 35px;
  padding: 10px 0;
}

nav ul li a {
  color: rgb(255, 255, 255);
  font-family: 'Arapey', serif;
  font-size: 22px;
  letter-spacing: 1px;
  text-shadow: 0px 0px 13.5px rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-bottom: 5px;  
  position: relative;
  padding: 0 0 5px 0;
}

nav ul li a:hover, nav ul li:hover a {
  color: #d6c2ff;
  -webkit-transition: color .5s; /* For Safari 3.0 to 6.0 */
  transition: color .5s;
  text-shadow: 0px 0px 13.5px rgba(255, 255, 255, 0.85);
}

nav ul li a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #d6c2ff;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

nav ul li a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.content-box {
  width: 1000px;
  background-color: #fff;
  box-shadow: 0px 1px 12px 3px rgba(255, 184, 242, 0.47);
  padding: 10px 60px 30px 60px;
  margin: 20px auto;
  border-radius: 35px 0 35px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #272727;
  line-height: 1.7;
  text-align: justify;
  position: relative;
  box-sizing: border-box;
}

.dark-content-box {
  width: 1000px;
  padding: 10px 50px 30px 50px;
  margin: 10px auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #988db4;
  line-height: 1.7;
  text-align: justify;
  position: relative;
  box-sizing: border-box;
}

footer {
  width: 900px;
  margin: 20px auto 20px;
  text-align: center;
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 15px;
  color: #988db4;
  text-shadow: 0px 1px 11.76px rgba(35, 22, 32, 0.33);
  position: relative;
  z-index: 25;
}

h1 {
  color: #77669d;
  font-weight: normal;
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 35px;
  text-shadow: 0px 1px 13.5px rgba(88, 66, 152, 0.22);
  margin-left: 20px;
}
  
h2 {
  color: #77669d;
  font-family: 'Arapey', serif;
  font-weight: normal;
  font-size: 25px;
  text-shadow: 0px 1px 11.76px rgba(255, 184, 242, 0.33);
}

h3 {
  color: #808080;
  font-family: 'Arapey', serif;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0px 1px 11.76px rgba(255, 184, 242, 0.33);
  padding: 5px 20px;
}


h4{
	text-align: center;
font-family: 'Dancing Script', cursive;
color:#77669d;
font-size: 24px;
margin:0px;
font-weight: normal;
font-style: normal;
text-shadow: #ccc 1px 1px 3px;
}

.dark-content-box h2 {
  color: #cdc5e0;
}



ul li {
  text-align: left;
}

table {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #272727;
  line-height: 1.7;
}



.koriste img {max-width: 25%; border: 5px solid #fff; margin: 20px 10px; box-shadow: 0px 0px 5px rgba(0,0,0,0.6);}



hr {
	width:80%;
  	height: 1px; 
  	background:#ddd;
  	border:0;
  	margin:30px auto;
}



/* 
Kasvattilista
============================ */

.kasv { }
.kasv:hover { background-color : rgba(237,237,237,0.5); }

.ysolu { font: 13px/25px 'Alegreya Sans', sans-serif; color: #333; text-align: left; text-shadow: 1px 1px #fff; border-top: 0px solid #cecece; border-bottom: 1px solid #d0d0d0; background-color : transparent; }
.solu { font: 13px/25px 'Alegreya Sans', sans-serif; color: #333; text-align: left; text-shadow: 1px 1px #fff; border-bottom: 1px solid #cecece; background-color : transparent; }





/* Hevosulkoasu */


.kuvatausta {
  background-image: url('tausta.jpg');
  background-repeat: none;
  background-size: cover;
  background-position: center bottom;
  width: 1000px;
  margin-left: -60px;
  padding: 20px 0;
}

.kuvatausta h3 {
  color: #d2cfda;
}

.heppakuva {
  float: left;
  margin-right: 40px;
  margin-left: 100px;
}

.heppakuva img {
  margin: 10px 0 0 10px;
  padding: 5px;
  border-radius: 15px 0 15px 0;
  border: 1px solid rgb(105, 78, 115);
  background: rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  max-height: 330px;
}

.perustieto {
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 18px;
  color: #d2cfda;
}

.perustieto strong, b {
  color: #77669d;
  font-family: 'Arapey', serif;
  font-size: 16px;
}
}

.perustieto a {
  color: #d6c2ff;

}

.arvonimet {
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 15px;
  color: #77669d;
  text-align: center;
  margin-top: 30px;
  clear: both;
}

.isokuva {
  float: right;
}

.isokuva img {
  margin: 5px 0 0 30px;
  padding: 5px;
  border-radius: 15px 0 15px 0;
  border: 1px solid rgb(105, 78, 115);
  background: rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  max-height: 400px;
}


.perustiedot {
  width: 600px;
  border-spacing: 10px;
  margin-left: 30px;
}

.perustiedot td {
  padding: 0 10px;
  border-bottom: 1px solid #cdc5e0;
}

.perustiedot td:nth-child(odd) {
  color: #77669d;
  font-family: 'Arapey', serif;
  font-size: 17px;
  font-style: italic;
  width: 30%;
}

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

.jalkelaiset {
  width: 1000px;
  margin-left: -50px;
  border-spacing: 10px;
}

.jalkelaiset td, .jalkelaiset th {
  padding: 5px 10px;
  color: #d2cfda;
}

.jalkelaiset th {
  border-radius: 15px 0 15px 0;
  border: 1px solid rgb(105, 78, 115);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  background: rgba(200, 174, 210, 0.2);
  color: #d2cfda;
  font-family: 'Arapey', serif;
  font-size: 16px;
  text-align: center;
  font-weight: normal;
}

.jalkelaiset td {
  border-bottom: 1px solid rgb(105, 78, 115);
}

.sukutaulu {
  width: 1030px;
  border-spacing: 20px;
  margin-left: -70px;
}

.sukutaulu td {
  border-radius: 15px 0 15px 0;
  border: 1px solid rgb(105, 78, 115);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  width: 33%;
  background: rgba(200, 174, 210, 0.2);
  color: #d2cfda;
}

.sukutaulu a {
  text-decoration: underline;
}

.sukutaulu span {
  font-family: 'Arapey', serif;
  font-style: italic;
  color: #988db4;
  display: block;
}

.sukuselvitys_link {
  text-align:center;
  display: block;
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 25px;
  color: #988db4;
  margin: 10px 0 20px 0;
}

.sukuselvitys_link:hover {
  color: #988db4;
}

.kuvagalleria p {
  text-align: center;
  font-family: 'Arapey', serif;
  font-style: italic;
  font-size: 15px;
  color: #988db4;
}

.kuvagalleria div {
  margin: -40px auto;
  text-align: center;
}

.kuvagalleria div img {
  height: 140px;
  margin: 10px;
  padding: 5px;
  border-radius: 15px 0 15px 0;
  border: 1px solid rgb(105, 78, 115);
  background: rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  opacity: 0.7;
}

.kuvagalleria div img:hover {
  transition: opacity 0.7s;
  opacity: 1;
}

.kisakalenteri {
  width: 940px;
  margin-left: -30px;
  border-spacing: 10px;
}

.kisakalenteri .eka {
  border-radius: 15px 0 15px 0;
  border: 1px solid rgb(105, 78, 115);
  background: rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  color: #77669d;
  font-family: 'Arapey', serif;
  font-size: 16px;
  text-align: center;
  font-weight: normal;
}

.kisakalenteri td {
  vertical-align: top;
  padding: 15px 5px;
  font-size: 11px;
}

.nayttelykalenteri {
  width: 940px;
  margin-left: -30px;
}

.nayttelykalenteri td {
  vertical-align: top;
  padding: 5px;
  width: 50%;
}

.nayttelykalenteri h3 {
  text-align: center;
  margin-top: 0;
}

.nayttelykalenteri strong, .nayttelykalenteri b {
  color: #77669d;
  font-family: 'Arapey', serif;
  font-size: 16px;
}

/* Hevoslistaus */

.tab-bar {
  text-align: center;
}

.tab-item {
  margin: 0 20px;
  color: #77669d;
  font-family: 'Arapey', serif;
  font-size: 20px;
  padding-bottom: 2px;
}

.active-tab:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #855ce3;
}

.heppatieto {
  width: 33%;
  box-sizing: border-box;
  padding: 10px;
  display: inline-block;
}

.heppatieto img {
  height: 130px;
  float: left;
  margin-right: 20px;
  padding: 5px;
  border-radius: 15px 0 15px 0;
  border: 1px solid rgb(105, 78, 115);
  background: rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  opacity: .7;
}

.heppatieto img:hover, .heppatieto:hover img {
  opacity: 1;
  transition: all .7s;
}

.heppatieto h3 {
  margin-top: 10px;
  margin-bottom: 0;
}

.heppatieto p {
  font-family: 'Arapey', serif;
}

.heppatieto2 {
  width: 33%;
  box-sizing: border-box;
  padding: 5px 5px;
  display: inline-block;
  text-align: center;
}

.heppatieto2 img {
  height: 130px;
  margin-right: 0 auto;
  padding: 3px;
  border-radius: 10px 0 10px 0;
  border: 1px solid rgb(105, 78, 115);
  background: rgba(83, 32, 102, 0.2);
  box-shadow: 0px 1px 10px 0.6px rgba(255, 184, 242, 0.2);
  opacity: .8;
}

.heppatieto2 img:hover, .heppatieto2:hover img {
  opacity: 1;
  transition: all .7s;
}

.heppatieto2 h3 {
  margin-top: 5px;
  margin-bottom: 0;
}

.heppatieto2 p {
  font-family: 'Arapey', serif;
  margin-top: 0;
  margin-bottom: 0;
}