/*--------------------------------------------------

MEMORIAL ARCHIVE v4
Osa 1

--------------------------------------------------*/

:root{

--bg:#1f2725;
--bg2:#29332f;

--paper:#f5f3ee;

--text:#2e2e2e;
--light:#777;

--green:#39584d;
--green2:#4c7164;

--gold:#b89b61;

--line:#d9d6cf;

--shadow:0 20px 60px rgba(0,0,0,.25);

}

*{

margin:0;
padding:0;
box-sizing:border-box;

}

body{

background:
linear-gradient(rgba(18,24,22,.80),rgba(18,24,22,.80)),
url(background.jpg);

background-size:cover;
background-position:center;
background-attachment:fixed;

font-family:'Inter',sans-serif;

color:var(--text);

}

a{

color:#ad925a;

text-decoration:none;

border-bottom:1px solid transparent;

transition:.25s;

}

a:hover{

color:#b89b61;

border-bottom:1px solid #b89b61;

}

/* tumma kalvo */

.background-overlay{

position:fixed;

left:0;
top:0;

width:100%;
height:100%;

background:
linear-gradient(
135deg,
rgba(24,33,30,.25),
rgba(12,16,15,.55));

pointer-events:none;

z-index:-1;

}

/*--------------------------------------------------

SIVU

--------------------------------------------------*/

.page{

width:min(1250px,92%);

margin:70px auto;

background:var(--paper);

box-shadow:var(--shadow);

padding:60px;

position:relative;

}

/* koristeviiva */

.page::before{

content:"";

position:absolute;

left:25px;
right:25px;
top:25px;

height:2px;

background:var(--gold);

opacity:.5;

}

.page::after{

content:"";

position:absolute;

left:25px;
right:25px;
bottom:25px;

height:2px;

background:var(--gold);

opacity:.5;

}

/*--------------------------------------------------

HERO

--------------------------------------------------*/

.hero{

display:grid;

grid-template-columns:

380px

1fr

170px;

gap:50px;

align-items:start;

}

/*--------------------------------------------------

KUVA

--------------------------------------------------*/

.photo{

padding:12px;

background:white;

border:1px solid #ddd;

box-shadow:

0 0 0 5px #f2f2f2,

0 10px 30px rgba(0,0,0,.12);

}

.photo img{
    display:block;
    width:100%;
    height:560px;
    object-fit:cover;
    cursor:zoom-in;
}

.photo img.pos20{
    object-position:20% center;
}

.photo img.pos30{
    object-position:30% center;
}

.photo img.pos70{
    object-position:70% center;
}

.photo img.pos80{
    object-position:80% center;
}

#lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.88);

    display:none;
    justify-content:center;
    align-items:center;

    z-index:9999;
}

#lightbox.active{
    display:flex;
}

#lightbox img{
    max-width:90vw;
    max-height:90vh;
    box-shadow:0 25px 60px rgba(0,0,0,.5);
}

#lightbox .close{
    position:absolute;
    top:25px;
    right:35px;

    font-size:55px;
    color:white;

    cursor:pointer;
    user-select:none;
}

/*--------------------------------------------------

NIMI

--------------------------------------------------*/

.title{

margin-bottom:35px;

}

.title h1{

font-family:

'Cormorant Garamond',serif;

font-size:54px;

font-weight:600;

letter-spacing:2px;

color:#24352f;

line-height:1;

}

.dates{

margin-top:12px;

font-size:15px;

letter-spacing:3px;

text-transform:uppercase;

color:#7d7d7d;

}

/*--------------------------------------------------


--------------------------------------------------*/

.basic{

width:100%;

border-collapse:collapse;

margin-bottom:30px;

}

.basic th{

width:170px;

padding:11px 0;

font-weight:600;

text-align:left;

border-bottom:1px solid var(--line);

color:#444;

}

.basic td{

padding:11px 0;

border-bottom:1px solid var(--line);

}

/*--------------------------------------------------

MERIITIT

--------------------------------------------------*/

.titles{

display:flex;

flex-wrap:wrap;

gap:10px;

}

