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

/* Body and header */

body, html {
    margin: 0;
}

body {
    background: url('fieldsbg.jpg');
    background-size: 100%;
    background-attachment: fixed;
}

header {
    width: 100%;
    background: rgba(61, 79, 27);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    height: 80px;
}

#title {
    margin: 0 50px;
}

h1 {
    color: rgba(230, 204, 68);
    font-family: 'Unica One', sans-serif;
    font-size: 35px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
}

nav a {
    display: inline-block;
    text-decoration: none;
    margin: 0 25px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(247, 224, 192);
    transition: 0.5s;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    color: #fff;
    transition: 0.5s;
    border-bottom: 3px solid rgba(230, 204, 68);
    padding: 10px 0 7px 0;
}

/* Textarea */

h2 {
    color: rgba(61, 79, 27);
    font-family: 'DM Serif Display', serif;
    font-size: 25px;
    font-weight: 400;
    padding-left: 20px;
}

h3 {
    color: rgba(61, 79, 27);
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    padding-left: 30px;
}

h3:before {
    content: ":.";
    padding-right: 10px;
}

#textblock {
    width: 900px;
    margin: 0 auto;
    padding: 20px 40px;
    text-align: justify;
    background: rgba(247, 224, 192, 0.9);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8em;
}

#textarea {
    width: 900px;
    margin: 0 auto;
    padding: 20px 40px 40px 40px;
    text-align: justify;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8em;
}

a {
    color: rgba(61, 79, 27);
}

a:hover {
    text-decoration: none;
}

/* Footer */

footer {
    text-align: center;
    padding: 40px 0;
    font-family: 'Unica One', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

footer a {
    color: #fff;
}

/* Hevossivu */

#tietokuva {
    float: right;
    margin: 10px 0 0 30px;
    height: 250px;
    width: 350px;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
    border: 1px solid #fff;
    border-radius: 5px 5px;
    padding: 4px;
    background: rgba(230, 204, 68);
}

#tietokuva:hover, #kuvagalleria img:hover {
    opacity: 1;
    transition: 0.5s;
}

.meriittirivi {
    font-family: 'Unica One', sans-serif;
    font-size: 17px;
    letter-spacing: 1px;
    color: rgba(164, 145, 115);
    padding-left: 20px;
}

.tiedot {
    font-family: 'Unica One', sans-serif;
    font-size: 16px;
    color: rgba(149, 109, 28);
    padding-left: 20px;
}

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

#kuvagalleria img {
    height: 130px;
    margin: 10px;
    opacity: 0.8;
    transition: 0.5s;
    border: 1px solid #fff;
    border-radius: 5px 5px;
    padding: 4px;
    background: rgba(230, 204, 68);
}

#sukutaulu {
    width: 980px;
    margin: 20px -40px;
    background: rgba(61, 79, 27, 0.7);
    color: rgba(247, 224, 192);
    line-height: 1.3em;
    padding: 10px 0;
}

#sukutaulu a {
    color: rgba(247, 224, 192);
}

#sukutaulu b {
    color: rgba(230, 204, 68);
    font-weight: 700;
}

#sukutaulu small {
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.suku1, .suku2 {
    width: 33%;
    padding: 10px 0 10px 25px;
}

.suku1 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}

.suku3 {
    border-left: 2px solid rgba(255, 255, 255, 0.7);
}

#listaus {
    width: 100%;
    border-top: 2px solid rgba(61, 79, 27);
    margin: 10px 0;
}

#listaus th {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(61, 79, 27);
    border-bottom: 2px solid rgba(61, 79, 27);
    padding: 7px 10px 7px 20px;
}

#listaus td {
    border-bottom: 2px solid rgba(230, 204, 68);
    padding: 7px 10px 7px 20px;
}

#listaus tr:hover {
    transition: 0.5s;
    background: rgba(255, 255, 255, 0.7);
}

#listaus tr {
    transition: 0.5s;
}

/* Hevoslistaus */

#flexrow {
    display: flex;
    flex-direction: row;
    width: 980px;
    margin: 10px -40px;
}

.hevoslistaus {
    background: rgba(61, 79, 27, 0.7);
    width: 50%;
    color: rgba(247, 224, 192);
}

.hevoslistaus a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    text-decoration: none;
}

.vasen {
    margin: 10px 10px 10px 0;
    padding: 20px 20px 20px 40px;
}

.oikea {
    margin: 10px 0 10px 10px;
    padding: 20px 40px 20px 20px;
    text-align: right;
}

.vasen img {
    float: left;
    margin: 10px 20px 10px 10px;
    height: 250px;
    width: 170px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px 5px;
    padding: 4px;
}

.oikea img {
    float: right;
    margin: 10px 10px 10px 20px;
    height: 250px;
    width: 170px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px 5px;
    padding: 4px;
}

h4 {
    color: rgba(230, 204, 68);
    font-family: 'Unica One', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}