body {
    background-color: rgb(192, 206, 152);
    text-align: center;
    max-width: 1230px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    background-color: rgb(158, 182, 93);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

}


.linkit {
    background-color: #fff;
    padding: 6px 0;
    margin-bottom: 20px;
    box-shadow: 0px 15px 20px -10px rgb(102, 119, 54);
}

.linkit a {
    margin: 10px;
}

.ylaosa {
    background-image: url(taustakuva.jpg);
    height: 200px;
    background-size: cover;
    box-shadow: 0px -30px 70px -20px inset rgb(43, 150, 97);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
     'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
     font-size: large;
     text-align: end;
     display: flex; 
     align-items: flex-end;
     justify-content: flex-end;
     padding-right: 10px;
     color: #cc2f2f;
     text-shadow: 2px 2px 1px #4b0909;
    
}

.ylaosa, .linkit {
    max-width: 945px;
    margin-left: auto;
    margin-right: auto;
}

.kuvat {}

main {
    max-width: 550px;
    text-align: left;
    margin-left: 30px;
    overflow: auto;
}
img {
    border: 10px solid #fff;
    margin: 9px;
}

.yhteyskuva {
    float: right;
}
footer {
    background-color: #333;
    color: #fff;
    padding: 30px;
    margin-top: 20px;
}


figure {
    display: inline-block;
    position: relative;
    margin: 0;
}


figcaption {
    background-color: rgba(0,0,0,0.5);
    color: white;
    width: 200px;
    position: absolute;
    left: 19px;
    bottom: 22px;
    padding: 6px;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}

figure:hover figcaption {
    visibility: visible;
}