/*******************************************************************************

EFatMarker:
    Allows to dynamically highlight specific portion(s) of a document,
    and to permalink these highlights using HTML anchor.

License (http://opensource.org/licenses/MIT#):

Copyright (C) 2013 Raymond Hill

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

**/

.efm-hi {
    background-color: #ff8;
    }

/******************************************************************************/

/* EFatMarker button => default state */
#efm-button {
    margin: 0 0 4px 0;
    padding: 0 0 0 30px;
    width: 48px;
    height: 48px;
    font: 14px sans-serif;
    background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACbNJREFUaN7VmmlwU/cVxX/vybIlecM2trHB2AaDwWWJWQoEEsLakrQkpNAmaTsJZIeQJs1SmjQzadJmazOdth/appnONJ3pNEnDZCskrUkAB2wEtrxjG3mVLS+yLWvXk97SD08pnwo23tr/jL6+d8655577v5Lg//wIM/nyuyFBg9fSEhO/HRUNoX6f9/gA/OUM1AJhQLvaMwwzAfw+SFwCeSK8tGff3oMH3ngzaXVESksMhtbKUXmvWQqHuuASIF2NxLQTOABH0otL3l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0Vwt+XQOxDAuGiY7BQFXIAfBp3wcTtD9ZeH1oRic0IVeACKi3J5oOTuxzCY0sF+HNx2kD2kJQxR3J+EoayA1i4zgSS9ea2NqJ/K1Mr6otJ8tW8ZprQCyQYOrb1lkTmt9BvQWg59J3UtQyraqITmGSY3nIL3RBYXcvowBiK834OzR0+dusmIzWsmcA/kLSoU7lx61yPg94LjFPj6QAItBFpAQPGoeDw+hnxwsUalQ8NTBudiE/eSbqrJPWMmkCzwg3Xf2jQ7qWQbVH8Erip9bwoDQQOa30DED71uiTp3JPKOrDQ2Q6MfLqB/BierccdNYD/EF+Wxe9GWreByQO858Dl09YMCWsCAEhAZ9Wu0+GQ+jCrNF+A0UBmzTneMKjNCQIOVK9aaFiZmz4eOczBUDZKqVyBkQAsYkPwC7d4oZWHZeVK3TQVwJjaw5KlQf8wELAJb0jPjRYIj0G+DoPM/6hMQUfwiQ14Vqz8iHdM0W2w5r44tKTJTeMZEIP7e3D2+TSaq//l7CjwjpJllBEn3vuqPI+QVaPZEOCqrF/t08LapSJxrJrB+p9Ny/b7P0ajAXvNbbC/CGgFSJQOax4B9WObtQNRZod/xqyayYY33jOk3sqJFrNq6bcdqQdtERs6NzN0TpcoZRP5sGLfbyJuusOstVTsp676vuNb9dsoq4PVSB8fRBAUwEG98jhue6OXMvPs4epdz9E8qp0OXG3darDMuAt3d8+o17RiCkAMkoDGAxvta/ejwyB9V4ZQfrRIoj1knzDSeMf3Z47rSBWm37vG8u2Z9/LrOtkjIVhUe7HHQXWMLXhoc1FrQ1f9yQdH+5wjEemU+cD1QEGvQgZhdumOeD003eIB/A/B5qhJjYhStAAAAAElFTkSuQmCC) no-repeat bottom right;
    cursor: pointer;
    opacity: 0.3;
    z-index: 2;
    }

/* mouse pointer over EFatMarker button => make it opaque */
#efm-button:hover {
    opacity: 1;
    }

/* EFatMarker menu => default state, hidden */
#efm-button #efm-menu {
    margin: 0 0 52px 0;
    border: 1px outset #ccc;
    padding: 0;
    display: none;
    background: #eee;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 18em;
    opacity: 1;
    cursor: auto;
    }

/* mouse pointer over EFatMarker button => show EFatMarker menu */
#efm-button:hover #efm-menu {
    display: block;
    font-size: smaller;
    color: #999;
    }

/* menu title */
#efm-button #efm-menu h3 {
    padding: 2px 0 0 0;
    font: bold 120% sans-serif;
    text-align: center;
    }

/* menu item separator */
#efm-button:hover #efm-menu .efm-menu-separator {
    margin: 0.5em 0;
    padding: 0;
    border-top: 1px dotted #ccc;
    height: 1px;
    }

/* default state of menu item */
#efm-button #efm-menu a {
    margin: 1px;
    padding: 3px 3px;
    display: block;
    font: 12px sans-serif;
    white-space: nowrap;
    opacity: inherit;
    cursor: pointer;
    text-decoration: none;
    color: #444;
    }

/* mouse pointer over menu item */
#efm-button #efm-menu a:hover {
    color: black;
    background-color: white;
    opacity: 1;
    }

/* keyboard shortcut hint */
#efm-button #efm-menu a > span {
    color: gray;
    position: absolute;
    right: 4px;
    }

/* permalink input field */
#efm-button #efm-menu #efm-permalink input {
    margin-left: 1%;
    border: 1px solid #ddd;
    padding: 2px 1px;
    width: 96%;
    color: #444;
    background-color: #f8f8f8;
    }

/* twitter button */
#efm-button #efm-menu #efm-twitter-button {
    padding-left: 64px;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAAUCAYAAAAp46XeAAAFXElEQVRYw92YaWxUVRSAv/fmvXmzdDptKV0A6cx0LC1QBqfEqRZlVRY1bigaiYkkaGKC/NCYmBhigolGgxr/uCtGWlwCwSoRFUEGGixdKMVSWqa0YMtSOralZTrLW/wxOlAB40IM6U1O7su595xzv3fvu+fkCQA/dfUbob4IY6V5s22UuzIF4aeufkMxy8zMt48ZuKZT54nFE4ihvsiYAgOYmW8n1BdBuloO45p+zUFKANGEzlhs/3jnNte1caa/nyX+EtzZzmsfLqEbo5TVDe3Mm+bGYZFH6e/+uIkzrTV4crO4t8I/yq66oZ1Pgw2XBJhX6mHVwsBVX3j76UFsZoFJWelXn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