/* reset stili */

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/* lista orizzontale */

#menu li {
  display: inline-block;
  position: relative;
}

/* menu */

#menu {
  width: 100%;
  background-color: black;
  background: -webkit-linear-gradient(#444, #111); /* safari an chrome*/
  background: -moz-linear-gradient(#444, #111); /* firefox*/
  background: -o-linear-gradient(#444, #111); /* opera */
  background: linear-gradient(#444, #111);
  border: 1px solid #222;
  border-radius: 6px;
  box-shadow: 1px 1px 4px #777;
  text-align: center;
}

/* links */

li a {
  display: block;
  padding: 12px 20px;
  width: 60px;
  color: #999;
  text-transform: uppercase;
  font: bold 0.7em Arial, Helvetica;
  text-decoration: none;
  text-shadow: 0 1px #000;
  border-right: 1px solid #222;
  box-shadow: 1px 0 #444;
}

/* rimuoviamo il bordo e l'ombreggiatura dall'ultimo link del menu */

#donate {
  border: none;
  box-shadow: none;  
}

/* links hover */

a:hover {
  color: #C8C8C8;
}

/* sub menu */

#menu li .hidden {
  display: block;
  position: absolute;
  top: 100px;
  left: 0;
  background-color: black;
  opacity: 0;
  filter:Alpha(opacity=0); /* IE8 and earlier */
  visibility: hidden;
}

/* links sub menu */

#menu li .hidden li a {
  width: 100px;
  border-bottom: 1px solid #202020;
  border-right: none;
  box-shadow: none;
}

/* menu hover */

#menu li:hover .hidden {
  margin-top: -65px;
  opacity: 1;
  filter:Alpha(opacity=100); /* IE8 and earlier */
  -webkit-transition: all 0.5s ease; /* safari and chrome */
  -moz-transition: all 0.5s ease; /* firefox */
  -o-transition: all 0.5s ease; /* opera */
  transition: all 0.5s ease;
  visibility: visible;
}

/* diamo uno stile al pulsante del menu e nascondiamolo */

.showMenu {
  padding: 10px 0;
  color: white;
  background: #0066FF;
  text-align: center;
  display: none;
}

/* nascondiamo il checkbox */

input[type=checkbox]{
  display: none;
}

/* mostriamo il menu quando il checkbox viene selezionato */

input[type=checkbox]:checked ~ #menu{
  display: block;
}

canvas{
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}
		
.back_to_top {
	display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
	width: 100px;
}

.topnav {
	overflow: hidden;
	background-color: #444; /*333*/
	margin: 0;
	padding: 0;
	left:0%; top:0%; 
	vertical-align:top;

}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: #000; //4CAF50
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
	  display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {
	  position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

.bottomnav {
  overflow: hidden;
  background-color: #444; /*333*/
}

.bottomnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: left;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15;
}

.bottomnav a:hover {
  background-color: #ddd;
  color: black;
}

.bottomnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .bottomnav.responsive {
	  position: relative;
  }
  .bottomnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .bottomnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

html, body{
	font-family:sans-serif;
	-ms-text-size-adjust:100%;
	-webkit-text-size-adjust:100%;
	margin: 0;
	padding-left: 1px;
	padding-right: 1px;	
}

a{
	background:transparent
}

a:focus{
	outline:thin dotted
}

a:active,a:hover{
	outline:0
	}
	
small{
	font-size:80%
}

sub,sup{
	font-size:75%;
	line-height:0;
	position:relative;
	vertical-align:baseline
}

sup{
	top:-0.5em
}

sub{
	bottom:-0.25em
}

button,input{
	font-family:inherit;
	font-size:100%;
	margin:0
}
	
button,input{
	line-height:normal
}

button{
	text-transform:none
}

button,html input[type="button"],input[type="reset"],input[type="submit"]{
	-webkit-appearance:button;
	cursor:pointer
}

button[disabled],html input[disabled]{
	cursor:default
}

input[type="checkbox"],input[type="radio"]{
	box-sizing:border-box;
	padding:0
}

button::-moz-focus-inner,input::-moz-focus-inner{
	border:0;
	padding:0
}

label{
	display:inline-block;
	margin-bottom:5px;
	font-weight:bold
}

input[type="radio"],input[type="checkbox"]{
	margin:4px 0 0;
	margin-top:1px \9;
	line-height:normal
}

output{
	display:block;
	padding-top:7px;
	font-size:14px;
	line-height:1.42857143;
	color:#555;
	vertical-align:middle
}

