/* Typography */

/* 
light	300	normal
regular	400	normal|italic
medium	700	normal
*/

html {
    font-family: "open-sans", HelveticaNeue, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    
    line-height: 1.5;
    
    color: #444;
    
    overflow: hidden;

    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

@media only screen and (min-device-width : 320px)  and (max-device-width : 480px) and (orientation : portrait) {
    html {
        font-size: 9px;
        line-height: 1.3;
    }
}

body { 
	font-size: 1.6rem; 
	line-height: 1.65em;
    
    overflow: auto;
}

h1, h2, h3 {
	margin: 0;
}

h1, h2 {
	font-weight: 300;
}

h2 { 
	font-size: 2.8rem; 
    line-height: 3.2rem; 
	margin-top: 3em;
    
    -webkit-transition: font-size 0.2s linear;
	-moz-transition: font-size 0.2s linear;
	-ms-transition: font-size 0.2s linear;
	-o-transition: font-size 0.2s linear;
    transition: font-size 0.2s linear;
}

h3 { 
    font-size: 1.6rem;
}

h4 { 
    font-size: 1.4rem;
    text-transform: uppercase;
}

.topic-container h1 {
    display: none;
}

.topic-container h2 {
    margin: 3.2rem 0;
}

.topic-container h3 {
	margin-top: 1.8em;
	margin-bottom: 0.8em;
}

.monospace,
span.tt {
    font-family:'Lucida Console', monospace;
}

*[aria-hidden="true"] {
   display: none;
}

.disable-all-transitions {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

@media screen and (max-width: 770px) {
    h2 {
        font-size: 2.4rem;
        line-height: 3.0rem; 
    }
}



/* =============================================================== */
/* =============================================================== */
/* no javascript warning */
/* =============================================================== */
/* =============================================================== */

#nojs {
	display: none;
}

.no-js body * {
	display: none !important;
}

.no-js #nojs,
.no-js #nojs p {
		display: block !important;
		color: #666;
		margin: 0 auto;
		width: 80%;
		height: 500px;
		text-align: center;
		margin-top: 220px;
		font-size: 46px;
		line-height: 1.5;
}

/* =============================================================== */
/* =============================================================== */
/* text selection */
/* =============================================================== */
/* =============================================================== */

header h1,
nav#sidebar {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}

/* =============================================================== */
/* =============================================================== */
/* listings */
/* =============================================================== */
/* =============================================================== */

/* default */

div.topic-container ul {
    list-style-image: url("../images/listing_bullet_icon.svg");
    width: 100%;
    padding-left: 28px;
    
    -moz-box-sizing: border-box;
       box-sizing: border-box;
}

div.topic-container ul li {
    position: relative;
    padding-left: 12px;

    margin: 8px 0;
}

/* directives */

div.topic-container ol.directives {
    list-style: none;
    counter-reset: li;
    padding: 0 0;
    width: 100%;
}

div.topic-container ol.directives li {
    position: relative;
    padding-left: 42px;
    padding-right: 12px;

    padding-top: 8px;
    padding-bottom: 8px;

    border-radius: 3px;
}

div.topic-container ol.directives li:before {
    counter-increment: li;
    content: counter(li);
    
    min-width: 24px;
    height: 24px; /* same as line height to vertically align text */
    line-height: 24px;
    text-align: center;

    border: 1px solid #52A4DD;
    border-radius: 100%;
    
    color: #52A4DD;
    font-weight: 600;

    display: inline-block;

    position: absolute;
    left: 4px;
}

/* =============================================================== */
/* =============================================================== */
/* REALATED TOPICS, SEE ALSO */
/* =============================================================== */
/* =============================================================== */

/* [related topics] NOT wrapped within subsection  */
div.related {
    padding-top: 26px;
    margin-top: 56px;
    
    position: relative; 
}

/* title */
div.related:before {
    content: attr(caption);
    
    display: block;
    
    position: absolute;
    top: 0;
    
    /* light font */
    font-size: 2.2rem;
    font-weight: 300; 
}

div.related a:before {
    content: " ";
    
    display: block;
    width: 8px;
    height: 12px;
    
    position: absolute;
    left: 0;
    top: 7px;
    
    background-image: url("../images/related_link_icon.png");
    background-size: 8px 12px;
    background-position: center center;
    background-repeat: no-repeat;
}

div.related ul li {
    padding-left: 18px;
    position: relative; /* needed by descendent <a> */
}

div.related ul {
    list-style: none;
    padding-left: 0;
}

/* [see also] as wrapped within subsection  */
div.subsection div.related {
    margin-top: 32px;
    padding-top: 14px !important;
    font-size: 1.4rem;
}

div.subsection div.related a:before {
    display: none;
}

div.subsection div.related a {
    padding-left: 0;
    background: none;
}

div.subsection div.related ul li {
    margin: 0 inherit;
    padding-left: 0;
}

div.subsection div.related:before {
    /* use bold */
    font-size: 1.4rem;
    font-weight: 600;
    
    text-transform: uppercase;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    div.related a:before {
        background-image: url("../images/related_link_icon@2x.png");
    }
}

/* =============================================================== */
/* =============================================================== */
/* NOTES, TIPS, SOURCE CODE, EXAMPLES */
/* =============================================================== */
/* =============================================================== */

div.box {
    position: relative;

    margin: 32px 0;
    padding: 46px 24px 18px 24px;

    background: white;

    font-size: 0.875em;
    color: #666;
    
    background-color: #fafafa;
    border-left: 2px solid #ddd;
}

div.box > *:last-child {
    margin-bottom: 0;
}

div.box > *:first-child {
    margin-top: 0;
}

div.box[caption^="source"] {
    padding-top: 18px;
}

