#cool-notification, #cool-notification-new{ display: none; }
@font-face{
	font-family: nunito;
	src: url(../fonts/Nunito-Regular.ttf);
}
::-webkit-scrollbar { width: 0px; height: 0; background: transparent; }
::-webkit-scrollbar-thumb { background: #FF0000; }
::selection{ color: #000; background: #9e9e9e; }
::-moz-selection{ color: #000; background: #9e9e9e; }
body[night-mode] *::selection{ color: #fff; background: #333; }
body[night-mode] *::-moz-selection{ color: #fff; background: #333; }
*{ -ms-overflow-style: none; }
html, body{
	/* overflow: hidden; */
	position: fixed;
	top: 0; bottom: 0;
	left: 0; right: 0;
	overflow: hidden;
	font-family: nunito;
	padding: 0px !important;
	margin: 0px !important;
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
	background: #fffaf0;
	transition: background 0.4s ease;
	-webkit-transition: background 0.4s ease;
	-moz-transition: background 0.4s ease;
}

body[night-mode]{ background: #333 !important; }

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

noscript#noscript-speciale{
	position: fixed;
	top: 0; bottom: 0;
	left: 0; right: 0;
	z-index: 100000;
	background: #fff;
	text-align: center;
	font-weight: 600;
}
noscript#noscript-speciale > div{
	position: absolute;
	top: 50%; left: 50%;
	max-width: 100%;
	width: max-content;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
}
noscript#noscript-speciale p{
	padding: 0 20px;
	text-align: center;
}
noscript#noscript-speciale span{
	font-weight: 600;
	text-shadow: 0 0 1px #000;
}

/************************************** custom modal **********************************************/
.modal{
	padding-left: 10px !important;
	padding-right: 10px !important;
}
.modal-dialog{
	width: 100% !important;
	max-width: 500px;
	text-shadow: 0 0 1px #000;
	color: #000;
	margin-left: auto;
	margin-right: auto;
}
body[night-mode] .modal-dialog{ color: #fff; }
.modal-header, .modal-footer{ border: none !important; }
.modal-dialog .btn{
	background: transparent;
	color: #000;
	border: none;
	outline: none !important;
}
body[night-mode] .modal-dialog .btn{ color: #fff; }
body[night-mode] .modal-content{ background-color: #333 !important; }
.modal-content .btn{ font-weight: 600; }
.modal-dialog .btn-primary{ border-color: transparent !important; }
body:not([night-mode]) .modal-dialog .btn-primary{
	background-color: #333 !important;
	color: #fff;
}
body[night-mode] .modal-dialog .btn-primary{
	background-color: #fff !important;
	color: #000 !important;
}
.modal-footer{ text-align: center !important; }

/************************************************************************************/
#main-scrollable{
	position: fixed;
	top: 0; bottom: 0;
	left: 0; right: 0;
	z-index: 1;
	overflow: hidden;
}
#main-scrollable > div{
	display: table;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
#main-scrollable > div > div{ display: table-row; }
#main-scrollable > div > div:last-child{ height: 100%; }
#main-scrollable > div > div > div{
	display: table-cell;
	vertical-align: middle;
	position: relative;
}

/************************************************************************************/
#main-header{
	position: relative;
	z-index: 5;
	padding: 5px 15px;
	background: #800080;
}
#main-header > div{
	display: table;
	width: 100%;
}
#main-header > div > div{
	display: table-cell;
	vertical-align: middle;
	position: relative;
}
#main-header > div > div:nth-child(2){ width: 100%; }

/************************************************************************************/
#main-logo{
	position: relative;
	cursor: pointer;
	height: 70px;
}
#main-logo img{
	display: block;
	height: 100%;
}
#main-logo::after{
	content: '';
	display: block;
	position: absolute;
	top: 0; bottom: 0;
	left: 0; right: 0;
	z-index: 1;
}

/************************************************************************************/
#main-menu{
	text-align: center;
	white-space: normal;
	padding: 0 15px;
}
#main-menu button{
	display: inline-block;
	background: none;
	border: none;
	height: 35px;
	outline: none;
	color: #fff;
	padding: 0 15px;
	transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
}
#main-menu button:active{
	transform: scale(0.9);
	-webkit-transform: scale(0.9);
	-moz-transform: scale(0.9);
	-ms-transform: scale(0.9);
	-o-transform: scale(0.9);
}

