@font-face {
    font-family: header;
    src: url(fontit/Mea_Culpa/MeaCulpa-Regular.ttf);
}

@font-face {
    font-family: leipis;
    src: url(fontit/Zilla_Slab/ZillaSlab-Regular.ttf);
}

@font-face {
    font-family: leipis;
    src: url(fontit/Zilla_Slab/ZillaSlab-Bold.ttf);
    font-weight: bold;
}

@font-face {
    font-family: leipis;
    src: url(fontit/Zilla_Slab/ZillaSlab-Italic.ttf);
    font-style: italic;
}


body {
    background-color: #fff7dc;
    font-family: leipis, serif;
    margin: 0;
}

.etusivu, .nav, .header, .footer {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffefd2;
}

img {
    border: 20px solid #ffffff;
    margin: 10px;
}

.etusivu img {
    box-shadow: 2px 2px 15px #ffb951d5;
}

.etusivu img:hover {
    box-shadow: 2px 2px 15px #c07607;
}

.header {
    background-color: #ffb648;
    background-image: url(header-tausta.jpg);
    background-size: cover;
    background-position: right bottom;

    font-family: header, cursive;
    font-size: 80px;
    color: #ffffff;
    text-shadow: 0px 0px 5px #611800,
                 0px 0px 9px #611800,
                 0px 0px 13px #611800;
    line-height: 1;
    padding: 55px 55px;
    box-shadow: 0px -20px 20px inset #7726005b;
}

h1 {
    color: #c05a07;
    margin-top: 50px;
    margin-bottom: 20px;
}

.nav {
    background-color: #ffdfaf;
    padding: 13px;
    box-shadow: 2px 15px 25px -10px #ffb951e3;
}

.nav {
    color: #c05a07;
}

a:link {
    color: #d86100;
}
a:visited {
    color: #942500;
}
a:hover {
    text-decoration: none;
}
a:active {
    color: #c05a07;
}

.nav a {
    color: inherit;
    margin: 10px;
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

.footer {
    background-color: #bd7100;
    color: #fff7dc;
    padding: 30px;
    margin-top: 50px;
    clear: both;
}

.sivu .main {
    padding-left: 60px;
    padding-right: 60px;
}

.sivu .main p {
    max-width: 700px;    
}

.main {
    min-height: 500px;
}

.oikealla {
    float: right;
}

.maalaus {
    display: inline-block;
    position: relative;
}

.kuvateksti {
    background-color: #441600a2;
    color: #ffffff;
    padding: 7px 4px;
    position: absolute;
    left: 30px;
    bottom: 34px;
    width: 200px;
    box-sizing: border-box;
    visibility: hidden;
}

.maalaus:hover .kuvateksti {
    visibility: visible;
    pointer-events: none; /* onko tekemisissä hiiren kanssa */
}