/*
    DEMO STYLE
*/
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700');
@import url("https://use.fontawesome.com/releases/v5.2.0/css/all.css");

body {
    font-family: 'Open Sans', sans-serif;
    background: #fafafa;
    font-size: 12pt;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.7em;
    color: #666;
    margin: 0;
}

.intro {
    margin-bottom: 30px;
}

a { color: black; text-decoration: underline; }
a.btn { text-decoration: none; }

#sidebar a, #sidebar a:hover, #sidebar a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc; 
/*    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); */
}
.navbar-right>li>a { line-height: 32px; text-decoration: none; }
.navbar-right>li .avatar-xs { margin-right: 5px; }

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */
#sidebar {
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    color: #fff;
    transition: all 0.3s;
    background: #6AE;
/*	background: url("/images/login/1.jpg") no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
*/
}


#sidebar.active {
    margin-left: -200px;
}

#sidebar .sidebar-header {
    padding: 0;
    background: #08f;
}

#sidebar ul.components {
    padding: 0 ;
    border-bottom: 1px solid #48d;
/*    background: rgba(0,0,0,.7); */
}

#sidebar ul h4 {
    color: #fff;
    padding: 10px;
    opacity: .6;
}

#sidebar ul li a {
    padding: 8px;
    font-size: 1.0em;
    display: block;
}
#sidebar ul li a:hover {
    color: #08f;
    background: #fff;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #08f;
}

/*
a[data-toggle="collapse"] {
    position: relative;
}

a[aria-expanded="false"]::before, a[aria-expanded="true"]::before {
    content: '\e259';
    display: block;
    position: absolute;
    right: 20px;
    font-family: 'Glyphicons Halflings';
    font-size: 0.6em;
}
a[aria-expanded="true"]::before {
    content: '\e260';
}
*/
/*
ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #AAB;
}
*/
ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}
a.download {
    background: #fff;
    color: #778;
}
a.article {
    background: #08f !important;
    color: #fff !important;
}
a.article:hover {
    background: white !important;
    color: #08f !important;
}


/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */
#content {
    width: calc(100% - 200px);
    padding: 10px 40px 0 40px;
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}
#content.active {
    width: 100%;
}
.splash #content { 
	width: 100%;  
    padding: 0;
	min-height: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center; 
}
.splash #content .panel { box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5); }
body.splash { 
	background: url("/images/login/1.jpg") no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

html,body { height: 100%; }
#content  { height: 100%; }
#body  { min-height: 100%; padding-bottom: 170px; }

#content footer {
	background: #048;
	margin: 40px -40px 0 -40px;
	padding: 20px 40px;
	margin-top: -140px; height: 140px;
}
#content footer p {
	color: white;
	font-size: 10pt;
}
.splash footer {
	position: absolute;
	bottom: 20px; left: 0; right: 0;
	text-align: center;
}
.splash footer p {
	color: white;
	font-size: 10pt;
	margin: 0 20px; 
}
footer a {
	color: inherit;
}
.login-buttons > div { margin-top: 20px; }

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -200px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    #content.active {
        width: calc(100% - 200px);
    }
    .splash #content.active {
        width: calc(100% - 200px);
    }
    #sidebarCollapse span {
        display: none;
    }
    .splash #content { align-items: start; padding-top: 20px; }
    .splash .panel-default > .login-header { min-width: 450px; }
    .splash .panel-default > .login-header img { width: 150px; }
    .splash .panel-default .btn-lg { font-size:11pt; }
    .login-buttons > div { margin-top: 0; }
}
@media (max-width: 500px) {
    .splash .panel-default > .login-header { min-width: auto; }
    .splash .panel-default > .login-header img { width: 100px; }
    #content > .container { width: 100%; margin: 0; }
    .col-xxs-12 { width: 100%; text-align: center; }
}
h1 { font-weight: 300; margin-top: 0; margin-bottom: 2em; }
h2 { font-weight: 300; margin-top: 2em; margin-bottom: 1em; }

