/* Attempting to fix mobile portrait width view */
html {
	/*position:fixed;*/ /* body */
	width:100%;
}

g[id^='tg'] {
	cursor:pointer;
}

.previewBounds {
	stroke-width:3px;
	stroke:red;
	background:none;
}

#mapControls2 {
	position: fixed;
    right: 1vw;
}

#mapControls2 button:hover,
#mapControls2 button:focus {
	cursor:pointer;
}

#downloadMap {
	display: inline-block;
    position: fixed;
    left: 10vw;
    bottom: 3vh;
    color: white;
    padding: 1px 8px;
    box-sizing: border-box;
	cursor:pointer;
}

#downloadMap span {
	font-size:120%;
}

#downloadMap a,
#downloadMap a:hover,
#downloadMap a:active,
#downloadMap a:visited {
	color:white;
	text-decoration:none;
}

#downloadMap:hover,
#downloadMap:focus {
	background-color:#ff6c10;
	color:#e9e5e5;
}

div#mapControls2 button {
    color: white;
    font-size: 102%;
    padding: 5px 15px;
    background-color: #ff893f;
    border-radius: 5px;
    /* border: solid 1px white; */
    margin: 8px 40px;
    border-style: solid;
    /* margin-left: 43px; */
}

div#mapControls2 button:hover, div#mapControls2 button:active {
    background-color: #dddddd;
	border-color: #dddddd;
}

/* Hamburger menu */
.container {
	display: inline-block;
	cursor: pointer;
	position:absolute;
	top: 50%;
	transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-o-transform: translateY(-50%);
}

.bar1, .bar2, .bar3 {
	width: 35px;
	height: 5px;
	background-color: white;
	margin: 6px 0;
	transition: 0.4s;
}

.change .bar1 {
	transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
	transform: translate(0, -11px) rotate(45deg);
}

/* Sidebar nav menu */
.sidenav {
	height: 60%;
	width: 0;
	position: fixed;
	z-index: 3;
	/*top: 0;*/
	bottom:0;
	left: 0;
	background-color: #293b5a;
	overflow-x: hidden;
	transition: 0.5s;
	padding-top: 60px;
}

.sidenav.right {
	left:unset;
	right:0;
	background-color:#11111199;
}

.sidenav.right a {
	color: #ff893f;
}

.sidenav a {
	padding: 8px 8px 8px 32px;
	text-decoration: none;
	/*font-size: 25px; */
	color: #818181;
	display: block;
	transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color:white;
}

#mapControlWidget {
	position:fixed;
	bottom:0;
	right:0;
	height:20px;
	width:20px;
	background-color:red;
}


@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 4vw;}
}


@media only screen and (max-width:1100px){
	#svgContainer {
		width:100vw;
		height:40vh;
	}
	
	#svgContainer svg {
		width:100vw;
		height:40vh;
	}
	
	body {
		/*font-size:30px;*/
	}
	
	#vendorListing {
		max-height:80vh;
		overflow-y:scroll;
	}
	
	#vendorListing h3 {
		font-size:26px;
	}

	#vendorTarget {
		width: 100vw;
		height:50vh;
		padding-bottom:100px;
		box-sizing:border-box;
		border:none;
		border-top:dashed 2px black;
	}
}

/* For Mobile Portrait View */
@media screen and (max-device-width: 480px) 
	and (orientation: portrait) {

	
	body, .sidenav {
		font-size:4vw; /* TODO: find better styling for the other headers, etc. */
	}
	
	
	div#mapControls, svg#svgMapControls {
		background-color:white;
		width:25vw;
		height:25vw; 
		right:5px;
		bottom:5px;
	  } 
	
}


/* For Mobile Landscape View */
@media screen and (max-device-width: 640px) 
    and (orientation: landscape) {
    .gfg-div {
        width: 400px;
        height: 200px;
        background-color: cyan;
        color: black;
    }
}
