@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

body, html {
    margin: 0 0;
}

body {
    background: #fff;
}

header {
    width: 100%;
    margin: 0 auto 0 auto;
    background: #8D493A;
    display: flex;
    flex-direction: row;
}

h4 {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 20px;
    color: #c68642;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 100px;
    display: block;
    border: 2px solid #c68642;
    padding: 10px 20px;
}

.pages {
    width: 280px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

nav {
    display: block;
    height: 50px;
    margin-top: 20px;
    margin-left: 50px;
    padding-top: 18px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    text-decoration: none;
    margin: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    padding: 5px 0;
    letter-spacing: 1px;
    transition: 0.5s;
}

nav a:hover {
    color: #fff;
    transition: 0.5s;
}

#content-top {
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 600px;
    margin: auto;
    padding: 50px 0 0 0;
    z-index: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: middle;
    text-align: center;
}

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

#content-top a {
    color: rgba(255, 255, 255, 0.8);
}

#horse-top {
    background: #8D493A;
    color: #F8EDE3;
    width: 100%;
    min-height: 400px;
    margin: auto;
    z-index: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.5em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: middle;
}

.top-text {
    width: 600px;
    height: 450px;
    margin: 0 auto;
    padding: 20px 0;
}

h1 {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: 50px;
    color: #c68642;
}

.textwrap h1 {
    font-family: 'Source Serif 4', serif;
    font-weight: 800;
    font-size: 80px;
    letter-spacing: 4px;
    color: #D0B8A8;
    text-align: center;
    text-transform: uppercase;
}

h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    text-align: center;
    margin-top: -25px;
}

h2 {
    font-family: 'Source Serif 4', serif;
    font-weight: 800;
    font-size: 27px;
    color: #8D493A;
    padding: 20px 0 0 20px;
}

.h2border {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(0.25turn, rgba(223, 211, 195), rgba(248, 237, 227), rgba(255, 255, 255));
    border-image-slice: 1;
    width: 80%;
    margin: 0 30px;
}

h3 {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    font-size: 23px;
    color: #8D493A;
    padding: 0 0 0 20px;
    text-transform: uppercase;
}

#content-divider {
    width: 100%;
    margin: -60px auto -25px auto;
    background-image: url('img/ahf_contop.png');
    height: 90px;
    position: relative;
    z-index: 1;
}

#content-wrap {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: top;
    padding: 10px 0 30px 0;
}

#content {
    background: #fff;
    width: 1220px;
    padding: 10px 40px 40px 40px;
    margin: auto;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.5em;
    color: #333;
}

#content-tight {
    background: #fff;
    width: 1000px;
    padding: 10px 40px 10px 70px;
    margin: auto;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.5em;
    color: #333;
    border-left: 1px solid #ddd;
}

#sidenav {
    width: 280px;
    padding: 50px 10px 10px 60px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #333;
    font-weight: 600;
    justify-content: left;
    align-items: top;
    display: flex;
    flex-direction: column;
}

#sidenav a {
    display: block;
    text-decoration: none;
    padding: 10px 0 5px 0;
    border-bottom: 1px dotted rgba(141, 73, 58, 0.3);
    transition: 0.5s;
}

#sidenav a:hover {
    transition: 0.5s;
    color: #B17457;
}

#sidenav d {
    font-weight: 600;
    font-size: 12px;
    color: #DFD3C3;
}

a {
    color: #8D493A;
}

a:hover {
    text-decoration: none;
}

footer {
    width: 100%;
    margin: 10px auto 0px auto;
    padding: 20px 0;
    background: url('img/footerpic.jpg') top left no-repeat;
    background-size: 30%;
    border-top: 1px solid #ddd;
    display: flex;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.5em;
    color: #777;
    justify-content: right;
    align-items: center;
    font-weight: 400;
    letter-spacing: 0.5px;
}

footer a {
    color: #777;
    text-decoration: none;
    font-weight: 600;
    transition: 0.5s;
}

footer a:hover {
    color: #aaa;
    transition: 0.5s;
}

.f1 {
    width: 300px;
    height: 200px;
    text-align: center;
}

.fbet {
    width: 1px;
    background: #ddd;
    height: 200px;
    margin: 0 40px 0 30px;
}

