﻿/*the container must be positioned relative:*/
.custom-select {
    position: relative;
}

    .custom-select select {
        display: none; /*hide original SELECT element:*/
    }

.select-selected {
    background-color: #ffffff;
    border-radius: 0.1em;
    padding-top: 2%;
}

    /*style the arrow inside the select element:*/
    .select-selected:after {
        position: absolute;
        content: "";
        top: 16px;
        right: 15px;
        width: 0px;
        height: 0px;
        border: 10px solid transparent;
        border-color: #83caeb transparent transparent transparent;
    }

    /*point the arrow upwards when the select box is open (active):*/
    .select-selected.select-arrow-active:after {
        border-color: transparent transparent #83caeb transparent;
        top: 6px;
    }



@media (min-width: 320px) and (max-width: 640px) {

    /*style the arrow inside the select element:*/
    .select-selected:after {
        position: absolute;
        content: "";
        top: 15px;
        top: calc(15px + var(--top-mob-dropdown));
        right: 15px;
        right: calc(15px + var(--top-mob-dropdown));
        width: 0px;
        height: 0px;
        border: 10px solid transparent;
        border: calc( 10px + var(--height-mob-dropdown)) solid transparent;
        border-color: #83caeb transparent transparent transparent;
    }

    /*point the arrow upwards when the select box is open (active):*/
    .select-selected.select-arrow-active:after {
        border-color: transparent transparent #83caeb transparent;
        top: 15px;
        top: calc((15px + var(--top-mob-dropdown)) - ( 10px + var(--height-mob-dropdown)));
    }

    #contentMain ::-webkit-scrollbar {
        width: 30px;
        width: calc((30px + var(--top-mob-dropdown) + var(--top-mob-dropdown)) + (20px + var(--height-mob-dropdown))) !important;
    }

    #contentMain ::-webkit-scrollbar-thumb {
        border-right: 15px solid transparent !important;
        border-right: calc(15px + var(--top-mob-dropdown)) solid transparent !important;
        border-left: 15px solid transparent !important;
        border-left: calc(15px + var(--top-mob-dropdown)) solid transparent !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {

    /*style the arrow inside the select element:*/
    .select-selected:after {
        position: absolute;
        content: "";
        top: 31px;
        right: 28px;
        width: 0px;
        height: 0px;
        border: 22px solid transparent;
        border-color: #83caeb transparent transparent transparent;
    }

    /*point the arrow upwards when the select box is open (active):*/
    .select-selected.select-arrow-active:after {
        border-color: transparent transparent #83caeb transparent;
        top: 9px;
    }

    #contentMain ::-webkit-scrollbar {
        width: 100px !important;
    }

    #contentMain ::-webkit-scrollbar-thumb {
        border-right: 40px solid transparent !important;
        border-left: 40px solid transparent !important;
    }
}


/*style the items (options), including the selected item:*/
.select-items div, .select-selected {
    color: #333333;
    padding: 2% 15pt;
    /*border: 1px solid transparent;*/
    /*border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;*/
    cursor: pointer;
    user-select: none;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: #ffffff;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    height: 200pt;
    overflow: scroll;
}

/*hide the items when the select box is closed:*/
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: #e0f2fa;
}

.custom-select-border {
    border: 0.1em solid #83caeb;
    border-radius: 0.25em;
}

.select-selected.select-arrow-active {
    border: 0.1em solid #83caeb;
    border-bottom: 0;
    border-radius: 0.25em;
    border-bottom-left-radius: 0pt;
    border-bottom-right-radius: 0pt;
}


.select-items {
    border: 0.1em solid #83caeb;
    border-top: 0.1em solid #e0f2fa;
    border-radius: 0.25em;
    border-top-left-radius: 0pt;
    border-top-right-radius: 0pt;
}

#contentMain ::-webkit-scrollbar {
    width: 50px;
    height: 20pt;
}

#contentMain ::-webkit-scrollbar-thumb {
    height: 50pt;
    border-right: 22px solid transparent;
    border-left: 20px solid transparent;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-bottom-left-radius: 10px 20px;
    border-bottom-right-radius: 10px 20px;
    background-clip: padding-box;
    -webkit-border-radius: 10pt;
    background-color: #83caeb;
    -webkit-box-shadow: inset -1px -1px 0px transparent, inset 1px 1px 0px transparent;
}

#contentMain ::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

#contentMain ::-webkit-scrollbar-corner {
}
