html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
	margin: 0;
	background-color: #e9ebee;
	font-family: Lucida Grande, Tahoma, Verdana;
}

a:link {
	color: white;
}
a:visited {
	color: white;
}
a:hover {
	color: white;
}
a:active {
	color: white;
}


.common_items_images img {
	height:0px;
	width:0px;
	display:none;
	visibility:hidden;
}

.viewContent {
	font-size: 0.9em;
	font-family: inherit;
	background-color: white;
	color: #4b4f56;
}
.viewContent input[type=text] {
    width: 30em;
	height: 1em;
    padding: 1em 1em;
    margin: 0.1em 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.viewContent input[type=button] {
    background-color: #1140aa;
    color: white;
    padding: 1em 1em 1em 1em;
    margin: 0.8em 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
		font-family: inherit;
		font-size: 0.8em;
		font-weight: 400;
}


.viewContent input[type=button]:hover {
	background-color: #2c56b1;
}

.viewContent select {
	background-color: #1140aa;
	color: white;
	font-weight: 400; 
	border: 1px solid #4b4f56;
	background: #1140aa;
	padding: 1px 1.2em;
	font-size: 1em;
	border: 1px solid #ccc;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: url("arrow.png") 96% / 15% no-repeat #1140aa;

}


#logo {
	position:absolute;
	width: 400px;
	height: 100px;
	left: 0px;
	top: 0px;
	visibility: visible;
	margin: 0;
	padding: 0;
	background-image: url("logo.png");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	z-index: 3;
}

#leftContentHolder {
	position: absolute;
	z-index: 0;
	width: 45%;
	height: auto;
	bottom: 0;
	top:0;
	left: 0.5%;
	padding-top: 100px;
}
#rightContentHolder {
	position: absolute;
	z-index: 0;
	width: auto;
	height: auto;
	bottom: 0;
	top:0;
	left: 46%;
	right:301px;
	padding-top: 100px;
}

#tabs {
	position:relative;
	width: 100%;
	min-width:100%;
	width: auto !important;
	height: 7%;
	height: auto !important;
	left: 0%;
	top: 0px;
	visibility: visible;
	margin: 0;
	padding: 0;
	z-index: 3;
	overflow: hidden;
	white-space: nowrap;
}
#tabs2 {
	position:relative;
	width: 100%;
	min-width:100%;
	width: auto !important;
	height: 7%;
	height: auto !important;
	left: 0%;
	top: 0px;
	visibility: visible;
	margin: 0;
	padding: 0;
	z-index: 3;
	overflow: hidden;
	white-space: nowrap;
}
#threeJsContainer {
	position: relative;
	width: 100%;
	height: 91%;
	left: 0%;
	display: block;
	background-color: #000000;
}

.canvas-button-list
{
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	right: 0;
	top: 0;
	position: absolute;
}

.canvas-button-wrapper
{
	z-Index:1;
	text-align: right;
	color:#FFFFFF; 
	font-size:1em; 
	line-height:1.6em; 
	height: 1.25em; 
	padding:0; 
	margin:0 0 0.15em 0; 
	border:0;
}

.canvas-button-wrapper img
{
	display:inline-block; 
	height:100%; 
	border:0; 
	padding:0; 
	margin:0; 
	cursor: pointer;
}

#ManualViewsD {
	position: relative;
	width: 100%;
	height: 91%;
	left: 0%;
	margin: 0;
	padding: 0;
	display: none;
}
#HelperViewOverlayD {
	position: relative;
	width: 100%;
	height: 91%;
	left: 0%;
	margin: 0;
	padding: 0;
	display: none;
}

#ExternalItems {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overflow-x: hidden;
}
#addItem {
	position: relative;
	width: 100%;
	height: 40%;
	left: 0%;
	border-radius: 7px;
	text-align: center;
	display:block;
}
#share {
	position: relative;
	width: 100%;
	height: 40%;
	left: 0%;
	border-radius: 7px;
	text-align: center;
	line-height: 2em;
	overflow-y: auto;
	overflow-x: hidden;
	display:none;
}
#share .content-wrapper
{
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 0.5em 2em;
}
.share-input-wrapper
{
	width: 100%;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}

