@media (max-width: 700px) {
    html,
    body.indexPage {
        min-width: 0;
        width: 100%;
        height: auto;
        overflow-x: hidden;
    }

    body.indexPage {
        background: #fff;
        color: #292929;
        font-size: 16px;
        line-height: 1.55;
    }

    body.indexPage .wrapper {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 100vh;
        width: 100%;
        text-align: left;
    }

    body.indexPage #country_select {
        display: none;
    }

    body.indexPage #header {
        position: relative;
        order: 1;
        top: auto;
        width: 100%;
        height: 220px;
        overflow: hidden;
        background-color: #dcefc7;
        background-position: center top;
        background-size: auto 100%;
        border-bottom: 4px solid #4b9f25;
    }

    body.indexPage #navigation {
        position: relative;
        order: 2;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin: 0;
        background: #f4f7f1;
        border-bottom: 1px solid #cfd7ca;
    }

    body.indexPage #navigation a.home {
        display: none;
    }

    body.indexPage #navigation table.menu {
        position: static;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    body.indexPage #navigation .menu td {
        padding: 0;
        border-right: 1px solid #d7ddd3;
    }

    body.indexPage #navigation .menu td:last-child {
        border-right: 0;
    }

    body.indexPage #navigation .menu a,
    body.indexPage #navigation .menu a span {
        display: block;
        padding: 0;
        background: none;
    }

    body.indexPage #navigation .menu a {
        min-height: 50px;
        color: #2f6f19;
        font-size: 15px;
        font-weight: 700;
        line-height: 50px;
        text-align: center;
        text-shadow: none;
        white-space: nowrap;
    }

    body.indexPage #navigation .menu a.mark {
        color: #a20327;
        background: #fff4f5;
    }

    body.indexPage #register_now {
        position: relative;
        order: 3;
        top: auto;
        left: auto;
        box-sizing: border-box;
        width: calc(100% - 28px);
        height: auto;
        margin: 14px;
        padding: 0;
        text-align: center;
    }

    body.indexPage #register_now a {
        box-sizing: border-box;
        width: 100%;
        min-height: 50px;
        margin: 0;
        padding: 10px 18px;
        color: #276f0c;
        background: #edf7e8;
        border: 1px solid #66ad43;
        border-radius: 4px;
        font-size: 20px;
        line-height: 28px;
    }

    body.indexPage #register_now span {
        display: block;
        margin-top: 4px;
        color: #666;
        font-size: 12px;
    }

    body.indexPage #t4play {
        display: none;
    }

    body.indexPage #content {
        order: 4;
        box-sizing: border-box;
        width: 100%;
        padding: 0 14px 24px;
    }

    body.indexPage #content .grit,
    body.indexPage .grit .infobox,
    body.indexPage .grit .secondarybox {
        float: none;
        box-sizing: border-box;
        width: 100%;
        min-height: 0;
        margin: 0;
        background: none;
    }

    body.indexPage .grit .infobox > div {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 12px;
        padding: 14px;
        background: #f4f7f2;
        border-left: 4px solid #5aaa2d;
    }

    body.indexPage #what_is_travian {
        padding-top: 14px;
    }

    body.indexPage #what_is_travian h2,
    body.indexPage #about_the_game h2,
    body.indexPage #screenshots h2,
    body.indexPage #newsbox h2 {
        height: auto;
        margin: 0 0 8px;
        padding: 0;
        color: #222;
        background: none;
        font-size: 21px;
        line-height: 1.3;
        text-shadow: none;
    }

    body.indexPage #what_is_travian p,
    body.indexPage #about_the_game li,
    body.indexPage #newsbox .news p {
        font-size: 16px;
        line-height: 1.55;
    }

    body.indexPage #what_is_travian .play_now {
        display: none;
    }

    body.indexPage #player_counter {
        position: static;
        left: auto;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        background: #f4f7f2;
    }

    body.indexPage #player_counter table {
        position: static;
        width: 100%;
        border-spacing: 0;
    }

    body.indexPage #player_counter th,
    body.indexPage #player_counter td {
        padding: 5px 4px;
        border-bottom: 1px solid #d7ddd3;
        font-size: 16px;
    }

    body.indexPage #player_counter td {
        text-align: right;
    }

    body.indexPage #about_the_game ul {
        margin: 0;
        padding-left: 22px;
    }

    body.indexPage .grit #screenshots {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        margin-bottom: 12px;
        padding: 14px;
        background: #f4f7f2;
        border-left: 4px solid #5aaa2d;
    }

    body.indexPage #screenshots_preview {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    body.indexPage #screenshot_list,
    body.indexPage #screenshot_list.c1 {
        position: static !important;
        display: flex;
        gap: 8px;
        width: max-content !important;
        height: auto;
    }

    body.indexPage #screenshot_list li {
        float: none;
    }

    body.indexPage #screenshot_list img {
        display: block;
        width: 132px;
        height: 98px;
        object-fit: cover;
        border: 1px solid #c8cfc4;
    }

    body.indexPage #screenshots .navi {
        display: none;
    }

    body.indexPage #newsbox {
        box-sizing: border-box;
        width: 100%;
        padding: 14px;
        background: #f4f7f2;
        border-left: 4px solid #5aaa2d;
    }

    body.indexPage #newsbox .news {
        box-sizing: border-box;
        width: 100%;
        padding: 0;
        background: none;
    }

    body.indexPage #footer {
        position: relative;
        order: 5;
        bottom: auto;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        padding: 14px;
        background: #f1f3f0;
    }

    body.indexPage #footer .container {
        width: 100%;
    }

    body.indexPage #footer .menu {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 8px;
    }

    body.indexPage #footer .menu li {
        float: none;
    }

    body.indexPage #footer .copyright {
        position: static;
        width: 100%;
        text-align: center;
    }

    body.indexPage .overlay {
        position: fixed;
    }

    body.indexPage .overlay_content,
    body.indexPage #login_layer .overlay_content,
    body.indexPage #signup_layer .overlay_content,
    body.indexPage #iframe_layer .overlay_content,
    body.indexPage #screenshot_layer .overlay_content {
        position: fixed;
        top: 50%;
        right: auto;
        left: 50%;
        box-sizing: border-box;
        width: calc(100% - 24px);
        max-width: 420px;
        max-height: calc(100vh - 24px);
        margin: 0;
        overflow: auto;
        transform: translate(-50%, -50%);
        background: #fff;
        border: 1px solid #9cab93;
    }

    body.indexPage #login_layer .overlay_content,
    body.indexPage #signup_layer .overlay_content {
        padding: 0 12px 14px;
        overflow: hidden;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
    }

    body.indexPage #login_layer h2,
    body.indexPage #signup_layer h2 {
        margin: 0 -12px 12px;
        padding: 14px 52px 12px 16px;
        color: #2d8d16;
        background: #f4f7f2;
        border-bottom: 1px solid #cfd7ca;
        font-size: 19px;
        line-height: 26px;
    }

    body.indexPage #login_layer .closer img,
    body.indexPage #signup_layer .closer img {
        top: 11px;
        right: 12px;
        width: 32px;
        height: 32px;
        background-size: 32px auto;
    }

    body.indexPage #login_layer ul.world_list,
    body.indexPage #signup_layer ul.world_list {
        box-sizing: border-box;
        width: 100%;
        padding: 0;
    }

    body.indexPage .world_list li.w_big {
        float: none;
        box-sizing: border-box;
        width: 100%;
        height: 76px;
        margin: 0;
        overflow: hidden;
        background-position: left center;
        background-size: cover;
        border: 1px solid #d4dbcf;
        border-radius: 3px;
    }

    body.indexPage .world_list li.w_big::after {
        position: absolute;
        z-index: 10;
        top: 9px;
        right: 8px;
        width: 58%;
        height: 56px;
        content: "";
        background: rgba(255, 255, 255, .9);
        border: 1px solid rgba(120, 145, 105, .45);
        border-radius: 2px;
    }

    body.indexPage .world_list .w_big img {
        width: 100%;
        height: 76px;
    }

    body.indexPage .world_list .w_big img.w_button {
        opacity: 0;
    }

    body.indexPage .world_list .w_big div {
        z-index: 20;
        font-size: 14px;
        line-height: 20px;
    }

    body.indexPage .world_list .label_players,
    body.indexPage .world_list .label_online {
        left: auto;
        right: calc(14px + 7ch + 10px);
        white-space: nowrap;
    }

    body.indexPage .world_list .label_players,
    body.indexPage .world_list .w_big .players {
        top: 17px;
    }

    body.indexPage .world_list .label_online,
    body.indexPage .world_list .w_big .online {
        top: 37px;
    }

    body.indexPage .world_list .w_big .players,
    body.indexPage .world_list .w_big .online {
        right: 14px;
        min-width: 7ch;
        color: #49b916;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        text-align: right;
    }

    body.indexPage #login_layer .footer,
    body.indexPage #signup_layer .footer {
        display: none;
    }

    body.indexPage #screenshot_layer .screenshot_view img {
        max-width: calc(100% - 24px);
        height: auto;
    }
}

@media (min-width: 701px) {
    body.indexPage #footer .menu {
        right: 0;
        left: 0;
        display: flex;
        justify-content: center;
    }

    body.indexPage #footer .copyright {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

@media (max-width: 370px) {
    body.indexPage #header {
        height: 190px;
    }

    body.indexPage #navigation .menu a {
        font-size: 14px;
    }
}
