/* ===========================================================
 *
 *  Name:          selectordie_theme_genealogy.css
 *  Updated:       2014-10-24
 *  Created by:    Evgen Omelchenko
 *  What?:         Custom "theme" for Select or Die.
 *
 *
 *  Oddny | Cogs 'n Kegs
 * =========================================================== */


/* The SoD - Please keep this first three lines intact, otherwise all hell will break looooooose */
.sod_select.custom.custom {
    background: #fcfcfc;
    border: 1px solid #c5c2c2;
    box-shadow: inset 1px 2px 1px #e8e8e8;
    border-radius: 4px;
    color: #6d4f28;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    height: 45px;
    line-height: 1;
    outline: 0;
    outline-offset: -2px; /* Opera */
    padding: 13px 15px;
    position: relative;
    text-align: left;
    text-transform: none;
    vertical-align: middle; /*IE fix*/
    width: 223px;
}

/* Up/Down arrows */
.sod_select.custom:before,
.sod_select.custom:after
{
    bottom: 10px;
    content: "";
    position: absolute;
    right: 30px;
    top: 10px;
}

/* Down arrow */
.sod_select.custom:after
{
    border-left: none;
    content: "\25BC";
    font-size: 20px;
    right: 10px;
    top: 11px;
}
.sod_select.custom.above:after { content: "\25B2"; }

/* Change the border color on hover, focus and when open */
.sod_select.custom:hover,
.sod_select.custom.open,
.sod_select.custom.focus
{
    background: #ffffff;
    border-color: #d4d4d4;
}

.sod_select.custom.open { color: #919191; }
.sod_select.custom.focus { box-shadow: inset 0 -1px 2px rgba(0,0,0,.05), 0 0 5px rgba(0,0,0,.1); }

/* When the entire SoD is disabled, go crazy! */
.sod_select.custom.disabled
{
    border-color: #d4d4d4;
    color: #b2b2b2;
    cursor: not-allowed;
}

.sod_select.custom.disabled:hover { background: #fcfcfc; }

/* The "label", or whatever we should call it. Keep the first three lines for truncating. */
.sod_select.custom .sod_label
{
    overflow: hidden;
    padding-right: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sod_select.custom .sod_prefix { /* Use this if you're using a prefix and want to style it */ }
.sod_select.custom .sod_placeholder { /* Use this if you're using a placeholder and want to style it */ }

/* Options list wrapper */
.sod_select.custom .sod_list_wrapper
{
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    color: #808080;
    display: none;
    font-family: SourceSansPro-Regular;
    font-weight: 300;
    height: auto;
    left: 0;
    margin: 10px 0 0 -1px;
    position: absolute;
    top: 100%;
    width: inherit;
    z-index: 1;
}
.sod_list_wrapper h4 {
font-size: 15px;
color: #888888;
text-align: center;
margin: 0;
padding: 15px 10px;
cursor: text;
}
/* Shows the option list (don't edit) */
.sod_select.custom.open .sod_list_wrapper { display: block;  }

/* Don't display the options when  */
.sod_select.custom.disabled.open .sod_list_wrapper { display: none;  }

/* When the option list is displayed above the SoD */
.sod_select.custom.above .sod_list_wrapper
{
    bottom: 100%;
    border: 1px solid #d4d4d4;
    box-shadow: 0 -2px 4px rgba(0,0,0,.1);
    margin: 0 0 10px -1px;
    top: auto;
}

/* Arrow(s) displayed when the SoD is active, only in this "theme" */
.sod_select.custom .sod_list_wrapper:after,
.sod_select.custom .sod_list_wrapper:before
{
    border: solid transparent;
    bottom: 100%;
    content: "";
    height: 0;
    pointer-events: none;
    position: absolute;
    right: 10px;
    width: 0;
}

.sod_select.custom.above .sod_list_wrapper:after,
.sod_select.custom.above .sod_list_wrapper:before
{
    bottom: auto;
    top: 100%;
}

.sod_select.custom .sod_list_wrapper:after
{
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #ffffff;
    border-width: 6px;
}

.sod_select.custom.above .sod_list_wrapper:after
{
    border-color: rgba(255, 255, 255, 0);
    border-top-color: #ffffff;
}

.sod_select.custom .sod_list_wrapper:before
{
    border-color: rgba(212, 212, 212, 0);
    border-bottom-color: #d4d4d4;
    border-width: 8px;
    margin-right: -2px;
}

.sod_select.custom.above .sod_list_wrapper:before
{
    border-color: rgba(255, 255, 255, 0);
    border-top-color: #d4d4d4;
}


/* Options list container */
.sod_select.custom .sod_list
{
    border-top: 1px solid #d0cec2;
    max-height: 236px;
    overflow-y: auto;
}

/* All the options. Keep the first three lines for truncating... */
.sod_select.custom .sod_option
{
    border-bottom: 1px solid #d0cec2;
    font-size: 16px;
    list-style-type: none;
    overflow: hidden;
    padding: 15px 10px;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove the bottom border from the last item */
.sod_select.custom .sod_option:last-child { border-bottom: none; }

/* Optgroups */
.sod_select.custom .sod_option.optgroup,
.sod_select.custom .sod_option.optgroup.disabled
{
    background: inherit;
    color: #939393;
    font-size: 10px;
    font-style: italic;
}

/* Children of an optgroup */
.sod_select.custom .sod_option.groupchild { padding-left: 20px; }

/* Disabled option */
.sod_select.custom .sod_option.disabled
{
    background: inherit;
    color: #cccccc;
}

/* Hover state for options, also used when a user uses his/hers up/down keys */
.sod_select.custom .sod_option.active
{
    background: #dcdcdc;
    color: #676767;
    cursor: pointer;
}
/*Make room for the check mark */
.sod_select.custom .sod_option.selected
{
    font-weight: 700;
    padding-right: 25px;
}

/* Displays a check mark for the selected option */
.sod_select.custom .sod_option.selected:before
{
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMTAgOSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTAgOSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8cGF0aCBmaWxsPSIjRDlEOUQ4IiBkPSJNNCw2LjdDMy42LDYuMywzLjUsNi4xLDMuMSw1LjdDMi42LDUuMiwyLDQuNiwxLjUsNC4xYy0wLjgtMC44LTIsMC40LTEuMiwxLjJjMC45LDAuOSwxLjksMS45LDIuOCwyLjgNCgkJYzAuNywwLjcsMS4zLDEsMiwwQzYuNyw2LDguMywzLjcsOS44LDEuNUMxMC41LDAuNSw5LTAuMyw4LjMsMC42bDAsMEM2LjcsMi45LDUuNyw0LjQsNCw2LjciLz4NCjwvZz4NCjwvc3ZnPg0K);
    color: #808080;
    content: "";
    display: inline-block;
    height: 9px;
    position: absolute;
    right: 10px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 10px;
}

/* Add a .no_highlight class to you SoD to hide the check mark */
.sod_select.custom.no_highlight .sod_option.selected:before { display: none; }

/* Hide native select */
.sod_select.custom select { display: none !important; }

/* The native select in touch mode. Keep this first line. Sorry, keep everything. */
.sod_select.custom.touch select
{
    -webkit-appearance: menulist-button;
    display: block !important;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

@media only screen and (max-width:767px) {
    .sod_select.custom.custom {
        width: 100%;
    }
}