
@media screen and (min-width: 100px) {
    #AppFooter_Global footer .buttons.wide .icon {
        /*margin-left: -10px;
        margin-right: -10px;*/
    }
    #AppPageCommunityEventReservations_Grid, #AppPageCommunityInfo_Grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 300px) {
    #AppFooter_Global footer .buttons.wide .icon {
        /*margin-left: 0px;
        margin-right: 0px;*/

        /* if only 3 icons */
        /*margin-left: 0px;
        margin-right: 0px;*/
    }
}
/*
@media screen and (min-width: 500px) {
    #AppFooter_Global footer .buttons.wide .icon {
        margin-left: 5px;
        margin-right: 5px;
    }
    #AppFooter_Global footer .buttons.wide .icon .svg {
        width: 30px;
        height: 30px;
    }
    #AppPageRaces_Grid, #AppPageArticles_Grid {
        grid-template-columns: 1fr 1fr;
    }
}
*/

@media screen and (min-width: 600px) {
    #AppFooter_Global footer .buttons.wide .icon {
        /*margin-left: 10px;
        margin-right: 10px;*/

        /* if only 3 icons */
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media screen and (min-width: 800px) {
    #AppFooter_Global footer .buttons.wide .icon {
        /*margin-left: 20px;
        margin-right: 20px;*/

        /* if only 3 icons */
        margin-left: 15px;
        margin-right: 15px;
        /*width: 36px;
        height: 36px;*/
    }
    #AppFooter_Global footer .buttons.wide .icon .svg {
        /*width: 36px;
        height: 36px;*/
    }
    #AppPageCommunityEventReservations_Grid, #AppPageCommunityInfo_Grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    #AppPageReservations_Grid .items {
        grid-template-columns: 1fr 1fr 1fr;
    }
    #AppPageRaces_Grid, #AppPageArticles_Grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 1200px) {
    body {
        /*background: #F9F9F9;*/
        background: url("../_img/bg.png") center center no-repeat;
        background-size: cover;
    }
    /*
    #AppPageLogin {
        background: none;
    }*/
    #AppPageLogin .note {
        background: none;
        color: #666666;
    }
    .app {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-top: 80px;
    }
    .not_logged_in .app {
        padding-top: 0px;
    }
    
    .not_logged_in .app {
        padding-bottom: 80px;
    }

    #AppFooter_Global footer .buttons {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    #AppPageReservations_Grid .items {
        grid-template-columns: 1fr 1fr 1fr 1fr;

    }
    #AppPageReservations_DateFilter {
        overflow: hidden; /* FF and Edge */
    }
    #AppPageReservations_DateFilter.collapsed {
        height: 64px;
    }
    /*header .menu-container {
        position: relative;
    }*/
    /*
    header .menu {
        right: 0;
        margin-top: -1px;
        margin-right: -10px;
    }*/
    #AppPageRaces_Grid, #AppPageArticles_Grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .header {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
    }
    #AppTabs_Global {
        /*margin-top: 80px;*/
        padding-left: 300px;
        background: #ededed;
    }
    .loading img {
        position: absolute;
        width: 10vw;
        height: 10vw;
        bottom: 15px;
        right: 15px;
    }
}

/* !!!!!!!!!!! use 100% not viewport width and height for mobile browsers !!!!!!!!!!!! */

@media screen and (max-width: 1240px) {
    body.platform_browser .main {
        padding-left: 0px;
        margin-left: 0px;
    }
    header .label {
        margin-left: 0px;
    }
    /*
    body {
        padding-bottom: 70px;
    }
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
    }*/

    /*
    html, body {
        overflow: auto;
    }
    .app {
        height: auto;
        min-height: 100%;
    }
    section {
        overflow: auto;
    }
    .page {
    }

    body {
        height: 100vh;
        border-bottom: 5px solid #FF0000;
    }
    section {
        min-height: 100%;
        border-bottom: 5px solid #00FF00;
        overflow: auto;
    }
    .page {
        min-height: initial;
    }    

    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    .main {
        margin-top: 100px;
        padding-bottom: 100px;
        border-bottom: 5px solid #666666;
        height: 100%;
    }

    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0000FF;
        z-index: 100;
    }
    */

    html, body {
        height: 100%;
        background: #F6F6F6;
    }
    body.platform_browser {
        height: 100%;
        overflow: auto;
    }
    .app {
        height: 100%;
    }
    .header {
        /*position: fixed;
        top: 0;
        left: 0;*/
        /*width: 100%;
        z-index: 100;*/
    }
    .footer {
        /*position: fixed;
        bottom: 0;
        left: 0;*/
        /*width: 100%;
        z-index: 100;*/
    }
    .main {
        /*height: calc(100vh - 150px);*/
    }
    /*
    section .content {
        padding-bottom: 70px;
    }*/
    .page {
        /*display: none !important;
        height: calc(100vh - 150px);*/
        min-height: initial;
        /*padding-bottom: 70px;*/
    }
}

