@charset "utf-8";

body {
  font-family: Verdana, Geneva, sans-serif;
  color: rgb(91, 91, 91);
  background-color: ivory;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

header {
  text-align: center;
  padding: 20px;
}

h1, h2 {
  text-shadow: gray 4px 6px 5px;
}

h2 {
  font-size: 1.3em;
}
/*
nav {
  background-color: #2c3e50;
  padding: 15px;
  text-align: center;
}

nav a {
  padding-left: 10px;
  padding-right: 10px;
  text-decoration: none;
  color: #ecf0f1;
}

nav a:hover {
  text-decoration: underline;
  color: #3498db;
}
*/
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: block;
  width: 20%;
  float: left;
}

nav a {
  display: block;
  background-color: #2c3e50;
  color: #ecf0f1;
  line-height: 2.8em;
  text-decoration: none;
  text-align: center;
}

nav a:hover {
  background-color: #34495e;
  color: #f1c40f;
}

main {
  padding: 20px;
  margin-top: 35px;
}

main > img {
  width: 25%;
  padding: 25px;
  float: right;
}

header img {
  width: 100%;
  height: auto;
}

body > footer {
  clear: both;
  background-color: #2c3e50;
  color: rgba(102, 102, 102, 0.6);
  font-weight: bold;
  font-size: 0.9em;
  line-height: 3em;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
}

ul {
  list-style-type: square;
}

div.gallery{
  display: flex;
  flex-flow: wrap;
}

div.imgGallery{
  flex: 23%;
  max-width: 25%;
  padding: 0 4px;
}

div.imgGallery img{
  width: 100%;
}

@media only screen and (max-width: 1100px) {
  div.imgGallery{
    flex: 48%;
    max-width: 50%;
  }
}

@media only screen and (max-width: 768px) {
  html {
    background-color: #83b5e7;
  }

  body {
    width: 100%;
    margin: 0;
  }

  main > img {
    width: 90%;
    float: none;
  }

  nav li {
    float: none;
    font-size: x-large;
    width: 100%;
    display: block;
  }

  nav a {
    border-bottom: 1px solid black;
  }

  div.imgGallery{
  flex: 100%;
  max-width: 100%;
  }
}

@media only screen and (min-width: 769px) {
  html {
  background-color: #83b5e7;
  background-image: url('SpaceBackground.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  }
}