.titles span{

padding:

7px 14px;

background:var(--green);

color:white;

font-size:13px;

letter-spacing:1px;

text-transform:uppercase;

}

/*--------------------------------------------------

OIKEA NAVIGAATIO

--------------------------------------------------*/

.side-nav{

display:flex;

flex-direction:column;

gap:18px;

padding-top:30px;

}

.side-nav a{

font-family:'Cormorant Garamond',serif;
font-size:24px;
letter-spacing:1px;

text-decoration:none;

border-bottom:none !important;

color:#444;

padding-left:14px;

border-left:3px solid transparent;

transition:.30s;

}


.side-nav a:hover{

color:var(--green);

border-left:

3px solid var(--gold);

padding-left:22px;
border-bottom:none;
}

.side-nav a.active{

color:var(--green);

border-left:

3px solid var(--gold);

padding-left:22px;

}

/*--------------------------------------------------

YLEISET OTSIKOT

--------------------------------------------------*/

h2{

font-family:

'Cormorant Garamond',serif;

font-size:34px;

font-weight:600;

color:#24352f;

margin-bottom:25px;

padding-bottom:8px;

border-bottom:

2px solid var(--gold);

display:inline-block;

}

h3{

font-family:

'Cormorant Garamond',serif;

font-size:26px;

font-weight:500;

margin:

30px 0 15px;

color:#2f4c43;

}

p{

line-height:1.9;
margin:18px 0;
font-size:15px;
text-align:justify;
color:#555;

}

/*==================================
  SUKUTAULU
==================================*/

.pedigree{

width:100%;
border-collapse:collapse;
margin-top:20px;

font-size:14px;

}

.pedigree td{
padding:12px 16px;
border:1px solid #d8d6cf;
vertical-align:middle;
line-height:1.6;
}

/* Isälinja */
.pedigree .stallion{
background:#faf8f4;
}

/* Emälinja */
.pedigree .mare{
background:#faf8f4;
}

.pedigree b{
color:#355246;
font-weight:600;
}

.pedigree td small b {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.4;
}

.pedigree small{
display:block;
margin-top:6px;
font-size:12px;
line-height:1.5;
color:#6d6d6d;
}

.pedigree tr:nth-child(5) td{
border-top:1px solid #355246;
}

.ped-head{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:6px;
}

.evm{
display:inline-block;
margin-left:8px;
padding:2px 7px;
background:#f8f2e4;
border:1px solid #c7aa6a;
color:#8b6a2f;
font-size:10px;
font-weight:700;
letter-spacing:1px;
border-radius:3px;
}

/*=================================================

JÄLKELÄISET

=================================================*/

.offspring-table{
    width:100%;
    border-collapse:collapse;
    margin-bottom:35px;
    font-size:14px;
}

.offspring-table td{
    padding:12px 15px;
    border-bottom:1px solid var(--line);
    vertical-align:middle;
}

.offspring-table tr{
    transition:.25s;
}

.offspring-table tr:hover{
    background:#faf8f4;
}

.offspring-table td:nth-child(1){
    width:15%;
    font-weight:600;
}

.offspring-table td:nth-child(2){
    width:120px;
    white-space:nowrap;
    color:#666;
}

.offspring-table td:nth-child(3){
    width:120px;
    color:#666;
}

.offspring-table td:nth-child(4){
    width:120px;
    color:#355246;
}

.offspring-table td:nth-child(5){
    width:120px;
    text-align:right;
    text-transform:uppercase;
    font-size:11px;
    letter-spacing:1px;
    color:#999;
}

/*=================================================

KILPAILUT

=================================================*/

#competition p:last-of-type{
    font-size:14px;
    line-height:2;
}

#competition b {
    display: inline-block;
    margin: 0 5px;
    padding: 2px 7px;
    background: #355246;
    border: 1px solid #355246;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #f4f2ec;
    vertical-align: middle;
}

#competition u{
    text-decoration:none;
    font-weight:600;
    color:#355246;
}

#competition {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
}


/*=================================================

SISÄLTÖ

=================================================*/

.content{

margin-top:60px;

min-height:300px;

}

