/* ----------------------------------
* Drawer
* ---------------------------------- */


/* Sidebar */
section[data-type="sidebar"] {
    position: absolute;
    width: 80%;
    background: url(drawer/images/ui/pattern.png) repeat;
    height: 100%;
    top: 0;
    right: 0;
    overflow-y: auto;
    background: #17BABE;
    transform: translateX(100%);
    transition: transform .3s ease-in-out;
    z-index: 20;
}

body.settings section[data-type="sidebar"] {
    transform: translateX(0);
    box-shadow: -2px 0 20px #000;
}

body.settings #main-panel:before,
body.settings #application-panel:before {
    content: '';
    background: black;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 15;
    opacity: .5;
}

body.settings #main-panel,
body.settings #application-panel {
    pointer-events: none;
}


#signout-button {
    width: 70%;
    margin: auto;
    display:block;
    height: 4rem;
    border-radius: 4rem;
    border: 1px solid white;
    background: #54CDD0;
    color: white;
    font-size: 1.6rem;
}

/* Sidebar header */
section[data-type="sidebar"] > header {
    position: relative;
    height: 5rem;
    color: #fff;
    background: url(drawer/images/ui/header.png) repeat-x left bottom / 100% auto;
}

section[data-type="sidebar"] > header:after {
    content: "";
    height: 0.3rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: url(drawer/images/ui/shadow_header.png) repeat-x left top;
    background-size: auto 100%;
}

section[data-type="sidebar"] > header h1 {
    font-size: 2.2rem;
    line-height: 4.8rem;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
    margin: 0 0 0 3rem;
    height: 100%
}

section[data-type="sidebar"] > header h1 em {
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1em;
}

/* Generic set of actions in toolbar */
section[data-type="sidebar"] > header menu[type="toolbar"] {
    height: 100%;
    float: right;
}

section[data-type="sidebar"] > header menu[type="toolbar"] a,
section[data-type="sidebar"] > header menu[type="toolbar"] button {
    height: 4.9rem;
    line-height: 4.9rem;
    float: left;
    background: none;
    padding: 0 1.75rem;
    -moz-box-sizing: border-box;
    min-width: 5rem;
    text-align: center;
}

section[data-type="sidebar"] > header menu[type="toolbar"] a:last-child,
section[data-type="sidebar"] > header menu[type="toolbar"] button:last-child {
    background: url(drawer/images/ui/separator.png) no-repeat left center / auto 3.1rem;
}

section[data-type="sidebar"] > header menu[type="toolbar"] {
    padding: 0;
    margin: 0;
}

section[data-type="sidebar"] > header a,
section[data-type="sidebar"] > header button {
    border: none;
    background: none;
    padding: 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.1em;
    color: #fff;
}

section[data-type="sidebar"] > header a:first-letter,
section[data-type="sidebar"] > header button:first-letter {
    text-transform: uppercase;
}

/* Icon definitions */
section[data-type="sidebar"] > header .icon {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    margin: 0 -1rem;
    background: transparent no-repeat center center / 100% auto;
    font-size: 0;
    overflow: hidden;
    position: relative;
    height: 4.9rem;
}

section[data-type="sidebar"]:after {
    content: "";
    width: 1rem;
    background: url(drawer/images/ui/shadow.png) right top repeat-y;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

section[data-type="sidebar"] > nav {
    overflow-y: auto;
    max-height: 100%;
    margin-right: -0.8rem;
    width:100%;
}

section[data-type="sidebar"] > nav > h2 {
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 3.3rem;
    text-indent: 3rem;
    color: #fff;
    background: url(drawer/images/ui/pattern_subheader.png) repeat left top;
    border-bottom: 0.1rem solid #596068;
    margin: 0;
    padding-right: 0.8rem;
}

section[data-type="sidebar"] [role="toolbar"] {
    position: absolute;
}

section[data-type="sidebar"] > nav > ul {
    width: 100%;
    margin: 0;
    padding: 0;
}

section[data-type="sidebar"] > nav > ul > li {
    color: #fff;
    list-style: none;
    transition: background 0.2s ease;
    background-color: #26343F;
}

section[data-type="sidebar"] > nav > ul > li:active {
    background: #00ABCC;
}

section[data-type="sidebar"] > nav > ul > li > a {
    text-decoration: none;
    color: #B0B2B3;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 5rem;
    border-bottom: 0.1rem solid #596068;
    text-indent: 3rem;
    padding-right: 0.8rem;
    padding-left: 3rem;
    width: 100%;
    -moz-box-sizing: border-box;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

section[data-type="sidebar"] > nav > ul > li > a:after {
    content: '';
    position: absolute;
    height: 2.3rem;
    width: 2.3rem;
    margin-top: 1.3rem;
    left: 2.7rem;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

section[data-type="sidebar"] > nav > ul > li > a[data-settings-option="settings"]:after {
    background-image: url(images/320/settings/icn_settings.png);
}
section[data-type="sidebar"] > nav > ul > li > a[data-settings-option="tutorial"]:after {
    background-image: url(images/320/settings/icn_tutorial.png);
}
section[data-type="sidebar"] > nav > ul > li > a[data-settings-option="about"]:after {
    background-image: url(images/320/settings/icn_about.png);
}
section[data-type="sidebar"] > nav > ul > li > a[data-settings-option="privacy"]:after {
    background-image: url(images/320/settings/icn_terms.png);
}
section[data-type="sidebar"] > nav > ul > li > a[data-settings-option="support"]:after {
    background-image: url(images/320/settings/icn_help.png);
}
section[data-type="sidebar"] > nav > ul > li > a[data-settings-option="sessions"]:after {
    background-image: url(images/320/settings/icn_reset.png);
}


/*
 * Standalone
 */

#close-settings {
    transform: rotate(180deg);
}

#drawer > header:first-child {
    background: #0D1922 !important;
}


section[data-type="sidebar"] {
    background: #394e5f !important;
}

#settings-bottom{
    margin-bottom: 2em;
    text-align: center;
}
#settings-signed-as{
    color: #00B9BE;
    line-height: 1.3em;
    margin: 1em 2em;
    font-size: 1.5em;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 2px;
}


