body {
	--scalex: 1.0;
	--scaley: 1.0;
}

ol, ul {
	list-style: none;
}
fieldset {
	border: 0;
}
fieldset li label {
	text-align: right;
	padding-right: 15px;
	display: inline-block;
	white-space: nowrap;
}

.cover, #newgame {

}

*:not(input):not(#chatscreen){
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

[contenteditable],[contenteditable] * {
	-webkit-user-select: text !important;
	user-select: text !important;
}
	
fieldset li label {
	width: 200px;
}

li input[type='text'], li [txtbox], li input[type='password'], li select:not(.active){
	background: #f7f7f7;
/*background: -moz-linear-gradient(top, #f7f7f7 5%, #ffffff 52%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,#f7f7f7), color-stop(52%,#ffffff));
background: -webkit-linear-gradient(top, #f7f7f7 5%,#ffffff 52%);
background: -o-linear-gradient(top, #f7f7f7 5%,#ffffff 52%);
background: -ms-linear-gradient(top, #f7f7f7 5%,#ffffff 52%);*/
background: linear-gradient(to bottom, #f7f7f7 5%,#ffffff 52%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#ffffff',GradientType=0 );

}
li input[type='text'], li [txtbox], li input[type='password'], li select{
/*width: 250px;*/
width: 60%;
/*border: 1px inset #eee;*/
border: 1px solid #000000;
padding: 4px;
border-radius: 4px;
height: 30px;
font-size: 20px;
margin-bottom: 10px;
}

li [txtbox] {
	margin-bottom: 0px;
}

.listing {
 /* padding-left: 55px;
  padding-right: 55px;*/
}

h1 {
	/*color: #ffcc00 !important;*/
}

#romname {
	font-size: 23px;
	padding:4px;
}


h1.systitle {
	font-size: 20px;
	padding-top:4px;
	padding-bottom:12px;
	margin: 0;
	position: absolute;
}

#optprofiles {
	/*border-bottom: 1px solid #acacac;*/
	vertical-align: bottom;
	width: 100%;
	display: flex;
	flex-wrap: wrap-reverse;
}
#chattabs {
	vertical-align: bottom;
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	white-space: nowrap;
 box-sizing: border-box;

}

.emutab {
	display: inline-block;
	background: linear-gradient(to bottom, #e9e9e9 5%, #ffffff 100%);
    background-color: #f9f9f9;
    border: 1px solid #acacac;
    border-bottom: none;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
	box-shadow: inset 0px 1px 0px 0px #ffffff;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0px;
    cursor: pointer;
	color: #555555;
	color: #bbbbbb;
	text-shadow: 0px 1px 0px #ffffff;
}
.emutab.tabselected {
	border: 0 !important;
	color: #330000;
	
	border-top: 1px solid rgba(255, 192, 0, 1.0) !important;
	border-left: 1px solid rgba(255, 192, 0, 1.0) !important;
	border-right: 1px solid rgba(255, 192, 0, 1.0) !important;
    border-bottom: none;
}
#chattabs .emutab.tabselected {

}
.emutab.add {
	background: linear-gradient(to bottom, #a4cd5a 5%, #68a54b 100%);
	color: #ffffff;
	/*box-shadow: inset 0px 1px 0px 0px #ffffff !important;*/
	border-color: #38752b;
}
#content {
	/*background-image: url('/images/zelda.jpg');*/
/*	background-image: url('/images/zelda2.jpg');*/
	/*background-image: url('/blacknred.jpg');
	background-repeat: no-repeat;
    background-size: cover;
	background-attachment: fixed;*/
	/* background:url('https://nerdist.com/wp-content/uploads/2017/02/Legend-of-Zelda-BOW-970x545.jpg') top right no-repeat; background-attachment:fixed;*/
	}
.listing {
          border-right: 0px;
          border-left: 0px;
          border-radius: 0px;
       /*   border-top: 1px solid #555555 !important; 
        border-bottom: 1px solid #555555 !important; */
		 
     /*   border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;*/
          /* background-color:#444444 !important; */
		   /*background-color: rgba(68, 68, 68, 0.2);*/
		   /*background: linear-gradient(to right, rgba(67, 68, 68, 0.2) 0%, rgba(68, 68, 68, 0.4) 40%, rgba(68, 68, 68, 0.8) 100%) !important;*/
		   padding-top: 4px !important;
           padding-bottom: 4px !important;
           /*padding-top: 15px !important;
           padding-bottom: 15px !important;*/
           margin-top: 0px !important;
           margin-bottom: 0px !important;
           /*padding:8px;*/
        }
		body .listing {
			border-top: 1px dotted rgba(255, 255, 255, 0.5) !important;
		}
        
        .scroller {
        	padding-bottom:10px;
        }
		
		.librightspacer {
			width: 25px;
		}
		
		.listing {
      padding-left: 10px !important;
      padding-right: 2px !important;
   }
   
.listing:first-child {
	border-top: 0 !important;
}

.scrollpic {
	padding-left:10px;
	padding-right: 10px;
	width: 400px;
	height: 350px;
}
#previews {
	/*border-top: 1px solid #c0c0c0;
	border-bottom: 1px solid #c0c0c0;*/
	width: 100%;
}
* {
	box-sizing: border-box;
}

input {
	font-size: 14px;
}

@font-face {
    font-family: Thin;
    src: url(/library/fonts/Roboto-Light.ttf);
}

@font-face {
    font-family: Bold;
    src: url(/library/fonts/Roboto-Regular.ttf);
}

body {
	
}

#rominfo table, #rominfo tr, #rominfo td,
.wrapper table, .wrapper tr, .wrapper td {
	border-spacing: 0;
    border-collapse: collapse;
	padding: 0;
	border: 0;
}

#libcontent {
	padding: 0;
	margin: 0;
	font-family: Thin;
	
	/*background-color: #333333;*/
	background-color: rgba(0,0,0,0);
	/*background-color: #666666;
	background-image: linear-gradient(to bottom, #666666 0%, #666666 100%);
	background-repeat: no-repeat;
	background-attachment:fixed;*/
	/*background-image: linear-gradient(to bottom, #333333 0%, #000000 100%);*/
}
#headerbar {
	/*opacity: 0.65;*/
	background-color: rgba(238, 238, 238, 0.45) !important;
	box-shadow: 0px 0px 1px 1px rgba(255, 255, 255, 0.4);
	position: absolute;
}
body #headerbar {
	box-shadow: none !important;
	box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.4) !important;
}
#searchtxt,[txtbox=searchtxt] {
	opacity: 0.85 !important;
}
#libcontent {
	min-height: 100%;
	/*height: 100%;
	width: 100%;
	overflow-x: hidden !important;*/
}

#libcont {
	/*overflow-y:scroll !important;
	-webkit-overflow-scrolling: touch !important;*/
}

.fixed {
	position: fixed;
}
.absolute {
	position: absolute;
}
.width100 {
	width: 100%;
	display: block;
	z-index: 999999;
}


#headerbar {
	width: 100%;
	background-color: #eeeeee;
	/*border-bottom: 1px solid #555555;*/
	white-space: nowrap;
	display: table;
	padding-top:8px;
	padding-bottom: 8px;
}

#logo {
	/*padding:15px;*/
	display: inline-block;
	/*padding-bottom: 10px;
	height:60px;*/
	padding: 5px;
	position: relative;
	top:2px;
	left: 5px;
	/*margin-top: -3px;*/
}

#catnav {
	width:220px;
	display: none;
}

.cat {
	width: 100%;
}