div.box[caption^="example"] {
    background-color:#fafafa;
}

div.box[caption^="source"]:before {
    content: " ";
}

div.box[caption^="note"]:before,
div.box[caption^="tip"]:before {
    padding-left: 32px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

div.box[caption^="note"] {
    background-color:rgba(122, 195, 41, 0.04);
    border-color: rgba(122, 195, 41, 1.0);
}

div.box[caption^="note"]:before {
    background-image: url("../images/box_note_icon.png");
}

div.box[caption^="tip"]:before {
    background-image: url("../images/box_tip_icon.png");
}

div.box[caption^="tip"] {
    background-color:rgba(82, 164, 221, 0.04);
    border-color:rgba(82, 164, 221, 1.0);
}

div.box:before {
    content: attr(caption);
    
    text-transform: capitalize;
    font-size: 1.6rem;
    font-weight: 600;

    display: block;

    position: absolute;
    left: 24px;
    top: 18px;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    div.box[caption^="note"]:before {
        background-image: url("../images/box_note_icon@2x.png");
    }

    div.box[caption^="tip"]:before {
        background-image: url("../images/box_tip_icon@2x.png");
    }
}

/* =============================================================== */
/* =============================================================== */
/* subsections */
/* =============================================================== */
/* =============================================================== */

div.subsection {
    padding-left: 32px;
    overflow: hidden;
    margin-top: 0.5rem;
}

div.subsection div.content {
    overflow: hidden;
}

div.subsection div.content.limitedHeight {
    max-height: 0px !important;
}

div.subsection.expandableWithTransition div.content {
    max-height: 900px;
    
    -webkit-transition: max-height 0.2s linear;
    -moz-transition: max-height  0.2s linear;
    -ms-transition: max-height  0.2s linear;
    -o-transition: max-height  0.2s linear;
    transition: max-height 0.2s linear;
}

/* normal */
div.subsection.expandable div.content {
    max-height: 99999px;
}

div.subsection:last-of-type {
    margin-bottom: 2rem;
}

div.subsection h3 {
    position: relative;
    
    width: 100%;
    
    left: -32px;
    
    margin-top: 0px;
    
    padding: 6px 0;
    padding-left: 32px;

    cursor: pointer;

    background-image: url("../images/arrow-disclosure-collapsed.png");
    background-size: 22px 22px;
    background-position: 6px 8px;
    background-repeat: no-repeat;
    
    margin-bottom: 0;
}

/* hover  */
.no-touch div.subsection h3:hover {
    color: #4D8FD3;
    background-color: #fafafa;
    background-image: url("../images/arrow-disclosure-collapsed-hovered.png");
}

.no-touch div.subsection h3.expanded:hover {
    background-image: url("../images/arrow-disclosure-expanded-hovered.png");
}

/* expanded link */
div.subsection h3.expanded {
    background-color: #fafafa;
    background-image: url("../images/arrow-disclosure-expanded.png");
}

@media screen and (max-width: 770px) {
    div.subsection h3 {
        background-size: 18px 18px;
        background-position: 2px 9px;
        padding-left: 24px;
        left: -18px;
    }
    
    div.subsection {
        padding-left: 18px;
    }
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    div.subsection h3 {
        background-image: url("../images/arrow-disclosure-collapsed@2x.png");
    }

    .no-touch div.subsection h3:hover {
        background-image: url("../images/arrow-disclosure-collapsed-hovered@2x.png");
    }

    div.subsection h3.expanded {
        background-image: url("../images/arrow-disclosure-expanded@2x.png");
    }
    
    .no-touch div.subsection h3.expanded:hover {
        background-image: url("../images/arrow-disclosure-expanded-hovered@2x.png");
    }
}

/* =============================================================== */
/* =============================================================== */
/* page switcher */
/* =============================================================== */
/* =============================================================== */

header.showPageSwitcher div#pageSwitcher {
    top: 0;
    opacity: 1.0;
    
    pointer-events: all;
    
    -webkit-transition: top 0.2s, opacity 0.2s ease-in-out;
	-moz-transition: top 0.2s, opacity 0.2s ease-in-out;
	-ms-transition: top 0.2s, opacity 0.2s ease-in-out;
	-o-transition: top 0.2s, opacity 0.2s ease-in-out;
    transition: top 0.2s, opacity 0.2s ease-in-out;
}

header div#pageSwitcher {
    overflow: hidden;
    text-align: center;
    position: relative;
    
    opacity: 0.0;
    pointer-events: none;
    
    top: -174px;
    
    width: 100%;
    
    background: rgba(77, 143, 211, 0.96);
    border-bottom: 1px solid #2e7ed0;
    
    -webkit-transition: top 0.2s, opacity 0.2s ease-in-out;
	-moz-transition: top 0.2s, opacity 0.2s ease-in-out;
	-ms-transition: top 0.2s, opacity 0.2s ease-in-out;
	-o-transition: top 0.2s, opacity 0.2s ease-in-out;
    transition: top 0.2s, opacity 0.2s ease-in-out;
    
    z-index: -1;
}

header div#pageSwitcher > a {
    position: relative;
    max-width: 128px;
    max-height: 184px;
    
    margin: 8px 0;
    padding: 8px 24px;
    
    color: white;
    
    text-align: center;
    
    display: inline-block;
    
    padding-top: 96px;
    
    border-radius: 3px;
    border: 1px solid transparent;
    
    -webkit-transition: background, font-size 0.1s, background-color, border 0.05s ease-in-out;
	-moz-transition: background, font-size 0.1s, background-color, border 0.05s ease-in-out;
	-ms-transition: background, font-size 0.1s, background-color, border 0.05s ease-in-out;
	transition: background, font-size 0.1s, background-color, border 0.05s ease-in-out;
    
    background-size: 92px 92px;
    background-position: top center;
    background-repeat: no-repeat;
    
    font-size: 2rem;
    
    overflow: hidden;
}

