
/* --- DEMO FLAT THEME --- */

/* PREFIXED CSS */

.flat,
.flat div,
.flat li,
.flat div::after,
.flat .carat,
.flat .carat:after,
.flat .selected::after,
.flat:after {
    -webkit-transition: all 150ms ease-in-out;
    -moz-transition: all 150ms ease-in-out;
    -ms-transition: all 150ms ease-in-out;
    -o-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}

    .flat .selected::after,
    .flat.scrollable div::after {
        -webkit-pointer-events: none;
        -moz-pointer-events: none;
        -ms-pointer-events: none;
        pointer-events: none;
    }

/* WRAPPER */

.flat {
    position: relative;
    /*width: 250px;*/
    width: 130px;
    cursor: pointer;
    font-weight: 200;
    /*background: #29AF84;*/
    background: #FFFF00;
    /*padding: 8px 0px 8px;*/
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    color: #000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .flat.open {
        z-index: 2;
    }

    .flat:hover {
        background: #FFFF71;
    }

    .flat.focus {
        background: #FFFF00;
    }



    /* CARAT */

    .flat .carat,
    .flat .carat:after {
        position: absolute;
        right: 14px;
        top: 50%;
        margin-top: -3px;
        border: 6px solid transparent;
        border-top: 6px solid #FFF;
        z-index: 1;
        -webkit-transform-origin: 50% 20%;
        -moz-transform-origin: 50% 20%;
        -ms-transform-origin: 50% 20%;
        -o-transform-origin: 50% 20%;
        transform-origin: 50% 20%;
    }

    .flat:hover .carat:after {
        border-top-color: #f4f4f4;
    }

    .flat.focus .carat {
        border-top-color: #f8f8f8;
    }

        .flat.focus .carat:after {
            border-top-color: #0180d1;
        }

    .flat.open .carat {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -o-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    /* OLD SELECT (HIDDEN) */

    .flat .old {
        position: absolute;
        left: 0;
        top: 0;
        height: 0;
        width: 0;
        overflow: hidden;
    }

    .flat select {
        position: absolute;
        left: 0px;
        top: 0px;
    }

    .flat.touch select {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
    }

    /* SELECTED FEEDBACK ITEM */
    .flat .selected {
        /*color: #FFF;*/
        color: #000;
    }

    .flat .selected,
    .flat li {
        display: block;
        font-size: 16px;
        font-weight: 400;
        text-transform: uppercase;
        line-height: 1;
        padding: 8px 12px;
        overflow: hidden;
        white-space: nowrap;
    }

        .flat .selected::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 60px;
            -moz-border-radius: 0 5px 5px 0;
            -webkit-border-radius: 0 5px 5px 0;
            border-radius: 0 5px 5px 0;
            /*box-shadow: inset -55px 0 25px -20px #29af84;*/
        }

    .flat:hover .selected::after,
    .flat.focus .selected::after {
        /*box-shadow: inset -55px 0 25px -20px #00c384;*/
    }

    /* DROP DOWN WRAPPER */

    .flat div {
        position: absolute;
        height: 0;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 1px;
        /*background: #00C384;*/
        background: #0180d1;
        overflow: hidden;
        opacity: 0;
        /*color: #04724E;*/
        color: white;
        /*border-radius: 5px;*/
        -webkit-border-bottom-left-radius: 5px;
        border-bottom-left-radius: 5px;
        -webkit-border-bottom-right-radius: 5px;
        border-bottom-right-radius: 5px;
        box-shadow:0 3px 2px rgba(0,0,0,.3);
    }

    .flat:hover div {
        
    }

    /* Height is adjusted by JS on open */

    .flat.open div {
        opacity: 1;
        z-index: 2;
    }

    /* FADE OVERLAY FOR SCROLLING LISTS */

    .flat.scrollable div::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 50px;
        -moz-box-shadow: inset 0 -50px 30px -35px #00c384;
        -webkit-box-shadow: inset 0 -50px 30px -35px #00c384;
        box-shadow: inset 0 -50px 30px -35px #00c384;
    }

    .flat.scrollable:hover div::after {
        -moz-box-shadow: inset 0 -50px 30px -35px #00c384;
        -webkit-box-shadow: inset 0 -50px 30px -35px #00c384;
        box-shadow: inset 0 -50px 30px -35px #00c384;
    }

    .flat.scrollable.bottom div::after {
        opacity: 0;
    }

    /* DROP DOWN LIST */

    .flat ul {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        list-style: none;
        overflow: hidden;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        border-radius: 5px;
        margin: 0px;
    }

    .flat.scrollable.open ul {
        overflow-y: auto;
    }

    /* DROP DOWN LIST ITEMS */

    .flat li {
        list-style: none;
        /*padding: 14px 12px;*/
        border-bottom: 1px solid #0D355A;
        -moz-box-shadow: 0 1px 0 rgba(255,255,255,.4);
        -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.4);
        box-shadow: 0 1px 0 rgba(255,255,255,.4);
    }

        .flat li:last-child {
            border-bottom: 0;
        }

        /* .focus class is also added on hover */

        .flat li.focus {
            /*background: #8B92D8;*/
            position: relative;
            z-index: 3;
            color: #fff;
            background: #4682B4;
        }

        .flat li.active {
            /*background: #8B92D8;*/
            color: #fff;
        }