.invalid-input:invalid
{
	border-color: red !important;
}

#share label
{
	flex-shrink: 0;
	margin-right: 0.5em;
}
#share input[type="button"]
{
	flex-shrink: 0;
}
#share input[type="text"]
{
	flex-shrink: 1;
	margin-right: 0.5em;
}
#commonItems {
	position: relative;
	width: 100%;
	height: 40%;
	left: 0%;
	border-radius: 7px;
	text-align: center;
	display:none;
}

#savedItemSearch {
	position: relative;
	width: 100%;
	height: 40%;
	left: 0%;
	border-radius: 7px;
	text-align: center;
	line-height: 2em;
	overflow-y: auto;
	overflow-x: hidden;
	display:none;
}
#savedItemSearch .result-container
{
	display: flex;
	align-items: baseline;
	border-top: 1px solid lightgray;
	padding: 0 0.3em;
}
#itemSearch {
	position: relative;
	width: 100%;
	height: 40%;
	left: 0%;
	border-radius: 7px;
	text-align: center;
	overflow-y: auto;
	overflow-x: hidden;
	display:none;
}
#about {
	position: relative;
	width: 100%;
	height: 40%;
	left: 0%;
	border-radius: 7px;
	text-align: center;
	display:none;
}
#saved {
	position: relative;
	width: 100%;
	height: 40%;
	left: 0%;
	border-radius: 7px;
	text-align: center;
	display:none;
	overflow-y: auto;
	overflow-x: hidden;
}

#saved input[type=button] {
    width: 30px;
    background-color: #1140aa;
    color: white;
    padding: 5px 5px 5px 5px;
    margin: 1px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
		font-family: inherit;
		font-size: 0.8em;
		font-weight: 400;
}

#saved input[type=button]:hover {
	background-color: #2c56b1;
}

#saved table {
	    border-collapse: collapse;
	    width: 100%;
			font-size: 0.8em;
	}

#saved	th, td {
	    text-align: center;
	    padding: 4px;
			color: #4b4f56;
	}

#saved tr:nth-child(even){background-color: #f2f2f2}

#saved	th {
	    background-color: #365899;
	    color: white;
			font-size: 1em;
	}

#rightContainer {
	position: absolute;
	right: 0px;
	height: 250px;
	width: 300px;
	top: 100px;
	background-color: transparent;
	text-align: center;
	visibility: visible;
	margin: 0;
	padding: 0;
}
#topContainer {
	position: absolute;
	right: 0px;
	height: 90px;
	width: 728px;
	top: 0px;
	background-color: transparent;
	z-index:2;
	text-align: center;
	visibility: visible;
}
#itemsList {
	position: relative;
	width: 100%;
	height: 50%;
	left: 0%;
	background-color: #e9ebee;
	overflow-y: auto;
	overflow-x: hidden;
	display:block;
	border-radius: 5px;
	max-height:50%;
}
.itemEntry {
	position: relative;
	left: 0px;
	top: 0px;
	border: 5px solid #CCCCCC;
	border-radius: 5px;
	padding: 5px;
	margin: 10px;
	color: #e9ebee;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
}

.post-container {
	border: 1px solid #CCCCCC;
	background-color: #FFFFFF;
	border-radius: 5px;
	overflow: auto;
	color: #365899;
	font-weight: 500;
	font-size: 0.8em;

}
.post-thumb {
	float: left;
	width: 25%;
	text-align:center;
	display: block;
	vertical-align:middle;
}
.post-content {
	display: inline-block;
	width: 50%;
	text-align:center;
	vertical-align:middle;
}
.post-add-button {
	float: right;
	width: 60px;
	height: 9px;
	background-color: #1140aa;
	color: white;
	padding: 1px 1px 20px 1px;
	margin: 13px 7px 10px 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.8em;
	font-weight: 400;
	text-align: center;
}



ul.tab {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: white;
}

/* Float the list items side by side */
ul.tab li {float: left;}