.tab-content{

display:none;

animation:fade .35s ease;

}

.tab-content.active{

display:block;

}

@keyframes fade{

from{

opacity:0;

transform:translateY(10px);

}

to{

opacity:1;

transform:translateY(0);

}

}

/*=================================================

LISTAT

=================================================*/

.content ul{

margin-top:15px;

margin-left:20px;

}

.content li{

margin:8px 0;

line-height:1.8;

}

/*=================================================

TAULUKOT

=================================================*/

.content table:not(.pedigree) {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.content th{

padding:12px;

background:var(--green);

color:white;

font-weight:500;

text-align:left;

}

.content td{

padding:11px;

border-bottom:1px solid var(--line);

}

.content tr:nth-child(even){

background:#faf9f7;

}

/*=================================================

FOOTER

=================================================*/

footer{

margin-top:70px;

padding-top:30px;

border-top:1px solid var(--line);

font-size:10px;

letter-spacing:2px;

text-transform:uppercase;

color:#888;

text-align:center;

}

/*=================================================

PIENIÄ YKSITYISKOHTIA

=================================================*/

::selection{

background:var(--green);

color:white;

}

img{

transition:.35s;

}

.photo:hover img{

transform:scale(1.02);

}

.photo{

transition:.35s;

}

.photo:hover{

transform:translateY(-4px);

box-shadow:
0 20px 45px rgba(0,0,0,.18);

}

.basic tr{

transition:.2s;

}

.basic tr:hover{

background:#faf8f4;

}

.titles span{

transition:.25s;

cursor:default;

}

.titles span:hover{

background:var(--gold);

color:white;

transform:translateY(-2px);

}

.side-nav a{

position:relative;

}

.side-nav a::after{

content:"";

position:absolute;

left:0;

bottom:-6px;

width:0;

height:1px;

background:var(--gold);

transition:.3s;

}

.side-nav a:hover::after,

.side-nav a.active::after{

width:100%;

}

/*=================================================

HEVOSLISTA

=================================================*/

.hevoslista {
    width: 100%;
    margin-top: 20px;
}

.hevonen {
    display: grid;
    grid-template-columns: 75px 150px 1fr 180px;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-bottom: 1px solid #e4e0d8;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #444;
}

.hevonen:nth-child(even) {
    background: #f8f7f3;
}

.hevonen-laji {
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.hevonen-arvonimi {
    font-size: 11px;
    color: #777;
}

.hevonen-nimi a {
    color: #a06f35;
    text-decoration: none;
}

.hevonen-nimi a:hover {
    color: #7a3f33;
}

.hevonen-meriitit {
    font-size: 10px;
    color: #777;
}

.hevonen.erotin {
    margin-top: 12px;
    border-top: 1px solid #cfc8ba;
}

/*=================================================

RESPONSIIVISUUS

=================================================*/

@media(max-width:1150px){

.hero{

grid-template-columns:

320px

1fr;

}

.side-nav{

grid-column:1 / -1;

flex-direction:row;

flex-wrap:wrap;

gap:20px;

padding-top:10px;

margin-top:15px;

}

.side-nav a{

padding-left:0;

border-left:none;

border-bottom:2px solid transparent;

}

.side-nav a:hover,

.side-nav a.active{

padding-left:0;

border-left:none;

border-bottom:2px solid var(--gold);

}

}

@media(max-width:850px){

.page{

padding:35px;

}

.hero{

display:block;

}

.photo{

max-width:420px;

margin:auto;

margin-bottom:40px;

}

.photo img{

height:auto;

}

.title{

text-align:center;

}

.basic{

margin-top:30px;

}

.side-nav{

justify-content:center;

margin-top:40px;

}

h1{

font-size:42px !important;

}

}

@media(max-width:600px){

.page{

width:96%;

padding:25px;

}

.basic th{

width:130px;

}

h2{

font-size:28px;

}

.side-nav{

flex-direction:column;

align-items:center;

}

.side-nav a{

font-size:20px;

}

.pedigree-table td{

padding:10px;

font-size:13px;

}

}