.cattxt {
	padding-left: 14px;
	padding-right: 14px;
	padding-top:16px;
	padding-bottom:16px;
	text-align: right;
	font-size: 1.25em;
	
}

#getemucater {
	color: #ffffff;
	background-color: #555555;
	background-color: rgba(51, 51, 51, 0.75);
	/*background-image: linear-gradient(to right, #555555 0px, #ffffff 100%);*/
	white-space: nowrap;
}

#getemucater.active {
	background-color: rgba(51, 51, 51, 1.0);
}

#ectbl {
	width: 100%;
	height: 100%;
}

#settingsblock {

	text-align: right;
	vertical-align: middle;
	/*color: #666666;*/
	padding-right: 27px;
}

#ecblock, #showmenu {
	width:220px;
}

#showmenu {
	display: table-cell;
}
#ecblock {
	display: none !important;
}

:not(#getemucater).cat {
	color: #888888;
	background-color: #eeeeee;
	background-color: rgba(238, 238, 238, 1.0);
}




.caticon {
	height: 100%;
	width: 60px;
	text-align:center;
	vertical-align:middle;
}

#eclogo {
	height: 50px;
	padding:6px;
	display:inline-block;
}
#gamepadimg {
	height: 35px
}

.catlogo {
	height: 40px;
	display:inline-block;
}

#ec_icon {
	background-color: #000000;
}

#emulators_icon {
	background-color: #00aa00;
}
#games_icon {
	background-color: #aa0000;
}
#themes_icon {
	background-color: #0000aa;
}
#gamepads_icon {
	background-color: #4e6699;
}

#ectxt {
	font-style: italic;
	color: #ffcc00;

}

a {
	color: #ffcc00;
	cursor: pointer;
}

#gettxt {

}

.slick-prev, .slick-next {
	background-color: #333333 !important;
	opacity: 1.0 !important;
	border-radius: 12px;
	z-index: 9999;
}
#gpanel .slick-prev, #gpanel .slick-next {
	z-index: 999999;
}
#gpanel .slick-prev {
	left:0px !important;
}

.rom_thumbnail, .rom_thumbnail img {
	width: 100px !important;
	margin: 10px !important;
	height: 100px !important;
	cursor: pointer;
}


#searchtxt,[txtbox=searchtxt] {
	width: 600px;
    border-radius: 0px;
    border: 1px solid #555555;
    background: none;
	background-color: rgba(255, 255, 255, 0.75);
    padding-top: 6px;
	padding-bottom: 6px;
	padding: 6px;
	/*border-right: 0;*/
	font-size:26px;
	text-align: center;
	height: 45px;
	/*background: linear-gradient(to bottom, #f7f7f7 5%,#ffffff 52%);*/
	border-radius:2px;
	color: black;
}

#searchblock {
	display: table-cell;
	vertical-align: middle;
	text-align: right;
	width: 50%;
	padding-left:40px;
}

#searchbtnblock {
	display: table-cell;
	vertical-align: middle;
	text-align: left;
	width: 10%;
}

#logoblock {
	display: table-cell;
	vertical-align: middle;
	text-align: left;
	width: 10%;
}

#loginblock {
	display: table-cell;
	vertical-align: middle;
	text-align: right;
	padding-right:18px;
	width: 15%;
}

#profileimg {
	background-color: #ff0000;
	border-radius: 100%;
	width:40px;
	height: 40px;
	display: inline-block;
}

.searchbtn {
	display:table-cell;
	background-color: #4444ff;
	border: 1px solid #0000aa;
	border-left: 0;
	width: 40px;
	color: #ffffff;
	height: 45px;
	text-align: center;
	margin-top: auto;
	margin-bottom: auto;
	vertical-align:middle;
	padding-left: 14px;
	padding-right: 14px;
}

@media screen and (max-width: 1100px) {
	#searchtxt {
		/*width: 400px !important;*/
		
	}
}
#filemanager {
	background: linear-gradient(to left top, rgb(239, 239, 239) 5%, rgb(255, 255, 255) 100%);
	border-radius: 8px;
	box-shadow: 0px 0px 15px rgba(192, 182, 192, 1.0);
	box-sizing: border-box;
}
#filemanager * {
	box-sizing: border-box;
}
@media screen and (max-width: 700px) {
	.splitpane {
		display: block !important;
		width: 100% !important;
	}
	.fileview {
		height: 24vh !important;
	}
	/*.pathbtn {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}*/
	#cloudfiles, #localfiles {
		padding: 5px !important;
		background: none;
	}
}

#libcont #content {
	scrollbar-base-color: #000000;
	scrollbar-base-color: #000000;
	scrollbar-3dlight-color: #111111;
	scrollbar-highlight-color: #111111;
	scrollbar-track-color: #555555;
	scrollbar-arrow-color: #ffffff;
	scrollbar-shadow-color: #111111;
	scrollbar-dark-shadow-color: #111111;
}

textarea,[txtarea] {
	resize: none;
}

::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
}
::-webkit-scrollbar-thumb {
    background: #e1e1e1;
    border: 0px none #ffffff;
	background: rgba(255, 255, 255, 0.6);
    
}
div.scroll, html, body {
	-webkit-overflow-scrolling: touch;
}
.ecscrollbar::-webkit-scrollbar-thumb, .scroller::-webkit-scrollbar-thumb {
	border-radius: 50px;
}
#libcont #content::-webkit-scrollbar-thumb:hover, .ecscrollbar::-webkit-scrollbar-thumb:hover, .scroller::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
	background: rgba(255, 255, 255, 0.5);
}
#libcont #content::-webkit-scrollbar-thumb:active, .ecscrollbar::-webkit-scrollbar-thumb:active, .scroller::-webkit-scrollbar-thumb:active {
     /*background: #000000;*/
}
#libcont #content::-webkit-scrollbar-track, .scroller::-webkit-scrollbar-track {
	background: #333333;
	background: rgba(100, 100, 100, 0.2);
	/*border-left: 1px solid #555555;*/
}
.ecscrollbar::-webkit-scrollbar-track {
	background: rgba(0,0,0,0);
}
.scroller::-webkit-scrollbar-track {}
.scroller:not(:hover)::-webkit-scrollbar-track, .scroller:not(:hover)::-webkit-scrollbar-thumb {
	display: none;
}
.ecscrollbar::-webkit-scrollbar-track, .scroller::-webkit-scrollbar-track {
	border-radius: 50px;
	padding:15px;
	
}
/*
.scroller {
	scrollbar-color: #cccccc rgba(0, 0, 0, 0.25);
	scrollbar-width: thin;
}
.scroller:not(:hover) {
	scrollbar-width: none;
}*/

#libcont #content::-webkit-scrollbar-track, #libcont #content::-webkit-scrollbar-thumb {
	border-radius: 0px;
}
#libcont #content::-webkit-scrollbar-track:hover, .ecscrollbar::-webkit-scrollbar-track:hover, .scroller::-webkit-scrollbar-track:hover {
    background: #666666;
    background: #000000;
    border: 0px none #ffffff;
    
	background: rgba(80, 80, 80, 0.2);
}
/* comment to show scrollbar on hover */
#libcont #content .listing .scroller {
	scrollbar-width: none;
}
#libcont #content .listing .scroller::-webkit-scrollbar-track {
	scrollbar-width: none !important;
	background: rgba(80, 80, 80, 0.0) !important;
	border: 0px none #ffffff !important;
}
#libcont #content .listing .scroller::-webkit-scrollbar-track, #libcont #content .listing  .scroller::-webkit-scrollbar-thumb {
	display: none !important;
}
/* end comment to show scrollbar on hover */
#libcont #content::-webkit-scrollbar-track:active, .ecscrollbar::-webkit-scrollbar-track:active, .scroller::-webkit-scrollbar-track:active {
	background: #333333;
	
	background: rgba(40, 40, 40, 0.2);
}
#libcont #content::-webkit-scrollbar-corner, .ecscrollbar::-webkit-scrollbar-corner, .scroller::-webkit-scrollbar-corner {
        background: transparent;
}