.f2 {
    width: 400px;
    margin-right: 10%;
    height: 200px;
}

#simgame {
    width: 100%;
    background: #8D493A;
    margin: 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 11px;
    color: #F8EDE3;
    letter-spacing: 1px;
    padding: 20px 0;
    border: 0;
}

/* Team */

#person {
    width: 300px;
    margin: 20px 20px 20px 0;
    float: left;
}

h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #8D493A;
    margin: 30px 0 0 0;
}

t {
    font-size: 13px;
    font-weight: 600;
    color: #D0B8A8;
    text-transform: uppercase;
}

/* Horse basic info */

#basics {
    display: table;
    width: 570px;
    margin: 0 5% 0 0;
    border: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #F8EDE3;
    border: 1px solid rgba(248, 237, 227, 0.5);
    border-radius: 10px 10px;
    max-height: 320px;
}

#basics th {
    background: rgba(248, 237, 227, 0.5);
    border-radius: 10px 10px 0 0;
    color: #8D493A;
    text-align: left;
    letter-spacing: 1px;
    padding: 0 0 0 30px;
    height: 30px;
    text-transform: uppercase;
}

#basics td {
    border-top: 1px solid rgba(248, 237, 227, 0.5);
    height: 40px;
    padding: 0px 0px 0px 20px;
}

#basics td b {
    letter-spacing: 1px;
    font-size: 11px;
    color: rgba(248, 237, 227, 0.7);
    text-transform: uppercase;
}

#basics a {
    color: #F8EDE3;
}

quote {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 17px;
    margin-bottom: 20px;
}

/* Horse ancestors */

#ancestors {
    display: table;
    width: 80%;
    margin: 40px auto;
    border: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #8D493A;
    text-transform: uppercase;
    line-height: 1.2em;
    height: 400px;
}

#ancestors a {
    text-decoration: none;
    color: #8D493A;
    font-weight: 600;
    transition: 0.5s;
}

#ancestors a:hover {
    color: #B17457;
    transition: 0.5s;
}

.between {
    border-bottom: 1px solid #D0B8A8;
}

.trbetween {
    height: 20px;
}

.oritd, .tammatd {
    width: 23%;
    border-left: 1px solid #D0B8A8;
    padding: 10px 0 10px 15px;
}

.oritd1, .tammatd1 {
    width: 20%;
    border-left: 0;
}

.break {
    border-bottom: 4px solid #fff;
    border-radius: 0 0 0 5px;
}

.break2 {
    border-top: 4px solid #fff;
    border-radius: 5px 0 0 0;
}

infot {
    text-transform: none;
    font-size: 11px;
    color: #DFD3C3;
}

/* Horse photo gallery */

.album .responsive-container-block {
  min-height: 75px;
  height: fit-content;
  width: 100%;
  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 0px;
  margin-right: auto;
  margin-bottom: 0px;
  margin-left: auto;
  justify-content: flex-start;
}

.album .responsive-container-block.bg {
  max-width: 1320px;
  margin: 0 0 0 0;
  justify-content: space-between;
}

.album .img {
  width: 100%;
  margin: 0 0 20px 0;
  filter: grayscale(0%);
  transition: 0.5s;
}

.album .img-big {
  filter: grayscale(00%);
  transition: 0.5s;
}

.album .img:hover, .album .img-big:hover {
  filter: none;
  transition: 0.5s;
}

.album #i9rb {
  color: black;
}

.album #ir6i {
  color: black;
}

.album #ikz3b {
  color: black;
}

.album .responsive-container-block.img-cont {
  flex-direction: column;
  max-width: 50%;
  min-height: auto;
  margin: 0 0 0 0;
  height: 100%;
}

.album #ipix {
  color: black;
}

.album #ipzoh {
  color: black;
}

.album #ig5q8 {
  color: black;
}

.album #imtzl {
  color: black;
}

.album #i53es {
  color: black;
}

.album .img.img-big {
  height: 50%;
  margin: 0 0 16px 0;
}

@media (max-width: 1024px) {
  .album .img {
    margin: 0 0 18px 0;
  }
}