@media screen and (max-height: 750px) {
    .filters, .ios .content {
        padding: 10px;
    }
    .filters, .ios .content2 {
        padding: 20px;
    }
}

@media screen and (max-width: 600px) {
    .filters, .content {
        padding: 10px;
    }
    .content2 {
        padding: 0px 10px;
    }

    #AppPageRaces .detail .image {
        height: auto !important;
        aspect-ratio: 1;
    }
    
    .container_grid {
        grid-template-columns: 1fr;
    }
    .article_list {
        display: block;
    }
    .article_list .left, .article_list .right {
        display: block;
        margin: 0px;
        padding: 0px;
        max-width: 100%;
    }
    /*
    #AppPageClub .first .article_list .left, #AppPageClub .second .article_list .left, #AppPageClub .third .article_list .left {
        max-width: 100% !important;
    }*/
    #AppPageClub .article_list .left {
        max-width: 100% !important;
    }
    .heading_about {
        display: block;

    }
    .heading_about .left svg {
        width: 30px;
    }
    .heading_about .left {
        padding: 10px;
    }
    .heading_about .right {
        padding: 10px;
    }
    .page.modal {
        width: 100% !important;
        height: 100% !important;
        max-height: initial;
    }
    .AppPageModalContainer.active {
        z-index: 1001;
    }
    #AppPageLogin .content, #AppPageSignup .content {
        width: 100%;
    }
    .AppBadges {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .AppBenefits {
        grid-template-columns: 1fr 1fr;
    }
    .article_list .right .text {
        margin-top: 10px;
    }
    .page {
        /*z-index: 1001;*/
    }
    /*
    #AppPageLogin .subpage, #AppPageSignup .subpage {
        padding-bottom: 70px;
    }*/

    .AppPageModalContainer {
        /*height: calc(100vh - 150px);*/
        height: 100%;
        min-height: initial;
        /*padding-bottom: 70px;*/
    }
    .AppPageModalContainer > section {
        top: 0;
        /*height: 100vh; /*calc(100vh - 150px);*/
        height: 100%;
        min-height: initial;
        /*padding-bottom: 70px;*/
    }
    .page.AppPageModal {
        border: 0px;
        border-radius: 0px;
    }
    .AppPageModalHeader {
        height: 80px;
        line-height: 80px;
    }
    .AppPageModalHeaderTitle {
        margin-left: 80px;
        margin-left: 20px;
        margin-right: 10px;
        text-align: center;
    }
    .AppPageModalHeaderClose > span {
        font-size: 24px;
        font-weight: normal;
        margin-left: 26px;
        margin-right: 26px;
        margin-top: -3px;
    }
    #AppPageLogin .content .other {
        margin-top: 40px;
    }
    #AppPageProfileEdit .profile_edit_fill_info {
        margin-left: 30px;
        margin-right: 30px;
    }


}

@media screen and (max-height: 800px) {
    #AppPanelLeftProfile .image {
        width: 140px;
        height: 140px;
    }
    #AppPanelLeftProfile {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #AppPageLogin .heading .image, #AppPageSignup .heading .image {
        min-height: 200px;
    }
}

@media screen and (max-height: 700px) {
    #AppPanelLeftProfile .image {
        width: 100px;
        height: 100px;
    }
    #AppPanelLeftProfile {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #AppPageLogin .heading .image, #AppPageSignup .heading .image {
        min-height: 200px;
    }
    #AppPanelLeftMenu a {
        padding: 5px;
        margin-bottom: 8px;
    }
    #AppPanelLeftMenu a .imagebg svg {
        width: 20px;
        height: 20px;
    }
    #AppPanelLeftProfile .name {
        font-size: 16px;
    }
    #AppPanelLeftProfile .usergroup_names {
        font-size: 14px;
    }
}

@media screen and (max-height: 600px) {
    #AppPageLogin .label, #AppPageSignup .label {
        margin-top: 15px;
    }
    /*#AppPageLogin .info {
        display: none;
    }*/
    /*#AppPageLogin .eu {
        display: none;
    }*/

    #AppPageLogin .language-item {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    #AppPageLogin .heading .image, #AppPageSignup .heading .image {
        min-height: 150px;
    }
}
