@media screen and (min-width: 1025px){
	.itemDiv{
		width:30%;
		height:33em;
		overflow-y:auto;
	}
}
@media screen and (min-width: 721px){
	/* Special rules if big screen */
	#mainBox {
		width: 60.4vw;
		min-height: 80vh;
		margin: 0.3vw;
		margin-bottom: 0;
		padding: 0 2vw;
		float: left;
		overflow-x: hidden;
	}
	.sideBox {
		width: 29.7vw;
		margin: 0.3vw 0.25vw;
		margin-bottom: 0;
		padding: 0 1vw;
		max-width:380px;
	}
	#headerBoxText{
		display:block;
	}
	.itemDiv{
		width:47%;
		height:33em;
		overflow-y:auto;
	}
}
@media screen and (max-width: 720px){
	/* Special rules if small screen */
	.hideonmobile{
		display:none;
	}
	#mainBox {
		width: 98.7vw;
		min-height: 50vh;
		margin: 0.15vw;
		padding: 0 1vw;
		overflow-x: hidden;
	}
	.sideBox {
		width: 98.7vw;
		margin: 0.15vw;
		padding: 0 1vw;
		word-break: break-all;
	}
	#headerBoxText{
		display:none;
	}
	.itemDiv{
		width:97%;
	}
}
@media screen and (min-width: 1025px){
	.itemDiv{
		width:30%;
		height:31em;
		overflow-y:auto;
	}
}
h1,h2,h3,h4,h5,h6{
	clear: left;
	margin-top: 0.3em;
	margin-bottom: 0.5em;
}
#headerBoxSpaceHolder{
	width: 100%;
	height:3em;
	margin:0.15vw;
}
#SiteGRMenuBar{
	position: fixed;
	right: 3px;
	top:3px;
	z-index: 2;
}
#SiteGRMenuBar img{
    height: 2em;
    width:2em;
    float:right;
    border: solid blue 1px;
    border-radius: 2px;
    cursor: pointer;
    margin:0.1em;
    background: rgba(255,255,255,0.6);
}
#SiteGRMenu{
	min-width: 300px;
	display: none;
	clear: right;
	background: white;
	border: blue solid 1px;
	color: blue;
	padding: 0.3em;
	margin: 3px;
	text-align: right;
}
#fbStatusDiv{
	display: none;
}
#headerBox{
	background: rgba(173, 216, 230, 0.85);
	background: var(--headerbox-bkg);
	border: 1px solid brown;
	border: 1px solid var(--headerbox-border);
	border-bottom: none;
	top:0;
	left:0;
	position: fixed;
	max-width:1200px;
	width: 98vw;
	height:3em;
	margin:0.15vw;
	padding: 0 1.5vw;
	z-index: 1;
}
#footerBox{
	background: rgba(173, 216, 230, 0.85);
	background: var(--headerbox-bkg);
	border: 1px solid brown;
	border: 1px solid var(--headerbox-border);
	border-top: none;
	color: white;
	max-width:1200px;
	width: 99vw;
	margin:0.15vw;
	padding: 0 1.5vw;
}
#footerBox a{
	color: white;
}
.AdminBox{
	border: 1px blue solid;
	border-bottom: none;
}
#headerBoxText{
	font-size: 150%;
	font-style: oblique;
	text-shadow: 1px 1px black;
	margin-top: 0.3em;
	margin-left: 0.3em;
	float:left;
	color: blue;
	color: var(--headerbox-color);
}
#LogoDiv{
	height:2.9em;
	width:5.8em;
	float:left;
	background-size: 100%;
	border: none;
}
#mainBox{
	top:3em;
	left:0;
	background: rgba(255, 255, 255, 0.85);
	background: var(--mainbox-bkg);
	border: 1px solid brown;
	border: 1px solid var(--mainbox-border);
	border-right: none;
	max-width:767px;
}
.sideBox{
	top:3em;
	float:left;
	left:0;
	background: rgba(255, 255, 255, 0.85);
	background: var(--sidebox-bkg);
	border: 1px solid brown;
	border: 1px solid var(--mainbox-border);
	border-right: none;
	min-height:10em;
	overflow:hidden; 
}
.pSection{
	background: var(--mainbox-bkg);
	clear: both;
}
/* Nav Menu Style*/
nav ul {
	display: none;	
}
.btn-menu {
	display: block;
	float: left;
	margin:0.8em;
	border: 0;
	width: 40px;
	height: 25px;
	background-color: transparent;
	cursor: pointer;
	display: block;
	position: relative;
}
.btn-menu:focus {
	outline: 1px dotted #E0AE19;	
}
.show_menu .btn-menu:focus {
	outline: none;	
}
.btn-menu .text {
	display: block;
	text-indent: 150%;
	white-space: nowrap;
	overflow: hidden;	
}
.btn-menu .bar,
.btn-menu .bar:before,
.btn-menu .bar:after {
	display: block;
	position: absolute;
	width: 40px;
	height: 5px;
	background-color: #fff;
	background-color: var(--headerbox-color);
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.btn-menu .bar {
	top: 10px;
	left: 0;	
}
.btn-menu .bar:before {
	position: absolute;
	content: '';
	top: 10px;
	left: 0;
}
.btn-menu .bar:after {
	position: absolute;
	content: '';
	top: -10px;	
	left: 0;
}
.show .btn-menu .bar {
	background-color: transparent;	
}
.show .btn-menu .bar:before {
	top: 0;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);	
}
.show .btn-menu .bar:after {
	top: 0;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);	
}
.mobile-nav {
	height: 0;
	max-height: 90vh;
	position: absolute;
	top: 3em;
	left: 0;
	width:auto;
	max-width:100vw;
	min-width:20em;
	overflow: auto;
	background: lightblue;
	background-color: var(--nav-bkg);
	border: 1px solid green;
	border: 1px solid var(--nav-border);
	border-top: none;
	border-bottom: none;
	-webkit-transition: height 0.3s ease-in-out;
	transition: height 0.3s ease-in-out;	
}

