body.unlogged {
    background-attachment: fixed;
    overflow-y: scroll;
}

body.modal-open {
    /*padding-right: 0!important;*/
    position: relative !important;
    overflow: auto;
}

.unlogged .footer {
    height: auto;
}

#section-footer{
    /*opacity: 0;*/
}

.loadMessage, .finishMsg {

    display: none;
    color: white;
    font-size: 14px !important;
    background-color: #999;
    border: 1px solid #ABAB99;
    text-shadow: 1px 1px 2px black;
    padding: 20px 0;
    text-align: center;
}

.finishMsg a {
    color: white;
    text-decoration: underline;
}

.banner {
    background: none;
    height: auto;
}

#section-banner {
    height: auto;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

.grid {
    /*padding-top: 10px;*/
    margin: 0 auto;
    opacity: 0;
    /*padding-bottom: 90px;*/

}

.grid-item {
    width: 160px;
    background: white;
    margin: 10px;
    display: block;
    cursor: pointer;

}

.ifonline, .ifoffline {
    width: 15px;
    height: 15px;
}

.form-type-1, .form-type-2 {
    display: none;
}

.pagination {
    margin: 20px 0 5px;
    clear: both;
    position: absolute;
    bottom: 0;
}

.grid-item:hover {
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
}

.grid-item .l4img {
    position: relative;
    overflow: hidden;
    width: 160px;
    height: 160px;
}

.grid-item .l4about {
    margin: 10px;
    overflow: hidden;
    word-wrap: break-word;
}

.grid-item .l4btn {
    background: #f8f8f8;
    color: #ccc;
    border: 1px solid #ccc;
    margin: 10px;
    padding: 5px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.grid-item .l4img .overlay-envelope {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.grid-item .l4img .overlay-envelope:after {
    content: "";
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.grid-item:hover .l4img img {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.grid-item .l4name {
    margin: 10px;
}

.grid-item .l4name span {
    text-decoration: underline;
}

/*effect 1*/
.effect-1 .grid-item:hover .l4img img {
    width: 180px;
    height: 180px;
    margin-left: -10px;
    margin-top: -10px;
}

.grid:not(.effect-2) .thumb-envelope {
    display: none !important;
}

.effect-1 .grid-item:hover .l4img .overlay-envelope {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

.effect-1 .grid-item:hover .l4img .overlay-envelope:after {
    content: "\f0e0";
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 55px;
    line-height: 160px;
}

.effect-1 .grid-item:hover .l4btn {
    background: #fe6be3;
    color: #fff;
    border: 1px solid #fe6be3;
}

/*effect 2*/
.effect-2 .grid-item .thumb-envelope {
    position: absolute;
    left: -5px;
    top: -5px;
    font-size: 15px;
    display: block;
    text-align: center;
    line-height: 27px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 100%;
    background: #fff;
    color: #fe6be3;
    border: 1px solid #fff;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.effect-2 .grid-item:hover .thumb-envelope {
    left: -10px;
    top: -10px;
}

.effect-2 .grid-item:hover {
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 3px #fe6be3;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 3px #fe6be3;
}

.effect-2 .grid-item:hover .l4img img {
    width: 180px;
    height: 180px;
    margin-left: -10px;
    margin-top: -10px;
}

.effect-2 .grid-item:hover .l4img:after {
    background: rgba(0, 0, 0, 0.5);
}

.effect-2 .grid-item:hover .l4btn {
    background: #fe6be3;
    color: #fff;
    border: 1px solid #fe6be3;
}

#section-banner {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.grid-layout-4 {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -moz-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1
}

@media (max-width: 767px) {
    body.unlogged.is_front {
        margin-bottom: auto !important;
    }

    .footer {
        position: inherit;
    }
}

@media (max-width: 767px) {
    body.unlogged {
        margin-bottom: auto !important;
    }

    #section-banner {
        min-height: 640px;
    }

    .footer {
        position: inherit;
    }
}

@media (max-width: 500px) {
    body.unlogged {
        margin-bottom: auto !important;
        /*padding-bottom: 30px;*/
    }
}

@media (max-width: 374px) {
    .grid-item {
        width: 135px;
    }

    .grid-item .l4img {
        width: 135px;
        height: 135px;
    }

    .grid-item .l4btn {
        margin: 10px 8px;
        padding: 5px 0;
        text-align: center;
    }
}

#infscr-loading {
    position: absolute;
    bottom: 0;
    width: 200%;
    left: 0;
    color: white;
    font-size: 14px !important;;
    background-color: #999;
    border: 1px solid #ABAB99;
    text-shadow: 1px 1px 2px black;
    padding: 20px;
    text-align: center;
    margin-left: -50%;
    margin-right: -50%;
}

#infscr-loading img {
    display: none;
}

#infscr-loading a {
    color: white;
    text-decoration: underline;
}

#infscr-loading div {
    width: 90vw;
    margin: 0 auto;
}

/*#section-banner {*/
/*display: none;*/
/*height: 0;*/
/*}*/

html{
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

body.unlogged{
    margin-bottom: 0 !important;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

#section-banner {
    flex-grow: 1;
}



#section-footer{
    position: initial !important;
}

