html, body {
overscroll-behavior-x: none;
}

html
{
width:100vw;
height:100vh;
overflow:hidden;
}

body {
border: 0;
margin: 0;
padding: 0;
color: #666666;
font-family: sans-serif;
width:100vw;
height:100vh;
overflow:hidden;
position:fixed;
}

#content
{
display:flex;
align-items:center;
justify-content: center;
min-width:100vw;
min-height:100vh;
}

#topbar-filler
{
background:#000000;
position:fixed;
top:0;
z-index:99;
width:100vw;
height:env(safe-area-inset-top);
}

a, a:visited {
  text-decoration: none;
  outline: none;
  color: #000000;
}

a.whiteLink, a.whiteLink:visited {
  text-decoration: none;
  outline: none;
  color: #ffffff;
}

a:hover {
  text-decoration: underline;
}

a img {
  border: 0;
}

p {
  line-height: 125%;
}

label
{
margin:0;
}

#tokenForm {
display: none;
z-index: 9999999999;
background: #eeeeee;
width: 100vw;
height: 100vh;
overflow-x:hidden;
overflow-y:auto;
}

#tokenForm form {
margin: 30px auto;
width: 320px;
max-width: 90%;
}

#signInForm .form-group input
{
max-width:320px;
margin:0 auto;
}

#logo
{
display:block;
margin:60px auto 30px;
max-width:240px;
height:auto;
}

#submitAuth, #cancelAuth {
/*  width: 40%;*/
}

.loading {
  background-image: url(../img/loading.gif);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 32px 32px;
  min-width: 32px;
  min-height: 32px;
}

.loading>* {
  visibility: hidden;
}

#installpwaBox
{
min-height:100%;
}

#installpwaBox.align-items-end #installPWA
{
margin-bottom:30px;
}

#installPWA h1
{
margin-top:30px;
margin-bottom:30px;
}


#installPWA h1 > img
{
width:128px;
height:128px;
}

#installpwaIphone
{
position:fixed;
bottom:25px;
border:1px solid #cccccc;
border-radius:30px;
box-shadow:0 0 8px #00000088;
padding:15px;
width:calc(100vw - 30px);
background:#ffffff;
}

#installpwaIphone-arrow
{
width:24px;
height:24px;
background:#ffffff;
box-shadow:-4px 4px 4px #00000044;
transform:rotate(-45deg);
margin-top:15px;
margin-bottom:-24px;
margin-left:calc(50% - 10px);
}

#startInstall
{
display:flex;
position:fixed;
top:0;
left:0;
width:100vw;
height:100vh;
background:#ffffff;
align-items:center;
justify-content:center;
}

#startInstall > div
{
display:block;
}

#addressBarInstall
{
display:none;
line-height:2em;
position: fixed;
top: 30px;
right: 15px;
box-shadow: 0 0 8px #aaaaaa;
padding: 15px;
}

#addressBarInstallArrow
{
position:absolute;
width:30px;
height:30px;
right:95px;
top:-15px;
background:#ffffff;
box-shadow: -2px -2px 3px #cccccc;
transform:rotate(45deg);
}


#installPWAbutton
{
display:none;
}

#addToHomeScreenIcon
{
font-size:1.5em;
line-height:1em;
}

#pwaUpdate
{
display:none;
position:fixed;
top:0;
right:0;
bottom:0;
left:0;
width:100vw;
height:100vh;
overflow:hidden;
z-index: 999999999;
background:#000000;
color:#ffffff;
}

#pwapackageProgress
{
width:80vw;
height:5px;
background:#888888;
}

#pwapackageReceived
{
float:left;
height:5px;
background:#ffffff;
}


#pwaMessage
{
display:flex;
width:100%;
height:100%;
align-items:center;
justify-content:center;
}

.modal {
  z-index: 9999999;
}

.modal-header {
  padding: 10px;
}

.modal-title {
  font-size: 17px;
  line-height: 17px;
  font-family: sans-serif;
}

#modalContent {
  position: absolute;
  width: 100%;
  height: auto;
  padding: 15px;
}

.list-item
{
padding-left:0;
margin:0;
}

.list-item__left
{
padding-left:15px;
}