/************************************************************************************/
#fast-actions{
	white-space: nowrap;
}
#fast-actions button{
	display: inline-block;
	vertical-align: middle;
	background: none;
	border: none;
	color: #fff;
	outline: none;
	padding: 0 15px;
	font-weight: 600;
	min-height: 35px;
	min-width: 35px;
	transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
}
#fast-actions button:active{
	transform: scale(0.9);
	-webkit-transform: scale(0.9);
	-moz-transform: scale(0.9);
	-ms-transform: scale(0.9);
	-o-transform: scale(0.9);
}

#fast-actions button[data-for="night"] .fa{ display: none; }
body:not([night-mode]) #fast-actions button[data-for="night"] .fa-moon-o,
body[night-mode] #fast-actions button[data-for="night"] .fa-sun-o{ display: inline; }

#fast-actions button[data-for="side"]{ display: none; }

#fast-actions button[data-for="user"] > *{ display: inline-block; vertical-align: middle; }
#fast-actions button[data-for="user"] b{
	width: 30px; height: 30px;
	margin: 3px 0;
	position: relative;
	background: #d8d8d8;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 5px;
}
#fast-actions button[data-for="user"] b img{
	display: block;
	position: absolute;
	top: 50%; left: 50%;
	max-width: 100%;
	max-height: 100%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
}
#fast-actions button[data-for="user"] b::after{
	content: '';
	display: block;
	position: absolute;
	top: 0; bottom: 0;
	left: 0; right: 0;
	z-index: 1;
}
#fast-actions button[data-for="user"] span{
	white-space: nowrap;
	max-width: 80px;
	overflow: hidden;
}

/************************************************************************************/
#main-side-menu{
	display: none;
	position: fixed;
	top: 0; left: 0;
	height: 100%;
	width: 100%;
	z-index: 5;
	margin-left: 150%;
	transition: all 0.4s ease;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
}
#main-side-menu > span{
	display: block;
	position: absolute;
	top: 0; bottom: 0;
	left: 0; right: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.6);
	
}
#main-side-menu > div{
	width: 100%;
	max-width: 300px;
	float: right;
	height: 100%;
	padding-left: 50px;
}
#main-side-menu > div > div{
	background: #fffaf0;
	height: 100%;
	display: table;
	width: 100%;
	padding: 15px;
}
body[night-mode] #main-side-menu > div > div{ background: #333; }

#main-side-menu > div > div > div{ display: table-row; }
#main-side-menu > div > div > div:last-child{ height: 100%; }
#main-side-menu > div > div > div > div{
	display: table-cell;
	vertical-align: top	;
	position: relative;
}


#main-side-menu h1{
	margin: 0 0 10px 0;
	padding-bottom: 10px;
	display: table;
	width: 100%;
	font-size: 1em;
	border-bottom: 1px solid #9e9e9e;
}
#main-side-menu h1 > span{
	display: table-cell;
	vertical-align: middle;
	
}
#main-side-menu h1 > span:first-child{ width: 100%; }

#main-side-menu h1 button{
	display: block;
	background: none;
	border: none;
	outline: none;
	color: #ed1c24;
	padding: 0;
	height: 35px;
	width: 35px;
	font-size: 2em;
	transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
}
#main-side-menu h1 button:active{
	transform: scale(0.9);
	-webkit-transform: scale(0.9);
	-moz-transform: scale(0.9);
	-ms-transform: scale(0.9);
	-o-transform: scale(0.9);
}

#main-side-menu button.opt-menu{
	display: block;
	background: none;
	border: none;
	color: #000;
	height: 40px;
	outline: none;
	width: 100%;
	text-align: left;
	padding: 0 15px;
	transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
}
body[night-mode] #main-side-menu button.opt-menu{ color: #fff; }
#main-side-menu button.opt-menu:active{
	transform: scale(0.9);
	-webkit-transform: scale(0.9);
	-moz-transform: scale(0.9);
	-ms-transform: scale(0.9);
	-o-transform: scale(0.9);
}

/************************************************************************************/
#main-body{
	position: absolute;
	top: 0; bottom: 0;
	left: 0; right: 0;
	overflow-y: auto;
}

@media only screen and (max-width: 640px){
	#main-header{ padding-left: 10px; padding-right: 10px; }
	#main-menu{ padding: 0; }
	#main-menu button{ padding: 0 10px; }
	
}
@media only screen and (max-width: 520px){
	#main-menu{ display: none; }
	#fast-actions button[data-for="side"]{ display: inline-block; }
	
	#main-side-menu{ display: block; }
	#main-side-menu[state-expanded]{ margin-left: 0;  }
	
	
}