#libcont #content::-webkit-scrollbar, .ecscrollbar::-webkit-scrollbar, .scroller::-webkit-scrollbar {
    height: 11px  !important;
}

  .controltitle {
  	text-align: left;
  	padding: 8px;
  	font-size: 1.25em;
  	font-weight: bold;
  }
  
  .controlitem {
  	text-align: left;
  	padding: 8px;
  	padding-left: 16px;
  	border-top: 1px solid #cccccc;
  	cursor: pointer;
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 20px;
  }
  .controlitem.selected {
  	background-color: #aa0000;
  	color: #ffffff;
  }
  .controlitem:hover {

  }

/*
#showmenu {
	display: none;
}


@media screen and (min-width: 851px) {
	#catnav {
		display: table !important;
	}
}
*/
body .itemtitle {
	/*transform: scaleX(1.25) translate(10%);*/
	transform: scaleX(var(--scalex)) translate(calc((146px * var(--scalex) - 146px) / 2.0));
}
@media screen and (min-width: 850px) {
	.listitem {
		/*zoom: 75%;*/
		width: 132px !important;
		height: 158px !important;
	}
	body.sq .listitem {
			width: 146px !important;
			border-radius: 8px;
	}
	body.sq .listitem {
			/*width: 182px !important;*/
		width: calc(146px * var(--scalex)) !important;
	}
	p.itemtitle {
		font-size: 12px !important;
		width: 128px !important;
		margin-top: -18px !important;
	}
	body.sq p.itemtitle {
		width: 138px !important;
	}
}

@media screen and (min-height: 940px) {
	body.sq .listitem {
		/*zoom: 75%;*/
		width: 165px !important;
		height: 190px !important;
	}
	
	body.sq p.itemtitle {
		width: 159px !important;
	}
}

@media screen and (max-width: 850px) {
	.listitem {
		/*box-shadow: 3px 3px 3px #000000 !important;*/
		/*box-shadow: 6px 6px 5px rgba(0, 0, 0, 0.8) !important;*/
	}
	:not(#getemucater).cat {
		/*background-color: rgba(238, 238, 238, 0.85) !important;*/
	}
	
	#showmenu {
		display: table-cell;
	}
	#ecblock {
		display: none !important;
	}
	
	body {
		font-size: 14px !important;
	}
	#ecblock, #catnav, #showmenu {
		width: 160px !important;
	}
	
	#catnav {
		display: none;
	}
	
	#showmenu .cattxt {
		text-align: left;
	}
	#searchtxt,[txtbox=searchtxt] {
		/*width: 96%;*/
		height: 45px !important;
	}
	#logoblock {
		display: none !important;
	}
	#loginblock {
		display: none !important;
	}
	
#eclogo {
	height: 30px;
}
#gamepadimg {
	height: 20px
}
.catlogo {
	height: 20px;
}
.caticon {
	width: 40px !important;
}
	#searchblock {
		width: 99% !important;
		padding-left: 10px !important;
	}
	#searchbtnblock {
			text-align:left !important;
			width: 1% !important;
			padding-right: 10px;
	}
	.searchbtn {
		padding-left: 14px;
		padding-right: 14px;
		height: 45px !important;
	}
	
	
}
@media screen and (max-width: 850px)  and (min-height: 500px) {
	#headerbar {
		/*padding-top:20px;
		padding-bottom: 20px;*/
	}
}

#content {
	transform: translate3d(0,0,0);
}