.btn-info { background-color: #6AE; }
.btn-info:hover, .btn-info:focus { background-color: #08f; }
.btn-info:active, .btn-info:active:focus, .btn-info:active:hover, .btn-info:active:focus:hover { background-color: #778; }
.dropdown-menu > li > a { text-decoration: none; }

.badge-alert { background: #c00; }
.result { margin-left: 10px; font-size: 90%; }
img.avatar { max-width: 200px; max-height: 200px; }
p.info { margin-top: 10px; font-size: 90%; }

.ebook-card { margin: 10px; text-align:center; border: 1px solid #eee; padding: 0px; }
.ebook-card:hover { border-color: #ccc; }
.ebook-card .cover { width: 150px; height: 210px; margin: 10px auto; }
.ebook-card .cover img { border: 1px solid #ccc; }
.ebook-card .titolo { height: 2em; font-size: 90%; font-weight: bold; margin: 0 10px; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }
.ebook-card .dlbutton { padding: 5px; margin-bottom: 10px; }

.home-card { display: block; margin: 10px 0; text-align:center; border: 1px solid #eee; padding: 5px; text-decoration: none; }
.home-card:hover { border-color: #ccc; }
.home-card .image { width: 100%; margin: 0; }
.home-card .image img { width: 100%; border: 1px solid #ccc; }
.home-card .data { height: 4.5em; font-size: 90%; margin: 10px 0; overflow:hidden; text-overflow: ellipsis; }
.home-card .dlbutton { padding: 5px; margin-bottom: 10px; }
.info-login { font-size: 90%; margin: 0 0 20px 0; }

.privacy { margin-bottom: 20px; }
.privacy p,.privacy li,.privacy h2,.privacy h3,.privacy h4 { color: #666; }
.privacy p { margin: 5px 0; font-size: 12pt; }
.privacy li { font-size: 12pt; }
.privacy-registrazione { height: 250px; overflow-y: scroll; }
.privacy-registrazione p,.privacy-registrazione li,.privacy-registrazione h2,.privacy-registrazione h3,.privacy-registrazione h4 { color: #666; }
.privacy-registrazione p { margin: 5px 0; font-size: 11pt; }
.privacy-registrazione li { font-size: 11pt; }
.privacy-registrazione h2 { margin: 15px 0 5px 0; font-size: 16pt; }
.privacy-registrazione h2:first-child { margin-top: 0; }
.privacy-registrazione h3 { margin: 10px 0 0 0; font-size: 14pt; }
.premi-escluso { color: #ccc; }
.premi-incorso { font-weight: bold; }
h1 { color: #08f; }
.splash .panel-default > .login-header { background: #08f; }
.splash .panel-default > .login-header { background: #08f; }
.splash p { margin-bottom: 5px; }
.splash .panel h3 { margin: 0 0 40px 0; }


@media print {
	#sidebar { display: none; }
	#content { width: 100%; }
	.navbar { display: none; }
}
.alert form { display: inline; }
.alert .btn.pull-right { top: -5px; position: relative; }

.maxpanel { max-height:500px; max-height:75vh; overflow-y:scroll }

.avatar-sm { width: 64px; height: 64px; border-radius: 32px; }
.avatar-xs { width: 32px; height: 32px; border-radius: 16px; }
.avatar-lg { width: 256px; height: 256px; border-radius: 128px; box-shadow: 0 0 3px #666;}
.user-list-username { font-weight: bold; font-size: 110%; margin: 10px 0 0 0; }
.user-list-email { font-weight: normal; font-size: 90%; color: #666; margin: 0 0 10px 0;  }
.username-template { display: none; }
.username-choose { display: block; text-decoration: none; color: inherit; opacity: 0.4; }
.username-choose:hover { background: #eee; opacity: 1; }
.username-active { opacity: 1; }
.login-panel { display: none; }
.login-panel-active { display: block; }
.choose-title { display: none; }
.title-active { display: block; }
.btn-facebook { color: white; background: #4b7ebd; }
.btn-facebook:hover, .btn-facebook:active { color: white; background: #3b6ead; }
.btn-google { color: white; background: #fd5d51; }
.btn-google:hover, .btn-google:active { color: white; }
.btn .fab { margin-right: 5px; }
.social-buttons { margin-top: 30px; border-top: 1px solid #ccc; padding-top: 40px; line-height: 30px; }

/* UPLOAD */
.avatar-upload.upload-trigger { width: 256px; height: 256px; display: block; position: relative; }
.avatar-upload.upload-trigger label { position: absolute; bottom: 0; left: 216px; height: 40px; right: 0; background: rgba(0,0,0,.6); padding: 10px; margin: 0; color: white; transition: left 1s; overflow: hidden; cursor: pointer; }
.avatar-upload.upload-trigger label span { display: none; position: absolute; left: 260; top: 10px; width: 256px; }
.avatar-upload.upload-trigger:hover label { position: absolute; bottom: 0; left: 0; background: rgba(0,0,0,.6); padding: 10px; margin: 0; color: white; }
.avatar-upload.upload-trigger:hover label span { display: block; left: 40px; }
.upload-hidden { width: 1px; height:1px; overflow:hidden; }
.crop-wrapper { width: 512px; margin: 0 auto; }
.crop-wrapper img { max-width: 512px; }

.dropdown>a { cursor: pointer; }
.dropdown-menu>li>a:focus, .dropdown-menu>li>a { line-height: 26px; }
.dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover {
color: white;
text-decoration: none;
background-color: #08f;
}