@font-face {
    font-family: kaunokirjoitus;
    src: url(Sevillana/Sevillana-Regular.ttf)
}

@font-face {
    font-family: leipis;
    src: url(Merriweather/Merriweather-VariableFont_opsz\,wdth\,wght.ttf)
}

body {
    font-family: leipis, serif;
    background-color: rgb(245, 239, 183);

}

.container {
    background-color: antiquewhite;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    font-family: kaunokirjoitus, serif;
    background-image: url(taustakuva.jpg);
    height: 200px;
    background-size: cover;
    font-size: 65px;
    color: #fff;
    text-shadow: 0px 0px 5px #3f1e00;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 19px 30px;
    box-sizing: border-box;
    line-height: 1;

    box-shadow: 0px -30px 50px -20px inset #3a2600;
}

.nav {
    background-color: #fff;
    color: black;
    padding: 6px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0px 10px 20px -8px rgb(255, 209, 156);
}

a:link {
    color: #3f1e00;
}

a:visited {
    color: #3a2600;
}

a:hover {
    text-decoration: none;
}

a:active {
    color: #3a2600;
}

.nav a {
    color: #3a2600;
    margin: 10px;
}

.main {
min-height: 300px;
}

.etusivu .main {
    text-align: center;
}

.tietosivu .main {
    padding: 40px;
}

.tietosivu .main p {
    max-width: 700px;
}

img {
    border: 15px solid #fff;
    margin: 8px;
}

.etusivu img:hover {
    box-shadow: 4px 4px 20px #946205;
}

.footer {
    text-align: center;
    background-color: black;
    color: #fff;
    padding: 30px;
    margin-top: 40px;
    clear: both;
}

.oikealla {
    float: right;
    margin-left: 40px;
    margin-bottom: 20PX;

}

figure {
display: inline-block;
position: relative;
margin: 0;
}

figcaption {
    background-color: #3f1e00;
    color: #fff;
    width: 200px;
    position: absolute;
    left: 23px;
    bottom: 24px;
    padding: 6px;
    box-sizing: border-box;
    visibility: hidden;
}

figure:hover figcaption {
    visibility: visible;
}