/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: lightcyan;
  color: midnightblue;
  font-family: Arial, Sans-Serif;
  line-height: 1.5;
}
nav {
  background-color: midnightblue;
  color: lightcyan;
  text-align: center;
  word-spacing: 5px;
  font-size: 15px;
  border-radius: 25px;
  top: 50px;
  background: linear-gradient(90deg, darkblue 0%, midnightblue 25%, midnightblue 75%, darkblue 100%);
}
h1 {
  color: midnightblue;
  text-shadow: 1px 1px 0px magenta, 4px 4px 0px cyan;
  font-weight: bolder;
}
footer {
  text-align: center;
  text-size-adjust: 5px;
}

/* Dropdown Button */
.dropbtn {
  background-color: midnightblue;
  color: white;
  padding: 8px;
  font-size: 15px;
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: lightcyan;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: midnightblue;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: cyan;}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {background-color: magenta;}


img, video, iframe, canvas {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

em {
	color: midnightblue;
}

div.gallery {
	margin-top: 30px;
}

div.gallery ul {
	list-style-type: none;
	margin-left: 35px;
}

/* animation */
div.gallery ul li, div.gallery li img {
	-webkit-transition: all 0.1s ease-in-out;
  	-moz-transition: all 0.1s ease-in-out;
  	-o-transition: all 0.1s ease-in-out;
  	transition: all 0.1s ease-in-out;
}

div.gallery ul li {
	position: relative;
	float: left;
	width: 400px;
	height: 300px;
	margin: 10px;
	padding: 10px;
	z-index: 0;
  image-orientation: from-image;
  object-fit: cover;
  border-radius: 25px;
  align-content: center;
  flex-wrap: wrap;
}

/* Make sure z-index is higher on hover */
/* Ensure that hover image overlapped the others */
div.gallery ul li:hover {
	z-index: 5;
}

/* Image is position nicely under li */
div.gallery ul li img {
	position: absolute;
	left: 0;
	top: 0;
	border: white;
	padding: 5px;
	width: 400px;
	height: 300px;
	background: white;
  object-fit: cover;
  border-radius: 25px;
  align-content: center;
  align-self: center;
  align-items: center;
}

div.gallery ul li img:hover {
	width: 200%;
	height: 200%;
	margin-top: auto;
	margin-left: auto;
	top: 0%;
	left: 0%;
  object-fit: cover;
  border-radius: 10px;
  align-content: center;
  border: 3px solid midnightblue;
}

/* Responsive hack */
@media only screen and (min-width: 499px) and (max-width: 1212px) {
	.wrapper {
		width: 500px;
	}
}

@media only screen and (max-width: 498px) {
	.wrapper {
		width: 300px;
	}

	div.gallery ul {
		list-style-type: none;
		margin: 0;
	}
}