#marker-bar,
#txtselect_marker {
    display: block;
    visibility: hidden;
    position: absolute;
    z-index: 1200; /* more than assignment_wrapper_ok */
    opacity: 0;
    -webkit-transition: opacity .4s, visibility .1s linear .4s;
    -moz-transition: opacity .4s, visibility .1s linear .4s;
    -o-transition: opacity .4s, visibility .1s linear .4s;
    transition: opacity .4s, visibility .1s linear .4s;
    }
#txtselect_marker {
    cursor: pointer;
    width: 48px;
    height: 48px;
    background:url(../img/textselect/marker.png) -0px -0px no-repeat;
    }
#marker-bar{
    border: 1px solid #ccc;
    border-radius: 15px;
    background: #fff;
    padding: 5px 10px;
    cursor: default;
    box-shadow: 0px 0px 4px #ccc;
    }
    #txtselect_marker:hover {
        background-position: -0px -48px;
        }
    #marker-bar.show,
    #txtselect_marker.show {
        /* XXX make a common css fadeIn/fadeOut classes */
        visibility: visible;
        -webkit-transition: opacity .4s, visibility 0s;
        -moz-transition: opacity .4s, visibility 0s;
        -o-transition: opacity .4s, visibility 0s;
        transition: opacity .4s, visibility 0s;
        opacity: 1;
        }
    #marker-bar .masha-social,
    #marker-bar .masha-marker{
        cursor: pointer;
        display: block;
        margin: 0 5px;
        float: left;
        }
    #marker-bar .masha-marker{
        line-height: 1em;
        color: #aaa;
        border-bottom: 1px dotted #aaa;
        margin-right: 10px;
        }
        #marker-bar .masha-marker:hover {
            color: #ea3e26;
            border-color: #ea3e26;
            }
    .masha-social{
        cursor: pointer;
        width: 20px;
        height: 20px;
        background: url(../img/textselect/social-icons2.png) 20px 20px no-repeat;
        }
        .masha-social.twitter{
            background-position: 0 -20px;
            }
        .masha-social.twitter:hover {
            background-position: 0 0;
            }
        .masha-social.facebook{
            background-position: -20px -20px;
            }
        .masha-social.facebook:hover {
            background-position: -20px 0;
            }
        .masha-social.vk{
            background-position: -40px -20px;
            }
        .masha-social.vk:hover {
            background-position: -40px 0;
            }
        .masha-social.gplus{
            background-position: -60px -20px;
            }
        .masha-social.gplus:hover {
            background-position: -60px 0;
            }

.user_selection, .user_selection_true {
    background: #c4f47d;
    padding: 2px 0;
    }
.user_selection a.txtsel_close, .user_selection_true a.txtsel_close {
    display:none;
    }
.user_selection .closewrap, .user_selection_true .closewrap {
    position: relative;
    }
.user_selection.hover a.txtsel_close, .user_selection_true.hover a.txtsel_close {
    display: inline-block;
    position: absolute;
    top: -7px;
    left: -5px;
    width: 33px;
    height: 33px;
    background: url(../img/textselect/closemarker.png) -0px -0px no-repeat;
    }
    .user_selection.hover a.txtsel_close:hover, .user_selection_true.hover a.txtsel_close:hover {
        background-position: -0px -33px;
        }
        
#upmsg-selectable {
    position: fixed;
    top: -57px;
    left: 0;
    height: 57px;
    width: 100%;
    visibility:hidden;
    background: url(../img/textselect/upmsg_bg.png) repeat-x;
    z-index: 9999;
    overflow:hidden;
    -webkit-transition: top .4s, visibility .1s linear .4s;
    -moz-transition: top .4s, visibility .1s linear .4s;
    -o-transition: top .4s, visibility .1s linear .4s;
    transition: top .4s, visibility .1s linear .4s;
    }
    #upmsg-selectable.show {
        visibility: visible;
        -webkit-transition: top .4s, visibility 0s;
        -moz-transition: top .4s, visibility 0s;
        -o-transition: top .4s, visibility 0s;
        transition: top .4s, visibility 0s;
        top: 0;
        }
    #upmsg-selectable .upmsg-selectable-inner {
        width: 928px;
        height: auto;
        margin: 0 auto;
        position: relative;
        }
        #upmsg-selectable .upmsg-selectable-inner img {
            float: left;
            }
        #upmsg-selectable .upmsg-selectable-inner p {
            color:white;
            font-size:12px;
            font-family: Arial, sans-serif;
            white-space: nowrap;
            margin-left:63px;
            margin-top:17px;
            text-align:left;
            text-shadow:0 -1px 0 #000000;
            }
        #upmsg-selectable .upmsg-selectable-inner .upmsg_closebtn {
            bottom:-4px;
            display:block;
            height:19px;
            position:absolute;
            right:0;
            width:19px;
            background: url(../img/textselect/upmsg_closebtn.png) no-repeat -0px -0px;
            }
            #upmsg-selectable .upmsg-selectable-inner .upmsg_closebtn:hover {
                background-position: -0px -19px;
                }
.user_selection_true{
        background: #afa;
    }

#share-popup {
  background: url(../img/textselect/bg_share.png) no-repeat;
  position: absolute;
  width: 414px;
  height: 180px;
  left: -10000px;
  top: -10000px;
  line-height: 1.4;
  display: none; 
  visibility: hidden;
  z-index: 1000;
  font-size: 10px;
    opacity: 0;
    -webkit-transition: opacity .4s, visibility .1s linear .4s;
    -moz-transition: opacity .4s, visibility .1s linear .4s;
    -o-transition: opacity .4s, visibility .1s linear .4s;
    transition: opacity .4s, visibility .1s linear .4s;
}
#share-popup.show {
		display: block; 
        visibility: visible;
        opacity: 1;
        -webkit-transition: opacity .4s, visibility .4s;
        -moz-transition: opacity .4s, visibility .4s;
        -o-transition: opacity .4s, visibility .4s;
        transition: opacity .4s, visibility .4s;
        }
#share-popup .social {
  padding: 15px 0 10px 17px;
  height: 40px;
}
#share-popup .social p {
  padding-bottom: 10px;
  margin: 0;
  font-weight: bold;
}
#share-popup .social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#share-popup .social ul:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
#share-popup .social ul li {
  float: left;
  padding-right: 20px;
}
#share-popup .social ul a {
  text-decoration: none;
  font-size: 11px;
  display: inline-block;
  padding: 0 0 0 18px;
  height: 16px;
}
#share-popup .social ul a:hover { text-decoration: underline; }
#share-popup .social ul a.tw { background: url(../img/textselect/social-icons2.png) 0 0 no-repeat; }
#share-popup .social ul a.fb { background: url(../img/textselect/social-icons2.png) 0 -16px no-repeat; }
#share-popup .social ul a.vk { background: url(../img/textselect/social-icons2.png) 0 -32px no-repeat; }
#share-popup .social ul a.gp { background: url(../img/textselect/social-icons2.png) 0 -48px no-repeat; }
#share-popup .link {
  clear: both;
  border-top: 1px solid #d9d9d9;
  padding: 10px 5px 0 10px;
  line-height: 1.2;
  overflow: hidden;
  margin: 0 7px;
}
#share-popup .link p {
  font-weight: bold;
  padding: 0 0 3px 0;
  margin: 0;
}
#share-popup .link span {
  color: #999;
  display: block;
  padding-top: 3px;
}
#share-popup .link a {
  display: block;
  position: relative; 
}
#share-popup .link a ins {
  position: absolute;
  width: 16px;
  right: -14px;
  top: 0;
  bottom: 0;
}