@font-face {
    font-family: madi;
    src: url(MsMadi-Regular.ttf);
}
@font-face {
    font-family: titillinum regular;
    src: url(TitilliumWeb-Regular.ttf);
}
body {
background-color: #123458;
}
.container {
background-color: #D4C9BE;
max-width: 1100px;
margin-left: auto;
margin-right: auto;
}
.header {
background-image: url(taustakuva.jpg);

height: 300px;
background-size: cover;

font-family: madi, sans-serif;
font-size: 80px;
color: #fff;
text-shadow: 0px 0px 8px rgb(74, 93, 112);
line-height: 0.8;

display: flex;              /*jotta alla olevat toimivat*/
align-items: flex-end;      /*pystysuunnassa loppuun*/ 
justify-content: flex-end;  /*sivusuunnassa loppuun*/
padding: 25px 50px;
box-sizing: border-box;     /*jotta padding ei vaikuta kuvaan*/

box-shadow: 0px -40px 70px -20px inset #123458;

}
.nav {
background-color: #F1EFEC;
font-family: titillinum regular, sans-serif;
padding: 6px;
margin-bottom: 20px;
text-align: center;
box-shadow: 0px 10px 20px -10px #998c80;
}

.main {
font-family: titillinum regular;
}
figure {
    display: inline-block;
    position: relative;
    margin: 0;
}
figcaption {
    background-color: rgba(0,0,0,0.5);
    color: white;
    width: 200px;
    position: absolute;
    left: 20px;
    bottom: 21px;
    padding: 5px;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}
figure:hover figcaption {
    visibility: visible;
}
img {
    border: 10px solid #fff;
    margin: 5px 10px;
}
.etusivu img:hover {
    box-shadow: 5px 5px 15px hsla(32, 7%, 55%, 0.576);
}
.oikealla {
    float: right;
    margin-left: 50px;
    margin-bottom: 50px;
}
.etusivu .main {
    text-align: center;
}
.tietosivu .main {
    padding: 40px;
    max-width: 1000px;
}
.tietosivu .main p {
max-width: 700px;
}
.footer {
    background-color: #030303;
    color: #ebebeb;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
    clear: both;        /*footer alkaa kuin sisältö on loppunut*/
}
a:link {
color: rgb(0, 79, 153);
}
a:visited { 
color: rgba(0, 79, 153, 0.582);
}
a:hover {
text-decoration: none;
}
a:active {
color: rgb(0, 89, 255);
}
.nav a {
color: #444;
margin: 15px;
}