@import url('demo.css');
@import url('font-awesome.css');

/* GLOBALS */

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing   : border-box;
    box-sizing        : border-box;
    padding           : 0;
    margin            : 0;
}

/*::selection {
    background: transparent; 
}*/

::-moz-selection {
    background: transparent;
}

.wrapper-demo {
    margin     : 0;
    padding    : 0;
    *zoom      : 1;
    font-weight: 400;
}

.wrapper-demo:after {
    clear  : both;
    content: "";
    display: table;
}

/* DEMO 1 */
.wrapper-demo:focus {
    outline: none;
}

.wrapper-dropdown-1 {
    /* Size and position */
    position: relative;
    /* Enable absolute positionning for children and pseudo elements */
    width   : 200px;
    padding : 10px;
    margin  : 0 auto;

    /* Styles */
    background: #9bc7de;
    color     : #fff;
    outline   : none;
    cursor    : pointer;

    /* Font settings */
    font-weight: bold;
}

.wrapper-dropdown-1:after {
    content     : "";
    width       : 0;
    height      : 0;
    position    : absolute;
    right       : 16px;
    top         : 50%;
    margin-top  : -6px;
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent #fff;
}

.wrapper-dropdown-1 .dropdown {
    /* Size & position */
    position: absolute;
    top     : 100%;
    left    : 0;
    right   : 0;

    /* Styles */
    background                     : #fff;
    list-style                     : none;
    font-weight                    : normal;
    /* Cancels previous font-weight: bold; */

    /* Hiding */
    opacity       : 0;
    pointer-events: none;
}

.wrapper-dropdown-1 .dropdown li a {
    display        : block;
    text-decoration: none;
    color          : #9e9e9e;
    padding        : 10px 20px;
}

/* Hover state */
.wrapper-dropdown-1 .dropdown li:hover a {
    background: #f3f8f8;
}

/* Active state */
.wrapper-dropdown-1.active .dropdown {
    opacity       : 1;
    pointer-events: auto;
}

.wrapper-dropdown-1.active:after {
    border-color: #9bc7de transparent;
    border-width: 6px 6px 0 6px;
    margin-top  : -3px;
}