.no-touch header div#pageSwitcher > a:hover {
    color: white;
    text-decoration: none;
    
    border-radius: 3px;
    background-color: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.30);
}

header div#pageSwitcher > a:not(:first-of-type) {
    margin-left: 12px;
}

header div#pageSwitcher > a[type="manual"] {
    background-image: url("../images/icon_manual_92.png");
}

header div#pageSwitcher > a[type="dev"] {
    background-image: url("../images/icon_dev_92.png");
}

header div#pageSwitcher > a[type="lb_page"] {
    background-image: url("../images/icon_lbpage_92.png");
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    header div#pageSwitcher > a[type="manual"] {
        background-image: url("../images/icon_manual_92@2x.png");
    }
    
    header div#pageSwitcher > a[type="dev"] {
        background-image: url("../images/icon_dev_92@2x.png");
    }
    
    header div#pageSwitcher > a[type="lb_page"] {
        background-image: url("../images/icon_lbpage_92@2x.png");
    }
}

@media screen and (max-width: 770px) {
    header div#pageSwitcher > a {
        background-size: 48px 48px;
        
        font-size: 1.6rem;
        line-height: 20px;
        
        max-height: 120px;
        max-width: 104px;
        
        padding: 8px 6px;
        padding-top: 58px;
        
        background-size: 46px 46px;
        background-position: center 4px;
    }
    
    header div#pageSwitcher > a:not(:first-of-type) {
        margin-left: 8px;
    }
    
    header div#pageSwitcher > a[type="manual"] {
        background-image: url("../images/icon_manual_46.png");
    }

    header div#pageSwitcher > a[type="dev"] {
        background-image: url("../images/icon_dev_46.png");
    }

    header div#pageSwitcher > a[type="lb_page"] {
        background-image: url("../images/icon_lbpage_46.png");
    }
}

@media screen and (max-width: 770px) and (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    header div#pageSwitcher > a[type="manual"] {
        background-image: url("../images/icon_manual_46@2x.png");
    }

    header div#pageSwitcher > a[type="dev"] {
        background-image: url("../images/icon_dev_46@2x.png");
    }

    header div#pageSwitcher > a[type="lb_page"] {
        background-image: url("../images/icon_lbpage_46@2x.png");
    }
}

/* iPhone / iPad */
@media only screen and (min-device-width : 320px)  and (max-device-width : 480px) and (orientation : portrait) {
    header div#pageSwitcher > a {
        padding: 4px 2px !important;
        padding-top: 58px !important;
        
        font-size: 1.5rem;
        line-height: 1.7rem;
    }
}

/* =============================================================== */
/* =============================================================== */
/* tables */
/* =============================================================== */
/* =============================================================== */

/* default */
table {
    width: 100%;
    text-align: left;
    margin: 44px 0;
}

table tr:first-child {
    border-bottom: 1px solid #bbb;
}

table.shortcuts tr:first-child,
table.keystrokes tr:first-child {
    border-bottom: none;
}

table tr td {
    padding: 0.4em 0;
}

table tr th {
    font-weight: 400;
}

table.noheader tr:first-child,
table tr:not(:first-child):not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* shortcuts / key strokes */
table.shortcuts {
    margin: 16px 0;
}

table.shortcuts tr td:first-child {
    width: 90%;
}

table.shortcuts tr td:not(:first-of-type):not(:last-of-type) {
    text-align: right;
}

table.shortcuts tr:not(:first-of-type) {
    border-top: 1px solid #f0f0f0;
}

table.shortcuts tr td {
    padding: 6px 0;
    vertical-align: top;
}

@media screen and (max-width: 770px) {
    table.shortcuts {
        font-size: 1.4rem;
    }
}

/* key strokes */
table.keystrokes {
    margin: 16px 0;
}

table.keystrokes tr td:not(:first-of-type) {
    text-align: right;
}

table.keystrokes tr:not(:first-of-type) {
    border-top: 1px solid #f0f0f0;
}

table.keystrokes tr td {
    padding: 6px 0;
}

table.keystrokes tr span.key {
    display: inline-block;
    min-width: 24px;
    padding: 0 4px;
    margin: 0 0;
    
    line-height: inherit;
    height: auto;

    font-size: inherit;

    vertical-align: middle;
}

table.keystrokes tr span.key.hold {
    background-color: rgba(82, 164, 221, 0.04);
    border: 1px solid rgba(82, 164, 221, 0.6);
    
    color: inherit;
}

@media screen and (max-width: 770px) {
    table.keystrokes,
    table.shortcuts {
        font-size: 1.4rem;
    }

    table.keystrokes tr span.key {
        min-width: 18px;
        margin: 0 0;
    }
}

/* =============================================================== */
/* =============================================================== */
/* footnote */
/* =============================================================== */
/* =============================================================== */

div.footnote {
    font-size: 0.80em;
}

/* =============================================================== */
/* =============================================================== */
/* glossary overlay */
/* =============================================================== */
/* =============================================================== */

div.glossary-overlay {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    
    position: fixed;
    z-index: 4000;
    
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    
    background: rgba(31,31,31,0.60);
}

