@import url('https://fonts.googleapis.com/css2?family=Lavishly+Yours&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mea+Culpa&display=swap');





body { 
    background:#d8d2b7;
    background: url(paper-1074131_1280.jpg) fixed;
    padding:0;
    margin:30px 0;
    color:#49473f;
    font-size:16px;
    font-family: Garamond, serif;
    line-height:1.1;
    font-style:normal;
    text-align:left;
    
}

#ulk {
    margin:0 auto;
    padding:0;
    width:100%;
    overflow: hidden;
    display: grid;
    float: left;
}

#palkki {
    margin:0;
    padding:1%;
    width:20%;
    float:left;
    position:fixed;
    text-align:center;
    z-index: 1; 
    top: 0; 
    left: 0;
}
    
.otsikko {
    font-family: "Lavishly Yours", cursive;
    font-size:60px;
    line-height:60px;
    color:#921721;
    float: left;
}
    
.koriste {
    border:0 solid #f8f7f1;
    
}

.ak {
    font-family: "Mea Culpa", cursive;
    font-size:30px;
    color:#8d6616;
    text-align:center;
}
    
#linkit {
    margin:0 0 0 35px;
    padding:0;
    float:left;
    font-size:20px;
    font-family: Garamond, serif;
    line-height:43px;
    text-align:center;
    
}
#linkit ul {
    margin:0;
    padding:0;
    list-style-type:none;
    width:auto;
    
}
#linkit ul li {
    display:block;
    margin:0;
    padding:0;
    
}
#linkit ul li a {
    display:block;
    margin:0;
    padding:0;
    width:231px;
    height:43px;
    text-decoration:none;
    color:#49473f;
    
}
#linkit ul li a:hover {
    text-decoration:none;
    margin:0;
    color:#ae1f14;
    background:#f8f7f1;
    
}

#teksti {
    background:#f8f7f1;
    border:12px solid #e8e5d4;
    margin:0 0 0 20%;
    padding:20px 50px;
    width:70%;
}

#perustiedot table {
	border-collapse: collapse;
	width: 80%;
	margin: auto;
	border:1px solid #dedede;
}

#perustiedot td {
    text-align: left;
    padding: 8px;
}

#perustiedot td:nth-child(odd) {
	text-align:right;
	font-size:12px;
	font-weight:600;
	letter-spacing:1px;
	text-transform:uppercase;
	padding-right:20px;
}
	
#perustiedot tr:nth-child(even) {
	background-color: #f0f0f0;
}

#kisat table {
	border-collapse: collapse;
	width: 90%;
	margin: auto;
	border: 0;
}

#kisat td {
    text-align: left;
    padding: 8px;
}

	
#kisat tr:nth-child(even) {
	background-color: #f0f0f0;
}

#heppalista table {
	border-collapse: collapse;
	width: 90%;
	max-width: 100%;
	margin: auto;
	border: 0;
	display: flex;
    flex-direction: row;
}

#heppalista td {
    text-align: left;
    padding: 10px;
}

	
#saavutukset {
	text-align:center;
	font-size:12px;
	color: #B5821C;
	text-transform:uppercase;
}

#sukutaulu {
    font-size: 16px;
    text-align: left;
    width: 95%;
    line-height: 140%;
}

#sukutaulu a {
    font-weight: normal;
    font-size: 16px;
    font-family: Garamond, serif;
}

.suku {
    padding-left: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px #d3b65f solid;
    border-left: 1px #d3b65f solid;
}

.suku2 {
    padding-left: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-left: 1px #d3b65f solid;
    width: 33%;
}

.suku3 {
    padding-left: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px #d3b65f solid;
    width: 33%;
}

.suku4 {
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 33%;
}

.palkinto {
	font-size: 12px;
	color: #B5821C;
	text-transform: uppercase;
}
.evm {
    float: right;
    margin-right: 10px;
    font-size: 13px;
	text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    color: #d1b357;
    padding: 0 5px 0 5px;
}



.accordion {
    background-color: #eee;
    color: #444;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}


.active1, .accordion:hover {
    background-color: #d56f67;
    color: #fff;
}


.panel {
    padding: 0 18px;
    display: none;
    overflow: hidden;
}


#copyt {
    margin:2% 0 2% 50%;
    width:100%;
    font-size:12px;
    display: flex;

    
}

h1 {
    margin:2% 0 3% 0;
    color:#921721;
    font-family: "Mea Culpa", cursive;
    font-size:45px;
    text-align:left;
    line-height:1.1;
}
h2 {
    margin:2% 0 3% 0;
    color:#921721;
    font-family: Garamond, serif;
    font-size:20px;
    text-align:right;
    text-transform: uppercase;
    line-height: 1.2;
    
}

h3 {
    color:#921721;
    font-family: Garamond, serif;
    font-size:17px;
    text-align:left;
    text-transform: uppercase;
    line-height: 1.2;
    
}



a:link, a:visited, a:active {
    color:#921721;
    text-decoration:none;
    
}
a:hover {
    color:#3E0A0E;
    text-decoration:none;
    
}

.tab {
    overflow: hidden;
    border-bottom: 1px #B59E7D solid;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    padding: 14px 16px;
    transition: 0.3s;
    color:#921721;
    font-family: Garamond, serif;
    font-size:17px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    width: 33%
}

.tab button:hover {
    background-color: #d56f67;
    color: #fff;
}

.tab button.active {
    background-color: #d56f67;
    color: #fff;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    -webkit-animation: fadeEffect 1s;
    animation: fadeEffect 1s;
}

@-webkit-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}



.hover-shadow {
    transition: 0.3s;
    margin:0 1% 1% 1%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#galleria {
    max-width:100%;
    float: none;
}




@media screen and (max-width: 600px) {
    
    #teksti {
        width: 95%; 
        margin: 0; 
        padding: 2%;
        border:0;
    }
    
    #palkki {
        width: 95%;
        padding: 2%;
        position: relative;
    }
    .tab button {
        width: 95%;
        padding: 2%;
        margin: 0;
        float: flex;
    }
    #copyt {
        width: 95%;
        padding: 2%;
        margin: 0;
    }
    .koriste {
        display: none;
    }
    
    #kisat table {
        width: 100%;
    }
    
    #kisat td {
        padding: 2px;
        font-size:11px;
    }
    #heppalista table {
        width: 100%;
    }
    
    #heppalista td {
        width: 90%;
        padding: 2px;
        display: flex;
        flex-direction: row;
    }
    
    

}    