.cover {
  display: table;
  width: 101% !important;
  height: 60% !important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.listitemparent.hideimg p, .listitemparent.hideimg .cover {
	display: none !important;
}
.listitemparent.hideimg {
	/*opacity: 0 !important;
	visibility: hidden !important;*/
	background-image: none !important;
	background-color: rgba(0, 0, 0, 0) !important;
	box-shadow: none !important;
	border: 0 !important;
}

.listitemparent.hideimg .listitem {
	/*opacity: 0 !important;
	visibility: hidden !important;*/
	background-image: none !important;
	background-color: rgba(0, 0, 0, 0) !important;
	box-shadow: none !important;
	border: 0 !important;
}
.hideimgshift {
	opacity: 0 !important;
	visibility: hidden !important;
}
.listitemparent.hideimg .cover {
/*	width: auto !important;
	height: auto !important;
	position: absolute;
	left: 50%;
	top: 50%;
    transform: translate(-50%, -50%);
	box-shadow: none !important;*/
}


body.sq .listitem {
    display: inline-block;
      height: 210px;
      width: 175px;
      margin: 12px;
      cursor:pointer;
      position: relative;
	  /*transform: skewY(4deg);*/
	  overflow: hidden;
	  margin-top:0px;

	  /*transform: rotate3d(0, 1, 0, 50deg);
	  -webkit-transform: rotate3d(0, 1, 0, 50deg);*/
          
   }
 

body.hq.animate.library-shown .listitem:not(.active) {
	animation: rotating 15000ms infinite;
}
body:not(.library-shown) .listitem:not(.active) {
	/*animation: none;*/
	animation-iteration-count: 1 !important;
}
   
body.hq .listitem {
    display: inline-block;
      height: 210px;
      width: 175px;
      margin: 12px;
      cursor:pointer;
      position: relative;
	  /*transform: skewY(4deg);*/
	  overflow: hidden;
	  
	  
	  
	  box-shadow: -6px 6px 6px rgba(0, 0, 0, 0.6) !important;

	  transform: rotate3d(0, 1, 0, 50deg);
	  -webkit-transform: rotate3d(0, 1, 0, 50deg);
	  
/* dark mode */

	 box-shadow: -8px 8px 8px rgba(0, 0, 0, 0.3) !important;
	 
	 
	 /*box-shadow: -8px 8px 8px rgba(228, 32, 69, 0.3) !important;*/
	 
	 
	  /*box-shadow: -8px 8px 8px rgba(255, 255, 255, 0.2) !important;*/
	 
   border-radius: 0px !important;
    background-color: #111111 !important;
	background-color: rgba(33, 33, 33, 1.0) !important;
	background: linear-gradient(to bottom right, rgba(255, 255, 255, 1.0) 0%, rgba(180, 180, 180, 1.0) 100%) !important;
    color: white !important;
	border: 0px solid #000000 !important;

    }
body.hq.zelda .listitem {
	/*box-shadow: -8px 8px 8px rgba(255, 255, 255, 0.3) !important;*/
}
body.sq.zelda .listitem {
	/*box-shadow: 0px 0px 15px rgba(255, 255, 255, 1.0) !important;*/
}
body.sq:not(.zelda) .listitem, body.sq:not(.zelda) .profile-container, body.sq:not(.zelda) .profile-container.active.display {
	/*box-shadow: 0px 8px 18px rgba(0,0,0,0.95) !important;*/
	/*box-shadow: 0px 0px 18px rgba(255, 255, 255, 0.75) !important;*/
}
body.sq:not(.zelda) .profile-container:not(.active) {
	border: 1px solid rgba(255, 255, 255, 0.45);
}
.itemtitle {
	color: #000000 !important;
}
.cover {	
	border-bottom: 0px solid #000000 !important;
}


body.darkmode .listitem {
	   box-shadow: -8px 8px 8px rgba(255, 255, 255, 0.3) !important;
   /*border-radius: 2px !important;*/
    background-color: #111111 !important;
	background-color: rgba(33, 33, 33, 1.0) !important;
	background: linear-gradient(to bottom left, rgba(77, 77, 77, 1.0) 0%, rgba(0, 0, 0, 1.0) 100%) !important;
    color: white !important;
	/*border: 1.25px solid #ffffff !important;*/
}
body.darkmode.sq .listitem {
	 box-shadow: 4px 4px 4px rgba(255, 255, 255, 0.3) !important;
}
body.darkmode .listitem {
	border-radius:1px !important;
}
body.darkmode .itemtitle {
	color: #ffffff !important;
}
body.darkmode .cover {
	/*border-bottom: 0.75px solid #ffffff !important;*/
}


/* end dark mode */
body.hq .listitemparent {
	/*margin-right: -50px;*/
}
.infotable {
	height: 55px; /* 23%*/
	color: black;
}
   .dl {
   	position: absolute;
   	left:0px;
   	top:0px;
   	width:100%;
   	height: 100%;
   	background-color: rgba(0,0,0,0.5);
   	z-index:99999999;
   	display:table;
   }
   .dl>span {
   	display: table-cell;
   	width:100%;
   	height:100%;
   	vertical-align:middle;
   	text-align:center;
   }
   .dl>span>span {
   	display:inline-block;
   	color:#ffffff;
   }
   
   .itemtitle, .itemgenre {
     width: 170px;
	 padding-left: 5px;
	 font-size: 14px;
   }
   body.sq .itemtitle, body.sq .itemgenre {
	   padding-left: 0px;
   }
   
 .listing {
  margin-top: 25px;
  margin-bottom: 55px;
}




   /*.listitem {
      height: 160px !important;
      width: 130px !important;
      margin: 10px !important;
   }
   .itemtitle, .itemgenre {
     width: 125px !important;
   }
*/


body.sq .listitem {
	/*border: 1px solid #ffffff;*/
	/*border: 1px solid rgba(255, 255, 255, 0.75);*/
}



@media screen and (max-height: 520px), screen and (max-width: 900px)  {
	.scrollpic {
			width: 200px !important;
			height: 175px !important;
	}
  .listing {
      padding-left: 5px !important;
      padding-right: 5px !important;
   }
   
   .scrolllisting button {
		display: none !important;
	}

   
   h1.systitle {
		font-size: 16px !important;
	}
   
   .listitem {
      height: 130px !important;
      width: 100px !important;
      margin: 10px !important;
   }
   body .listitem {
			/*width: 182px !important;*/
		width: calc(130px * var(--scalex)) !important;
	}
	body .itemtitle {
		/*transform: scaleX(1.25) translate(10%);*/
		transform: scaleX(var(--scalex)) translate(calc((130px * var(--scalex) - 130px) / 2.0));
	}
   
   body.sq .listitem{
	   width: 114px !important;
	   border-radius: 8px;
   }
   	body.sq .listitem {
			/*width: 182px !important;*/
		width: calc(114px * var(--scalex)) !important;
	}
	body.sq .itemtitle {
		/*transform: scaleX(1.25) translate(10%);*/
		transform: scaleX(var(--scalex)) translate(calc((114px * var(--scalex) - 114px) / 2.0));
	}
   
    body.hq .scroller {
		padding-left: 30px !important;
		padding-top: 0px !important;
	}
	@media (hover: hover) {
	body.hq .listitem:hover {
		}
	}
	 body.hq .active {
	}	
	.scroller, .scrollcontent {
		padding-top: 5px !important;
	}
   
   
   .infotable {
		height: 29px; /* 23%*/
		color: black;
	}
   
   
   .itemgenre {
   	display: none !important;
   }
   
   .itemtitle, .itemgenre {
     width: 95px !important;
	 font-size: 11px !important;
	 height: 30px !important;
	 line-height:15px !important;
   }
   
   body.sq .itemtitle, body.sq .itemgenre {
	   width: 108px !important;
   }
   
   .info {
   	margin-top: -10px !important;
   }
   
   .listing {
      margin-top: 25px;
      margin-bottom: 25px;
    }
}

@media screen and (max-width: 330px) {

   body.hq .scroller {
		padding-left: 30px !important;
		padding-top: 0px !important;
	}
@media (hover: hover) {
body.hq .listitem:hover  {
	}
}
	body.hq .active {
	}
	.scroller, .scrollcontent {
		padding-top: 5px !important;
	}
   
   
   .infotable {
	height: 39px; /* 23%*/
	color: black;
}
   .itemgenre {
   	display: none !important;
   }
   .itemtitle, .itemgenre {
     width: 85px !important;
	 font-size: 10px;
   }
}

@media screen and (max-height: 520px) {
	
	#catnav {
		width: 100% !important;
	}
	#getemucater {
		background-color: rgba(51, 51, 51, 1.0);
	}
	.catrow {
		display: table-cell !important;
		width: 25% !important;
	}
	.cat {
		display: inline-block !important;
	}
	:not(#getemucater).cat .cattxt {
		text-align: center !important;
	}
	.caticon {
		width: 40px !important;
		display: none !important;
	}
	.cattxt {
		font-size: 1.05em !important;
	}
	:not(#getemucater).cat .cattxt {
		
		padding-left: 4px !important;
		padding-right: 4px !important;
	}
	
	
}

h1 {
  color: #ffffff;
  font-size: 1.25em;
  font-size: 17px;
  text-shadow: 2px 2px 4px #000000;
}

.listing, .scrolllisting {
  width: 100%;
}

.activeshow {
	visibility: hidden;
}




.hidden {
	visibility: hidden !important;
}