div.glossary-overlay div#glossary-content {
    max-height: calc(60% - 56px);
    max-width: 50%;
    
    position: relative;
    
    background: #fff;
    
    padding: 5% 5% 0px 5%;
    
    overflow-x: hidden;
    overflow-y: auto;
    
    -webkit-overflow-scrolling: touch;
    
    -webkit-transition: padding, max-width, max-height .5s ease-in-out;
    -moz-transition: padding, max-width, max-height .5s ease-in-out;
    -ms-transition: padding, max-width, max-height .5s ease-in-out;
    -o-transition: padding, max-width, max-height .5s ease-in-out;
    transition: padding, max-width, max-height .5s ease-in-out;
    
    -moz-box-shadow:    0px 2px 4px 0px rgba(0,0,0,0.50);
    box-shadow:         0px 2px 4px 0px rgba(0,0,0,0.50);
    
    border-radius: 5px 5px 0 0;
}

div.glossary-overlay div#glossary-content h2 {
    margin-top: 0;
}

div.glossary-overlay div#glossary-content h1 {
    display: none;
}

div.glossary-overlay div#glossary-close-button {
    position: relative;
    
    max-width: 50%;
    width: 100%;
    
    padding: 0 5%;
    
    margin: 0;
    
    text-align: center;
    font-size: 2.4rem;
    line-height: 56px;
    
    color: #fff;
    
    background: #6DA4E5;
    border-top: 1px solid #4483cc;
    
    cursor: pointer;
    
    -moz-box-shadow:    0px 2px 4px 0px rgba(0,0,0,0.50);
    box-shadow:         0px 2px 4px 0px rgba(0,0,0,0.50);
    
    border-radius: 0 0 5px 5px;
    
    -webkit-transition: padding, max-width, line-height .5s ease-in-out;
    -moz-transition: padding, max-width, line-height .5s ease-in-out;
    -ms-transition: padding, max-width, line-height .5s ease-in-out;
    -o-transition: padding, max-width, line-height .5s ease-in-out;
    transition: padding, max-width, line-height .5s ease-in-out;
}

div.glossary-overlay div#glossary-close-button:before {
    display: block;
    content: " ";
    background-image: -o-linear-gradient(rgba(255, 255, 255, 0.0),rgba(255, 255, 255, 1.0));
    background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.0),rgba(255, 255, 255, 1.0));
    background-image: -ms-linear-gradient(rgba(255, 255, 255, 0.0),rgba(255, 255, 255, 1.0));
    background-image: linear-gradient(rgba(255, 255, 255, 0.0),rgba(255, 255, 255, 1.0));
    
    position: absolute;
    top: -17px;
    left: 0;
    right: 0;
    height: 16px;
    width: 100%;
}

.no-touch div.glossary-overlay div#glossary-close-button:hover {
    background: #5496e3;
}

div.glossary-overlay img,
section.topic img {
    width: 100%;
	display: block;
	margin: 0 auto;
}

@media screen and (max-width: 770px) {
    div.glossary-overlay div#glossary-content {
        max-height: calc(80% - 56px);
        max-width: 65%;
        
        padding: 7% 7% 0px 7%;
    }
    
    div.glossary-overlay div#glossary-close-button {
        max-width: 65%;
        
        padding: 0 7%;
        
        font-size: 2.0rem;
        line-height: 44px;
    }
}

/* =============================================================== */
/* =============================================================== */
/* markings for actual keys */
/* =============================================================== */
/* =============================================================== */

span.key {
    border: 1px solid rgba(64, 64, 64, 0.2);
    border-radius: 2px;
    
    display: inline-block;
    min-width: 32px;
    
    line-height: inherit;
    text-align: center;
    
    font-size: inherit;
    
    margin: 0;
}

span.key[type="multiletter"] {
    padding: 0 8px;
}

span.key.hold {
    border: none;

    color: #FFFFFF;
    border-radius: 3px;
    background: #52A4DD;
}

span.shortcut {
    white-space: nowrap;
}

span.shortcut span.key:not(:last-child) {
    margin-right: 0.3em;
}

/* =============================================================== */
/* =============================================================== */
/* links */
/* =============================================================== */
/* =============================================================== */

a,
a:visited,
a:active {
    color: #4D8FD3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.no-touch a:hover {
    border-bottom: 1px solid #4D8FD3;
}

a.glossary,
a.glossary:visited,
a.glossary:active {
    color: #4D8FD3;
    text-decoration: none;
    border-bottom: 1px dashed #4D8FD3;
}

.no-touch a.glossary:hover {
    border-bottom: 1px solid #4D8FD3;
}

nav#sidebar a,
nav#sidebar a:visited {
	color: #404040;
}

/* =============================================================== */
/* =============================================================== */
/* search */
/* =============================================================== */
/* =============================================================== */

div.search-overlay {
    position: fixed;
    left: 0;
    top: -2px;
    right: 0;
    bottom: 0;
    
    background-color: rgba(255, 255, 255, 0.8);
    
    z-index: 3000;
    
    opacity: 0.0;
    pointer-events: none;
    
    -webkit-transition: opacity .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out;
    -ms-transition: opacity .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
}

.no-cssfilters div.search-overlay {
	/* Adjust transparency for browser that do not support blurring filters yet (Firefox) */
    background-color: rgba(255, 255, 255, 0.96) !important;
}

div.search-overlay.visible {
    opacity: 1.0;
    pointer-events: all;
}

div.search-overlay.visible > div.input-area {
    top: -1px;
}

div.search-overlay > div.input-area {
    position: relative;
    
    overflow: hidden;
    
    height: 50px;
    top: -51px;
    
    text-align: center;
    
    background: #f0f0f0;
    border-bottom: 1px solid #D9D9D9;
    
    -webkit-transition: top .2s ease-in-out;
    -moz-transition: top .2s ease-in-out;
    -ms-transition: top .2s ease-in-out;
    -o-transition: top .2s ease-in-out;
    transition: top .2s ease-in-out;
    
    background-position: 12px center;
    background-repeat: no-repeat no-repeat;
    background-size: 32px 32px;
}

