@import url('https://fonts.googleapis.com/css2?family=Fondamento:ital@0;1&family=Pontano+Sans:wght@300..700&display=swap');

body {
        background-image: url(https://i.ibb.co/4ZKfLRFy/taustakuva.jpg);
        background-attachment: fixed;
        font-family: "Pontano Sans", sans-serif;
		font-style: normal;
        max-width: 60%;
        margin: auto;
        padding: 0;
}

header {
        font-family: "Fondamento", cursive;
        font-weight: 400;
        font-style: normal;
        font-size: 50px;
        text-align: center;
        padding: 0.1em 0;
        color: rgb(194, 145, 136);
}

nav {
        background-color: rgba(77, 48, 43, 0.9);
        font-family: "Fondamento", cursive;
        font-weight: 400;
        font-style: normal;
        font-size: 20px;
        padding: 0.5em 0;
}

nav ul {
        padding: 5px;
        list-style: none;
        text-align: center;
}

nav li {
        display: inline;
        margin: 0 5px;
        padding: 15px;
        background-color: rgba(77, 48, 43, 1);
        border-radius: 10px;
}

nav a {
        color: rgb(194, 145, 136);
        padding: 60px;
        text-decoration: none;
}



a:hover {
        color: rgb(46, 22, 22);

}

a {
       color: rgb(0, 0, 0); 
}

.img1 {
        float: right;
        padding-left: 15px;
}

.img2 {
        float: left;
        border: rgb(0, 0, 0) 2px solid;
}

.clearfix {
        overflow: auto;
}

h1, h2 {
        font-family: "Fondamento", cursive;
        font-weight: 400;
        font-style: normal;
        margin: 15px;
}

section {
        background: rgb(131, 97, 83);
        padding: 20px;
        text-align: justify;
        color: rgba(0, 0, 0);
}

footer {

        background-color: rgba(77, 48, 43, 0.9);
        margin-bottom: 20px;
        color: rgba(0, 0, 0);
        text-align: center;
        padding: 1em 0;
}

footer a {
        color: rgb(0, 0, 0);

}


.tekstilaatikko {
	text-align: left;
	margin-left: 5%;
	
}

.image {
    float: right;
	margin-right: 5%;
	border: rgb(72, 60, 50) 1.5px solid;
	box-shadow: rgb(0, 0, 0) 0px 0px 2px;
}


.tammatd {
        background-color:rgba(255, 255, 255, 0.11);
}

.oritd {
        background-color:rgba(255, 255, 255, 0.11);
}
        
table {
        width:100%;
}

table.hevoset {
	margin: 20px 0 0 0;
	border-top: rgba(77, 48, 43, 0.2) 1.5px dashed;
	border-bottom: rgba(77, 48, 43, 0.2) 1.5px dashed;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
    color: rgb(0, 0, 0);
}

table.hevoset th, table.hevoset td {
    text-align: center;
}

table.hevoset tbody {
    font-size: 1em;
    line-height: 15px;
}

table.hevoset tbody tr {
    transition: background 1.2s, color 1.2s;
}

table.hevoset tbody tr:nth-child(even) {
    background: transparent;
}

table.hevoset tbody tr:hover {
    color: rgb(0, 0, 0);
    background: rgba(77, 48, 43, 0.7);
}

table.hevoset tbody td {
    padding: 12px;
}

table.hevoset tbody tr:hover td:first-child {
    background: rgba(0,0,0,0);
}

table.hevoset tbody td:first-child {
    text-align: left;
    padding-left: 20px;
    font-weight: 400;
    background: transparent;
    transition: background 0.6s;
}

.tekstilaatikko {
	text-align: center;

}

.image {
    float: right;
	margin-right: 10%;
	border: rgb(72, 60, 50) 1.5px solid;
	box-shadow: rgb(0, 0, 0) 0px 0px 2px;
}

#sukutaulu {
    padding: 0px;
	width: 100%;
	background: rgba(255, 255, 255, 0.11);
	border-collapse: separate;
    border: #15151536 1.5px solid;
    margin-bottom: 50px;
    font-size: 14px;
}

#sukutaulu td {
	padding: 5px 10px;
	border: #15151536 1.5px solid; 
}

.tieto table {
    border: 1.5px solid #dededf;
    height: 100%;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 1px;
    text-align: left;
    font-size: 14px;
}

.tieto th {
    border: 1.5px solid #15151536;
    background-color: rgba(255, 255, 255, 0.11);
    color: #000000;
    padding: 10px;
    text-align: left;
}

.tieto td {
    border: 1.5px solid #15151536;
    background-color: rgba(255, 255, 255, 0.11);
    color: #000000;
    padding: 8px;
    text-align: center;
}

* { 
	box-sizing: border-box; 
}

.box { 
	float: left; 
	width: 50%; 
	padding: 5px; 
	height: auto;
	text-align: center;
}
 .clearfix::after { 
	content: ""; 
	clear: both; 
	display: table; 
}

@media screen and (max-width: 400px) {
    h1 {
        font-size: 34px;
        line-height: 36px;
        padding-left: 15px;
    }

    article {
        margin: 10px 15px;
    }

    table.vitamins {
        font-size: 0.8em;
    }
}

        
           
        @media (max-width: 768px) {
            nav ul {
                text-align: left;
            }

            nav li {
                display: block;
                margin: 5px 0;
            }

            section {
                padding: 15px;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 0.5em 0;
            }

            main {
                padding: 10px;
            }

            section {
                padding: 10px;
            }

            footer {
                position: static;
            }
        }