#main .selected {
    border-radius: 50%;
    border: solid #0099FF;
}

/* select layer */
#main-select {
    width: 100%;
    height: 100%;
    top: 0;
    position: fixed;
    pointer-events: none;
    z-index: 100;
}

#main-footer {
    transform: scale(0);
    transition-property: transform;
    transition-duration: 0.3s;
}

.select-overlay #main-footer {
    transform: scale(1);
}

/* dim */
#main-select:before {
    content: "";
    display: none;
    z-index: 100;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(8,8,8,.7);
}

#main-select.popup {
    pointer-events: auto;
}

#main-select.popup:before {
    display: block;
}

/* arrow */
#main-select:after {
    transform: scale(0);
    transition-property: transform;
    transition-duration: 0s;
    z-index: 100;
    content: "";
    position: fixed;
    top: 48px;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-bottom: 20px solid rgba(2, 56, 92, 1);
    left: 50%;
    margin-left: -20px;
}

#main-select.popup:after {
    transform: scale(1.0);
    transition-duration: 0.3s;
    transform-origin: 50% 100%;
}

/* counter button */
#main-select-button {
    position: fixed;
    top: 22px;
    left: 50%;
    margin-left: -50px;

    height: 75px;
    width: 100px;
    line-height: 75px;
    border-radius: 40px;

    text-align: center;
    background-color: rgb(8, 56, 94);
    box-shadow: 0 3px 4px rgb(17, 17, 17);
    z-index: 90;

    pointer-events: auto;
    transition: transform 0.3s;
    transform: scale(0);
}

.select-overlay #main-select-button {
    transform: scale(1);
}

#main-select-button-text {
    display: block;
    height: 100%;
    line-height: 60px;
    background: url(../images/tw_list_number_icon.png) no-repeat 50% 100%;
}

/* select popup */
.main-select-popup.open {
    transform: scale(1.0);
    z-index: 101;
    pointer-events: auto;
}

.main-select-popup {
    pointer-events: none;
    position: fixed;
    left: 50%;
    top: 83px;
    margin-left: -100.5px;
    width: 201px;
    height: 201px;
    transform: scale(0);
    transform-origin: 50% 0;
    transition: transform 0.3s;
    padding: 0;
    -webkit-border-radius: 50%;
    min-height: 12.5625rem !important;
    -webkit-mask-image: -webkit-radial-gradient(#000000 6.28125rem, transparent 0);
    background-color: rgba(2, 56, 92, 1);
    border: 0;
}

.main-select-popup .ui-listview {
    margin: 0;
}

.main-select-popup .ui-listview:before {
    display: none;
}

.main-select-popup .ui-listview:after {
    display: none;
}

.main-select-popup .ui-listview li {
    font-size: 1.75rem;
    text-align: center;
    border-bottom: 2px solid rgba(8, 8, 8, 1);
    color: rgba(245, 245, 245, 1);
    min-height: 100px;
    border-image: none;
    -webkit-mask-image: none;
    margin-top: 0;
    padding: 0;
}

.main-select-popup .ui-listview li.ui-li-active:before {
    content: none;
}

.main-select-popup .ui-listview li:last-child {
    border: 0;
}

.main-select-popup .ui-listview li a {
    color: rgba(245, 245, 245, 1);
    margin-top: 0;
    line-height: 37px;
}

.main-select-popup .ui-listview li a:active {
    color: rgba(245, 245, 245, 1);
    background-color: rgba(23, 73, 115, 1);
}

.main-select-popup .main-select-popup-all {
    padding-top: 45px;
    padding-bottom: 19px;
}

.main-select-popup .main-select-popup-none {
    padding-top: 19px;
    padding-bottom: 44px;
}

.main-select-popup-all.single,
.main-select-popup-none.single {
    padding-top: 80px;
}

/* drawer */
.select-overlay #main-selector-button {
    display: block;
}

#main-selector-button.hidden {
    display: none;
}

#main-selector-button {
    width: 70px;
    height: 70px;
    position: fixed;
    top: 50%;
    transform: translate(0, -50%);
    right: 0;
    color: transparent;
    display: none;
    background-color: #a4a4a4;
    -webkit-mask-image: url(../images/b_drawer.png);
    -webkit-mask-size: 18px 36px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 45px 19px;
    z-index: 1;
}

#main-selector-popup .delete-icon:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: url(../images/gallery_more_opt_delete.png);
    -webkit-mask-size: 100% 100%;
    background-color: rgb(8, 8, 8);
    -webkit-mask-repeat: no-repeat;
}

#main-selector-popup .send-icon:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: url(../images/gallery_more_opt_send_to_mobile.png);
    -webkit-mask-size: 100% 100%;
    background-color: rgb(8, 8, 8);
    -webkit-mask-repeat: no-repeat;
}

/* popup */
.btn-icon-cancel:before {
    background-color: rgba(245, 245, 245, 1);
    -webkit-mask-image: url(../images/tw_ic_popup_btn_delete.png);
}

.btn-icon-check:before {
    background-color: rgba(245, 245, 245, 1);
    -webkit-mask-image: url(../images/tw_ic_popup_btn_check.png);
}