div.search-overlay > div.input-area[type="dev"] {
    background-image: url("../images/line_icon_dev.png");
}

div.search-overlay > div.input-area[type="manual"] {
    background-image: url("../images/line_icon_manual.png");
}

div.search-overlay > div.input-area > input.search-field,
div.search-overlay > div.input-area > input.search-field:active,
div.search-overlay > div.input-area > input.search-field:focus {
    display: block;
    width: 100%;
    max-width: calc(100% - 12px - 32px - 12px - 12px - 32px);
    
    font-size: 2.0rem;
    font-weight: 200;
    
    border: none;
    outline: none;
    background-color: transparent;
    
    margin-left: 44px;
    
    padding: 0 12px;
    padding-top: 15px;
    padding-bottom: 13px;
    
    -webkit-transition: padding .2s ease-in-out;
    -moz-transition: padding .2s ease-in-out;
    -ms-transition: padding .2s ease-in-out;
    -o-transition: padding .2s ease-in-out;
    transition: padding .2s ease-in-out;
}

a#search-button.blur {
    -webkit-filter: blur(6px);
}

a#search-button,
a#search-button:active,
a#search-button:focus,
a#search-button:visited {
    background-image: url("../images/search_button.png");
    background-size: 32px 32px;
    background-position: center center;
    background-repeat: no-repeat;
    
    display: block;
    width: 32px;
    height: 32px;
    
    position: fixed;
    right: 12px;
    top: 8px;
    
    -webkit-transition: background-image .15s,-webkit-filter 0.2s ease-in-out;
    -moz-transition: background-image .15s,-webkit-filter 0.2s ease-in-out;
    -ms-transition: background-image .15s,-webkit-filter 0.2s ease-in-out;
    -o-transition: background-image .15s,-webkit-filter 0.2s ease-in-out;
    transition: background-image .15s,-webkit-filter 0.2s ease-in-out;
    
    z-index: 3001;
}

div.search-overlay div#search-results {
    margin: 0 48px;
    
    -webkit-transition: margin .2s ease-in-out;
    -moz-transition: margin .2s ease-in-out;
    -ms-transition: margin .2s ease-in-out;
    -o-transition: margin .2s ease-in-out;
    transition: margin .2s ease-in-out;
}

div.search-overlay div#search-results > p#results-counter-string {
    padding: 0 8px;
    font-size: 1.4rem;
    color: #999;
    margin: 14px 0px;
    margin-top: 21px;
}

div.search-overlay div#search-results ul {
    list-style-type: none;
    margin: 0 0;
    padding: 0 0;
}

div.search-overlay div#search-results ul li {
    padding: 8px 8px;
    cursor: pointer;
}

div.search-overlay div#search-results ul li a {
    color: inherit;
}

div.search-overlay div#search-results ul li:hover a,
div.search-overlay div#search-results ul li a:hover {
    color: #4D8FD3;
    border-bottom: none;
}

div.search-overlay div#search-results ul li:hover {
    background: #f0f0f0;
}

.no-touch a#search-button:hover,
a#search-button.active {
    background-image: url("../images/search_button_hovered.png");
    border-bottom: none;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {     
    a#search-button {
        background-image: url("../images/search_button@2x.png");
    }
    
    .no-touch a#search-button:hover,
    a#search-button.active {
        background-image: url("../images/search_button_hovered@2x.png");
    }
    
    div.search-overlay > div.input-area[type="dev"] {
        background-image: url("../images/line_icon_dev@2x.png");
    }

    div.search-overlay > div.input-area[type="manual"] {
        background-image: url("../images/line_icon_manual@2x.png");
    }
}

@media screen and (max-width: 770px) {
    div.search-overlay > div.input-area > input.search-field,
    div.search-overlay > div.input-area > input.search-field:active,
    div.search-overlay > div.input-area > input.search-field:focus {
        margin-left: 38px;
        width: calc(100% - 12px - 32px - 12px - 12px);
    }
    
    div.search-overlay div#search-results {
        margin: 0 12px;
        width: calc(100% - 24px);
    }
}

/* =============================================================== */
/* =============================================================== */
/* header */
/* =============================================================== */
/* =============================================================== */

header {
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	right: 0;
    
    -webkit-transition: -webkit-filter 0.2s linear;
    -moz-transition: -webkit-filter  0.2s linear;
    -ms-transition: -webkit-filter  0.2s linear;
    -o-transition: -webkit-filter  0.2s linear;
    transition: -webkit-filter 0.2s linear;
    max-height: 50px;
}

header.showPageSwitcher {
    max-height: auto;
}

.blur header {
    -webkit-filter: blur(6px);
}

header.showPageSwitcher div#titleBar {
    border-bottom: 1px solid rgba(251, 251, 251, 0.96);
}

header div#titleBar {
    background-color: rgba(251, 251, 251, 0.96);
    border-bottom: 1px solid #D9D9D9;
    text-align: center;
    width: 100%;
    position: relative;
}


header a#sidebar-toggle-button,
header a#sidebar-toggle-button:visited {
    position: absolute;
    
    height: 32px;
    width: 32px;
    
    left: 8px;
    top: 8px;
    
	display: none;

	color: inherit;
	text-decoration: none;
    
    background-image: url("../images/sidebar_menu_button.png");
    background-size: 32px 32px;
    background-position: center center;
    background-repeat: no-repeat;
    
    border-bottom: none;
    
    z-index: 2000;
}

.no-touch header #sidebar-toggle-button:hover,
header #sidebar-toggle-button.active {
    background-image: url("../images/sidebar_menu_button_hover.png");
}