/*
#remuoptsdiv>div>div:not(:first-of-type) {
	border-top: 1px solid #cccccc;
}
*/
#remuoptsdiv label {
	color :#0000ff;
	color: gold;
	cursor: pointer;
}
#remuoptsdiv label:hover {
	text-decoration: underline;
}
.listitem {
  /*border-radius: 2px;*/
  box-shadow: 0 0 16px #ff4444;
  /*background: #fafafa;*/
  background: linear-gradient(to top left, #bbbbbb 0%,#ffffff 100%);
  background: linear-gradient(to bottom right, #dddddd 0%,#ffffff 100%);
  background: linear-gradient(to bottom right, #aaaaaa 0%,#ffffff 100%);
  /*border: 1px solid #bbbbbb;*/
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
  
  text-align:center;

  
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
 /* overflow:visible;*/
}
body.hq .listitem {
	box-shadow: -10px 10px 10px rgba(0, 0, 0, 0.6);
}


body.hq:not(.animate) .listitem:active {
	  
	  box-shadow: 0px 0px 15px rgba(255, 255, 255, 1.0) !important;
	  
	  /*border: 1px solid #ffffff !important;	*/

}

@media (hover: hover) {
	body.hq .listitem:hover {
	  
	  box-shadow: 0px 0px 15px rgba(255, 255, 255, 1.0) !important;
	  
	  /*border: 1px solid #ffffff !important;	*/

		/*	   -webkit-transform: scale(1.28);
		   -ms-transform: scale(1.28);
		   -o-transform: scale(1.28);
		   transform: scale(1.28);
			transform: scale(1.28);*/
	 /* border: 1px solid #ffffff;*/
	  
	  position: relative;
	  z-index: 999999999;

	}
}

body.hq.animate.hovered .listitem {
	animation-name: none !important;
	

}


/*input[type=text].active, [txtbox].active {
  box-shadow: 0px 0px 45px rgba(255, 192, 0, 1.0) !important;
    
  animation: glowing-input 2000ms infinite;
}*/

body.hq .listitem.active {
	/*border: 1px solid white !important;*/
}

body.hq.animate .listitem:active, body.hq.animate .listitem:hover, body.hq.animate .listitem.active {

  box-shadow: 0px 0px 45px rgba(255, 255, 255, 1.0) !important;

    
  animation: doactivelrg 500ms ease 0s 1 normal forwards, glowing-item 2000ms infinite !important;

  
  position: relative;
  z-index: 999999999;

}
@media screen and (max-height: 520px), screen and (max-width: 900px)  {
	body.hq.animate.activeFrame .listitem:active, body.hq.animate.activeFrame .listitem:hover, body.hq.animate.activeFrame .listitem.active {
		
		  animation: doactive 500ms ease 0s 1 normal forwards, glowing-item 2000ms infinite !important;

/*		
			animation-name: doactive;
			animation-duration: 500ms;
			animation-fill-mode: forwards;
			animation-iteration-count: 1;*/
	}
}


@media (hover: hover) {
/*body.hq .listitem:hover {
  
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 1.0) !important;
  
  border: 1px solid #ffffff !important;	
  
  
  animation-name: doactive;
  animation-duration: 500ms;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;

  border: 1px solid #ffffff;
  
  position: relative;
  z-index: 999999999;

}*/



}

body.sq .listitem.hidden {
	visibility: hidden !important;
	width: 1px !important;
}
body.hq .listitem.hidden {
	visibility: hidden !important;
}


.scrollcontent{
	margin-top:40px;
}
body.sq.animate .listitem {
-moz-transition: all 0.2s;
-webkit-transition: all 0.2s;
transition: all 0.2s;
}

body.sq .active.listitem, body.sq .scrolllisting.hover .listitem:hover {

 
 /*box-shadow: 0px 0px 12px rgba(255, 355, 255, 0.70) !important;
 box-shadow: 0px 0px 8px rgba(0, 0, 0, 1.0) !important;*/

  -moz-transform: scale(1.04);
  -webkit-transform: scale(1.04);
  transform: scale(1.15);
  
  

}
.goldhilite {
	display: none;
}
.active .goldhilite {
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	/*background-color: rgba(255, 200, 0, 0.2);*/
	display:block;
	z-index:9;
}

.active .itemtitle {
	position: absolute;
	z-index: 99;
}

/*@keyframes gold {
  0% { background-color: rgba(255, 200, 0, 0.0); }
  40% { background-color: rgba(255, 200, 0, 0.3); }
  60% { background-color: rgba(255, 200, 0, 0.3); }
  100% { background-color: rgba(255, 200, 0, 0.0); }
}*/



.active .goldhilite {
	/*animation: gold 2000ms infinite;*/
	/*border: 1px dotted #ff3333 !important;*/
}
.active {
 /*animation: glowing 2000ms infinite;*/
}
body.hq .active {
 /*box-shadow: 0px 0px 15px rgba(255, 255, 255, 1.0) !important;*/

  /*-moz-transform: scale(1.04);
  -webkit-transform: scale(1.04);
  transform: scale(1.08) translateZ(30px);*/


}

.listitem.active {
/*linear-gradient(to bottom right, #aa0000 0%,#cc0000 100%);*/
  /*background: rgba(55, 55, 55, 1.0);*/
}

body .scrolllisting {
	text-align: left;
}

.priceblock {
  color: #ff0000;
  font-size: 0.85em;
  text-align:right;
  height: 100%;
  vertical-align: bottom;
  padding-right: 6px;
}

.ratingblock {
  color: #ffcc00;
  font-size: 1.2em;
  text-align:left;
  height: 100%;
  vertical-align: bottom;
  padding-left: 6px;
}

.itemgenre {
	display: none !important;
}

.itemtitle, .itemgenre {
  /*text-overflow: ellipsis;
  white-space: nowrap;*/
  /*text-overflow: -o-ellipsis-lastline;*/
  /*height: 35px;*/
  display: block;
  white-space: pre-line;
  overflow: hidden;

  color: #111111;
  /*text-shadow: -1px 1px 1px rgba(150, 150, 150, 1.0);*/
  position: absolute;
  margin-top: -10px !important;
  
  	 font-size: 14px;
	 height: 36px;
	 line-height:18px;
  
  /*-webkit-line-clamp: 2;
  display: -webkit-box;
  height: 3.6em;
  -webkit-box-orient: vertical;*/
}

#showcats, #showfilters {
  display:inline-block;
  margin-right: 36px;
}

#filterbar {
	width: 100%;
	display: none;
	background-color: rgba(238, 238, 238, 1.0);
	background-color: #333333;
	border-top: 1px solid #555555;
	border-bottom: 1px solid #555555;
	padding-top: 6px;
	padding-bottom: 6px;
	margin-left: auto;
	margin-right: auto;
}

.filterblock {
	display: inline-block;
	padding: 14px;
}

.ms-optgroup-label {
	color: #ff4444 !important;
}


	.ms-container {
		width: 600px !important;
	}
	
#rominfo hr {
	margin-top:40px;
    overflow: visible; /* For IE */
    height: 30px;
    border-style: solid;
    border-color: black;
    border-width: 1px 0 0 0;
    /*border-radius: 20px;*/
}
#rominfo hr:before { /* Not really supposed to work, but does */
    /*display: block;
    content: "";
    height: 30px;
    margin-top: -31px;
    border-style: solid;
    border-color: black;
    border-width: 0 0 1px 0;
    border-radius: 20px;*/
}

button:not(.active) {
	background: linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
    background-color: #f9f9f9;
	color: #666666 !important;
}
button {
		padding-top:10px !important;
		padding-bottom:10px !important;
		padding-left:30px !important;
		padding-right:30px !important;
		-webkit-appearance: none;
		font-size:18px;
		border-radius: 6px;
		
	/*-moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
    -webkit-box-shadow: inset 0px 1px 0px 0px #ffffff;*/
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    /*background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9));
    background: -moz-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
    background: -webkit-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
    background: -o-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
    background: -ms-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);*/
    border: 1px solid #acacac;
    display: inline-block;
    cursor: pointer;
    
    /* font-family: Arial; */
    /* font-weight: bold; */
    font-family: Bold;
    padding: 10px 16px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #ffffff;
	}
