@import url('https://fonts.googleapis.com/css2?family=Lavishly+Yours&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {

    background-color: rgb(211, 164, 183);
    font-family: "Funnel Sans", sans-serif;
    color: rgb(0, 0, 0);
}

.main {
    min-height: 400px;
}


.etusivu .main {
    text-align: center;

}

.yhteys .main,
.tietosivu .main {
    padding: 40px;
    max-width: 700px;

}



.oikealla {
    float: right;
    margin-left: 40px;
}



.container {

    background-color: rgb(184, 97, 137);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.header {

    font-family: "Lavishly Yours", cursive;
    background-image: url(taustakuva.jpg);
    height: 200px;
    background-size: cover;
    font-size: 70px;
    color: #ffffff;
    text-shadow: 0px 0px 5px #1d4ca5;
    display: flex; 
    align-items: flex-end;
    justify-content: flex-end;
    padding: 15px 30px;
    box-sizing: border-box;
    line-height: 1;
    box-shadow: 0px -30px 50px -20px inset #b874df

}

.nav {

    text-align: center;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0px 10px 30px -10px rgb(139, 62, 62);

}

a:link {

    color:#ffffff
}


a:visited {

    color:#866c83
}



a:hover {

    text-decoration: none;
}


a:active {

    color: #ec39a8;
}

.nav a {

    color: #ec39a8;
    margin: 10px;

}

img {

    border: 10px solid #b68ed6;
    margin: 10px;

}

.etusivu img:hover {

    box-shadow: 4px 4px 20px #8339c0;


}

.footer {
    text-align: center;
    background-color: rgb(255, 255, 255);
    color: #866c83;
    padding: 20px;
    margin-top: 20px;
    font-size: 20px;
}




figure {

    display: inline-block;
    position: relative;
    margin: 0;


}



figcaption {

    background-color: #0000007e;
    color: white;
    width: 200px;
    position: absolute;
    left: 20px;
    bottom: 24px;
    padding: 4px;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;

}


figure:hover figcaption {

    visibility: visible;


}