body {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #000;
    font-size: 14px;
    line-height: 1.4em;
    background-color:#efeff4;
    margin: 0;
    -webkit-tap-highlight-color:transparent;
}

.chondric-viewport {
    z-index: 1;
}

.cjs-scrolling-page .chondric-viewport {
    position: absolute;
    top:0;
    left:0;
    bottom:0;
    right: 0;
    overflow:hidden;
}

.cjs-scrolling-window .chondric-viewport {
 position: static;
}

.chondric-section {
}


.chondric-page {
    display: none;
}

.cjs-scrolling-page .chondric-page {
    position: absolute;
    top:0;
    left:0;
    bottom:0;
    right: 0;
    overflow: hidden; 
    .body {
        padding-top: 45px;
        padding-bottom: 80px;
    }
}

.cjs-scrolling-window .chondric-page {
}


.chondric-page.active {
    display: block;
    opacity: 1;
    z-index: 10;
}

.chondric-page.prev {
    pointer-events:none;
}
.chondric-page.next {
    pointer-events:none;
}
.chondric-page.notransition,
.chondric-page.notransition .page,
.chondric-page.notransition .navbar {
    @include transition (none !important);
}

/* Old styles */

.chondric-viewport {
-webkit-user-select:none;
}

input, textarea, [contenteditable=true] {
-webkit-user-select:auto;
    -webkit-touch-callout: auto;
}


.clear {
    clear: both;
}
.sidebar {
    position: absolute;
    width: 400px;
    border: none;
    background-color: black;
    color: white;
    height: 12px;
    text-align: center;
    font: 10px Helvetica;
    font-weight: bold;
}
.sidebar.up {
    top: 0px;
    margin-left: 10px;
}
.sidebar.down {
    bottom: 0px;
    margin-left: 10px;
}
.sidebar.left {
    left: 12px;
   @include transform( rotate(90deg));
   @include transform-origin( 0 0);
}
.sidebar.right {
   @include transform( rotate(270deg));
   @include transform-origin( 100% 0);
}
.sidebar .arrow {
    display: block;
    position: absolute;
}
.sidebar.up .arrow {
   @include transform( rotate(270deg));
    left: 5px;
}
.sidebar.down .arrow {
   @include transform( rotate(90deg));
    left: 5px;
}
.sidebar.left .arrow {
   @include transform( rotate(90deg));
    left: 5px;
}
.sidebar.right .arrow {
   @include transform( rotate(90deg));
    right: 5px;
}
.sidebar .pageName {
}
/*
.hasupsidebar>.ui-header, .hasupsidebar>.ui-content {
    margin-top:15px;
}
.hasdownsidebar>.ui-header, .hasdownsidebar>.ui-content {
    margin-bottom:15px;
}
.hasleftsidebar>.ui-header, .hasleftsidebar>.ui-content {
    margin-left:15px;
}
.hasrightsidebar>.ui-header, .hasrightsidebar>.ui-content {
    margin-right:15px;
}

*/
 .scrollcontainer {
    overflow: auto;
}
/* Debug Mode */
 .debugonly {
    display:none !important;
}
body.debugmode .debugonly {
    display:block !important;
}
body.debugmode::after {
    content:"Debug mode - do not release";
    display:block !important;
    position:fixed;
    bottom: 0;
    left:0;
    right: 0;
    text-align: center;
    pointer-events:none;
    color: red;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 100;
}
/* loading overlay */
 .loadingOverlay {
    display:none;
    position:absolute;
    left: 0;
    right:0;
    top:0;
    bottom:0;
    background-color: transparent;
    text-align: center;
    padding-top: 300px;
}
.page.loading .loadingOverlay {
    display: block;
}
.loadingOverlay::before {
    content:"Loading Page";
}
.loadingOverlay a {
    display: block;
    margin-top: 10px;
}
/* IOS 7 Default styles */
 body {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #000;
    font-size: 14px;
    line-height: 1.4em;
}
/* buttons */
 button {
    background-color: transparent;
    border: 1px solid #007aff;
    color: #007aff;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
    line-height: 2em;
    padding: 0 10px;
    height: 29px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    margin: 10px;
}
button.fullwidth {
    display: block;
    width: 95%;
}
button.active {
    background-color: rgba(0, 122, 255, .15);
}

button.selected {
    color:white;
    background-color: #007aff;
}

button:focus {
    outline: none;
}

button.icon-only {
    width: 27px;
    overflow: hidden;
    padding: 0 5px;
}