header h1 {
	text-align: center;
    line-height: 48px;
	font-size: 2.4rem;
    font-weight: 400; /* default */
    
    position: relative;
    display: inline-block;
    
    padding: 0 32px 0 42px;
    
    cursor: pointer;
    
    -webkit-transition: all 0.2s linear;
	-moz-transition: all 0.2s linear;
	-ms-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

header.showPageSwitcher h1,
.no-touch header h1:hover {
    color: #4D8FD3;
}

header.showPageSwitcher h1:after,
.no-touch header h1:hover:after {
    background-image: url("../images/header_menu_indicator_hovered.png");
}

header.showPageSwitcher h1:after {
    -webkit-transform:scaleY(-1);
    -moz-transform:scaleY(-1);
    -ms-transform:scaleY(-1);
    -o-transform:scaleY(-1);
    transform:scaleY(-1);
}

header h1:after {
    position: absolute;
    
    width: 32px;
    height: 32px;
    
    right: 0;
    top: 8px;
    
    display: block;
    content: ' ';
    
    background-image: url("../images/header_menu_indicator.png");
    background-size: 32px 32px;
    background-position: left center;
    background-repeat: no-repeat;
    
    -webkit-transition: background 0.2s linear;
	-moz-transition: background 0.2s linear;
	-ms-transition: background 0.2s linear;
	-o-transition: background 0.2s linear;
    transition: background 0.2s linear;
}

header.showPageSwitcher h1[type="manual"],
.no-touch header h1[type="manual"]:hover {
    background-image: url("../images/line_icon_manual_hovered.png");
}

header.showPageSwitcher h1[type="dev"],
.no-touch header h1[type="dev"]:hover {
    background-image: url("../images/line_icon_dev_hovered.png");
}

header h1 {
    background-size: 32px 32px;
    background-position: left center;
    background-repeat: no-repeat;
}

header h1[type="manual"] {
    background-image: url("../images/line_icon_manual.png");
}

header h1[type="dev"] {
    background-image: url("../images/line_icon_dev.png");
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { 
    header h1[type="manual"] {
        background-image: url("../images/line_icon_manual@2x.png");
    }
    
    header h1[type="dev"] {
        background-image: url("../images/line_icon_dev@2x.png");
    }
    
    header.showPageSwitcher h1[type="manual"],
    .no-touch header h1[type="manual"]:hover {
        background-image: url("../images/line_icon_manual_hovered@2x.png");
    }
    
    header.showPageSwitcher h1[type="dev"],
    .no-touch header h1[type="dev"]:hover {
        background-image: url("../images/line_icon_dev_hovered@2x.png");
    }
    
    .no-touch header #sidebar-toggle-button:hover,
    header #sidebar-toggle-button.active {
        background-image: url("../images/sidebar_menu_button_hover@2x.png");
    }

    header a#sidebar-toggle-button {
        background-image: url("../images/sidebar_menu_button@2x.png");
    }
    
    header h1:after {
        background-image: url("../images/header_menu_indicator@2x.png");
    }
    
    header.showPageSwitcher h1:after,
    .no-touch header h1:hover:after {
        background-image: url("../images/header_menu_indicator_hovered@2x.png");
    }
}

@media screen and (max-width: 770px) {
    header h1 {
        font-size: 2.0rem;
    }
    
    header h1[type="manual"] {
        background-image: url("../images/line_icon_manual24.png");
        background-size: 24px 24px;
        background-position: 14px center;
    }
    
    header.showPageSwitcher h1[type="manual"],
    .no-touch header h1[type="manual"]:hover {
        background-image: url("../images/line_icon_manual_hovered24.png");
    }
    
    header h1[type="dev"] {
        background-image: url("../images/line_icon_dev24.png");
        background-size: 24px 24px;
        background-position: 14px center;
    }
    
    header.showPageSwitcher h1[type="dev"],
    .no-touch header h1[type="dev"]:hover {
        background-image: url("../images/line_icon_dev_hovered24.png");
    }
    
    header h1:after {
        background-image: url("../images/header_menu_indicator24.png");
        background-size: 24px 24px;
    }
    
    header.showPageSwitcher h1:after,
    .no-touch header h1:hover:after {
        background-image: url("../images/header_menu_indicator_hovered24.png");
    }
    
    header a#sidebar-toggle-button {
        display: block;
    }
}

@media screen and (max-width:770px) and (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    header h1[type="manual"] {
        background-image: url("../images/line_icon_manual24@2x.png");
    }

    header.showPageSwitcher h1[type="manual"],
    .no-touch header h1[type="manual"]:hover {
        background-image: url("../images/line_icon_manual_hovered24@2x.png");
    }
    
    header h1[type="dev"] {
        background-image: url("../images/line_icon_dev24@2x.png");
    }

    header.showPageSwitcher h1[type="dev"],
    .no-touch header h1[type="dev"]:hover {
        background-image: url("../images/line_icon_dev_hovered24@2x.png");
    }

    header h1:after {
        background-image: url("../images/header_menu_indicator24@2x.png");
    }

    header.showPageSwitcher h1:after,
    .no-touch header h1:hover:after {
        background-image: url("../images/header_menu_indicator_hovered24@2x.png");
    }
}

@media only screen and (min-device-width : 320px)  and (max-device-width : 480px) and (orientation : portrait) {
    header h1 {
        background-size: 0px 0px !important;
        padding: 0 32px 0 16px !important;
    }
}

/* =============================================================== */
/* =============================================================== */
/* topics, actual content */
/* =============================================================== */
/* =============================================================== */

div.container-fixed {
	position: fixed;
	top: 49px;
	bottom: 0;
	width: 100%;
    
    -webkit-transition: -webkit-filter 0.2s linear;
    -moz-transition: -webkit-filter  0.2s linear;
    -ms-transition: -webkit-filter  0.2s linear;
    -o-transition: -webkit-filter  0.2s linear;
    transition: -webkit-filter 0.2s linear;
}

