@import url("../theme/css/variables.css");

.sel {
    display: inline-block;
    width: 100%;
	padding-left:20px;
	padding-right:20px;
	padding-bottom: 15px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
	border-bottom: 1px solid var(--secondary-muted-4);
	font-family: 'Open Sans', sans-serif;
	font-weight:400;
	letter-spacing:1px;
	font-size: 13px;
	line-height:24px;
	color: var(--secondary);
	-webkit-transition: border-bottom 0.3s, color 0.3s;
	transition: border-bottom 0.3s, color 0.3s;
}

.sel::before {
    position: absolute;
    content: "\f063";
    font-family: "FontAwesome";
    font-size: 12px;
    color: var(--secondary-muted-4);
    right: 20px;
    top: 6px;
}

.sel.active::before {
    transform: rotateX(-180deg);
}

.sel__placeholder {
    pointer-events: none;
    user-select: none;
    visibility: visible;
	color: var(--secondary-muted);
}

.sel.active .sel__placeholder {
    visibility: hidden;
}

.sel__placeholder::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
	padding-left:20px;
	padding-right:20px;
	padding-bottom: 15px;
    content: attr(data-placeholder);
    visibility: hidden;
}

.sel.active .sel__placeholder::before {
    visibility: visible;
}

.sel__box {
    z-index: 10;
    border-width: 0px 1px 1px 1px;
    border-style: solid;
    border-color: var(--secondary-muted-4);
    border-radius: 5px;
    position: absolute;
    top: calc(100% + 4px);
    left: -4px;
    display: none;
    list-style-type: none;
    text-align: left;
    font-size: 1em;
    background-color: var(--primary-muted);
    width: calc(100% + 8px);
    box-sizing: border-box;
}

.sel.active .sel__box {
    display: block;
    animation: fadeInUp 500ms;
}

.sel__box__options {
    display: list-item;
	font-family: 'Open Sans', sans-serif;
    font-size: 1.5em;
    color: var(--secondary);
    padding: 0.5em 1em;
    user-select: none;
}

.sel__box__options::after {
    content: "\f00c";
    font-family: "FontAwesome";
    font-size: 0.5em;
    margin-left: 5px;
    display: none;
}

.sel__box__options.selected::after {
    display: inline;
}

.sel__box__options:hover {
    background-color: var(--secondary-muted-4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
