html {
    height: 100%;
}

body {
    background: url("../obrazy/wagon2.jpg") no-repeat 790px 0 #214370;
    color: #ddd;
    font-family: "Helvetica Neue", Geneva, Helvetica, Trebuchet, Arial, sans-serif;
    font-size: 0.8em;
    line-height: 1.5;
    margin: 0;
    min-height: 100%;
    padding: 0;
    text-align: justify;
    counter-reset: figcaption-foto 0 figcaption-movie 0 figcaption-fig 0;
    hyphens: auto;
}

p {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

blockquote {
    margin-left: 1em;
    margin-right: 1em;
    line-height: 1.2;
    font-size: 0.9em;
}

.blurred {
    filter: blur(5px);
}

#modal {
    z-index: 1;
    position: fixed;
    max-width: 50vw;
    max-height: 50vh;
    min-height: 240px;
    margin-top: 25vh;
    margin-left: 25vw;
    background-color: #214370;
    border: 2px solid white;
    text-align: center;
}

#modal h3 {
    padding-bottom: 100px;
    font-size: 16px;
    background: url("../ilustracje/w16.png") no-repeat bottom center;
}

#page {
    float: left;
    min-height: 100%;
    max-width: 780px;
}

#top {
    background: url("../obrazy/semafor.jpg");
    float: left;
    height: 410px;
    width: 186px;
    margin: 0;
    padding: 0;
}

h3, h4, h5, h6, p {
    padding-left: 10px;
    padding-right: 10px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

#breadcrumbs {
    background: url("../obrazy/logo.jpg") no-repeat 180px 5px;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 60px;
    text-align: left;
}

#breadcrumbs span {
    font-weight: 700;
}

p em.s1 {
    color: red;
}

p em.s2 {
    color: green;
}

p em.s5 {
    color: orange;
}

p em.ms2 {
    color: #fff;
}

a, a:link, a:visited, a:active, p#footer:hover a, p#footer:hover a:link {
    color: #fff;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

#footer {
    clear: both;
    text-align: justify;
}

a.image {
    background: url("../obrazy/obraz.png") no-repeat left;
    padding-left: 20px;
}

a.movie {
    background: url("../obrazy/film.png") no-repeat left;
    padding-left: 20px;
}

a.sound {
    background: url("../obrazy/dzwiek.png") no-repeat left;
    padding-left: 20px;
}

a[href^="http://"] {
    background: url("../obrazy/external.png") no-repeat right;
    padding-right: 13px;
}

img, a img {
    border: 0;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.white {
    background-color: #fff;
}

img, article, .clear {
    clear: both;
}

article {
    padding-top: 1em;
    padding-bottom: 1em;
}

caption {
    caption-side: bottom;
    font-weight: 700;
    text-align: justify;
    width: auto;
}

ul, ol {
    margin-left: 10px;
    text-align: left;
}

li {
    margin-right: 10px;
    text-align: left;
}

#home li li {
    margin-left: 130px;
}

ol li {
    list-style-type: upper-roman;
}

ul li {
    list-style-type: square;
}

ol li li {
    list-style-type: decimal;
}

ol li li li {
    list-style-type: lower-alpha;
}

.twocolumns {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
}

h1, h2, hr, .hidden {
    display: none;
}

p {
    margin-top: 10px;
}

.left {
    float: left;
    margin-right: 10px;
}

.right {
    float: right;
    margin-left: 10px;
}

figure {
    margin: 1em 0;
    height: auto;
    max-width: 100%;
    clear: both;
}

figure img, figure video {
    display: block;
    margin: auto;
    vertical-align: middle;
    background-color: transparent;
    max-width: 100%;
    height: auto;
}

.wbg {
    background-color: #fff;
}

figure figcaption {
    margin-right: 2em;
    margin-left: 2em;
    margin-top: 1em;
    font-size: 0.95em;
    text-align: justify;
    line-height: 1.2;
}

figure figcaption.foto:before {
    counter-increment: figcaption-foto;
    content: "Fotografia " counter(figcaption-foto) ". ";
}

figure figcaption.movie:before {
    counter-increment: figcaption-movie;
    content: "Film " counter(figcaption-movie) ". ";
}

figure figcaption.fig:before {
    counter-increment: figcaption-fig;
    content: "Ilustracja " counter(figcaption-fig) ". ";
}

@media screen and (max-width: 580px) {
    #top {
        display: none;
    }

    #breadcrumbs {
        background: url('../obrazy/logo-iphone.jpg') no-repeat top left;
    }

    #home li li {
        margin-left: auto;
    }
}