.radio,.checkbox{
	display:block;
	min-height:20px;
	margin-top:10px;
	margin-bottom:10px;
	padding-left:20px;
	vertical-align:middle
}

.radio label,.checkbox label{
	display:inline;
	margin-bottom:0;
	font-weight:normal;
	cursor:pointer
}

.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{
		float:left;
		margin-left:-20px
}

.radio+.radio,.checkbox+.checkbox{
	margin-top:-5px
}

input[type="radio"][disabled],input[type="checkbox"][disabled],.radio[disabled],.radio-inline[disabled],.checkbox[disabled],.checkbox-inline[disabled],fieldset[disabled] 

input[type="radio"],fieldset[disabled] 

input[type="checkbox"],fieldset[disabled] 

.radio,fieldset[disabled] 

.radio-inline,fieldset[disabled] 
.checkbox,fieldset[disabled] 

.checkbox-inline{cursor:not-allowed}

div.center{
	-moz-border-bottom-colors:none;
	-moz-border-left-colors:none;
	-moz-border-right-colors:none;
	-moz-border-top-colors:none;
	border-color:-moz-use-text-color #36404f #36404f;
	border-color:rgba(0,0,0,0.1);
	border-image:none;
	border-radius:10px;
	margin:0 auto;
	min-width:300px;
	padding:25px 23px 23px 20px;
	resize:none;
	resize:horizontal;
	width:650px;
	color:#000;
	background:none;
	background:#fff;
	background:-moz-linear-gradient(top, #fff 0, #e5e5e5 100%);
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(100%, #e5e5e5));
	background:-webkit-linear-gradient(top, #fff 0, #e5e5e5 100%);
	background:-o-linear-gradient(top, #fff 0, #e5e5e5 100%);
	background:-ms-linear-gradient(top, #fff 0, #e5e5e5 100%);
	background:linear-gradient(to bottom, #fff 0, #e5e5e5 100%);
	background:#f2f2f2;
	background:-moz-linear-gradient(top, #f2f2f2 4%, #ebebeb 15%, #e6e6e6 77%, #e0e0e0 100%);
	background:-webkit-gradient(linear, left top, left bottom, color-stop(4%, #f2f2f2), color-stop(15%, #ebebeb), color-stop(77%, #e6e6e6), color-stop(100%, #e0e0e0));
	background:-webkit-linear-gradient(top, #f2f2f2 4%, #ebebeb 15%, #e6e6e6 77%, #e0e0e0 100%);
	background:-o-linear-gradient(top, #f2f2f2 4%, #ebebeb 15%, #e6e6e6 77%, #e0e0e0 100%);
	background:-ms-linear-gradient(top, #f2f2f2 4%, #ebebeb 15%, #e6e6e6 77%, #e0e0e0 100%);
	background:linear-gradient(top, #f2f2f2 4%, #ebebeb 15%, #e6e6e6 77%, #e0e0e0 100%);
	background-color:rgba(0,0,0,0.05);
	background-color:#36404f;
	background-color:#c0c0c0;
	border:1px solid rgba(54,64,79,0.75);
	border-top-width:0;
	box-shadow:2px 2px 0 rgba(0,0,0,0.2);
	position:relative;
	z-index:1;
	padding-left:20px;
	padding-right:20px;
	overflow:hidden;
	padding-bottom:10px;
	max-width:100%;
	max-width:calc(100% - 340px)
}

@media (max-width:1020px){
	div.center{
		max-width:100%;
		max-width:calc(100% - 20px)
	}
}

div.stacks{
	position:relative;
	height:37px
}

div.displays{
	position:relative;
	height:37px
}

div.stacks input:focus{
	border:1px solid #c0c0c0;
	outline:0 none
}

div.displays input:focus{
	border:1px solid #c0c0c0;
	outline:0 none
}

div.stacks input{
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	-ie-box-sizing:border-box;
	box-sizing:border-box;
	background-repeat:no-repeat;
	border-color:#c0c0c0;
	border-radius:5px;
	box-shadow:none;
	font-family:sans-serif,verdana,arial;
	font-size:16pt;
	height:37px;
	left:0;
	margin:0;
	padding:0 5px;
	position:absolute;
	resize:none;
	top:0;
	width:100%;
	border:1px solid #c0c0c0
}

div.displays input{
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	-ie-box-sizing:border-box;
	box-sizing:border-box;
	background-repeat:no-repeat;
	border-color:#c0c0c0;
	border-radius:5px;
	box-shadow:none;
	font-family:sans-serif,verdana,arial;
	font-size:16pt;
	height:37px;
	left:0;
	margin:0;
	padding:0 5px;
	position:absolute;
	resize:none;
	top:0;
	width:100%;
	border:1px solid #c0c0c0
}

div.stacks input.focus{
	border:1px solid #c0c0c0;
	box-shadow:0 1px 1px rgba(0,0,0,0.075) inset,0 0 3px rgba(102,175,233,0.6);
	border-color:#66afe9
}

div.displays input.focus{
	border:1px solid #c0c0c0;
	box-shadow:0 1px 1px rgba(0,0,0,0.075) inset,0 0 3px rgba(102,175,233,0.6);
	border-color:#66afe9
}

div.stacks input#input{
	background-color:transparent
}

div.displays input#input{
	background-color:transparent
}

div.stacks input#syntax{color:#bbb}

div.displays input#syntax{color:#bbb}

.stacks input::-moz-selection{
	background:none repeat scroll 0 0 #39f;
	color:#fff
}

.displays input::-moz-selection{
	background:none repeat scroll 0 0 #39f;
	color:#fff
}

.stacks input::selection{
	background:none repeat scroll 0 0 #39f;
	color:#fff
}

.displays input::selection{
	background:none repeat scroll 0 0 #39f;
	color:#fff
}

.btns .graph{ /*PLOT*/
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:39.6%;
}

.btns .calcola{ /*SOLVE*/
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:46.5%;
}

.btns .sistema{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:10.2%;
}

.btns .canc{ /*CE*/
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:10.2%;
}

.btns .reset{ /*RESET*/
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:19.6%;
}

.btns .diff{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:12.3%;
}

.btns .integrate{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:18.2%;
}

.btns .x{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:8.6%;
}

.btns .bindec{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:12.6%;
}

.btns .uguale{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	height:57px;
	width:10%;
}

.btns{
	max-width:650px;
	-moz-user-select:none;
	-webkit-user-select:none;
	-ie-user-select:none;
	user-select:none;white-space:nowrap;
	width:100%;
	margin:0 auto;
	font-size:0
}

.btns a,.btns button{
	vertical-align:top;
	display:inline-block;
	width:9.3%;
	margin:0;
	padding:0;
	height:40px;
	margin-top:2px;
	margin-bottom:2px;
	margin-right:.25%;
	margin-left:.25%;
	line-height:38px;
	text-align:center;
	position:relative;
	background:#fcfcfc;
	background:-moz-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(100%, #e6e6e6));
	background:-webkit-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:-o-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:-ms-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:linear-gradient(to bottom, #fff 0, #e6e6e6 100%);
	border-color:#c0c0c0 #7491a5 #7491a5 #c0c0c0;
	border-image:none;
	border-radius:4px;
	border-style:solid;
	border-width:1px;
	box-shadow:1px 1px 0 rgba(0,0,0,0.05);
	color:#414f5b;
	cursor:pointer;
	font-family:arial,verdana;
	font-style:normal;
	resize:none;
	text-decoration:none;
	text-shadow:1px 1px 0 #fff;
	white-space:nowrap;
	font-size:19pt;
	font-weight:bold;
	padding-bottom:2px
}

.btns a span,.btns button sup{
	color:#708090;
	font-size:8pt;
	line-height:12px;
	opacity:.5;
	position:absolute;
	right:3px;
	text-shadow:none;
	top:0
}

.btns a b,.btns button b{
	font-family:verdana;
	font-weight:normal
}

.btns a i,.btns button i{
	font-size:10pt;
	font-style:normal;
	left:1px;
	position:relative;
	top:-7px
}

.btns a.active,.btns button.active{
	border:1px solid #4271a5;
	color:#252d2b;
	background:#eaf6fd;
	background:-moz-linear-gradient(top, #eaf6fd 0, #a7d9f5 100%);
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #eaf6fd), color-stop(100%, #a7d9f5));
	background:-webkit-linear-gradient(top, #eaf6fd 0, #a7d9f5 100%);
	background:-o-linear-gradient(top, #eaf6fd 0, #a7d9f5 100%);
	background:-ms-linear-gradient(top, #eaf6fd 0, #a7d9f5 100%);
	background:linear-gradient(to bottom, #eaf6fd 0, #a7d9f5 100%)
}

.btns #BtnCalcEqual,.btns #BtnCalcHex,.btns #BtnCalcDec,.btns #BtnCalcBin{
	height:40px;
	line-height:40px;
	position:absolute;
	left:0;
	top:0;
	width:100%;
	margin:0;
	font-size:14pt;
	font-family:sans-serif;
	z-index:1;
	display:none
}

.btns #BtnCalcBin_1,.btns #BtnCalcHex_1{
	height:40px;
	line-height:40px;
	position:absolute;
	left:0;
	top:0;
	width:100%;
	margin:0;
	font-size:14pt;
	font-family:sans-serif;
	z-index:1
}

.btns .dropdown button.active i,.btns .dropdown button:hover i{
	opacity:1
}

.btns .dropdown .f{
	cursor:default
}

.btns .dropdown .o i{
	font-size:10px;
	font-weight:normal;
	opacity:.3;
	text-shadow:none
}

.btns div{
	white-space:nowrap;
	text-align:center
}

.btns p{
	vertical-align:top;
	display:inline-block;
	width:9.3%;
	margin:0;
	padding:0;
	height:40px;
	height:0;
	margin-top:2px;
	margin-bottom:2px;
	margin-right:.25%;
	margin-left:.25%;
	line-height:38px;
	text-align:center;
	position:relative;
	background:#fcfcfc;
	background:-moz-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(100%, #e6e6e6));
	background:-webkit-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:-o-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:-ms-linear-gradient(top, #fff 0, #e6e6e6 100%);
	background:linear-gradient(to bottom, #fff 0, #e6e6e6 100%);
	background:none;
	border-color:#c0c0c0 #7491a5 #7491a5 #c0c0c0;
	border-image:none;
	border-radius:4px;
	border-style:solid;
	border-width:1px;
	box-shadow:1px 1px 0 rgba(0,0,0,0.05);
	box-shadow:none;
	color:#414f5b;
	cursor:pointer;
	font-family:arial,verdana;
	font-style:normal;
	resize:none;
	text-decoration:none;
	text-shadow:1px 1px 0 #fff;
	white-space:nowrap;
	font-size:19pt;
	font-weight:bold;
	padding-bottom:2px;
	padding-bottom:0;
	border:none;
	z-index:0
}

.btns .r{
	font-family:Tahoma,verdana;
	font-size:13pt;
	line-height:36px;
	width:9.5648936%;
}

.btns .rb{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	width:9.5648936%;
	font-weight: bold;
}

.btns .rd{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px;
	width:9.5648936%;
	font-weight: bold;
	text-decoration: underline;
}

.btns .f{
	width:8.4148936%;
	font-size:13pt;
	font-weight:normal;
	overflow:hidden
}

.btns .o{
	font-weight:bold;
	font-size:13pt;
	width:10.563617%;
	overflow:hidden
}

.btns .op{
	font-family:Tahoma,verdana;
	font-size:19pt;
	line-height:36px
}

.btns .opt{
	font-family:Tahoma,verdana;
	font-size:13pt;
	line-height:36px
}

.btns div.subcmd a,.btns div.subcmd button{
	height:32px;
	line-height:
	30px;font-size:
	12pt;
	font-weight:normal
}

.btns .hex{
	width:7.75%
}

.btns span.sec{
	display:none
}

.btns .shift span{
	display:none
}

.btns .shift span.sec{
	display:inline
}

.btns .br{
	margin-right:.75%
}

.btns .bl{
	margin-left:.75%
}

.btns #BtnCalc{
	height:128px;
	line-height:128px;
	position:absolute;
	left:0;
	top:0;
	width:100%;
	margin:0;
	font-size:23pt;
	font-family:sans-serif;
	z-index:1
}

.btns #BtnClear{
	font-family:sans-serif;
	line-height:41px
}

.btns #BtnLeft{
	padding-top:8px
}

.btns #BtnLeft i.left{
	display:none
}

.btns #BtnLeft i.right{
	display:none
}

.btns #BtnLeft.left .left{
	display:inline
}

.btns #BtnLeft.left .right,.btns #BtnLeft.left .leftright{
	display:none
}

.btns #BtnLeft.right .right{
	display:inline
}

.btns #BtnLeft.right .left,.btns #BtnLeft.right .leftright{
	display:none
}

.btns #BtnDiv .sec{
	font-size:15pt
}

.btns #BtnMult .sec{
	font-size:17pt
}

.btns #BtnBack{
	padding-right:3px;
	padding-top:10px
}

.btns #BtnBack i{
	transform:rotate(180deg)
}

.btns #Btn2nd b{
	position:relative;
	top:-4px;
	font-size:.9em
}

#drawgraph{
	margin-right:.4%;
	max-width:29%;
	background:none repeat scroll 0 0 #fff;
	border:1px solid #c0c0c0;
	border:1px solid rgba(0,0,0,0.2);
	border-radius:4px;
	float:right
}

.idinput{ /* Stili per il campo di testo e per la textarea */
    width: 50px; /* Larghezza */
}