@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=DM+Serif+Text:ital@0;1&display=swap');

body, html {
    margin: 0 0;
    background: #354835;
    background-size: 100%;
}

/* Header */

#header-flex {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    background: -webkit-linear-gradient(#354835, #354835, #233823);
    padding: 30px 0 20px 0;
    margin: 0 0;
    height: 310px;
}

#mares, #stallions, #breeding, #about {
    display: block;
}

#mares img {
    clip-path: polygon(0% 0%, 100% 0%, 75% 100%, 0% 100%);
    height: 300px;
    width: 380px;
    object-fit: cover;
    margin-right: -60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.5s;
}

#stallions img {
    clip-path: polygon(0 0, 75% 0, 100% 100%, 25% 100%);
    height: 300px;
    width: 410px;
    object-fit: cover;
    transform: scaleX(-1);
    margin-right: -60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.5s;
}

#breeding img {
    clip-path: polygon(25% 0%, 100% 0, 75% 100%, 0 99%);
    height: 300px;
    width: 410px;
    object-fit: cover;
    margin-right: -60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.5s;
}

#about img {
    clip-path: polygon(0% 0, 75% 0, 100% 100%, 0% 100%);
    height: 300px;
    width: 380px;
    object-fit: cover;
    transform: scaleX(-1);
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.5s;
}

#mares img:hover, #stallions img:hover, #breeding img:hover, #about img:hover {
    transition: 0.5s;
    filter: grayscale(10%);
}

#stallions a, #breeding a, #about a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: -180px 0 0 -60px;
    position: relative;
    width: 300px;
    text-align: center;
    transform: rotate(-71deg);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 50px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    transition: 0.5s;
}

#mares a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: -180px 0 0 -90px;
    position: relative;
    width: 300px;
    text-align: center;
    transform: rotate(-71deg);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 50px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    transition: 0.5s;
}

#mares a:hover, #stallions a:hover, #breeding a:hover, #about a:hover {
    color: #fff;
    transition: 0.5s;
    text-shadow: 0px 0px 3px #555;
}

#title {
    background: #233823;
    margin: -10px 0 0 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-bottom: 10px;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#title img {
    height: 80px;
    opacity: 0.7;
    margin: 0 20px 20px 0;
}

h1 {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 55px;
    letter-spacing: 4px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin: 0 0;
}

h1 a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3);
}

h5 {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    font-weight: 400;
    margin: -5px 0 -20px 20px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.subtitle {
    display: block;
    width: 50%;
    text-align: right;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    font-style: italic;
    color: #729762;
    font-weight: 300;
}

/* Main content */

#container {
    width: 1000px;
    margin: 40px auto;
    background: transparent;
    padding: 20px 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 0;
    border-bottom: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7em;
    color: #EBECF1;
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    letter-spacing: -1px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
}

h2:before {
    content: "⌯";
    margin: 0 20px 0 30px;
    font-size: 30px;
    color: #c68642;
}

h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 25px;
    letter-spacing: -1px;
    font-weight: 400;
    color: rgba(198, 134, 66, 0.8);
    text-transform: uppercase;
}

h3:before {
    content: "››";
    margin: 0 20px 0 50px;
    font-size: 25px;
    color: #c68642;
}

a {
    color: #729762;
}

a:hover {
    text-decoration: none;
}

.frontpic {
    height: 300px;
    width: 250px;
    object-fit: cover;
    margin: 10px 0 10px 30px;
    clip-path: polygon(25% 0%, 100% 0, 100% 65%, 75% 100%, 0 100%, 0 35%);
    float: right;
    opacity: 0.9;
}

.sign {
    width: 600px;
    display: block;
    text-align: right;
    line-height: 1.2em;
    font-family: 'DM Serif Text', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 22px;
    letter-spacing: 1px;
    margin-top: -10px;
}

.sign b {
    font-weight: 600;
    color: #729762;
    text-transform: uppercase;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
}

/* Listing */

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

.kasvatit th {
    background: rgba(255, 255, 255, 0.2);
    padding: 7px 15px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kasvatit td, .row {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
    color: #EBECF1;
}

.kasvatit tr {
    transition: 0.5s;
}

.kasvatit tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transition: 0.5s;
}

.kasvatit i {
    color: rgba(255, 255, 255, 0.5);
}

.kasvatit #vuosi {
    font-weight: 600;
    text-align: center;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.1);
  }

/* Footer */

#footer {
    width: 93%;
    background: #233823;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 50px;
    line-height: 1.5em;
}

#footer b {
    color: #729762;
}

#footer a {
    color: #729762;
}

.copy b {
    text-transform: uppercase;
    color: #729762;
}

#footer div {
    margin: 20px 15px;
    min-width: 300px;
}

/* Horse listing */

#karuselli {
    display: flex;
    justify-content: left;
    align-items: left;
    overflow-x: scroll;
    width: 1120px;
    margin-bottom: 60px;
    height: 420px;
    margin: 0 -60px;
}

h6, h6 a {
  font-size: 19px;
  line-height: 0.1em;
  color: #c68642;
  font-style: none;
  margin-bottom: 20px;
  margin-top: 20px;
  font-weight: 400;
  font-family: 'DM Serif Display', serif;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: 0.5s;
}

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

#gen {
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    height: 380px;
    margin: 0 5px;
    writing-mode: tb-rl;
    transform: rotate(-180deg);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    color: #EBECF1;
}

#hevonen img {
    height: 400px;
    width: 250px;
    object-fit: cover;
    margin: 0 15px;
    filter: grayscale(60%);
    opacity: 0.7;
    transition: 0.5s;
    clip-path: polygon(25% 0%, 75% 0%, 100% 5%, 100% 100%, 0 100%, 0 5%);
}

#hevonen img:hover {
    filter: none;
    transition: 0.5s;
}

#overlay {
    width: 250px;
    padding: 5px 0;
    margin-top: -99px;
    background: rgba(53, 72, 53, 0.7);
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    margin-left: 15px;
    line-height: 1.2em;
    color: #EBECF1;
}

icopy {
    font-size: 11px;
    color: #729762;
    display: block; 
    width: 100%; 
    text-align: right;
}

/* About page */

#gallery {
    display: flex;
    flex-direction: row;
    width: 1100px;
    margin-left: -50px;
    justify-content: center;
    align-items: flex-start;
}

#galleft {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 733px;
}

#galright {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 366px;
}

#galleft img {
    display: flex;
    flex-shrink: 0;
    height: 250px;
    width: 330px;
    margin: 15px 15px;
    object-fit: cover;
    border-radius: 5px 5px;
    opacity: 0.8;
    transition: 0.5s;
}

#galright img {
    display: flex;
    flex-shrink: 0;
    width: 330px;
    min-height: 250px;
    object-fit: cover;
    margin: 15px 15px;
    border-radius: 5px 5px;
    opacity: 0.8;
    transition: 0.5s;
}

#gallery img:hover, #ch_flex img:hover {
    opacity: 1;
    transition: 0.5s;
    filter: none;
}

#ch_flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    width: 100%;
}

#ch_flex div {
    margin: 0 20px;
    line-height: 1.5em;
    width: 150px;
}

#ch_flex img {
    display: flex;
    flex-shrink: 0;
    height: 120px;
    width: 120px;
    object-fit: cover;
    margin: 10px auto;
    border-radius: 5px 5px;
    opacity: 0.8;
    transition: 0.5s;
    filter: grayscale(90%);
}

#ch_flex b {
    color: #729762;
    font-size: 15px;
}