@media (max-width: 768px) {
  .album .img {
    max-width: 32.5%;
    margin: 0 0 0 0;
  }

  .album .responsive-container-block.bg {
    flex-direction: column;
  }

  .album .responsive-container-block.img-cont {
    max-width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .album .img.img-big {
    max-width: 49%;
    margin: 0 0 0 0;
  }
}

@media (max-width: 500px) {
  .album .img {
    max-width: 94%;
    margin: 0 0 25px 0;
  }

  .album .responsive-container-block.img-cont {
    flex-direction: column;
    align-items: center;
    padding: 10px 10px 10px 10px;
  }

  .album .img.img-big {
    max-width: 94%;
    margin: 0 0 25px 0;
  }

  .album .img.img-last {
    margin: 0 0 5px 0;
  }
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  margin: 0;
}

.wk-desk-1 {
  width: 8.333333%;
}

.wk-desk-2 {
  width: 16.666667%;
}

.wk-desk-3 {
  width: 25%;
}

.wk-desk-4 {
  width: 33.333333%;
}

.wk-desk-5 {
  width: 41.666667%;
}

.wk-desk-6 {
  width: 50%;
}

.wk-desk-7 {
  width: 58.333333%;
}

.wk-desk-8 {
  width: 66.666667%;
}

.wk-desk-9 {
  width: 75%;
}

.wk-desk-10 {
  width: 83.333333%;
}

.wk-desk-11 {
  width: 91.666667%;
}

.wk-desk-12 {
  width: 100%;
}

@media (max-width: 1024px) {
  .wk-ipadp-1 {
    width: 8.333333%;
  }

  .wk-ipadp-2 {
    width: 16.666667%;
  }

  .wk-ipadp-3 {
    width: 25%;
  }

  .wk-ipadp-4 {
    width: 33.333333%;
  }

  .wk-ipadp-5 {
    width: 41.666667%;
  }

  .wk-ipadp-6 {
    width: 50%;
  }

  .wk-ipadp-7 {
    width: 58.333333%;
  }

  .wk-ipadp-8 {
    width: 66.666667%;
  }

  .wk-ipadp-9 {
    width: 75%;
  }

  .wk-ipadp-10 {
    width: 83.333333%;
  }

  .wk-ipadp-11 {
    width: 91.666667%;
  }

  .wk-ipadp-12 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .wk-tab-1 {
    width: 8.333333%;
  }

  .wk-tab-2 {
    width: 16.666667%;
  }

  .wk-tab-3 {
    width: 25%;
  }

  .wk-tab-4 {
    width: 33.333333%;
  }

  .wk-tab-5 {
    width: 41.666667%;
  }

  .wk-tab-6 {
    width: 50%;
  }

  .wk-tab-7 {
    width: 58.333333%;
  }

  .wk-tab-8 {
    width: 66.666667%;
  }

  .wk-tab-9 {
    width: 75%;
  }

  .wk-tab-10 {
    width: 83.333333%;
  }

  .wk-tab-11 {
    width: 91.666667%;
  }

  .wk-tab-12 {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .wk-mobile-1 {
    width: 8.333333%;
  }

  .wk-mobile-2 {
    width: 16.666667%;
  }

  .wk-mobile-3 {
    width: 25%;
  }

  .wk-mobile-4 {
    width: 33.333333%;
  }

  .wk-mobile-5 {
    width: 41.666667%;
  }

  .wk-mobile-6 {
    width: 50%;
  }

  .wk-mobile-7 {
    width: 58.333333%;
  }

  .wk-mobile-8 {
    width: 66.666667%;
  }

  .wk-mobile-9 {
    width: 75%;
  }

  .wk-mobile-10 {
    width: 83.333333%;
  }

  .wk-mobile-11 {
    width: 91.666667%;
  }

  .wk-mobile-12 {
    width: 100%;
  }
}

/* RMP */

#flex {
    display: flex;
    width: 100%;
    flex-direction: row;
}

#rmp {
    width: 400px;
    margin: 30px 30px 30px 0;
    display: block;
}