.mobile-nav a {
	text-decoration: none;
	color: #fff;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
	font-size: 18px;
	text-indent: 10px;
	display: block;
	line-height: 42px;
	border-bottom: 1px solid var(--nav-border);	
}

.mobile-nav a:focus,
.mobile-nav a:hover,
.mobile-nav a:active {
	background-color: grey;	
	background-color: var(--nav-focus);	
}

.mobile-nav li:first-child a {
	border-top: 1px solid var(--nav-border);	
}
.show .mobile-nav {
	height: auto;
}
.show .mobile-nav ul{
	display:block;
}
.mobile-nav .dd + ul {
	height: 0;
	overflow: hidden;
	background-color: grey;
	background-color: var(--nav-sub-bkg);
	-webkit-transition: height 0.3s ease-in-out;
	transition: height 0.3s ease-in-out;	
}

.mobile-nav .dd + ul a {
	text-indent: 30px;	
}

.mobile-nav .dd + ul a:focus,
.mobile-nav .dd + ul a:hover,
.mobile-nav .dd + ul a:active {
	background-color: lightgrey;
	background-color: var(--nav-sub-focus);	
}

.mobile-nav .dd:after {
	content: '\25BC';
	margin-left: 5px;
	font-size: 12px;	
}

.mobile-nav .dd-show + ul {
	height: auto;	
}

/* Loader animation */
.loader {
  border: 0.3em solid lightgrey;
  border-radius: 50%;
  border-top: 0.3em solid darkblue;
  width: 1em;
  height: 1em;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

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

/* Store editor*/
#storeHeader{
	color:blue;
	border-bottom:blue 1px solid;
	width:98%;
}
#storeHeader select{
	padding-bottom: 0.3em;
	border:none;
	background:none;
	color:blue;
}
#storeHeader div{
	margin-right: 0.3em;
	float:left;
}
#itemsHolder{
	min-height: 32em;
	clear: both;
}
.storeForm,{
	background: lightgrey;
	border: red solid 1px;
}
.storiesForm{
	border: red solid 1px;
	margin-left :0.5em;
}
.formRow{
	margin: 0.1em;
	padding: 0.2em;
	border-bottom: grey 1px solid;
}
.itemDiv{
	padding:1%;
	margin: 0.5% 0.5% 0.5% 0;
	float:left;
	border: solid 1px darkblue;
	overflow-x: hidden;
	background: var(--mainbox-bkg);
}
.storyDiv{
	border:solid 1px;
	border-top: none;
	border-right:none;
	margin-left:1vw;
	margin-bottom:0.5em;
}
.itemDiv img, .storyDiv img{
	border: blue 1px solid;
	margin: 2px;
	width: 32px;
	height: 24px;
	cursor: pointer;
}
.storyDiv img:first-of-type {
	float:left;
	width:50%;
	max-width: 320px;
	margin-right:1em;
	height: auto;
	border: 160px;
	background-size: contain;
	cursor: default;
}
.itemDiv img:first-of-type {
	width:80%;
	max-width: 320px;
	height:auto;
	background-size: contain;
	cursor: default;
}
#selectedItem{
	width:98%;
	height:auto;
}
.editItemDiv{
	background:lightgrey;
	width:98%;
	height:auto;
	padding:1%;
	margin: 0.5% 0.5% 0.5% 0;
	float:left;
}
