﻿.slider_container {
    width: 100vw;
    height: 50vh;
    max-width: 100%;
    display: flex;
    box-sizing: border-box;
    overflow: hidden;
}

    .slider_container .box {
        width: 10vw;
        height: 50vh;
        text-align: center;
        flex-grow: 1;
        background-size: cover !important;
        background-position: center !important;
        transition: 1s;
    }

        .slider_container .box .cover {
            background: rgba(0,0,0,0.8);
            transition: 0.5s;
            height: 100%;
            width: 100%;
        }

        .slider_container .box.active {
            width: 80vw;
        }

            .slider_container .box.active h1 {
                display: inherit;
            }

            .slider_container .box.active .cover {
                background: rgba(0,0,0,0);
            }

        .slider_container .box button {
            display: none;
            font-size: 11pt;
            margin: 20px auto;
            padding: 10px 30px;
            background-color: #fff;
            color: #333;
            border: none;
        }

            .slider_container .box button:hover {
                background-color: #861D22;
                color: #fff;
            }

        .slider_container .box.active button {
            display: block;
        }

        .slider_container .box h1 {
            display: none;
            text-align: left;
            position: relative;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2em;
            padding: 10px;
            margin: 0 20px;
            background-color: rgba(0,0,0,0.4);
        }

            .slider_container .box h1 span {
                width: 100%;
                transition: 1s;
                color: #fff;
                padding: 25px 20px;
                text-transform: uppercase;
                letter-spacing: 2px;
            }


        .slider_container .box.active h1 p {
            font-size: 10pt;
            color: #fff;
            padding: 0 20px;
        }

.businesses {
    height: 260px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

.businesses_wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.bg1 {
    background: url(../images/forsale.png);
}

.bg2 {
    background: url(../images/tolet.png);
}

.bg3 {
    background: url(../images/info.png);
}

.bg4 {
    background: url(../images/aboutus.png);
}

.bg_tool1 {
    background: url(../images/bg_tool1.png);
}

.bg_tool2 {
    background: url(../images/bg_tool2.png);
}

.bg_tool3 {
    background: url(../images/bg_tool3.png);
}

.bg_tool4 {
    background: url(../images/bg_tool4.png);
}


.layer2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    transition: 0.5s;
}

.window {
    top: 50%;
    left: 50%;
    background-position: center !important;
    transform: translate(-50%, -50%);
}

.layer_block {
    position: absolute;
    width: 80%;
    max-width: 400px;
    height: 150px;
    z-index: 1;
    transition: 0.5s;
}

    .layer_block span {
        font-size: 11pt;
        color: #fff;
        padding: 10px;
        display: inline-block;
        top: -50px;
        position: relative;
        width: 150px;
        text-align: center;
    }

    .layer_block .text {
        color: #fff;
        font-size: 10pt;
        opacity: 0;
        transition: 1s;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
    }

    .layer_block:hover ~ .layer2 {
        filter: blur(0px);
    }

    .layer_block:hover {
        box-shadow: 0 5px 12px rgba(0,0,0,0.8);
    }

        .layer_block:hover .text {
            opacity: 1;
        }

.block-menu {
    width: 100%;
    height: 100%;
    background-image: url(../images/cross.png);
    background-position: center;
    background-color: rgba(0,0,0,0.5);
}

    .block-menu li {
        display: block;
        width: 50%;
        height: 50%;
        float: left;
        line-height: 75px;
    }

    .block-menu a {
        color: #fff;
        font-weight: bold;
    }

        .block-menu a:hover {
            color: #861D22;
        }

.tool {
    color: #fff;
    height: 100px;
}

    .tool img {
        display: inline-block;
        background-color: #fff;
        width: 50px;
        height: 50px;
        padding: 10px;
        margin-right: 10px;
        border-radius: 50px;
        transition: all ease 0.3s;
    }

    .tool a:hover img {
        background-color: #861D22;
    }

    .tool a {
        padding: 0 10px;
        color: #fff;
        transition: all ease 0.3s;
        font-weight: bold;
        font-size: 12pt;
        margin-bottom: 20px;
        min-width: 165px;
        display: inline-block;
        text-align: left;
    }

        .tool a:hover {
            color: #861D22;
        }

.aiinfo {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

    .aiinfo a {
        display: inline-block;
        background-color: #861D22;
        color: #fff;
        transition: all ease 0.3s;
        padding: 5px 10px;
        font-size: 10pt;
    }

        .aiinfo a:hover {
            background-color: #1A3048;
        }

.aiinfo_block {
    padding: 0 !important;
    margin: 0 !important;
}

    .aiinfo_block img {
        width: 300px;
        height: 300px;
    }

@media (max-width: 414px) {
    .hide-in-mobile {
        display: none;
    }

    .show-in-mobile {
        display: inherit !important;
    }

    .show-in-mobile img {
        width: 150px !important;
        height: 150px !important;
    }

    .right-in-mobile img {
        float: right;
    }

    .left-in-mobile img {
        float: left;
    }
}

@media (min-width: 768px) {
    .hide-in-pad {
        display: none;
    }

    .right-in-pad img {
        float: right;
    }

    .left-in-pad img {
        float: left;
    }
}

@media (min-width: 999px) {
    .hide-in-pad {
        display: block;
    }

    .hide-in-mobile {
        display: block;
    }
}