.blur div.container-fixed {
    -webkit-filter: blur(6px);
}

section#searchbar {
	position: absolute;
	height: 100%;
	width: 200px;
	right: 0;
	z-index: 20;
}

section.topic h1 {
	display: none;
}

section.topic {
	position: absolute;
	width: 100%;
    height: 100%;
	overflow-x: hidden;
    overflow-y: auto;
    left: 0;
    top: 0;
    
    -webkit-overflow-scrolling:touch;
}

section.topic .topic-container {
    position: relative;
    
	padding: 0em 3em;
    padding-bottom: 3em;
	margin-left: 332px;
	max-width: 750px;
    
    -webkit-transition: padding 0.2s linear;
    -moz-transition: padding  0.2s linear;
    -ms-transition: padding  0.2s linear;
    -o-transition: padding  0.2s linear;
    transition: padding 0.2s linear;
}

@media screen and (max-width: 770px) {
    section.topic .topic-container {
        padding: 0 1.5em;
        left: 0px;
        margin-left: 0px;
    }
}

/* =============================================================== */
/* =============================================================== */
/* sidebar */
/* =============================================================== */
/* =============================================================== */

nav {
	position: absolute;
	height: 100%;
	width: 200px;
	left: 0;
	z-index: 20;
	transition: left .2s ease-in-out, right .2s ease-in-out, width .2s ease-in-out;
}

nav#sidebar {
    position: relative;
	border-right: 1px solid #D9D9D9;
    background: rgba(250,250,250,0.96);
    padding: 0;
	overflow-x: hidden;
    overflow-y: auto;
    
    -webkit-overflow-scrolling:touch;
    
    height: 100%;
 
    width: 320px;
}

nav#sidebar .toc li[aria-expanded="false"] > .topics-group {
	display: none;
}

nav#sidebar .topics-group {
    padding: 0;
    position: relative;
}

nav#sidebar ul.topics-group {
    margin-top: 0;
    margin-bottom: 32px;
}

nav#sidebar ul.topics-group > li {
    padding: 0px 0 !important;
}

nav#sidebar ul.toc {
    margin: 3.2rem 0;
	padding: 0;
}

nav#sidebar ul.toc h2 {
    margin: 0;
    font-size: 1.6rem;
	font-weight: 400;
}

nav#sidebar ul.toc > li:not(:first-of-type) {
    margin-top: 20px;
}

nav#sidebar ul.toc li h2 {
    position: relative;
    
    font-size: 2.0rem;
}

nav#sidebar ul.toc {
	overflow: hidden;
}

nav#sidebar ul.toc li[aria-expanded='true'] h2 a.active:before,
.no-touch nav#sidebar ul.toc li[aria-expanded='true'] h2:hover a:before {
    background-image: url("../images/arrow-disclosure-expanded-hovered.png");
}

nav#sidebar ul.toc li[aria-expanded='true'] h2 a:before {
    background-image: url("../images/arrow-disclosure-expanded.png");
}

.no-touch nav#sidebar ul.toc li h2:hover a:before,
nav#sidebar ul.toc li h2 a.active:before {
    background-image: url("../images/arrow-disclosure-collapsed-hovered.png");
}

nav#sidebar ul.toc li h2 a:before {
    display: block;
    content: ' ';
    
    position: absolute;
    
    width: 22px;
    height: 22px;
    
    top: 5px;
    left: 16px;
    
    background-image: url("../images/arrow-disclosure-collapsed.png");
    background-size: 22px 22px;
    background-position: left center;
    background-repeat: no-repeat;
}

nav#sidebar .toc a {
    white-space: nowrap;
    
    display: block;
    width: auto;
    height: 32px;
    line-height: 32px;
    
    padding-left: 48px;
    
    border-bottom: 1px solid transparent;
}

nav#sidebar .toc a.active {
	color: #4D8FD3;
}

nav#sidebar ul.toc li.heading {
	text-transform: uppercase;
	color: #777;
	margin-left: 0.8em;
}

nav#sidebar ul.toc li.heading:not(:first-of-type) {
	margin-top: 3em;
}

.no-touch nav#sidebar .toc a:hover {
    
    text-decoration: none;
    color: #4D8FD3;
    
    background-color: #F0F0F0;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { 
    nav#sidebar ul.toc li[aria-expanded='true'] h2 a.active:before,
    .no-touch nav#sidebar ul.toc li[aria-expanded='true'] h2:hover a:before {
        background-image: url("../images/arrow-disclosure-expanded-hovered@2x.png");
    }

    nav#sidebar ul.toc li[aria-expanded='true'] h2 a:before {
        background-image: url("../images/arrow-disclosure-expanded@2x.png");
    }

    nav#sidebar ul.toc li h2 a.active:before,
    .no-touch nav#sidebar ul.toc li h2:hover a:before {
        background-image: url("../images/arrow-disclosure-collapsed-hovered@2x.png");
    }  
    
    nav#sidebar ul.toc li h2 a:before {
        background-image: url("../images/arrow-disclosure-collapsed@2x.png");
    }
}

/* DEV DOC STYLES */
ul.listing {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: inherit;
    
     -moz-box-sizing: border-box;
       box-sizing: border-box;
}

ul.listing li.parameter ul.listing {
    padding-left: 24px !important;
    margin-top: 18px !important;
}

ul.listing > li {
    margin: 0 !important;
    padding: 0 !important;
}

.gray {
    color: #888;
}

ul.listing.link li:first-of-type {
    margin-top: 8px;
}

