@font-face {
    font-family: kauno;
    src: url(Rouge_Script/RougeScript-Regular.ttf);
}

@font-face {
    font-family: leipis;
    src: url(Merriweather/Merriweather-VariableFont_opsz\,wdth\,wght.ttf);
}

@font-face {
    font-family: otiskko;
    src: url(Merriweather/Merriweather-Italic-VariableFont_opsz\,wdth\,wght.ttf);
}


body {
background-color: rgb(250, 145, 197);
font-family: leipis, serif;
}


.container {
    background-color: rgb(252, 197, 225);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;

}

.header {
    background-image: url(taustakuva.jpg);
    height: 200px;
    background-size: cover;
    font-family: kauno, serif;
    font-size: 53px;
    color: #fff;
    text-shadow: 0px 0px 5px #7478c4;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
    box-sizing: border-box;

}

.nav {
    background-color: #ffffff;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: #fd4aa4;
}


a:link {color: #ffb3d9;}
a:visited {color: #fd4aa4;}
a:hover {text-decoration: none;}
a:active {}

.main {
    font-size: 14px;
    color: #fff;
    font-family: otiskko;
    text-align: center;
}

.oikealla {
    float: right;
    margin-left: 10px;
}

.nav a {
    color: #fd4aa4;
    margin: 10px;
}

img {
    border: 16px solid #fcf4f8;
    margin: 4px;
}

img:hover {
    box-shadow: 4px 4px 20px #94456c86;
}

.galleria .main {
    text-align: center;
    padding: 40px;
    max-width: 600px;
}

.tietosivu .main {
    padding: 40px;
    text-align: left;
}

.tietosivu .main p {
    max-width: 900px;
    text-align: left;
}

.footer {
    background-color: rgb(37, 35, 35);
    color: #fff;
    padding: 30px;
    margin-top: 20px;
    text-align: center;
    clear: both;
}

figure {
display: inline-block;
position: relative;
margin: 0;
}

figcaption {
background-color: rgba(250, 145, 197, 0.699);
color: #fff;
width: 200px;
position: absolute;
left: 20px;
bottom: 23px;
padding: 6px;
box-sizing: border-box;
visibility: hidden;
pointer-events: none;
}

figure:hover figcaption {
visibility: visible;
}

