body {
    margin: 0;
    font-family: Nexa, "Avenir Next", Avenir, "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

header {
    display: table;
    height: 78vh;
    width: 100%;
}

.headercenter {
    background-image: url(fraktaali.jpg);
    /*background-image: url(fraktaali2.png);*/
    /*background-image: url(taustakuva.png), url(taustakuva-pieni.png);*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-image-rendering: pixelated;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    background-color: rgb(82, 91, 91);
    /*background-color: rgb(109, 119, 0);*/
}

.headercenter > h1 {
    font-size: 72px;
    font-weight: 500;
    margin: 0 18px;
    color: #eee;
    text-shadow: 0 0 10px black;
}

.container {
    line-height: 220%;
}

.fullwidth {
    position: relative;
    width: 100vw;
    left: calc(-50vw + 50%);
}

h1, h2 {
    font-weight: 400;
}

h1 {
    font-size: 36px;
    margin: 50px 0 30px 0;
}

h2 {
    font-size: 28px;
    margin: 35px 0 20px 0;
}

p {
    font-size: 17px;
}

img {
    width: 100%;
    display: block; 
    margin-bottom: 20px;
}

/*@media only screen and (max-width: 480px) {*/
@media screen and (orientation: portrait) {
    img {
        position: relative;
        width: 100vw;
        left: calc(-50vw + 50%);
    }

    img.withmargins {
        width: 100%;
        left: 0;
    }
}

a {
    color: hsl(202, 100%, 44%);
}

footer {
    text-align: center;
    padding: 16px;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto'), local('Roboto-Regular'), url(/roboto.ttf) format('truetype');
}

@font-face {
    font-family: 'Nexa';
    font-style: normal;
    font-weight: 400;
    src: local('Nexa-Book'), url(/nexa-book.ttf) format('truetype');
}

@font-face {
    font-family: 'Nexa';
    font-style: normal;
    font-weight: 500;
    src: local('Nexa'), local('Nexa-Regular'), url(/nexa.ttf) format('truetype');
}
