@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: -webkit-linear-gradient(#354835, #354835, #354835, #233823);
    height: 100%;
    background-attachment: fixed;
}

/* Header */

header {
    margin: 0 auto 30px auto;
    width: 100%;
    filter: drop-shadow(0 0 0.5rem black);
}

#title {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: #233823;
    justify-content: center;
    align-items: center;
    max-height: 70px;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 1rem black);
}

h1 {
    font-family: 'DM Serif Text', serif;
    font-size: 25px;
    letter-spacing: 12px;
    font-weight: 400;
    color: #c68642;
    text-shadow: 0px 0px 5px #333;
    text-transform: uppercase;
    margin: 0 20px;
    padding: 0 80px;
    background: #233823;
    z-index: 3;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    display: block;
    background: #233823;
    height: 90px;
    width: 180px;
    border-radius: 100% 100%;
    padding-top: 50px;
    text-align: center;
    margin: 0 -70px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.circle img {
    height: 50px;
    z-index: 3;
}

.headerimg {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Side bar */

#mainside {
    width: 250px;
    padding: 0 20px 0 0;
    color: #fff;
    font-family: 'Roboto', serif;
    font-weight: 400;
}

#nav {
  margin: 50px auto 20px auto;
  width: 200px;
}

#nav a {
    display: block;
    padding: 12px 20px;
    margin: 10px 0;
    background: #233823;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 1s;
}

#nav a:hover {
    transition: 1s;
    color: #c68642;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

/* Content */

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

#maincontainer {
    width: 950px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0 30px 0;
    padding: 0px 40px 20px 80px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7em;
    color: #EBECF1;
}

a {
    color: #fff;
}

a:hover {
    text-decoration: none;
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 50px;
    letter-spacing: -2px;
    font-weight: 600;
    color: #729762;
}

h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 23px;
    color: #c68642;
    margin-left: 20px;
}

.frontpic {
    height: 300px;
    width: 240px;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0px 0px 5px #000;
    margin: 10px 0 10px 30px;
    float: right;
}

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

icopy a {
    color: #729762;
}

/* 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 {
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 200px;
    padding: 20px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.5em;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    justify-content: center;
    align-items: center;
}

.copy {
    width: 500px;
    margin-right: 100px;
}

#footer a {
    color: rgba(255, 255, 255, 0.3);
}

/* About page */

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

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

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

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

#galright img {
    display: flex;
    flex-shrink: 0;
    width: 270px;
    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;
}

/* Horse listing */

#karuselli_wrap {
    display: flex;
    flex-direction: row;
    width: 1000px;
    margin: 25px 0 25px -40px;
    height: 260px;
}

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

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

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

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

#hevonen img {
    height: 250px;
    width: 350px;
    object-fit: cover;
    margin: 0 15px;
    filter: grayscale(60%);
    opacity: 0.7;
    transition: 0.5s;
}

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

#overlay {
    width: 350px;
    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;
}