.icon {
    display: inline-block;
    background: center center no-repeat;
    background-size: auto 100%;
}

.icon-storitve {
    width: 180px;
    height: 180px;
}

    .icon-storitve:after {
        display: block;
        content: "";
        width: 100%;
        height: 100%;
        max-width: 180px;
        max-height: 180px;
        background-image: url(../images/icons-color.png);
        background-size: auto 100%;
    }

.icon-storitve-prvipregled:after {
    background-position: 0 center;
}

.icon-storitve-obloge:after {
    background-position: 12.5% center;
}

.icon-storitve-karies:after {
    background-position: 25% center;
}

.icon-storitve-endodontsko:after {
    background-position: 37.5% center;
}

.icon-storitve-parodontalno:after {
    background-position: 50% center;
}

.icon-storitve-kirurskiposeg:after {
    background-position: 62.5% center;
}

.icon-storitve-protetika:after {
    background-position: 75% center;
}

.icon-storitve-estetika:after {
    background-position: 87.5% center;
}

.icon-storitve-implantant:after {
    background-position: 100% center;
}

.icon-storitve-gray:after {
    background-image: url(../images/icons-gray.png);
}

.icon-storitve:hover {
        opacity: 0.5;
    -webkit-transition: 0.4s ease all;
    -o-transition: 0.4s ease all;
    transition: 0.4s ease all;
    cursor: pointer !important;
}


.flex {
    font-size: 14px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    vertical-align: top;
}

@media (min-width:320px) {
    .flex {
        width: 33.3336%;
    }
}

@media (min-width:560px) {
    .flex {
        width: 25%;
    }
}

@media (min-width:768px) {
    .flex {
        font-size: 16px;
    }
}

@media (min-width:992px) {
    .flex {
        width: 14.25%;
    }
}

@media (min-width:1240px) {
    .flex {
        width: 11%;
    }
}

.flex.active {
    position: static;
}

.flex-container:after, .flex-container:before {
    content: " ";
    display: table;
}

.flex-container:after {
    clear: both;
}

.flex-grid {
    text-align: center;
    font-size: 0;
    line-height: 0;
}

.flex-gridL {
    text-align: left;
}

    .flex-grid:after, .flex-grid:before {
        content: " ";
        display: table;
    }

    .flex-grid:after {
        clear: both;
    }

.flex-header {
    display: block;
    padding: 0;
    line-height: 1.42857143;
    background-color: transparent;
    margin: 15px auto 0;
    border: 0;
    text-align: center;
    color: #626668;
}

    .flex-header .icon {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

@media (min-width:768px) {
    .flex-header .icon {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
}

.flex-header .flex-title {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2em;
    height: 3.6em;
}

@media (min-width:560px) {
    .flex-header .flex-title {
        height: 2.4em;
    }
}

@media (min-width:768px) {
    .flex-header .flex-title {
        font-size: 14px;
    }
}

.active .flex-header, .flex-header:active, .flex-header:focus, .flex-header:hover {
    text-decoration: none;
}

    .active .flex-header .icon, .flex-header:hover .icon {

        opacity: 0.5;
    -webkit-transition: opacity 1.0s ease all;
    -o-transition: opacity 1.0s ease all;
    transition: opacity 1.0s ease all;
    }

    .active .flex-header .flex-title, .flex-header:hover .flex-title {
        color: #ec008c;
    }

.flex-detail {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 0;
    text-align: left;
    line-height: 22px;
    font-weight: 300;
}

    .flex-detail .media-object {
        width: 80px;
        height: 80px;
    }

        .flex-detail .media-object.icon {
            width: 120px;
            height: 120px;
            padding: 10px;
        }

@media (min-width:768px) {
    .flex-detail .media-object.icon {
        width: 180px;
        height: 180px;
        padding: 20px;
    }
}

.flex-detail .container {
    opacity: 0;
    padding-top: 10px;
    padding-bottom: 15px;
    -webkit-transition: opacity .4s ease-out;
    -o-transition: opacity .4s ease-out;
    transition: opacity .4s ease-out;
}

@media (min-width:768px) {
    .flex-detail .container {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.flex-detail .heading {
    font-weight: 400;
    color: #ec008c;
}

.flex-detail .row {
    position: relative;
}

.flex-detail .col-expanded {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width:559px) {
    .flex-detail .col-expanded {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width:767px) {
    .flex-detail-side {
        display: none;
    }
}

.flex-break.active {
    margin: 15px 0;
}

.flex.active .flex-detail {
    visibility: visible;
    height: auto;
    margin: 15px 0;
    z-index: 100;
}

    .flex.active .flex-detail .container {
        opacity: 1;
    }