button[disabled] {
	color: #cccccc !important;
}
button.positive:not(.active) {
	 background: linear-gradient(to bottom, #74ad5a 5%, #68a54b 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#74ad5a', endColorstr='#68a54b',GradientType=0);
    background-color: #74ad5a;
	color: #ffffff !important;
}
button.positive {
padding-top:10px !important;
		padding-bottom:10px !important;
		padding-left:30px !important;
		padding-right:30px !important;
		-webkit-appearance: none;
		font-size:18px;
		border-radius: 6px;


	    /*-moz-box-shadow: inset 0px 1px 0px 0px #9acc85;
    -webkit-box-shadow: inset 0px 1px 0px 0px #9acc85;*/
    box-shadow: inset 0px 1px 0px 0px #9acc85;
    /*background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #74ad5a), color-stop(1, #68a54b));
    background: -moz-linear-gradient(top, #74ad5a 5%, #68a54b 100%);
    background: -webkit-linear-gradient(top, #74ad5a 5%, #68a54b 100%);
    background: -o-linear-gradient(top, #74ad5a 5%, #68a54b 100%);
    background: -ms-linear-gradient(top, #74ad5a 5%, #68a54b 100%);*/
    border: 1px solid #3b6e22;
    display: inline-block;
    cursor: pointer;
    
    /* font-family: Arial; */
    /* font-weight: bold; */
    font-family: Bold;
    padding: 10px 16px;
    text-decoration: none;
}
button.negative:not(.active)
{
	background: linear-gradient(to bottom, #aa0000 5%, #ff0000 100%);
	    background-color: #74ad5a;
		color: #ffffff !important;
}
button.negative {
padding-top:10px !important;
		padding-bottom:10px !important;
		padding-left:20px !important;
		padding-right:20px !important;
		-webkit-appearance: none;
		font-size:18px;
		border-radius: 6px;


	   /* -moz-box-shadow: inset 0px 1px 0px 0px #9acc85;
    -webkit-box-shadow: inset 0px 1px 0px 0px #9acc85;*/
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    /*background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #74ad5a), color-stop(1, #68a54b));
    background: -moz-linear-gradient(top, #74ad5a 5%, #68a54b 100%);
    background: -webkit-linear-gradient(top, #74ad5a 5%, #68a54b 100%);
    background: -o-linear-gradient(top, #74ad5a 5%, #68a54b 100%);
    background: -ms-linear-gradient(top, #74ad5a 5%, #68a54b 100%);*/
    
    border: 1px solid #880000;
    display: inline-block;
    cursor: pointer;
    
    /* font-family: Arial; */
    /* font-weight: bold; */
    font-family: Bold;
    padding: 10px 16px;
    text-decoration: none;
}
.slideleft,.slideright {
	display: none;
}

.scrolllisting.hover .slideleft {
	position: absolute;
	left:5px;
	display: inline-block;
	width:50px;
	height:50px;
	background-color: rgba(255,255,255, 0.75);
	border-radius: 50%;
	top: 50%;
    transform: translate(0%, -50%);
	z-index: 9;
	border: 1px solid #000000;
	box-shadow: 3px 3px #000000;
	cursor: pointer;
}

.scrolllisting.hover .slideright {
	position: absolute;
	right:5px;
	display: inline-block;
	width:50px;
	height:50px;
	background-color: rgba(255,255,255, 0.75);
	border-radius: 50%;
	top: 50%;
    transform: translate(0%, -50%);
	z-index: 9;
	border: 1px solid #000000;
	box-shadow: -3px 3px #000000;
	cursor: pointer;
}

.slideright img, .slideleft img {
	position: absolute;
	left: 50%;
	top: 50%;
    transform: translate(-50%, -50%);
}

.slideright:hover, .slideleft:hover {
	background-color: rgba(255,255,255, 1.0) !important;
}

#rominfo li input[type='text'], #rominfo li select, #rominfo li [txtbox] {
		height: auto !important;
}

@media screen and (max-width: 1000px) {
	.ms-container {
		width: 500px !important;
	}

	#rominfo ul {
		padding-left: 0px !important;
	}
	
	#rominfo fieldset li label {
		width: 5px !important;
		display: block !important;
		padding-bottom: 6px !important;
	}
	
	#rominfo li input[type='text'], #rominfo li [txtbox], #rominfo li select {
		/*width: 100% !important;*/
	}

	
	#rcmdline, #rsavedfiles, #remuoptsdiv {
		width: 100% !important;
	}

	
	
	
}

@media screen and (max-width: 500px) {
	.ms-container {
		width: 400px !important;
	}
}


@media screen and (max-width: 400px) {
	.ms-container {
		width: 100% !important;
	}
}

.scrolllisting {
		text-align: center;
		position: relative;
		
}

.scroller {
	overflow-x: scroll;
	overflow-y: hidden;
	
	-webkit-overflow-scrolling: touch;
}
body.sq .scroller {
	padding-left: 10px;
	padding-top: 20px;
}
body.hq .scroller {
	padding-left: 50px;
}
body.hq .scrollcontent {
	padding-top: 10px;
	padding-bottom: 10px;
}
.cover {
				text-align:center; position: relative; cursor: pointer;
				}
				.deleterom {
				display: inline-block; position: absolute; top: 0px; right: 0px; background-color: rgba(255, 0, 0, 0.5); border-bottom-left-radius: 6px; cursor: pointer; color: #ffffff; padding: 6px; padding-left: 9px; padding-right: 9px; font-size: 12px; font-weight: bold;
				}
				.search {
				cursor: pointer; box-sizing: border-box;width: 30px; height: 30px; display: inline-block; position: absolute; top: 0px; left: 0px; padding: 8px; background-color: rgba(0, 0, 0, 0.5); color: #ffffff; border-bottom-right-radius: 6px;
				}
				.search>span {
				box-sizing: border-box;display: inline-block; width: 15px; height: 15px;  background-image: url(../upload/search.png);  background-size: contain;
				}
				.itemtitle {
				margin: 0px; 
				}
				.itemgenre {
				font-size: 0.8em; margin-top: 3px;
				}
				.info {
				margin-left: auto; margin-right: auto;  display: block; background-color: #ccccff; cursor: pointer; width: 100%;
				}

				.info>span {
				display:inline-block; margin-left: auto; margin-right: auto;
				}
				