/* Style the links inside the list items */
ul.tab li a {
	display: inline-block;
	color: #365899;
	text-align: center;
	padding: 0.9em 0.9em;
	text-decoration: none;
	transition: 0.2s;
	font-size: 0.8em;
	border-right: 1px solid #e9eaed;
	font-family: inherit;
	font-weight: 600;

}

/* Change background color of links on hover */
ul.tab li a:hover {background-color: #ddd;}

/* Create an active/current tablink class */
ul.tab li .active {
	background-color: #ddd;
	color: #4b4f56;
}

#footer {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 0;
	color:#4b4f56;
	font-family: inherit;
	font-size: 12px;
	background-color: #e9ebee;
	padding: 0 6px;
	overflow: hidden;
	white-space:nowrap;
}

#footer a {
	color: #4b4f56;
}
#footer a:hover{
	color: #365899;
}

/* ----------- iPhone 5,5s,6,6+ ----------- */

/* Portrait */
@media only screen
  and (min-device-width: 0px)
  and (max-device-width: 737px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {

		ul.tab li a{
			font-size: 2.17em;
			padding: .70em .70em;
		}

		.viewContent{
			font-size: 2.1em;
		}
		.viewContent input[type=text] {
			width: 40%;
			height: 10%;
    		padding: 10px 10px;
    		margin: 20px 0;
    		font-size: 0.9em;
		}
		.viewContent input[type='checkbox'] {
			-webkit-appearance:none;
			width:30px;
			height:30px;
			background:white;
			border-radius:3px;
			border:2px solid #4b4f56;
		}

		.viewContent input[type='checkbox']:checked {
			background: #41619e;
		}

		.viewContent input[type=button] {
			width: 20%;
			-webkit-appearance: none;
    		-webkit-border-radius:0;
   			 border-radius:0;
		}
		#saved input[type=button] {
		    width: 70%;
		    -webkit-appearance: none;
    		-webkit-border-radius:0;
   			 border-radius:0;
		}

		#tabs{
			font-size:0.9em;
		}
		
		#tabs2{
			font-size:0.9em;
		}

		.post-add-button {
			height:40px;
			width:80px;
		}

		.itemEntry {
			font-size: 2.2em;
		}

		#footer {
			visibility:hidden;
		}

		#saved table {
			font-size: 1em;
		}

		#logo {
			visibility:hidden;
		}

		.canvas-button-wrapper
		{
			height: 4em;
			margin-bottom: 0.5em;
		}
		.canvas-button-description
		{
			font-size: 4em;
		}

}

/* Landscape , for small devices*/
@media only screen
  and (min-device-width: 0px)
  and (max-device-width: 737px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation:landscape) {
		#logo{
			display: none;
		}
		body{
			overflow: hidden;
		}
		#rightContentHolder{
			padding-top:0px;
		}
		#leftContentHolder {
			padding-top:0px;
		}
		#saved input[type=button] {
		   	width: 70%;
		    -webkit-appearance: none;
    		-webkit-border-radius:0;
   			border-radius:0;
		}
		.viewContent input[type=button] {
				width: 20%;
				-webkit-appearance: none;
    		-webkit-border-radius:0;
   			border-radius:0;
		}
		.viewContent input[type=text] {
				width: 40%;
				height: 13%;
    		padding: 10px 10px;
    		margin: 10px 0;
    		font-size: 0.9em;
		}
		#footer {
			visibility:hidden;
		}
		.canvas-button-wrapper
		{
			height: 2em;
			margin-bottom: 0.5em;
		}
		.canvas-button-description
		{
			font-size: 2em;
		}
	}

/*
for other resultions, refer to the things above, then just modify them accrodingly while checking how they look using
the chrome tool for responsive design.
*/

@media screen and (min-width: 0px) and (max-width: 1200px){
	#rightContainer { display: none; }
	#topContainer { display: none; }
	#rightContentHolder { right: 1px; }
}

@media all and (orientation:portrait) {
	#rightContentHolder { width: 100%; left:0%; padding-top: 0px; }
	#leftContentHolder { width: 100%; left:0%; top:70%; min-height:100%; }
	#itemsList { max-height: 25%; }
	#logo{display:none;}
	#footer{display:none;}

}
