@font-face {
    font-family: Kaunokirjoitus;
    src: url(Carattere-Regular.ttf);
}

@font-face {
    font-family: Leipis;
    src: url(Merriweather-VariableFont_opsz\,wdth\,wght.ttf);
}


body{
    font-family: Leipis, serif;
    background-color: #918773;
}

.container{
    background-color: rgb(197, 174, 144);
    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 #162436;

    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 hsl(214, 45%, 22%);
}

.nav {
    background-color: #fff;
    color: black;
    padding: 6px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0px 20px 20px -10px hsla(30, 40%, 41%, 0.616);
}


a:link {
    color: hsl(36, 20%, 28%);
}

a:visited {
    color: hsl(32, 21%, 39%);
}

a:hover {
    text-decoration: none;
}

a:active {
    color: hsl(34, 59%, 77%);
}

.nav a {
    color: #444;
    margin: 10px;
}

 .main {
    min-height: 300px;
 }

.etusivu .main {
    text-align: center;

}

.tietosivu .main {
    padding: 40px;
   /* background-color: rgba(255,255,255,0.8); */
   
}

.tietosivu .main p {
    max-width: 700px;
}

img {
    border: 18px solid #fff;
    margin:4px;
}

.etusivu img:hover {
    box-shadow: 4px 4px 20px hsla(27, 24%, 38%, 0.575);
}

.footer {
    text-align: center;
    background-color: rgb(0, 0, 0);
    color: #fff;
    padding: 30px;
    margin-top: 20px;
    clear: both;

}

.oikealla {
    float: right;
    margin-left: 40px;
    margin-bottom: 20px;
}

figure {
    display: inline-block;
    position: relative;
    margin: 0;
}

figcaption {
    background-color: #00000077;
    color: #fff;
    width: 200px;
    position: absolute;
    left: 22px;
    bottom: 26px;
    padding: 5px;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}

figure:hover figcaption {
    visibility: visible;
}
