@font-face {
    font-family: otsikko;
    src: url(MeaCulpa-Regular.ttf);
}
@font-face {
    font-family: tavallinen teksti;
    src: url(static/Lexend-Regular.ttf);}

@font-face {
    font-family: tavallinen teksti;
    src: url(static/Lexend-Bold.ttf);
    font-style: bold;
}
@font-face {
    font-family: tavallinen teksti;
    src: url(static/Lexend-Light.ttf);
    font-style: italic;
}

body {
font-family: "tavallinen teksti", serif;
margin: 0px;
background-color: #2d643e;
}

.etusivu, .header, .nav, .footer{
text-align: center;
margin: 0;
}
.container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background-color: #a0c2a0;
}
img {
    border: 20px solid #ffffff;
    margin: 10px;
}
.etusivu img {
        box-shadow: 2px 2px 15px rgb(63, 85, 51);
}
.etusivu img:hover {
box-shadow: 2px 2px 15px rgb(91, 136, 70);
}
.header {
background-color: #329c55;
background-image: url(header.jpg);
background-size: cover;
background-position: right bottom;

color: #fff;
text-shadow: 0px 0px 5px #2f642f,
             0px 0px 9px #2f642f,
             0px 0px 13px #2f642f;
font-family: "otsikko", cursive;
font-size: 80px;
line-height: 0.8;
padding: 60px 0px;
box-shadow: 0px -20px 20px inset #aadabc81;
}

h1 {
    color: #ffffff;
    font-family: tavallinen teksti;
}
a:link {color: #97cfaa;
}
a:visited {
    color: #24572f;
}
a:hover {
text-decoration: none;
}
a:active {
    color: #cbffcb;
}

.nav {
background-color: #ffe6c9;
padding: 10px;
box-shadow: 2px 2px 15px rgb(104, 129, 88);
}
.nav {
    color: #24572f;
    font-family: tavallinen teksti;
}
.nav a {
    color: inherit;
    margin: 15px;
    text-decoration: none;
}
.nav a:hover {
    text-decoration: underline;
}
.footer {
background-color: #dfcfad;
color: #fff;
padding: 30px;
margin-top: 50px;
clear: both;
}
.sivu .main {
    padding-left: 50px;
    padding-right: 50px;
}
.sivu main p {
        max-width: 700px;
}
.main {
    min-height: 500px;
}
.oikealla {
    float: right;
}
.maalaus {
    display: inline-block;
    position: relative;
}

.kuvateksti {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 6px 4px;
    position: absolute;
    left: 30px;
    bottom: 34px;
    width: 200px;
    box-sizing: border-box;
    visibility: hidden;
}

.maalaus:hover .kuvateksti {
    visibility: visible;
    pointer-events: none;
}