@media screen and (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }

    #header {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .pint {
        width: 95%;
        max-width: 480px;
    }

    #header_top {
        height: auto;
    }

    #logo {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }

    #logo a {
        display: block;
        height: auto;
        width: 180px;
    }

    #nav {
        float: none;
        margin: 0;
        text-align: center;
        border: 0 solid red;
    }

    #nav ul {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 0;
        height: auto;
    }

    #nav li {
        float: none;
        display: inline-block;
        margin: 0 8px;
    }

    #nav a {
        padding: 5px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    #page-wrap {
        position: relative;
        top: 0;
        overflow: visible;
    }

    #page1, #page2, #page3, #page4 {
        height: auto;
        min-height: 300px;
        overflow: visible;
    }

    #page1 {
        background: url(images/pozadi_a1b.png) repeat-x top center;
        background-size: auto auto;
    }

    #page1 h1 {
        font-size: 22px;
        padding-bottom: 0.5em;
    }

    #page1 img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 10px auto;
    }

    .jakstarat, .asociace {
        float: none;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        background: none;
    }

    .jakstarat_int, .asociace_init {
        padding: 15px;
    }

    .jakstarat h2, .asociace h2 {
        font-size: 20px;
    }

    #page1 .jakstarat a,
    #page1 .asociace a {
        color: #000000;
        text-decoration: underline;
    }

    #page1 .asociace a:hover {
        text-decoration: none;
    }

    .c1, .c2 {
        float: none;
        width: 100%;
        margin: 0 0 15px 0;
    }

    #page2 {
        background: url(images/pozadi_a2.png) repeat-x top center;
        background-size: auto auto;
    }

    #page2 h2, #page3 h2, #page4 h2 {
        font-size: 22px;
        padding-top: 0;
    }

    #page2 h3 {
        font-size: 28px;
        padding-top: 5px;
    }

    #page2 .c2 {
        padding-top: 0;
    }

    #page3 {
        background: url(images/pozadi_a3.png) repeat-x top center;
        background-size: auto auto;
    }

    .mailto a {
        font-size: 20px;
        display: block;
        margin: 10px auto;
        width: auto;
    }

    #page4 {
        background: url(images/pozadi_a4.png) repeat-x top center;
        background-size: auto auto;
        padding-top: 90px;
    }

    #page4 .page-padding4 {
        display: none;
    }

    #page4 h2 {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 10px;
    }

    #page4 em {
        display: block;
        padding-top: 0;
        font-size: 16px;
        color: #249506;
    }

    #page4 .c1, #page4 .c2 {
        padding: 0;
        margin: 0 0 15px 0;
    }

    #footer {
        background-color: #332a2b;
        padding: 15px;
    }

    #footer .text, #footer .menu {
        float: none;
        width: 100%;
        margin: 0 0 15px 0;
    }

    #footer .menu p {
        display: inline-block;
        margin: 0 5px 0 0;
    }
}
