
html {
	overflow-x: hidden;
}
body {
	margin: 0;
	padding: 0;
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr;
	grid-template-columns: 1fr;
	grid-auto-rows: minmax(200px, auto);
	background-color: #8a9190;
	width: 100%;
}

.centerwrap {
	position: relative;
	text-align: center;
	color: white;
}
.center {
	position: absolute;
	top: 50%;
	bottom: 50%;
	-webkit-transform: translate(-50%, -50%);
	    -ms-transform: translate(-50%, -50%);
	        transform: translate(-50%, -50%);
}

.banner {
	background-image: url("jdsnes26.png");
	display: inline-block;
	background-position: center;
	padding: 30px;
	background-repeat: no-repeat;
	
}

.background {
	position: relative;
	background-image: -webkit-gradient(linear, left top, right top, from(#00807b), to(#3808c9));
	background-image: -webkit-linear-gradient(left, #00807b, #3808c9);
	background-image: -o-linear-gradient(left, #00807b, #3808c9);
	background-image: linear-gradient(to right, #00807b, #3808c9);
	width: 100vw;
}

h1 {
	background-color: rgba(153, 177, 216, 0.7);
	text-align: center;
 	font-family: 'Press Start 2P', cursive;
 	font-size: 20px;
 	color: #101011;
 	position: relative; 
 	background-position: center;
 	padding: 15px;
 	bottom: 40px;
 	width: 80vw;
}

ul li{
	list-style: none;
	padding: 5px;
	border: 2px gray solid;
	border-radius: 15px;
	background: -webkit-gradient(linear, left top, right top, from(#536362) ,to(#485366));
	background: -webkit-linear-gradient(left, #536362 ,#485366);
	background: -o-linear-gradient(left, #536362 ,#485366);
	background: linear-gradient(to right, #536362 ,#485366);
	margin: 3px;
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
}
.navi {
	display: none;
}

.navi ul{
	position: relative;
	right: 15px;
}

li:hover {
	background: #161919;
	color: #d4e2f9;
}

li a:visited:hover {
	color: #d4e2f9;
}


li a:visited {
	color: #d4e2f9;
}

a{
	display: block;
	text-decoration: none;
}

p{
	margin: 10px 5%;
    position: relative;
    font-size: 1.1em;
}

footer{
	padding-left: 10px;
	background-color: #485366;
	height: 40px;
	color: white;
	width:100%;	
}

.counter{
    padding-left: 10px;
    padding-top: 5px;
}

img {
	position: relative;
	width: 50%;
	margin: 10px;
	padding: 5px;
	border: 2px gray solid;
	background-color: #8f939b;
}

.tooltip
{
  text-decoration: none;
  position: relative;
  display: inline;
}
 
 
.tooltip span { /* in order to place an image a container is needed to hold the image like this span*/
  display: none;
  border-radius: 6px;
  color: black;
  background: white; 
}
 
.tooltip span img {
    float: left;
    width: auto;
    margin: 0 auto;
}
 
 
.tooltip:hover span {
  cursor: pointer;
  display: block;
  position: absolute;
  left: 30%;
  z-index: 1000;
  max-width: 230px;
  border: 1px solid black;
  overflow: hidden;
  padding: 8px;
}

.games-grid {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr;
	grid-template-columns: 1fr;
	width: 95vw;
}

section {
	border: 2px gray solid;
	border-radius: 15px;
	margin: 10px;
	background-color: #9DADC7;
}


.navi ul {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: distribute;
	    justify-content: space-around;
	text-align: center;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
}
.flex-wrap { /* add the following code to make images align left to right */
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	-webkit-box-align: end;
	    -ms-flex-align: end;
	        align-items: flex-end;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-direction: row;
	        flex-direction: row;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
}

.flex-wrap img {
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
	width: 15%;
	-ms-flex-item-align: end;
	    align-self: flex-end;

} /* all the way to here */
section h3 {
	margin: 5px;
}
.figure {
	display: inline-block;
	float: right;
	width: 30%;
	overflow: hidden;
}
.figure img {
	width: 90%;

}
figcaption {
	float: right;
	clear: right;
	text-align: right;
	width: 70%;
	padding-bottom: 10px;
	font-weight: bold;
	margin: 0px 30px;
}
button img {
	width: 20px;
	border: none;
	background-color: #8a9190;
	position: relative;
	top: 20px;
	left: 10px; 
}
button {
	display: inline-block;
	background-color: #8a9190;
	border: none;
	position: relative;
	overflow: hidden;
	padding: 0px;
	outline: none;
}

.imgcaption{
    position: relative;
    float: left;
    clear: left;
    padding:0 10px 0px 10px;
    bottom: 10px;
    max-width: 53%;
    font-weight: bold;
    z-index: 1;
}

.btm-img-caption{
    position: relative;
    float: right;
    clear: right;
    padding: 0 10px 15px 10px;
    font-weight: bold;
    max-width: 50%;
}
/* Media Queries*/
@media (min-width: 600px) {
.btm-img-caption {
    max-width: 30%;
}
    .banner{
        background-image: url("gamebanner.jpg");
        background-size: 100% auto;
    }
    .mypicture{
        width: 20%;
    }
    
.imgcaption{
    max-width: 50%;
    margin: auto 2% auto 2%;
    }
    
.navi {
	display: block;
}

.banner {
	position: relative;
	left: 30px;
}

body {
-ms-grid-columns: (1fr)[3];
grid-template-columns: repeat(3, 1fr);
}

header {
	-ms-grid-column: 1;
	    grid-column-start: 1;
	-ms-grid-column-span: 3;
	grid-column-end: 4;
}
.main-wrap {
	-ms-grid-column: 1;
	    grid-column-start: 1;
	-ms-grid-column-span: 3;
	grid-column-end: 4;
}


footer{
	-ms-grid-column: 1;
	    grid-column-start: 1;
	-ms-grid-column-span: 3;
	grid-column-end: 4;
}

.banner{
	background-position: center;
}

.sega{
	width: 30%;
}
    .consolewars{
        margin-left: 30px;
    }

.games-grid{
	-ms-grid-columns: (1fr)[3];
	grid-template-columns: repeat(3, 1fr);
	-ms-grid-column: 1;
	-ms-grid-column-span: 3;
	grid-column: 1 / 4;
	-ms-flex-pack: distribute;
	    justify-content: space-around;
	position: relative;
	margin: 0 auto;
}

.secgrid {
	display: -ms-grid;
	display: grid;
	-ms-grid-rows: 2fr, 1fr;
	grid-template-rows: 2fr, 1fr;
}
section img {
	-ms-grid-column-align: center;
	    justify-self: center;
}
div img:hover {
	-webkit-transform:scale(1.5);
	    -ms-transform:scale(1.5);
	        transform:scale(1.5);
}
    img{
        margin: 15px 2% 15px 2%;
    }
	 p{
        font-size: 1.9vw;
    }
    }