ul.listing.link li {
    margin-top: 4px !important;
}

h4 {
    margin-top: 3em;
}
div.expandable h4:first-of-type,
div.expandableWithTransition h4:first-of-type {
	margin-top: 1.5em;
}

/* listing styles */
ul.listing > li.method:not(:first-of-type) {
    margin-top: 96px !important;
}

ul.listing > li.parameter > p.title,
ul.listing > li.method > p.title {
    font-size: 2.2rem;
}

li.method li.parameter > p.title {
    font-size: inherit !important;
}

li.method ul.listing > li.parameter > p {
    margin: 0 !important;
}

li.parameter li.parameter > p {
    font-size: inherit !important;
}

li.parameter > ul.listing > li.parameter {
    padding-left: 6px !important;
    list-style-image: url("../images/listing_bullet_icon.svg");
}

li.method li.parameter > ul.listing > li.parameter {
    padding-left: 0.6rem !important;
    margin-left: 2.0rem !important;
    list-style-type: none;
}


li.parameter > p.title {
    margin-bottom: 0 !important;
}

li.parameter > p:not(.title) {
    margin-top: 8px !important;
}

ul.listing > li.parameter {
    margin-top: 8px;
}

ul.listing > li.parameter:not(:first-of-type) {
    margin-top: 36px !important;
}

ul.listing > li.method li.parameter:not(:first-of-type) { 
    margin-top: 18px !important;
}

ul.listing > li.method li.parameter > p:not(.title) {
    padding-left: 24px;
}

ul.listing > li.parameter > p.title > span.value-type:first-of-type {
    padding-left: 0.6em;
}

ul.listing > li.parameter > p.title > span.value-type {
    position: relative;
    padding: 0.2em 0.0em 0.2em 0.0em;
    margin-left: 0;
}

span.value-type {
    color: #66AE18;
    font-family: inherit;
}


ul.listing > li.parameter > p.title > span.value-type:first-of-type:before {
    content: ":";
    left: -0.35em;
    display: inline-block;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    position: relative;
}

div.box[caption^='source'] {
    font-size: 1.2rem;
    line-height: 2.8rem;

    white-space: pre;
    font-family: 'Menlo', 'Lucida Console', monospace;
    color: inherit;

    overflow-x: auto;
    border: none !important;

    border-radius: 3px;
    background: #fafafa;
    -moz-box-shadow:    0px 1px 2px 0px rgba(0,0,0,0.15);
    box-shadow:         0px 1px 2px 0px rgba(0,0,0,0.15);
}

h2:not(:first-of-type) {
    margin-top: 96px;
}

.os_availability,
.lb_availability {
    display: block;
    color: #66AE18;
    font-size: 0.8em;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 1.0em;
    line-height: 1.8em;
    padding-left: 12px;

    border-left: 2px solid #66AE18;
}

.parameter .os_availability,
.parameter .lb_availability {
    font-size: inherit;
    margin-top: 0.2em;
    border-left: 1px solid #66AE18;
    padding-left: 8px;
}

ul.listing.link * {
    font-size: 1.5rem !important;
    line-height: 1.8rem !important;
}

ul.listing.link > li > p {
    margin-bottom: 0;
}

ul.listing.link > li:not(:first-of-type) > p {
    margin-top: 18px !important;
}

h4.reducedBottomMargin {
    margin-bottom: 8px;
}

ul.listing.link > li.gray {
    text-transform: uppercase !important;
    font-size: 1.3rem !important;
}

ul.listing.link > li.gray:not(:first-of-type) {
    margin-top: 24px !important;
}


p.title > span.gray {
    border-left: 1px solid #aaa;
    
    padding-left: 0.6em !important;
    padding-right: 0 !important;
    margin-left: 0.3em;
    
    display: inline-block;
}

h4.reducedBottomMargin + * {
    margin-top: 0px !important;
}

p.title:not(:first-of-type) {
    margin-top: 8px !important;
}

ul.fileListing,
ul.fileListing ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.fileListing li.folder {
    background-image: url("../images/file_listing_folder.png");
    background-position: left 0.3em;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    padding-left: 24px !important;
}

ul.fileListing li.file {
    background-image: url("../images/file_listing_file.png");
    background-position: left 0.3em;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    padding-left: 24px !important;
}

ul.fileListing li {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 2.8rem;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {     
    ul.fileListing li.folder {
        background-image: url("../images/file_listing_folder@2x.png");
    }
    
    ul.fileListing li.file {
        background-image: url("../images/file_listing_file@2x.png");
    }
}

.centerText {
    text-align: center;
}

img#developer_teaser_image {
    margin-top: 72px;
    
    -webkit-transition: margin-top 0.2s linear;
	-moz-transition: margin-top 0.2s linear;
	-ms-transition: margin-top 0.2s linear;
	-o-transition: margin-top 0.2s linear;
    transition: margin-top 0.2s linear;
}

@media screen and (max-width: 770px) {
    img#developer_teaser_image {
        margin-top: 32px;
    }
    
    p {
        word-wrap: break-word;
    }
    
    ul.listing > li.parameter > p.title, 
    ul.listing > li.method > p.title {
        font-size: 1.8rem;
    }
    
    p.title > span.value-type,
    p.title > span.gray {
        font-size: 0.8em;
    }
}

.no-border {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.italic {
    font-style: italic;
}

@media only screen and (min-device-width : 320px)  and (max-device-width : 480px) and (orientation : portrait) {

    ul.fileListing li.folder {
        background-position: left 0.175em;
        padding-left: 22px !important;
    }
    
    ul.fileListing li {
        padding: 3px 0;
    }

    ul.fileListing li.file {
        background-position: left 0.175em;
        padding-left: 22px !important;
    }

}