#rominfo .fmmode {
	background: linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9',GradientType=0);
    background-color: #f9f9f9;
    border: 1px solid #acacac;
    cursor: pointer;
    color: #666666 !important;
	text-align: center; padding: 18px; 
	    text-shadow: 0px 1px 0px #ffffff;
}
.pathbtn {
	background: linear-gradient(to bottom, #d9d9d9 5%, #c9c9c9 100%);
	color: #666666 !important;
	text-shadow: 0px 1px 0px #ffffff;
}
#rominfo .fmmode.selected {
background: linear-gradient(to bottom, #e9e9e9 5%, #ffffff 100%);
    background-color: #f9f9f9;
    margin: 0px;
    cursor: pointer;
	color: #aa0000 !important;
}

select:not(.active):not(#emuspeed):not(#frameskip):not(#netdelay) {
	background: linear-gradient(to bottom, #f9f9f9 5%, #d9d9d9 100%) !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9',GradientType=0);
    background-color: #f9f9f9;
    border: 1px solid #acacac !important;
    cursor: pointer;
    color: #333333 !important;
	text-align: center;
/*	padding: 18px; */
	    text-shadow: 0px 1px 0px #ffffff;
		margin-bottom: 0 !important;
		box-shadow: inset 0px -1px 0px 0px #333333;
}
button {
	box-shadow: inset 0px -1px 0px 0px #333333 !important;
}
input[type=submit] {
	cursor: pointer;
}
select:active,button:active,input[type=submit] {
	position: relative;
	top: 1px;
}
.fmblock {
	max-width: 140px;
	white-space: nowrap;
}
button,input,select {
	outline: none;
}

@media screen and (min-width: 100px) {
	.fmblock {
		max-width: 200px !important;
	}
	.fmtext {
		font-size: 14px !important;
	}
	.fmicon {
		width: 40px  !important;
		margin-right:8px !important;
	}
}


.cfgline.comment {
	color: gray;
}
.cfgline.header {
	color: lightgreen;
}
.cfgline .key {
	color: #ffbbbb;
	white-space: pre;
}
.cfgline .value {
	color: #ff8888;
	white-space: pre;
}
.cfgline {
	white-space: pre;
}
.fileedit {
	transform: translateZ(0); 
}
[txtbox],[txtarea] {
	outline: none;
}
[txtbox=searchtxt] {
	font-size: 1.0em;
	line-height: 2em;
	vertical-align:middle;
}
[txtbox=searchtxt]:empty:before {
  content: 'Search your library...';
  display: block; /* For Firefox */
  color: #888888;
}

[txtbox=searchtxt].remote:empty:before {
  content: attr(data-content);
  display: block; /* For Firefox */
  color: #888888;
}

.profile-container {
	display: inline-table;
	width: 140px;
	height: 160px;
	margin: 15px;
	background-color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	border-radius: 8px;
}
body .profile-container {
	width: calc(180px * var(--scalex)) !important;
	width: calc(180px) !important;
}
body .user-icon {
	/*transform: scaleX(var(--scalex))  !important;*/
	margin-left: auto;
	margin-right: auto;
}
.profile-container:hover {
	
	background-color: rgba(255, 0, 0, 0.45);
}
.user-icon {
	width: 140px;
	height: 140px;
	display: block;
	background-size: 100% 95%;
	background-position: 0px 6px;
	background-repeat: no-repeat;
}
.user-icon.male {
	background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/User_icon_2.svg/2000px-User_icon_2.svg.png');
}
.user-icon.female {
	background-image: url('http://www.nerdwallet.com/blog/wp-content/uploads/2012/09/Office-Girl-yellow1.png');
}

@media screen and (max-height: 520px) {
.profile-container {

	width: 120px;
	height: 100px;
}
.user-icon {
	width: 120px;
	height: 80px;
}
}

.user-name {
	display: block;
	margin: 8px;
	margin-top: 16px;
	color: white;
    text-shadow: 2px 2px 4px #000000;
}
body.lib-only-hidden>.container:not(#libcont):not(.iframe),body.lib-only-hidden>.wrapper {
	display: none !important;
}
body.lib-only-hidden #libcont {
	position: absolute !important;
	left: 0px !important;
	right: 0px !important;
	top: 0px !important;
	bottom: 0px !important;
	height: 100% !important;
}



/*#downloadfile {
	display: none;
}*/

.filecontainer {
	border: 1px solid #aaaaaa;
	border: 0;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	padding: 0px;
}

.filestrip-wrapper {
	position: relative;
	height: 47px;
}
.filestrip {
	vertical-align: bottom;
    /*width: 100%;*/
	display: block;
	position: absolute;
	left:0px;
	right:0px;
	width: auto;
    white-space:nowrap; 
	overflow-x: auto;
	overflow-y: hidden;
	
	padding: 0px;
	border-left: 0px solid #000000;
	border-bottom: 0px solid #000000;
	padding-top: 4px;
}

.filetoggle {
	display: inline-block;
    /*background: linear-gradient(to top, #e9e9e9 5%, #ffffff 100%);*/
    background-color: #444444;
    border: 1px solid #000000;
	margin-right: 4px;
	box-shadow: inset 0px 2px 0px 0px #ffffff;
	/*border-left: 0;*/
	border-bottom: 0;
	border-top: 0;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
    /*border-bottom: none;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;*/
   /* box-shadow: inset 0px 1px 0px 0px #ffffff;*/
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0px;
    cursor: pointer;
    color: #555555;
    color: #ffffff;
	/*height: 37px;*/
    /*text-shadow: 0px 1px 0px #ffffff;*/
}

.filetoggle.selected {
	background-color: #777777;
	box-shadow: inset 0px 2px 0px 0px gold;
	color: #ffffff;
	text-shadow: 0px 1px 0px #000000;
}
.filetoggle:active {
	top: 1px;
	position: relative;
}


.sectionstrip-wrapper {
	position: relative;
	height: 42px;
}
.sectionstrip {
	vertical-align: top;
    /*width: 100%;*/
	display: block;
	position: absolute;
	left:0px;
	right:0px;
	width: auto;
    white-space:nowrap; 
	overflow-x: auto;
	overflow-y: hidden;

	padding: 0px;
	border-left: 0px solid #000000;
	border-top: 0px solid #000000;
	padding-bottom: 4px;
}

.sectiontoggle {
	display: inline-block;
	vertical-align: top;
    /*background: linear-gradient(to top, #e9e9e9 5%, #ffffff 100%);*/
    background-color: #444444;
    border: 1px solid #000000;
	margin-right: 4px;
	box-shadow: inset 0px -2px 0px 0px #ffffff;
	/*border-left: 0;*/
	border-bottom: 0;
	border-top: 0;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
    /*border-bottom: none;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;*/
   /* box-shadow: inset 0px 1px 0px 0px #ffffff;*/
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0px;
    cursor: pointer;
    color: #555555;
    color: #ffffff;
	/*height: 36px;*/
    /*text-shadow: 0px 1px 0px #ffffff;*/
}

.sectiontoggle.active, .filetoggle.active {
    border: 1px solid #000000 !important;
	border-bottom: 0 !important;
	border-top: 0 !important;
}

.sectiontoggle.selected {
	background-color: #777777;
	box-shadow: inset 0px -2px 0px 0px gold;
	color: #ffffff;
	text-shadow: 0px 1px 0px #000000;
}
.sectiontoggle:active {
	top: -1px;
	position: relative;
}

.sectiontoggle:not(.selected):hover {
	box-shadow: inset 0px -2px 0px 0px red;	
}

.filetoggle:not(.selected):hover {
	box-shadow: inset 0px 2px 0px 0px red;	
}

.rawfileopts, .sectionstrip {
	/*display: none;*/
}

.optblock:not(:last-child) {
	border-bottom:1px dotted rgba(255,255,255,0.8);
}
.optblock.rawfileopts {
	border-top:1px dotted rgba(255,255,255,0.8);
}
.selected .remote_username {
	color: white !important;
}
.listing:last-child .scrolllisting {
	 margin-bottom: 15px;
}
/*.arrow-up {
  width: 0; 
  height: 0; 
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  
  border-bottom: 20px solid #FFFFFF;
}*/

.arrow-up {
	position: absolute;
	background: #ffffff;
	border-left: 4px solid #000000;
	border-right: 4px solid #000000;
	width: 0;
	margin-top:20x;
	animation: glowing-black 3000ms infinite;
}
.arrow-up:after, .arrow-up:before {
	bottom: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow-up:after {
	border-color: rgba(255, 255, 255, 0);
	border-bottom-color: #ffffff;
	border-width: 20px;
	margin-left: -20px;
}
.arrow-up:before {
	border-color: rgba(68, 68, 68, 0);
	border-bottom-color: #000000;
	border-width: 24px; /* 20 + border size */
	margin-left: -24px; /* 20 + border size */
}


.arrow-down {
	position: absolute;
	background: #ffffff;
	border-left: 4px solid #000000;
	border-right: 4px solid #000000;
	width: 0;
	animation: glowing-black 3000ms infinite;
}
.arrow-down:after, .arrow-down:before {
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow-down:after {
	border-color: rgba(255, 255, 255, 0);
	border-top-color: #ffffff;
	border-width: 20px;
	margin-left: -20px;
}
.arrow-down:before {
	border-color: rgba(68, 68, 68, 0);
	border-top-color: #000000;
	border-width: 24px; /* 20 + border size */
	margin-left: -24px; /* 20 + border size */
}


.arrow-left {
	position: absolute;
	background: #ffffff;
	border-top: 4px solid #000000;
	border-bottom: 4px solid #000000;
	height: 0;
	/*margin-left:21px;*/
	margin-left:3px;
	animation: glowing-black 3000ms infinite;
}
.arrow-left:after, .arrow-left:before {
	right: 100%;
	top: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow-left:after {
	border-color: rgba(255, 255, 255, 0);
	border-right-color: #ffffff;
	border-width: 20px;
	margin-top: -20px;
}
.arrow-left:before {
	border-color: rgba(68, 68, 68, 0);
	border-right-color: #000000;
	border-width: 24px; /* 20 + border size */
	margin-top: -24px; /* 20 + border size */
}


.arrow-right {
	position: absolute;
	background: #ffffff;
	border-top: 4px solid #000000;
	border-bottom: 4px solid #000000;
	height: 0;
	animation: glowing-black 3000ms infinite;
}
.arrow-right:after, .arrow-right:before {
	left: 100%;
	top: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow-right:after {
	border-color: rgba(255, 255, 255, 0);
	border-left-color: #ffffff;
	border-width: 20px;
	margin-top: -20px;
}
.arrow-right:before {
	border-color: rgba(68, 68, 68, 0);
	border-left-color: #000000;
	border-width: 24px; /* 20 + border size */
	margin-top: -24px; /* 20 + border size */
}

/*.arrow-down {
  width: 0; 
  height: 0; 
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  
  border-top: 20px solid #FFFFFF;
}

.arrow-right {
  width: 0; 
  height: 0; 
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  
  border-left: 20px solid #FFFFFF;
}

.arrow-left {
  width: 0; 
  height: 0; 
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent; 
  
  border-right:20px solid #FFFFFF; 
}*/

#rompopup_bubble {
	border: 3px solid #000000; 
	position: relative; 
	left: 0px; 
	max-width: 400px; 
	display: table; 
	width: 100%; 
	height: 100%; 
	opacity: 1.0;  
	box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.9);  
	border-radius: 15%; 
	z-index:999;
	padding-top: 10px;
	padding-bottom: 10px;
}
body #rompopup_bubble {
	/*max-width: 325px; */
	max-width: calc(260px * max(var(--scalex), 1.0));
	max-height: 260px;
	
}
#statecontainer {
	border-radius: 3px;
	/*border-radius: 6px;
	box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.8);*/
}

#rompopup_bubble.down {
	background-image: linear-gradient(to bottom, rgba(200, 200, 200, 1.0) 0%, rgba(255, 255, 255, 1.0) 100%);
}
#rompopup_bubble.up {
	background-image: linear-gradient(to top, rgba(200, 200, 200, 1.0) 0%, rgba(255, 255, 255, 1.0) 100%);
}
#rompopup_bubble.right {
	background-image: linear-gradient(to left, rgba(200, 200, 200, 1.0) 0%, rgba(255, 255, 255, 1.0) 100%);
}
#rompopup_bubble.left {
	background-image: linear-gradient(to right, rgba(200, 200, 200, 1.0) 0%, rgba(255, 255, 255, 1.0) 100%);
	/*box-shadow: -18px 18px 18px rgba(0, 0, 0, 0.9); */
}

