@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');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body, html {
    margin: 0 0;
}

body {
    background-image: url('https://hehkulintu.net/zwh/img/husk.png');
    background-repeat: repeat;
    background-attachment: fixed;
}

#wrap {
    display: flex;
    flex-direction: row;
}

/* ---------- SIDENAV ---------- */

#side {
    width: 300px;
    background: rgba(49, 68, 75, 0.95);
    text-align: center;
    border-right: 10px solid #31444b;
    border-left: 10px solid #31444b;
    position: relative;
}

#side img {
    width: 230px;
    margin: 30px auto;
}

nav a {
    display: block;
    width: 200px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 0;
    margin: 12px auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.7s;
}

nav a:hover {
    transition: 0.7s;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: #31444b;
    color: #fff;
}

#bottom {
    display: block;
    bottom: 0;
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ---------- HEADERS ----------- */

h1 {
    display: block;
    width: 800px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Source Serif 4', serif;
    font-size: 80px;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: #31444b;
    text-shadow: 1px 1px 3px #fff;
    background: rgba(49, 68, 75, 0.1);
    border-radius: 100px 100px;
    box-shadow: 3px 3px 5px rgba(49, 68, 75, 0.5);
}

h2 {
    display: block;
    max-width: 600px;
    margin: 20px auto;
    padding: 15px 20px;
    font-family: 'Source Serif 4', serif;
    font-size: 25px;
    font-weight: 600;
    color: #31444b;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px #fff;
    border-bottom: 3px double rgba(49, 68, 75, 0.5);
    text-align: center;
}

h3 {
    font-family: 'Source Serif 4', serif;
    font-size: 22px;
    font-weight: 600;
    color: #31444b;
    text-shadow: 1px 1px 3px #fff;
    text-align: center;
    margin-top: 40px;
}

h3:after {
    content: "‹‹";
    color: #aaa;
    margin-left: 20px;
}

h3:before {
    content: "››";
    color: #aaa;
    margin-right: 20px;
}

h4 {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    font-weight: 600;
    color: #31444b;
    text-shadow: 1px 1px 3px #fff;
    line-height: 0em;
    margin-top: 30px;
}

h5 {
    font-family: 'Source Serif 4', serif;
    font-size: 40px;
    letter-spacing: 1px;
    color: #31444b;
    line-height: 0;
    display: block;
    margin: 35px 0 0 0;
    position: relative;
    z-index: 2;
}

.nosuffix {
    margin-bottom: 50px;
}

h6 {
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    letter-spacing: 0px;
    color: #fff;
    display: block;
    font-weight: 400;
    margin: 18px 0 20px 0;
    position: relative;
    z-index: 1;
}

/* ---------- CONTENT ---------- */

#contentwrap {
    margin: 0 auto;
    padding-top: 50px;
}

#content {
    width: 900px;
    margin: 50px auto;
    padding: 20px 50px;
    border-radius: 15px 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5em;
    color: #333;
}

a {
    color: #31444b;
}

a:hover {
    text-decoration: none;
}

.characters {
    width: 100%;
    margin: 10px 0;
}

.characters td {
    width: 50%;
}

.characters a {
    text-decoration: none;
    font-style: italic;
}

.characters a:hover {
    text-decoration: underline;
    font-style: italic;
}

.chleft {
    text-align: right;
}

/* ---------- PHOTOS ---------- */

.round {
    width: 200px;
    height: 200px;
    border-radius: 200px 200px;
    margin: 10px 10px;
    border: 3px double #fff;
    padding: 3px 3px;
    object-fit: cover;
}

.small {
    width: 100px;
    height: 100px;
    opacity: 0.7;
    transition: 0.5s;
}

.small:hover {
    opacity: 1;
    transition: 0.5s;
}

.right {
    float: right;
    margin-left: 20px;
}

.left {
    float: left;
    margin-right: 20px;
}

/* ---------- HORSE PROFILE ---------- */

#horse {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.horseinfo {
    display: block;
    width: 300px;
    height: 360px;
    padding: 20px 0px 20px 40px;
    background: rgba(49, 68, 75, 0.1);
    border-radius: 50px 0 0 50px;
}

.horseimg {
    height: 400px;
    width: 500px;
    object-fit: cover;
    border-radius: 0 50px 50px 0;
}

#merits {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

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

#horsegallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#horsegallery img {
    height: 150px;
    margin: 10px 15px;
    border-radius: 15px 15px;
    flex-shrink: 0;
    transition: 0.5s;
}

#horsegallery img:hover {
    opacity: 0.7;
    transition: 0.5s;
}

/* Horse ancestors */

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

#ancestors a {
    text-decoration: none;
    color: #31444b;
    font-weight: 600;
    transition: 0.5s;
    text-shadow: 1px 1px 3px #fff;
}

#ancestors a:hover {
    color: rgba(49, 68, 75, 0.7);
    transition: 0.5s;
    text-shadow: 1px 1px 3px #fff;
}

.between {
    border-bottom: 1px solid rgba(49, 68, 75, 0.3);
}

.trbetween {
    height: 20px;
}

.oritd, .tammatd {
    width: 23%;
    border-left: 1px solid rgba(49, 68, 75, 0.3);
    padding: 10px 0 10px 15px;
}

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

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

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

infot {
    text-transform: none;
    font-size: 11px;
    color: rgba(49, 68, 75, 0.5);
    font-weight: 400;
}

/* Porrastetut kilpailut */

:root {
  --PII: 3.14159265358979;
  --SADE: 35;
}

.kisaflex {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 1em;
  width: 80%;
  text-align: center;
  letter-spacing: 1px;
  font-size: 14px;
  margin-left: 70px;
}

.kisaflex div {
    flex: 25% 1 1;
    vertical-align: middle;
    position: relative;
    top: 25%;
    transform: translateY(25%);
}

/*** RADIAL PROGRESS ***/

svg.radial-progress {
  height: auto;
  max-width: 150px;
  padding: 1em;
  transform: rotate(-90deg);
  width: 100%;
}

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: #999;
  font: 400 1em/1 'Roboto', sans-serif;
  text-anchor: middle;
}

/*** COLORS ***/
svg.radial-progress circle { stroke: #31444b; }

/* ---------- LISTS ---------- */

.listaus {
    width: 100%;
    text-align: left;
}

.listaus th {
    background: #31444b;
    padding: 5px 15px;
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.listaus td {
    padding: 5px 15px;
}

.listaus tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.listaustr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.3);
}