.list-item__left,
.list-item__center,
.list-item__right
{
background:none;
border-bottom:1px solid #cccccc;
}

#scrolldemo {
  height: 25vh;
}

.scroller {
  width: 100%;
  position: relative;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.scrolled {
  position: relative;
  height: auto;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #dddddd;
}


.row
{
margin:0;
}

.nopadding
{
padding:0!important;
}

#settingsPanel
{
position:fixed;
width:100vw;
height:0;
bottom:0;
left:0;
overflow:visible;
}

#settingsPanel.open
{

}

#settingsPanel .button
{
margin-bottom:15px;
}

#settingsBox
{
position:relative;
width:90vw;
max-width:640px;
height:90vh;
margin-top:0;
margin:0 auto;
background:#ffffff;
border-top:2px solid #888888;
border-right:2px solid #888888;
border-left:2px solid #888888;
transition:margin .5s ease;
border-top-left-radius:15px;
border-top-right-radius:15px;
padding-top:15px;
overflow-y:hidden;
}

#settingsBox .scroller
{
height:90vh;
}

#settingsBox .scrolled
{
padding-bottom:30px;
}

#settingsPanel.open #settingsBox
{
margin-top:-90vh;
}

.closeSettingsPanel
{
position:absolute;
right:0;
top:0;
margin:0 10px;
cursor:pointer;
font-size:32px;
z-index:9;
}

#advancedSettings
{
display:none;
}

#advancedSettings.open
{
display:block;
}



#player
{
width:100vw;
height:100vh;
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
display:none;
background:#000000;
z-index:0;
}


#playerFrame
{
display:block;
transform-origin:top left;
}


#slideFrame
{
/*width:100vw;*/
/*height:100vh;*/
width:1920px;
height:1080px;
transform-origin:top left;
}

#pdfFrame
{
position:absolute;
width:100vw;
height:100vh;
top:100vh;
right:0;
bottom:0;
left:0;
background:#333333ff;
z-index:1;
transition:top 0.25s ease-in;
}

#pdfFrame.open
{
display:block;
top:0;
}


.text-left
{
text-align:left;
}

.text-center
{
text-align:center;
}

.text-right
{
text-align:right;
}

.float-left
{
float:left;
}

.float-right
{
float:right;
}


#downloadUI
{
position:absolute;
width:100vw;
/*top:calc(50vh + 150px);*/
bottom:90px;
z-index:9;
}

.downloadProgress
{
display:none;
/*width:100vw;*/
margin:0 auto;
height:20px;
line-height:20px;
font-size:15px;
overflow:hidden;
text-align:center;
}


.downloadIndicator 
{
display:none;
width:320px;
margin:15px auto;
height:5px;
overflow:hidden;
background:#eeeeee;
}

.downloadCompleted
{
width:0%;
margin:0;
height:5px;
float:left;
background:#888888;
}


.btn-default
{
background:#dddddd;
}


#signInForm .form-group
{
margin:15px 60px 15px;
}

.loadingSignIn
{
display:none;
}

.brandColorGlobal
{
background:#0066b2!important;
}

.brandTextGlobal
{
color:#0066b2!important;
}

.sectionHeader
{
overflow:hidden;
background:#eeeeee;
padding:15px;
max-height:68px;
overflow:hidden;
}

.sectionHeader h1,
.sectionHeader h2,
.sectionHeader h3
{
margin:0;
line-height:36px;
}




/*** BOF coverflow ***/

#coverflowContainer
{
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: radial-gradient(#fff, #fff, #eee, #bbb);
}

#coverflow
{
width:100vw;
height:100vh;
/*perspective: 100vw;*/
/*-webkit-perspective: 100vw;*/
perspective: 1000px;
-webkit-perspective: 1000px;
position:fixed;
top:0;
left:0;
transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
}

.coverflowItem
{
width:250px;
height:250px;
position: absolute;
top: 0;
left: 0;
opacity: 0;
border: none;
background: #ffffff;
transform: translateX(calc(50vw - 125px)) translateY(calc(50vh - 125px));
display:flex;
align-items:center;
justify-content:center;
/*-webkit-box-reflect: below 30px -webkit-gradient(linear, 0% 50%, 0% 100%, from(#0000), to(#0001));*/
border-radius: 15px;
border: 3px solid #0066b2;
}

.coverflowItem.initializing
{
opacity:0;
}

.coverflowSensor
{
width:244px;
height:244px;
position: absolute;
top: 0;
left: 0;
background:transparent;
overflow:hidden;
}

.coverflowImg
{
display:flex;
align-items:center;
justify-content:center;
width:244px;
height:244px;
overflow:hidden;
border-radius: 12px;
}

.coverflowImg img
{
display:block;
width:auto;
height:100%;
/*width:244px;*/
/*max-width:100%;*/
/*height:auto;*/
cursor:pointer;
}

.coverflowItem h2
{
font-size:24px;
font-weight:bold;
color: #0066b2;
margin:10px 0;
text-align:center;
}

.coverflowItem h3
{
font-size:15px;
color: #0066b2;
margin:10px 0;
text-align:center;
}

.updateFlow
{
position:absolute;
right:-16px;
top:-16px;
background:#ffffff;
color:#ff0000;
font-size:32px;
width:32px;
height:32px;
line-height:32px;
border-radius:50%;
}


#playerMenu
{
position:fixed;
width:100vw;
background:transparent;
text-align:center;
line-height:32px;
bottom:30px;
}

#playerMenu > div
{
text-align:center;
font-size:32px;
line-height:32px;
display:inline-block;
margin:0 15px;
}

.infinite-rotate
{
animation:infinite-rotate 1s linear infinite;
}

@keyframes infinite-rotate {
0% { transform: rotate(360deg); }
100% { transform: rotate(0deg); }
}


/*** EOF coverflow ***/



/*** BOF multiflow ***/

#playerTopBar
{
height:60px;
padding:10px 30px;
}

#playerTopBar img
{
height:40px;
}

#flows
{
padding:15px 0;
overflow-x:hidden;
overflow-y:scroll;
height:calc(100vh - env(safe-area-inset-top) - 60px - 90px - env(safe-area-inset-bottom));
background:#000000!important;
background:#ffffff!important;
border-top:1px solid #cccccc;
border-bottom:1px solid #cccccc;
}

#flows .container
{
padding-top:30px;
padding-bottom:100px;
}

.flowCol-classic
{
margin:10px 0 20px;
}

.flowThumb-classic
{
height:200px;
width:calc(100% - 15px);
background-size:cover;
background-position:center center;
border:2px solid #cccccc;
border-radius:15px;
margin:0 auto;
overflow:hidden;
}

.flowThumb-classic-title
{
height:200px;
width:100%;
background:linear-gradient(0deg, #00000066 0%, #00000000 40%, #00000000 40%, #00000000 100%);
display:flex;
align-items:end;
}

.flowThumb-classic-title .flowTitle
{
height:auto;
line-height:1.25em;
font-weight:bold;
color:#ffffff;
margin:0.5em 0 1em!important;
align-self:flex-end;
}

#flows h3
{
margin:0;
padding: 0 15px;
font-size:18px;
text-align:left;
}

#flows .updateFlow
{
top:-8px;
right:-4px;
}


@media(max-width:480px){

	ons-splitter[data-page="flows"] .page__background
	{
	background:#000000;
	background:#ffffff;
	}

	ons-splitter[data-page="flows"] #playerTopBar
	{
	display:block;
	background: linear-gradient(0deg, #00000000 0%, #000000ff 50%, #000000ff 50%, #000000ff 100%);
	background: linear-gradient(0deg, #ffffff00 0%, #ffffffff 50%, #ffffffff 50%, #ffffffff 100%);
	}
	
	ons-splitter[data-page="flows"] #playerMenu .brandTextGlobal
	{
	color:#ffffff!important;
	color:#e71b72!important;
	}
	
	ons-splitter[data-page="flows"] .downloadProgress
	{
	color:#eeeeee;
	color:#111111;
	}
	
}

/*** EOF multiflow ***/



/***** BOF PLAYER MENU RESPONSIVENESS *****/

@media(max-width:480px){
	.toolbar-button[data-frontend-method="startApp"]
	{
	display:none!important;
	}
}

/***** EOF MAIN MENU RESPONSIVENESS *****/
