@import url('https://fonts.googleapis.com/css?family=Norican|Rokkitt|Amatic+SC|Delius+Swash+Caps|Bad+Script|Roboto|Alex+Brush|Dancing+Script|Assistant|Tangerine|Oranienbaum|Lunasima');

/* Background pattern from Toptal Subtle Patterns */

body {background-image: url("tausta.webp"); margin:0; text-align:justify; min-width: 1250px; font-family: 'Lunasima';}

#otsikko {
    font-family: 'Tangerine';
    font-size: 95px;
	text-align: center;
    font-weight: normal;
    color: #415D43;
    text-shadow: 1px 1px 10px #fff;
    padding: 40px 0px 20px 0px;
    margin: 0px 0px 0px 0px;
}

#navigaatio { padding:15px; text-align:center; top:0; word-spacing:30px;  
  height: 30px;
  margin: auto;
  background-color: #415D43;
}


    #ylahomma {
        width: 100%;
    }


#ylaosa {
  margin: 0 auto;
  text-align: center;
  justify-content:space-evenly;

}


h1 {font-size:42pt; font-family: 'Tangerine', cursive; color:#C3D2A2; font-weight:lighter; margin-bottom:5px; text-shadow: 0.5px 0.5px 0.5px rgb(184, 184, 184);}

a:link.navi, a:visited.navi {font-family: 'Oranienbaum', serif; text-decoration:none;  color:#fff; font-size:16pt; padding: 10px 15px 13px 15px;transition:0.3s ease;}
a:hover.navi {background: rgba(143,185,150,0.29); font-family: 'Oranienbaum', serif; text-decoration:none; color:#111D13;   border-radius:10px; padding: 10px 15px 13px 15px; transition:0.5s ease;}

#teksti { width:75%; 
  max-width: 1200px;
  min-width: 1000px;
  margin:0 auto; 
  padding:40px;  
  background-color: white; 
  font-family: 'Lunasima'; 
  line-height:1.7; 
  font-size:10pt; 
  border-left: 1px lightgrey solid;
  border-right: 1px lightgrey solid;
}

p {padding:0 15px;}

b {
    color: #709775;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(65,93,67,0), rgba(65,93,67,0.75), rgba(65,93,67,0));
}

h2 {font-size:50px; font-family: 'Tangerine'; color:#709775; font-weight:lighter;  margin-bottom:-10px; margin-top:-10px; padding-left: 25px; text-align: center;}
h3 {font-size:38px; font-family: 'Tangerine'; color:#709775; font-weight:lighter;  margin-bottom:-5px; margin-left:30px; text-align: center; }
h4 {font-size:30px; font-family: 'Tangerine'; color:#709775; font-weight:lighter; margin-bottom:-5px; margin-left:20px; margin-bottom:-10px; margin-top:10px;}
h5 {font-size:35px; font-family: 'Tangerine'; color:#709775; font-weight:lighter; margin-bottom:-5px; margin-left:30px; text-align: center; }

.border { border:1px solid #C3D2A2; margin:25px 45px 35px 45px;}
.allek {font-size:22pt; font-family: 'Tangerine', cursive; color:#709775; font-weight:lighter; margin-left:60px;}
a:link, a:visited {color:#709775; font-family:'Lunasima';}
a:hover {color:#415D43; font-family:'Lunasima';}

#footer {width:75%; 
    max-width: 1200px;
    min-width: 1000px; margin:0 auto;  background-color: #415D43; color: #fff; padding-left:41px; padding-right: 40px; padding-top: 17px; text-align:center; bottom:0; }
.boksit {width:100%; margin:0 auto; font-family: 'Lunasima'; line-height:1.7; font-size:11pt; color:#7F7F40;}
.boksit a:hover {color: #709775;}
.copy { text-align:center;}
.linkkeja {float:left; width:50%; text-align:center;}
a:link.ala, a:visited.ala {color:#FD9F31; text-decoration:underline; transition:0.3s ease;}
a:hover.ala {color:#6A1906; transition:0.3s ease;}

.tab { overflow: hidden;text-align:center;}
.tab button {    float: center;  padding: 15px 23px 5px 23px; margin:0 15px 10px 15px;    transition: 0.5s; color:#EF8303; background-color:transparent;  font-family: 'Rokkitt', sans-serif; font-size:14pt; border:none; text-transform:uppercase;  letter-spacing:2px;}
.tab button:hover {color:#6A1906; transition: 0.5s; cursor:pointer;}
.tab button.active {color:#6A1906; border-bottom:1px solid;}
.tab button:focus {outline:0;}
.tabcontent {display: none;   margin:0 auto; transition-delay: 2s;  animation: fadeEffect 2s;}/* Go from zero to full opacity */@keyframes fadeEffect {    from {opacity: 0;}    to {opacity: 1;}}


.listaus .lista { width:95%; margin:0 auto; padding-bottom:20px; margin-top: 15px; flex-wrap: wrap; display: flex;
  list-style:none}
.listaus .lista li {
  width:30%; text-align:center; line-height:1.8; font-size:10pt; padding-bottom: 30px;
  flex: calc(100% / 4); }
.listab { border:1px solid grey; border-radius:3px; box-shadow:0 0 3px #eee; max-width:200px; height: 150px; margin:10px 0 0px 0; object-fit: cover;}
a:link.heppa, a:visited.heppa {font-family:'Lunasima'; font-size:11pt; line-height: 0px;}
a:hover.heppa {font-family:'Lunasima'; font-size:11pt;}
em {color:#949494; font-size: smaller;}

.mer {color:#709775; font-family:'Tangerine'; font-size: 28px; letter-spacing:1.5px; text-align: center;}

#kuvath{width:100%; margin: auto; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;}
#kuvattd{width:50%; }
.kcopy {text-align:left; float: left; margin-right:10px; font-family:'Lunasima'; font-size:10pt; text-transform:uppercase; color:9f9f9f; margin-bottom:5px;}
.heppakuva {float:right; margin-top: 30px; max-width:47%; margin-right:10px; max-height: 450px; border-radius: 7px;}
.perustiedot {width:50%;padding:30px; }
.td1 {padding:15px 0 10px 15px; line-height:1,8; border-bottom:1px solid #fff; text-transform:uppercase; font-size:9pt; color:#fff; width:35%; text-align: left; background: #415D43; 
   }
.td2 {padding:15px 0 10px 15px; line-height:1,8;  border-bottom:1px solid #fff; width:65%; background: url('tausta.webp'); font-size:10pt; font-family:'Lunasima';}
.td3 {font-family:'Lunasima'; font-size:9pt; color:#7F7F40; letter-spacing:1.5px; text-align:center; padding-top:15px; width:100%;}

.suku {width:100%; padding:10px; line-height:1.8; color: #415D43; background: url('tausta.webp'); font-family:'Lunasima'; font-size: 11pt;}
.suku a:link {color: #415D43; font-family:'Lunasima';}
.suku a:visited {color: #415D43; font-family:'Lunasima';}
.suku a:hover  {color: #709775; font-family:'Lunasima';}
.isa { padding:15px; margin-left:15px; width:33%; border-bottom: 1px solid #fff; color: #fff; background-color: #415D43; font-family:'Lunasima';}
.isa a:link {color: #fff; font-family:'Lunasima';}
.isa a:visited {color: #fff; font-family:'Lunasima';}
.isa a:hover  {color: #709775; font-family:'Lunasima';}
td {padding:15px; margin-left:15px; width:33%;}

.jalkelaiset {width: 100%; padding-top: 10px;}
.jrivi {width: 30%; font-size: 10pt;}
.jrivi2 {width: 10%; font-size: 10pt;}
.tr3:nth-child(even) {   background: url('tausta.webp'); color: #fff;}
.tr3:nth-child(even) a:link {   color: #fff; }
.tr3:nth-child(even) a:visited {   color: #fff; }

.kisa {width:90%; padding-bottom:20px; padding-top: 10px; margin:0 auto; font-size: 11pt; line-height:1.8;}
.td4 {padding:15px 0 10px 15px; line-height:1,8; text-transform:uppercase; font-size:11pt; color:#9f9f9f; width:40%;}
.td5 {padding:15px 0 10px 15px; line-height:1,8; font-size:11pt; width:20%; }

.kisa td {padding:15px; margin-left:15px;}

.sijoitukset {  -webkit-column-count: 3; /* Chrome, Safari, Opera */  -moz-column-count: 3; /* Firefox */ column-count: 3;
font-size:11pt; margin: 10px; line-height:1.8;}

.tr2:nth-child(even) {   background-color: #eee;}
.kasvatit {width:100%; margin:0 auto;}
.td6 { width:6%; font-size:11pt; }
.td7 { width:20%; font-size:11pt;}
.td8 { width:40%; font-size:11pt;}
.td9 { width:12%; font-size:11pt;}

a.spoileri {
    background: #415D43;
    padding: 5px 10px 5px 10px;
    margin-left: 30px;
    color: #fff;
    font-weight: normal;
    letter-spacing: 1px;
    }
    
    a.spoileri:hover {
    background: #709775;
    padding: 5px 10px 5px 10px;
    margin-left: 30px;
    color: #fff;
    font-weight: normal;
    letter-spacing: 1px;
    cursor:pointer;
    }

.saavutukset {
    width: 85%;
    text-align: center;
}

.lisakuva {
  height: 140px;
    border-radius: 7px;
    margin: 10px;
}

#scrollbarsContainer {
  width: 100%;
  height: 200px;
  padding:5px;
  overflow:auto;
}
/*div::scroolbars*/
div::-webkit-scrollbar {
    width: 8px;
}
div::-webkit-scrollbar-track {
    background: #cccccc; 
    border-radius: 5px;
}
div::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: gray;
}

.info {
    width: 90%;
    height: 250px;
    margin: 0px auto;
    font-size:11.5pt; 
}

.kisaavat {
    width: 100%;
    margin-top: 30px;
}


header > h2 { display: inline-block; }
header span { margin-left: 100px; }

.horse-competitions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.horse-competitions > div:first-child {
    width: 50%;
    align-content: center;
}

.horse-competitions > div:last-child {
    width: 50%;
}

.half-arc {
    position: relative;
    width: 250px;
    height: 125px;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border-bottom: 0;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.half-arc:before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    border-radius: 50%;
    background-image: conic-gradient(#9fb285, #4d5f33 calc(var(--percentage, 0) / 2), #bbb 0);
    transition: transform .5s ease-in-out;
    z-index: 1;
    transform: rotate(270deg);
}

.half-arc:after {
    content: "";
    position: absolute;
    display: block;
    background: #fff;
    z-index: 2;
    width: calc(100% - 32px);
    height: calc(200% - 32px);
    border-radius: 50%;
    top: 16px;
    left: 16px;
}

.half-arc span {
    color: #4d5f33;
    z-index: 3;
    text-align: center;
    margin-top: 2em;
}