.wrapper-dropdown-1.active {
    background: #9bc7de;
    background: -moz-linear-gradient(left, #9bc7de 0%, #9bc7de 78%, #ffffff 78%, #ffffff 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, #9bc7de), color-stop(78%, #9bc7de), color-stop(78%, #ffffff), color-stop(100%, #ffffff));
    background: -webkit-linear-gradient(left, #9bc7de 0%, #9bc7de 78%, #ffffff 78%, #ffffff 100%);
    background: -o-linear-gradient(left, #9bc7de 0%, #9bc7de 78%, #ffffff 78%, #ffffff 100%);
    background: -ms-linear-gradient(left, #9bc7de 0%, #9bc7de 78%, #ffffff 78%, #ffffff 100%);
    background: linear-gradient(to right, #9bc7de 0%, #9bc7de 78%, #ffffff 78%, #ffffff 100%);
    filter    : progid:DXImageTransform.Microsoft.gradient(startColorstr='#9bc7de', endColorstr='#ffffff', GradientType=1);
}

/* No CSS3 support */

.no-opacity .wrapper-dropdown-1 .dropdown,
.no-pointerevents .wrapper-dropdown-1 .dropdown {
    display       : none;
    opacity       : 1;
    /* If opacity support but no pointer-events support */
    pointer-events: auto;
    /* If pointer-events support but no pointer-events support */
}

.no-opacity .wrapper-dropdown-1.active .dropdown,
.no-pointerevents .wrapper-dropdown-1.active .dropdown {
    display: block;
}

/* DEMO 2 */

.wrapper-dropdown-2 {
    /* Size and position */
    position: relative;
    /* Enable absolute positionning for children and pseudo elements */
    width   : 200px;
    margin  : 0 auto;
    padding : 10px 15px;

    /* Styles */
    background : #fff;
    border-left: 5px solid grey;
    cursor     : pointer;
    outline    : none;
}

.wrapper-dropdown-2:after {
    content     : "";
    width       : 0;
    height      : 0;
    position    : absolute;
    right       : 16px;
    top         : 50%;
    margin-top  : -3px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: grey transparent;
}

.wrapper-dropdown-2 .dropdown {
    /* Size & position */
    position: absolute;
    top     : 100%;
    left    : -5px;
    right   : 0px;

    /* Styles */
    background        : white;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition   : all 0.3s ease-out;
    -ms-transition    : all 0.3s ease-out;
    -o-transition     : all 0.3s ease-out;
    transition        : all 0.3s ease-out;
    list-style        : none;

    /* Hiding */
    opacity       : 0;
    pointer-events: none;
}

.wrapper-dropdown-2 .dropdown li a {
    display           : block;
    text-decoration   : none;
    color             : #333;
    border-left       : 5px solid;
    padding           : 10px;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition   : all 0.3s ease-out;
    -ms-transition    : all 0.3s ease-out;
    -o-transition     : all 0.3s ease-out;
    transition        : all 0.3s ease-out;
}

.wrapper-dropdown-2 .dropdown li:nth-child(1) a {
    border-left-color: #00ACED;
}

.wrapper-dropdown-2 .dropdown li:nth-child(2) a {
    border-left-color: #4183C4;
}

.wrapper-dropdown-2 .dropdown li:nth-child(3) a {
    border-left-color: #3B5998;
}

.wrapper-dropdown-2 .dropdown li i {
    margin-right  : 5px;
    color         : inherit;
    vertical-align: middle;
}

/* Hover state */

.wrapper-dropdown-2 .dropdown li:hover a {
    color: grey;
}

/* Active state */

.wrapper-dropdown-2.active:after {
    border-width: 0 6px 6px 6px;
}

.wrapper-dropdown-2.active .dropdown {
    opacity       : 1;
    pointer-events: auto;
}

/* No CSS3 support */

.no-opacity .wrapper-dropdown-2 .dropdown,
.no-pointerevents .wrapper-dropdown-2 .dropdown {
    display       : none;
    opacity       : 1;
    /* If opacity support but no pointer-events support */
    pointer-events: auto;
    /* If pointer-events support but no pointer-events support */
}

.no-opacity .wrapper-dropdown-2.active .dropdown,
.no-pointerevents .wrapper-dropdown-2.active .dropdown {
    display: block;
}

/* DEMO 3 */

.wrapper-dropdown-3 {
    /* Size and position */
    position: relative;
    width   : 200px;
    margin  : 0 auto;
    padding : 10px;

    /* Styles */
    background   : #fff;
    border-radius: 7px;
    border       : 1px solid rgba(0, 0, 0, 0.15);
    box-shadow   : 0 1px 1px rgba(50, 50, 50, 0.1);
    cursor       : pointer;
    outline      : none;

    /* Font settings */
    font-weight: bold;
    color      : #8AA8BD;
}

.wrapper-dropdown-3:after {
    content     : "";
    width       : 0;
    height      : 0;
    position    : absolute;
    right       : 15px;
    top         : 50%;
    margin-top  : -3px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #8aa8bd transparent;
}

.wrapper-dropdown-3 .dropdown {
    /* Size & position */
    position: absolute;
    top     : 140%;
    left    : 0;
    right   : 0;

    /* Styles */
    background        : white;
    border-radius     : inherit;
    border            : 1px solid rgba(0, 0, 0, 0.17);
    box-shadow        : 0 0 5px rgba(0, 0, 0, 0.1);
    font-weight       : normal;
    -webkit-transition: all 0.5s ease-in;
    -moz-transition   : all 0.5s ease-in;
    -ms-transition    : all 0.5s ease-in;
    -o-transition     : all 0.5s ease-in;
    transition        : all 0.5s ease-in;
    list-style        : none;

    /* Hiding */
    opacity       : 0;
    pointer-events: none;
}

.wrapper-dropdown-3 .dropdown:after {
    content     : "";
    width       : 0;
    height      : 0;
    position    : absolute;
    bottom      : 100%;
    right       : 15px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: #fff transparent;
}

.wrapper-dropdown-3 .dropdown:before {
    content     : "";
    width       : 0;
    height      : 0;
    position    : absolute;
    bottom      : 100%;
    right       : 13px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.1) transparent;
}

.wrapper-dropdown-3 .dropdown li a {
    display           : block;
    padding           : 10px;
    text-decoration   : none;
    color             : #8aa8bd;
    border-bottom     : 1px solid #e6e8ea;
    box-shadow        : inset 0 1px 0 rgba(255, 255, 255, 1);
    -webkit-transition: all 0.3s ease-out;
    -moz-transition   : all 0.3s ease-out;
    -ms-transition    : all 0.3s ease-out;
    -o-transition     : all 0.3s ease-out;
    transition        : all 0.3s ease-out;
}

.wrapper-dropdown-3 .dropdown li i {
    float: right;
    color: inherit;
}

.wrapper-dropdown-3 .dropdown li:first-of-type a {
    border-radius: 7px 7px 0 0;
}

.wrapper-dropdown-3 .dropdown li:last-of-type a {
    border       : none;
    border-radius: 0 0 7px 7px;
}

/* Hover state */

.wrapper-dropdown-3 .dropdown li:hover a {
    background: #f3f8f8;
}

/* Active state */

.wrapper-dropdown-3.active .dropdown {
    opacity       : 1;
    pointer-events: auto;
}

/* No CSS3 support */

.no-opacity .wrapper-dropdown-3 .dropdown,
.no-pointerevents .wrapper-dropdown-3 .dropdown {
    display       : none;
    opacity       : 1;
    /* If opacity support but no pointer-events support */
    pointer-events: auto;
    /* If pointer-events support but no pointer-events support */
}

.no-opacity .wrapper-dropdown-3.active .dropdown,
.no-pointerevents .wrapper-dropdown-3.active .dropdown {
    display: block;
}


/* DEMO 4 */

.wrapper-dropdown-4 {
    /* Size and position */
    position: relative;
    width   : 270px;
    margin  : 0 auto;
    padding : 10px 10px 10px 30px;

    /* Styles */
    background: #fff;
    border    : 1px solid silver;
    cursor    : pointer;
    outline   : none;
}

.wrapper-dropdown-4:after {
    content     : "";
    width       : 0;
    height      : 0;
    position    : absolute;
    right       : 10px;
    top         : 50%;
    margin-top  : -3px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #ffaa9f transparent;
}

.wrapper-dropdown-4 .dropdown {
    /* Size & position */
    position  : absolute;
    top       : 100%;
    margin-top: 1px;
    left      : -1px;
    right     : -1px;

    /* Styles */
    background        : white;
    border            : inherit;
    border-top        : none;
    list-style        : none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition   : all 0.3s ease-out;
    -ms-transition    : all 0.3s ease-out;
    -o-transition     : all 0.3s ease-out;
    transition        : all 0.3s ease-out;

    /* Hiding */
    opacity       : 0;
    pointer-events: none;
}

/* Red lines: the pseudo-elements way */
.wrapper-dropdown-4 .dropdown:before,
.wrapper-dropdown-4:before {
    content      : "";
    width        : 4px;
    height       : 100%;
    position     : absolute;
    top          : 0;
    left         : 15px;
    border       : 1px solid #ffaa9f;
    border-top   : none;
    border-bottom: none;
    z-index      : 2;
}

/* Red lines: the gradients way */

/*
.wrapper-dropdown-4 .dropdown,
.wrapper-dropdown-4 {
  background: linear-gradient(left, white 5%, #ffaa9f 5%, #ffaa9f 5.3%, white 5.3%, white 6.5%, #ffaa9f 6.5%, #ffaa9f 6.8%, white 6.8%);
}

.wrapper-dropdown-4 .dropdown li:hover label {
  background: linear-gradient(left, #f0F0F0 5%, #ffaa9f 5%, #ffaa9f 5.3%, #f0F0F0 5.3%, #f0F0F0 6.5%, #ffaa9f 6.5%, #ffaa9f 6.8%, #f0F0F0 6.8%);
}
*/

.wrapper-dropdown-4 .dropdown li {
    position: relative;
    /* Enable absolute positioning for checkboxes */
}

.wrapper-dropdown-4 .dropdown li label {
    display           : block;
    padding           : 10px 10px 10px 30px;
    /* Same padding as the button */
    border-bottom     : 1px dotted #1ccfcf;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition   : all 0.3s ease-out;
    -ms-transition    : all 0.3s ease-out;
    -o-transition     : all 0.3s ease-out;
    transition        : all 0.3s ease-out;
}

.wrapper-dropdown-4 .dropdown li:last-of-type label {
    border: none;
}

.wrapper-dropdown-4 .dropdown li input

/* Checkboxes */
    {
    position  : absolute;
    display   : block;
    right     : 10px;
    top       : 50%;
    margin-top: -8px;
}

/* Hover state */

.wrapper-dropdown-4 .dropdown li:hover label {
    background: #f0f0f0;
}

/* Checked state */

.wrapper-dropdown-4 .dropdown li input:checked~label {
    color          : grey;
    text-decoration: line-through;
}

/* Active state */

.wrapper-dropdown-4.active:after {
    border-width: 0 6px 6px 6px;
}

.wrapper-dropdown-4.active .dropdown {
    opacity       : 1;
    pointer-events: auto;
}

/* No CSS3 support */

.no-opacity wrapper-dropdown-4 .dropdown,
.no-pointerevents .wrapper-dropdown-4 .dropdown {
    display       : none;
    opacity       : 1;
    /* If opacity support but no pointer-events support */
    pointer-events: auto;
    /* If pointer-events support but no pointer-events support */
}

.no-opacity .wrapper-dropdown-4.active .dropdown,
.no-pointerevents .wrapper-dropdown-4.active .dropdown {
    display: block;
}

/* DEMO 5 */

.wrapper-dropdown-5 {
    /* Size & position */
    position           : relative;
    width              : 120px;
    margin             : 0;
    padding            : 0;
    height             : 20px;
    background-color   : #fff;
    background-image   : url(select_left.gif);
    background-repeat  : no-repeat;
    background-position: left center;
    padding-left       : 10px;
    vertical-align     : bottom;
}

.wrapper-dropdown-5 li {
    list-style-type: none;
    padding-top    : 2px;
}

.wrapper-dropdown-5:after {
    /* Little arrow */
    content            : "";
    width              : 21px;
    height             : 20px;
    position           : absolute;
    right              : 0px;
    top                : 0px;
    background-image   : url(select_right.gif);
    background-repeat  : no-repeat;
    background-position: left center;
    z-index            : 9000;
}

i.zh-icon {
    display            : inline;
    padding-left       : 20px;
    height             : 15px;
    line-height        : 15px;
    cursor             : pointer;
    overflow           : hidden;
    background         : transparent url(flags-v2.gif) no-repeat 0 0;
    background-position: 0 -628px;
}

.zh-icon:before {
    content: no-open-quote;
}

i.en-icon {
    display            : inline;
    padding-left       : 20px;
    height             : 12px;
    line-height        : 12px;
    font-size          : 10px;
    cursor             : pointer;
    overflow           : hidden;
    background         : transparent url(flags-v2.gif) no-repeat 0 0;
    background-position: 0 -1020px;
}

.en-icon:before {
    content: no-open-quote;
}

.wrapper-dropdown-5 .dropdown {
    /* Size & position */
    position    : absolute;
    top         : 100%;
    left        : 0;
    right       : 0;
    padding     : 0;
    margin      : 0;
    padding-left: 10px;

    /* Styles */
    background        : #fff;
    border-radius     : 0 0 5px 5px;
    border            : 1px solid rgba(0, 0, 0, 0.2);
    border-top        : none;
    border-bottom     : none;
    list-style        : none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition   : all 0.3s ease-out;
    -ms-transition    : all 0.3s ease-out;
    -o-transition     : all 0.3s ease-out;
    transition        : all 0.3s ease-out;

    /* Hiding */
    max-height: 0;
    overflow  : hidden;
}

.wrapper-dropdown-5 .dropdown li {
    padding        : 0 10px;
    list-style-type: none;

}

.wrapper-dropdown-5 .dropdown li a {
    display        : block;
    text-decoration: none;
    color          : #333;
    padding        : 10px 0;
    transition     : all 0.3s ease-out;
    border-bottom  : 1px solid #e6e8ea;
}

.wrapper-dropdown-5 .dropdown li:last-of-type a {
    border: none;
}

.wrapper-dropdown-5 .dropdown li i {
    margin-right  : 5px;
    color         : inherit;
    vertical-align: middle;
}

/* Hover state */

.wrapper-dropdown-5 .dropdown li:hover a {
    color: #57a9d9;
}

/* Active state */

.wrapper-dropdown-5.active {
    border-radius: 5px 5px 0 0;
    box-shadow   : none;
    border-bottom: none;
    color        : white;
}

.wrapper-dropdown-5.active:after {
    border-color: #82d1ff transparent;
}

.wrapper-dropdown-5.active .dropdown {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    max-height   : 400px;
}

/* No CSS3 support: none */
.page {
    clear     : both;
    margin    : 10px 0;
    text-align: center;
}

.page a:hover {
    color: #009688;
}

.page-status {
    border-radius: 2px 0 0 2px;
}

.page-last {
    border-radius: 0 2px 2px 0;
}

.page-status,
.page-index,
.page-pre,
.page-num,
.page-next,
.page-last {
    display         : inline-block;
    *display        : inline;
    *zoom           : 1;
    vertical-align  : middle;
    padding         : 0 15px;
    height          : 28px;
    line-height     : 28px;
    margin          : 0 -1px 5px 0;
    background-color: #fff;
    color           : #333;
    font-size       : 12px;
    border          : 1px solid #e2e2e2;
}

.page-num-current {
    background-color: #1b7bbd;
    height          : 30px;
    line-height     : 30px;
    border-top      : none;
    border-bottom   : none;
    color           : #fff;
}

a.page-num-current:hover {
    color: #fff;
}