body{
    max-width: 900px;
}

.navi{
    font-size: 18px;
}

@media only screen and (max-width: 620px) {
    li.navi{
        visibility: hidden;
        height: 0;
        width: 0;
        padding: 0;
    }

    .dropdown{
        visibility: visible;
    }
}

@media only screen and (min-width: 621px) {
    .navigaatio{
        display: inline;
        padding: 0.5em;
    }

    .dropdown{
        visibility: hidden;
        height: 0;
        width: 0;
    }
}

@media only screen and (min-width: 660px) {
    .navigaatio{
        display: inline;
        padding: 0.5em;
    }

    li{
        max-width: 900px;
    }
}

@media screen and (min-width: 900px) {
    body {
        margin-left: calc((100% - 900px)/2);
    }
}

h1 {
    font-size: 1.5rem;
    margin-top: 0.5em;
    line-height: 1.5rem;
    color: black;
    background: rgba(100%, 100%, 100%, 0.8);
}

h2 {
    font-size: 1.3rem;
    margin-top: 0.0em;
    margin-bottom: 0.0em;
    line-height: 1.3rem;
    color: black;
    text-shadow: 0px 1px 1px white, 0 0 1.5em black, 0 0 0.1em silver;
}

h4 {
    font-size: 1.0rem;
    margin-top: 0.0em;
    margin-bottom: 0.0em;
    margin-left: 10px;
    line-height: 1.0rem;
    color: White;
    text-shadow: 0px 1px 2px black, 0 0 2em black, 0 0 0.1em black;
}

p {
    font-weight: bold;
    font-size: 1rem;
    color: black;
    background: rgba(100%, 100%, 100%, 0.8);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

li {
    font-weight: bold;
    font-family: sans;
    font-style: italic;
    color: black;
    padding: 0.1em;
}

ul{
    list-style: none;
    padding: 0;

}

.navigaatio{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #777;
    width: 100%;
}

li.navi{
    float: left;
    border-right: 1px solid #bbb;
}

li.navi a{
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li.navi a:hover{
    background-color: #444;
}

.active{
    float: left;
    border-right: 1px solid #bbb;
    display: block;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: #555;
}

a{
    color: black;
    padding: 0.2em 0.2em;
    width: max-content;
}
a:hover {
    color: gray;
}

a:active {
    background: black;
    color: white;
}

.taustakuva {
    position: fixed;
    top: 0;
    left: 0;
    background-size: cover;
    background-position-x: 20%;
    background-position-y: 20%;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: #f0f5f9;
    background-size: 100% 100%;
}

header{
    display: flex;
}

img.logo{
    width: 6em;
    height: 6em;
    margin-top: 0em;
    cursor: pointer;
}

img.kuva{
    width: 100%;
    height: 10em;
    margin-top: 0em;
    cursor: pointer;
}

section.Aittopajanpalvelut {
    color: blue;
    width: 57em;
    max-width: 100%;
    align-content: center;
    background-image: linear-gradient(#c8c8c8, #e0e0e2);
    text-align: center;
}

section.Pajamies {
    color: white;
    width: 57em;
    max-width: 100%;
    background-image: linear-gradient(#c8c8c8, #e0e0e2);
    text-align: center;
}

section.Galleria {
    color: white;
    width: 57em;
    max-width: 100%;
    background-image: linear-gradient(#c8c8c8, #e0e0e2);
    text-align: center;
}

section.Yhteystiedot {
    color: white;
    bottom: 0;
    width: 57em;
    max-width: 100%;
    background-image: linear-gradient(#c8c8c8, #e0e0e2);
    text-align: center;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.maparea{
    max-width: 100%;
}