/* Header */
 .navbar {
    position: absolute;
    top:0;
    left: 0;
    right:0;
    background-color: #f7f7f8;
    background-color: rgba(248, 248, 248, 0.9);
    height: 44px;
    z-index: 10;
    border-bottom: 1px solid #c4c4c4;
    font-size: 17px;
}

 .cjs-scrolling-window .navbar {
position: fixed;
 }

 .sidepanel .navbar {
position: absolute;
 }


.hasstatusbar .navbar {
    padding-top:20px;
}
@media (min-width: 600px) {

.hasstatusbar .popup .navbar {
    padding-top:0px;
}
}

.navbar>.v1,.navbar>.v2 {
     position: absolute;
    top:0;
    left: 0;
    right:0;
    bottom: 0;
}

.hasstatusbar .navbar>.v1,.hasstatusbar .navbar>.v2 {
    top:20px;
}


.navbar.nobg {
    background-color: transparent;
}
.navbar button {
    color: #007aff;
    background: transparent;
    border: none;
    padding: 0 5px;
    line-height: 44px;
    height: 44px;
    margin: 0 5px;
    font-size: inherit;
}
.navbar button.active {
    background: transparent;
    opacity: 0.3;
}
.navbar button.left {
    float:left;
}
.navbar button.right {
    float:right;
}
.navbar h1 {
    position: absolute;
    bottom:0;
    left: 33%;
    right:33%;
    margin: 0;
    text-align: center;
    font-size: 17px;
    line-height: 44px;
    font-weight: 500;
    z-index: -1;
    text-overflow: ellipsis;
    white-space: nowrap;
overflow: hidden;
}

.navbar input.h1 {
position: absolute;
top: 0;
left: 33%;
right: 33%;
margin: 0;
text-align: center;
font-size: 17px;
line-height: 44px;
font-weight: 500;
z-index: -1;
text-overflow: ellipsis;
width: 34%;
padding: 0;
border: none;
outline: none;
-webkit-appearance: none;
background-color: transparent;
}



/* Menu bar */

/* A bar with text buttons like the nav bar but that can appear anywhere */
 .menubar button {
    display: inline-block;
    color: #007aff;
    background: transparent;
    border: none;
    padding: 0 10px;
    line-height: 44px;
    height: 44px;
    margin: 0;
    font-size: inherit;
}
.menubar button.active {
    background: transparent;
    opacity: 0.3;
}
/* tabbar */
 .tabbar {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    text-align: center;
    z-index: 10;
    background-color: #f7f7f8;
    background-color: rgba(248, 248, 248, 0.9);
    border-top: 1px solid #c4c4c4;
    padding-top: 10px;
}

 .cjs-scrolling-window .tabbar {
position: fixed;
 }

 .cjs-scrolling-window.haskeyboard .tabbar {
visibility: hidden;
 }


.tabbar button {
    background: transparent;
    border: none;
    color: rgb(111, 111, 116);
    height: auto;
    display: inline-block;
    padding: 0 15px;
    margin: 0;
}
.tabbar button.active, .tabbar button.selected {
    color: rgb(21, 125, 251);
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}
/* vertical tab bar */
 .tabbar.left {
    top: 40px;
    left:0;
    right:auto;
    bottom:0;
    width:80px;
    border-top: none;
    border-right: 1px solid #c4c4c4;
}
.hasstatusbar .tabbar.left {
    top:60px;
}
.tabbar.left button {
    margin: 10px auto;
}
/* Content sections */
 .page {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    top:0;
}

.body {
    background-color:#efeff4;
    z-index: 1;
}

.cjs-scrolling-window .body {
        position: static;
        box-sizing: border-box;
}

.cjs-scrolling-page .body,
.sidepanel .body
 {
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    @include transition (padding-bottom 0.3s ease);
}


.cjs-scrolling-window .popup .body {
min-height: 0;
}




.hasstatusbar .body {
    padding-top:20px;
}

.uses-cjs-navigation-bar .body,
.navbar ~ .body
 {
    padding-top:60px;
 }

.hasstatusbar .uses-cjs-navigation-bar  .body,
.hasstatusbar .navbar ~ .body {
    padding-top:80px;
}

.cjs-transitions-native .uses-cjs-navigation-bar .body,
.cjs-transitions-native .navbar ~ .body
 {
    padding-top:0px;
 }


.cjs-transitions-native .popup .navbar ~ .body
 {
    padding-top:60px;
 }


@media (min-width: 600px) {
.hasstatusbar .uses-cjs-navigation-bar .popup .body,
.hasstatusbar .popup .navbar ~ .body {
    padding-top:60px;
}
}


.uses-cjs-tab-footer .body,
.tabbar ~ .body {
    padding-bottom:80px;
}