.rmp-info {
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.rmp-progress {
	height: 20px;
	position: relative;
	background: var(--light);
	-moz-border-radius: 25px;
	-webkit-border-radius: 25px;
	border-radius: 25px;
  box-sizing: content-box;
  margin-bottom: 0px;
}

.rmp-progress > div {
  display: block;
  height: 100%;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background-color: var(--medium);
  position: relative;
  overflow: hidden;
  text-align: center;
  line-height: 1.1;
}

.rmp-progress > div > span {
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.rmp-green > div {
  background-color: #28a745;
}

.rmp-blue > div {
  background-color: #17a2b8;
}

.rmp-orange > div {
  background-color: #ffc107;
}

.rmp-red > div {
  background-color: #dc3545;
}

/* Competitions */

#turnier {
    overflow: scroll;
    max-height: 300px;
    margin-bottom: 40px;
    font-size: 12px;
}

:root {
    --PII: 3.14159265358979;
    --SADE: 35;
  }
  
  .kisaflex {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 1em;
    width: 75%;
    text-align: center;
    letter-spacing: 0px;
    font-size: 13px;
    margin: 20px auto 50px auto;
    justify-content: center;
    align-items: center;
  }
  
  .kisaflex div {
      flex: 25% 1 1;
      vertical-align: middle;
      position: relative;
      top: 0%;
      transform: translateY(25%);
  }
  
  /*** RADIAL PROGRESS ***/
  
  svg.radial-progress {
    height: 120px;
    max-width: 120px;
    padding: 1em;
    transform: rotate(-90deg);
    width: 100%;
    margin-bottom: -30px;
  }
  
  svg.radial-progress circle {
    fill: rgba(0,0,0,0);
    stroke: #fff;
    stroke-dashoffset: calc(2 * var(--PII) * var(--SADE));
    stroke-width: 10;
  }
  
  svg.radial-progress circle.incomplete { opacity: 0.25; }
  
  svg.radial-progress circle.complete { stroke-dasharray: calc(2 * var(--PII) * var(--SADE)); }
  
  svg.radial-progress text {
    fill: #8D493A;
    font: 400 1em/1 'Inter', sans-serif;
    text-anchor: middle;
  }
  
  /*** COLORS ***/
  svg.radial-progress circle { 
      stroke: #8D493A; 
  }
  
  /* Listaus */

.kasvatit, .listaus {
    width: 100%;
    text-align: left;
    margin: 30px 0 50px 0;
}

.kasvatit th, .listaus th {
    background: #8D493A;
    padding: 10px 15px;
    color: #F8EDE3;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kasvatit td, .listaus td {
    padding: 10px 15px;
    border-bottom: 1px solid #DFD3C3;
    font-size: 15px;
    color: #333;
}

/* Horse listing */

#listaflex {
    display: flex;
    justify-content: center;
}

#listaheppa2 {
    display: block;
    margin: 10px 15px;
    text-align: center;
    margin-bottom: 30px;
}

#listaheppa2 img {
    height: 270px;
    width: 400px;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(100%);
}

.listateksti {
    background: -webkit-linear-gradient(transparent, #fff);
    display: block;
    width: 400px;
    height: 270px;
    position: relative;
    margin-top: -275px;
    font-size: 13px;
    border-radius: 0px 0px 20px 20px;
    padding-top: 25px;
    line-height: 1.5em;
    color: #333;
}

.tekstiboksi {
    position: absolute;
    background: -webkit-linear-gradient(transparent, #fff, #fff);
    border-radius: 0 0 20px 20px;
    display: block;
    bottom: 0px;
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
}

h7, h7 a {
    font-family: 'Source Serif 4', serif;
    font-weight: 800;
    font-size: 25px;
    color: #8D493A;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0px;
    text-decoration: none;
    transition: 0.5s;
}

h7 a:hover {
    color: #333;
    transition: 0.5s;
}

/* Index */

signature {
  font-style: italic;
  font-size: 18px;
  font-family: 'Source Serif 4', serif;
  color: #8D493A;
  letter-spacing: 1px;
  line-height: 1.2em;
  display: block;
  margin: 20px 0 30px 40px;
  font-weight: 400;
}

signature small {
  font-style: normal;
  color: #D0B8A8;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0;
}

signature small a {
  color: #D0B8A8;
}