#rompopup_bubble {
	animation: glowing-white 3000ms infinite;
}

#statecontainer {
	border: 2px solid rgba(255, 255, 255, 1.0);
	/*border: 2px solid #000000;*/
}

#statecontainer * {
	-webkit-user-drag: none;
}


#rompopup_overflow:not(.modal) {
	pointer-events:none;
	background-color: rgba(0, 0, 0, 0.0);
}
#rompopup_overflow.modal {
	background-color: rgba(0, 0, 0, 0.85);
	cursor: pointer;
}
#rompopup_overflow.modal * {
	cursor: pointer;
}

#statecontainer video, #newgame {
	display: inline-block;
}



.listitem {
	border-radius: 1px !important;
	box-shadow: 0px 10px 10px rgba(0,0,0,0.95) !important;
	
}
.listitem_edge {
	position: absolute;
	left:0px;
	top:0px;
	height: 100%;
	width: 100%;
	/*box-shadow: inset 0px 0px 6px rgba(255,255,255,1.0);
	border: 1px solid rgba(255,255,255,0.5);*/
	box-shadow: inset 0px 0px 12px rgba(72, 61, 61, 0.83);
	box-shadow: inset 0px 0px 4px rgba(255, 255, 255, 0.7), inset 0px 0px 12px rgba(72, 61, 61, 0.83);
	box-shadow: inset 0px 0px 4px rgba(255, 255, 255, 0.75);
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.03) 40%, rgba(0, 0, 0, 0.3) 100%);
	/*box-shadow: inset 0px 0px 12px rgba(183, 194, 194, 0.83);*/
	/*border-left: 1px solid rgba(183, 194, 194, 0.83);
	border-bottom: 1px solid rgba(183, 194, 194, 0.83);*/
	pointer-events: none;
}

.cover {
	height: 100% !important;
}
/*
	width: 146px !important;
	height: 158px !important;
*/
:root {
	--sizescalex: 1.35;
	--sizescaley: 1.35;
}

@media screen and (max-height: 650px) {
	/*:root {
		--sizescalex: 0.85;
		--sizescaley: 0.85;
	}*/
}
@media screen and (max-width: 700px) {
	:root {
		--sizescalex: 1.0;
		--sizescaley: 1.0;
	}
}
@media screen and (max-height:450px) {
	:root {
		/*--sizescalex: 0.75;
		--sizescaley: 0.75;*/
		--sizescalex: 0.8;
		--sizescaley: 0.8;
	}
}

.scrollcontent {
    margin-top: calc(38px * var(--scaley) * var(--sizescaley)) !important;
	margin-bottom: calc(20px * var(--scaley) * var(--sizescaley)) !important;
}

h1.systitle {
    font-size: calc(min(max(18px * var(--scaley) * var(--sizescaley), 11px), 20px)) !important;
    padding-top: calc(10px * var(--scaley) * var(--sizescaley)) !important;
    padding-bottom: calc(10px * var(--scaley) * var(--sizescaley)) !important;
}

html body .scroller {
	padding-top: calc(20px) !important;
	padding-bottom: calc(0px * var(--scaley) * var(--sizescaley)) !important;
	padding-left: calc(10px * var(--scalex) * var(--sizescalex)) !important;
	padding-right: calc(10px * var(--scalex) * var(--sizescalex)) !important;
}
html body .scroller .listitem {
	margin-right: calc(12px * var(--scalex) * var(--sizescalex)) !important;
	margin-left: calc(12px * var(--scalex) * var(--sizescalex)) !important;
	margin-bottom: calc(12px * var(--scaley) * var(--sizescaley)) !important;
	box-shadow: 0px calc(10px * var(--scaley) * var(--sizescaley)) calc(10px * var(--scaley) * var(--sizescaley)) rgba(0,0,0,0.65) !important;
}

html body .scroller[sys="MS-DOS"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(188px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Game Boy Advance"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(160px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Philips CD-i"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(160px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Arcade"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(188px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Nintendo 3DS"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(160px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Nintendo 64"] .listitem {
	width: calc(205px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(160px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Nintendo DS"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(160px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Nintendo Entertainment System"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex))!important;
	height: calc(188px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Nintendo Gamecube"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(188px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Nintendo Wii"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(188px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Sega CD"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(188px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Sega Genesis"] .listitem {
	width: calc(160px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(188px * var(--sizescaley) * var(--scaley)) !important;
}
html body .scroller[sys="Super Nintendo Entertainment System"] .listitem {
	width: calc(205px * var(--sizescalex) * var(--scalex)) !important;
	height: calc(160px * var(--sizescaley) * var(--scaley)) !important;
}