.body.hidden {
    display: none;
}
.body.left {
    left:0;
    right: 67%;
}
.tabbar.left:not(.hidden) ~ .body.left {
    left:80px;
}
.body.middle {
    left: 0;
    right: 67%;
}
.tabbar.left:not(.hidden) ~ .body.middle {
    left:80px;
    right: 67%;
}
.body.left:not(.hidden) ~ .body.middle {
    left:33%;
    right: 33%;
}
.tabbar.left:not(.hidden) ~ .body.left:not(.hidden) ~ .body.middle {
    left:33%;
    right: 33%;
}
.body.right {
    left: 0;
    right: 0;
}
.tabbar.left:not(.hidden) ~ .body.right {
    left:80px;
}
.body.left:not(.hidden) ~ .body.right {
    left:33%;
}
.body.middle:not(.hidden) ~ .body.right {
    left:33%;
}
.body.left:not(.hidden) ~ .body.middle:not(.hidden) ~ .body.right {
    left:67%;
}
.tabbar.left:not(.hidden) ~ .body.left:not(.hidden) ~ .body.right {
    left:33%;
}
.tabbar.left:not(.hidden) ~ .body.middle:not(.hidden) ~ .body.right {
    left:33%;
}
.tabbar.left:not(.hidden) ~ .body.left:not(.hidden) ~ .body.middle:not(.hidden) ~ .body.right {
    left:66%;
}
/* two equal columns */
 .body.half {
    left: 0;
    right: 50%;
}
.body.half:not(.hidden) ~ .body.half {
    left:50%;
    right: 0;
}
.tabbar.left:not(.hidden) ~ .body.half {
    left: 80px;
    right: 50%;
}
.tabbar.left:not(.hidden) ~ .body.half:not(.hidden) .body.half {
    left: 50%;
    right: 0;
}
/* Single column layout for small screens - columns become tabs and the page is responsible for switching between them */
 .viewport.singlecolumn .body {
    left: 0 !important;
    right: 0 !important;
}
.viewport.singlecolumn .tabbar.left:not(.hidden) ~ .body {
    left: 80px !important;
}
/* if a bodygroup element is present, use it to combine the columns on a small screen */
 .bodygroup {
    overflow:hidden;
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    padding: 40px 0 80px 0;
    z-index: 1;
}
.singlecolumn .bodygroup {
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    padding: 40px 0 80px 0;
    z-index: 1;
}
.singlecolumn.hasstatusbar .bodygroup {
    padding-top:60px;
}
.singlecolumn .bodygroup .body {
    position: static;
    padding: 0;
}
/* Grid layout */
 .col2 {
    width: 49%;
    display: inline-block;
}
/* Content Styles */
 .body {
}
p {
    margin: 10px 15px;
}
h2 {
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    text-transform: uppercase;
    color: #6d6d72;
    margin: 10px 15px 9px;
    font-weight: normal;
}

input.inline {
    background-color: inherit;
outline: none;
border: none;
font: inherit;
color: inherit;
text-transform: inherit;
}

.contentblock {
    background: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #c8c7cc;
    border-top: 1px solid #c8c7cc;
    color: #000;
}
/* Collapsing sections */
 .collapsible {
    position: relative;
}
.collapsible.collapsed {
}
.collapsible.collapsed > :not(h2) {
    display: none;
}
.collapsible::after {
    position: absolute;
    right:0;
    top:0;
    line-height: 20px;
    content:"-";
    font-size: 14pt;
    padding: 0 10px;
}
.collapsible.collapsed::after {
    content:"+";
}
/* Small form */
 .smallform {
    width:400px;
    margin:50px auto 0 auto;
}
.smallform h1 {
    font-weight: 100;
    text-align: center;
}


/* angular ui-toggle - mostly used in conjunction with loading overlay */
.ui-show {
  @include transition (opacity 0.3s ease); 
}
.ui-hide {
    // the opacity version is causing all sorts of issues. just use display:none and restore animation later
    // using ng-hide-enter etc
display: none;
  opacity: 0;
}

/* Shared Header */ 

.sharedheader {
position: fixed;
z-index: 999;
top: -50px;
opacity: 1;
}

.sharedheader.active {
top: 0px;
}
.sharedheader > div {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}

/* tests */

.body #mocha {
    margin: 0;
}

/* ghost clicks */
/*
.cjs-transitioning {
}

.cjs-transitioning .chondric-viewport:after {
content: "";
    position: absolute;
    top:0;
    bottom: 0;
    left:0;
    right: 0;
    z-index: 12000;
    background-color: red;
    opacity: 0.5;
}
*/
 

