@import url('https://fonts.googleapis.com/css2?family=WindSong:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,800;1,400&family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Sans&display=swap');

* {
    box-sizing: border-box;
}

a {color:#a28117;font-weight:bold;text-decoration:none;text-shadow:0px 0px 3px #bbb;}
a:hover {color:#b0a172;}
p {margin:20px 0;}

body {
    margin: 0;
    padding: 0;
  	background-color: #303425;
    /*font-family:'Lora', serif;*/
    font-family:'Noto Sans', sans-serif;
    font-size:14px;
    font-weight:500;
    line-height:1.8;
    color:#000;
    text-shadow:0px 0px 3px #aaa;
    background-image:url('https://lasikuu.net/pv/k/10bg.png');
    background-repeat: no-repeat;
    background-position: top left;
    background-attachment:fixed;
    position:relative;
}
.otsikko {
    margin: 420px auto 0px auto;
    width: 80%;
    position: relative;
    text-align: center;
    color: #e7e0d3;
    font-family: "WindSong", cursive;
    font-weight: 500;
    font-size:24px;
    letter-spacing:1px;
    text-shadow:1px 1px 2px #000;
}
.sivupalkki {
    width: 320px;
    top: 0;
    left: 0;
    position: fixed;
    height: 100vh;
    z-index: 40;
}
.linkit {}
.linkit ul {
    margin:10px auto 25px auto;
	padding:0;
	list-style:none;
}
.linkit li {
    height:45px;
    line-height:45px;
    text-align:center;
    transition: .2s ease-in;
}
.linkit li:hover {
    transition: .2s ease-in;
    cursor:hand;
    background-color:#3c4030;
}
.linkit a {
    font-weight:normal;
    text-shadow:1px 1px 1px #333;
    font-family: 'Playfair Display', serif;
	color:#e7e0d3;
	font-size:17px;
	letter-spacing:0.5px;
	text-decoration:none;
	display:block;
}
.linkit a:hover {
    color:#a28117;
}
.oik {
    border-radius:190px 0 0 0;
    width:calc(100% - 320px);
    min-height:100vh;
    background-color: #e7ddcd;
    background-image: url('https://lasikuu.net/pv/k/10sisaltobg.png');
    background-attachment:fixed;
    overflow:auto;
    position:absolute;
    top:0;
    left:320px;
    z-index:35;
    padding:80px 130px;
   -moz-box-shadow:    inset 0 0 30px #948775;
   -webkit-box-shadow: inset 0 0 30px #948775;
   box-shadow:         inset 0 0 30px #948775;
}
.footer {
    width:320px;
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 10px; 
    z-index: 1000; 
    color:#4f5341;
    line-height:1.3;
    letter-spacing:1px;
    font-size:10px;
    text-transform:uppercase;
    text-shadow:none;
}


/* -------------------- PERUSJUTTUJA -------------------- */

.etukuva {
    position:absolute;
    z-index:700;
    bottom:0;
    right:0;
}
.boksi { /*esim linkkiboksi etusivulla*/
    width:100%;
    margin:20px auto;
    background: rgba(182,171,153,0.5);
    background: linear-gradient(0deg, rgba(182,171,153,0.5) 0%, rgba(182,171,153,0.1) 100%);
    border-radius:2px;
    display:flex;
    padding:12px 25px;
}
.boksi-item {
    flex:1;
}
.nimmari {
    margin-right:30px;
    font-family: "WindSong", cursive;
    font-size:35px;
    letter-spacing:-25px;
    text-shadow:1px 1px 2px #ccc;
    padding:0 5px;
}

/* -------------------- PONILISTA -------------------- */

.ponilista2 {
    width:100%;
    margin:25px 0;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    line-height:1.8;
    grid-gap: 30px;
}
.ponilista2-item {
    text-align:center;
    line-height:1.5;
}
.ponilista2-item a {}
.ponilista2-item a:hover {color:#b5942a;}
.ponilista2-item:nth-child(odd) {}
.ponilista2-item img {
    float:left;
    border-radius:50%;
    margin-bottom:10px;
    margin-left:20px;
    box-shadow:1px 1px 2px #bbb;
}
.ponilista2-item img:hover {}

.ponilista2-nimi {
    padding:3px 0;
    background: rgb(101,108,88);
    background: linear-gradient(0deg, rgba(48,52,37,1) 0%, rgba(67,72,51,1) 100%);
    border-radius:5px;
    font-size:15px;
}
.ponilista2-nimi a {
	color:#fff;
    text-shadow:1px 1px 2px #555;
    font-weight:normal;
    text-decoration:none;
}
.ponilista2-tiedot {
    font-size:14px;
}
.ponilista2-meriitit {
    font-size:14px;
}
.ponilista2-meriitit a {
    color:#111;
    text-decoration:none;
    font-weight:normal;
    font-size:14px;
}

/* -------------------- PONISIVUT -------------------- */

.ptflex {
    margin:40px auto 0px auto;
    width:100%;
    display:flex;
    flex-direction: row;
}
.ptflex-item:first-child {
    flex:1.1;
    padding-right:55px;
}
.ptflex-item:last-child {
    flex:0.9;
    padding-left:55px;
}
.ptflex-item:last-child img {
    max-width:100%;
    margin:20px 0;
    border-radius:20px;
    box-shadow:1px 1px 2px #bab1a3;
}
.ptflex-item:last-child img:hover {
    opacity:0.95;
    transition: .2s ease-in;
}
.taulu-new { /*perustietotaulukko*/
    width:100%;
    margin:20px 0;
    border-collapse:collapse;
}
.taulu-new th, .taulu-new td {
    padding:2px 10px;
}
.taulu-new tr:nth-child(odd) {
    background: rgba(182,171,153,0.5);
    background: linear-gradient(0deg, rgba(182,171,153,0.6) 0%, rgba(182,171,153,0.2) 100%);
}
.taulu-new tr:nth-child(even) {}
.taulu-new th {
    text-align:left;
    font-weight:bold;
    text-shadow:none;
}
.taulu-new td {
    text-align:left;
}

.meriitit {
    padding:35px 5px 0 0;
    float:right;
    font-size:25px;
    font-style:italic;
    color:#bab1a3;
}
.meriitit a {
    color:#bab1a3;
    text-decoration:none;
    font-weight:normal;
}
.meriitit a:hover {
    opacity:0.8;
}
.geno {
    padding:0 2px;
    font-style:italic;
    font-size:13px;
    color:#555;
}
.info {
    padding:0 4px;
    font-size:13px;
    color:#999;
}
.sukutaulu, .sukutaulu4 {
    width:100%;
    margin:20px auto;
    box-shadow:1px 1px 3px #cecece;
    border-collapse:collapse;
    border-top:5px solid #303425;
    border-bottom:5px solid #303425;
}
.sukutaulu td {
    width:33%;
    padding:10px 15px;
    line-height:1.3;
    background: rgba(182,171,153,0.5);
    background: linear-gradient(0deg, rgba(182,171,153,0.5) 0%, rgba(182,171,153,0.1) 100%);
}
.sukutaulu td small a, .sukutaulu4 td small a {
    text-decoration:none;
    font-weight:normal;
    color:#000;
}
.sukutaulu4 td {
    font-size:14.5px;
    width:25%;
    padding:8px 10px;
    line-height:1.2;
    background: rgba(182,171,153,0.5);
    background: linear-gradient(0deg, rgba(182,171,153,0.5) 0%, rgba(182,171,153,0.1) 100%);
}
.linjat { /*pitkasukuisten isa/emalinja disclaimer*/
    margin:0 10px 10px 0;
    float:right;
    color:#555;
    font-size:12px;
}  
.kisaflex {
    margin:20px auto;
    width:100%;
    display:flex;
    flex-direction: row;
    align-items:center;
}
.kisaflex-item:first-child {
    flex:2.5;
    padding-right:30px;
}
.kisaflex-item:last-child {
    flex:1;
    padding-left:30px;
}
.kisaflex-item:last-child .pikkuots {
    margin-bottom:10px;
}
.kisaflex-item .taulu-new {
    margin:0px;
}
.lista {    
    margin:20px auto;
    width:100%;
    border-collapse:collapse;
}
.lista tr:nth-child(odd) {
    background: rgba(182,171,153,0.5);
    background: linear-gradient(0deg, rgba(182,171,153,0.6) 0%, rgba(182,171,153,0.2) 100%);
}
.lista tr:nth-child(even) {
    background-color:inherit;
}
.lista td {
    padding:5px 15px;
    line-height:1.5;
    font-size:14px;
}


/* -------------------- KG JA REUNAT -------------------- */

.kg { /*kayta heppasivun kuvagalleriassa*/
    margin:20px 10px 0px 10px;
    border-radius:20px;
    box-shadow:1px 1px 2px #ccc;
}
.reunat {
    max-width:50%;
    margin:20px 0;
    background-color:#fff;
    padding:4px;
    border-radius:2px;
    box-shadow:1px 1px 4px #aaa;
}
.reunat:hover {
    opacity:0.9;
    transition:.2s ease-out;
}
.copy {
    text-align:center;
    font-size:12px;
    color:#999;
}


/* -------------------- KASVATIT -------------------- */

.kasvlista {    
    margin:20px auto;
    width:100%;
    border-collapse:collapse;
}
.kasvlista th {
    text-align:left;
    padding:5px 15px;
    background: linear-gradient(0deg, rgba(48,52,37,1) 0%, rgba(67,72,51,1) 100%);
    color: #e7e0d3;
    font-weight:normal;
}
.kasvlista tr {}
.kasvlista td {
    padding:5px 15px;
}
.kasvlista tr:nth-child(odd) {
    background: rgba(182,171,153,0.5);
    background: linear-gradient(0deg, rgba(182,171,153,0.6) 0%, rgba(182,171,153,0.2) 100%);
    
}
.kasvlista tr:nth-child(even) {}
.kasv1 {width:12%;}
.kasv2 {width:13%;}
.kasv3 {width:19%;}
.kasv4 {width:30%;}
.kasv5 {width:11%;}
.kasv6 {width:15%;}

/* -------------------- PUDOTUSVALIKKO -------------------- */

.dropdown {
    width:100%;
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */

.dropdown-content {
    text-align:left;
    display: none;
    position: absolute;
    background-color:#3c4030;
    min-width: 220px;
    box-shadow:2px 2px 4px #222;
    z-index: 1;
    top:0;
    left: 280px;
}

/* Links inside the dropdown */

.dropdown-content a {
    padding: 0px 14px;
    text-decoration: none;
    display: block;
    border-bottom:1px solid #30332a;
}
.dropdown-content a:hover {
    color:#a28117;
}
.dropdown:hover .dropdown-content {
    display: block;
}


/* -------------------- HOO OTSIKOT -------------------- */

h1 {
    margin:0 0 30px 0;
    padding:0 0 0 4px;
    color:#303425;
    font-weight:normal;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 3px #aaa;
    border-bottom:3px dotted #bab1a3;
    font-size:28px;
}
h1:first-letter {
    font-family: "WindSong", cursive;
    font-size:200%;
    padding-right:2px;
}
h2 {
    margin:30px 0;
    color:#303425;
    font-weight:normal;
    font-family: 'Playfair Display', serif;
    border-bottom:3px dotted #bab1a3;
}
.ptflex-item h2 {
    font-size:21px;
    margin:0;
    border-bottom:0px dotted #ccc;
}
.pikkuots {
    font-size:17px;
    margin:0;
    border-bottom:0px dotted #ccc;
}
h3 {
    margin:0;
    font-family: 'Playfair Display', serif;
    font-weight:normal;
    text-shadow: 2px 2px 3px #bbb;
}
h3:before {
    content: "\00bb \00a0";
    color:#000;
}
.tietonenots {
    border-bottom:none;
}


/* -------------------- RESPONSIIVISUUS -------------------- */

@media screen and (max-width: 1540px) { /*125% zoom naytto ja pienemmat*/
    body {font-size:80%;}
    h1 {font-size:190%;}
    h2, h3, .tietonenots {font-size:130%;}
    .otsikko {margin: 390px auto 0px auto;}
    .ptflex {flex-direction: column;}
    .ptflex-item:first-child {flex:1;padding-right:0px;}
    .ptflex-item:last-child {flex:1;padding-left:0px;}
    .ptflex-item img {max-width:98%;float:none;}
    .oik {padding:80px 100px;}
    .etukuva {display:none;}
    .boksi {flex-direction: column;}
    .ponilista2 {width:100%;margin:20px 0;display:grid;grid-template-columns: 1fr;line-height:1.8;grid-gap: 20px;}
    .kisaflex {flex-direction: column;}
    .kisaflex-item:first-child {}
    .kisaflex-item:last-child {flex:1;padding-left:0px;}
}