@charset "utf-8";

html {
  background-color: hsl(0, 0%, 91%);
}

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

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

h2 {
  font-size: 1.3em;
}

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

/*nav {
  background-color: hsl(209, 59%, 92%);
  padding: 15px;
  text-align: center;
}

nav a {
  padding: 0 10px;
  text-decoration: none;
  color: hsl(210, 65%, 20%);
}

nav a:hover {
  text-decoration: underline;
  color: hsl(279, 38%, 67%);
}
*/
nav ul {
  list-style: none;
  list-style-image: none;
  margin: 0;
  padding: 0;
}
nav li {
  display: block;
}
nav a {
  text-decoration: none;
  display: block;
  background-color: rgba(74, 100, 63);
  color: rgba( 238, 189, 103);
  line-height: 2.8em;
  text-align: center;
}
nav a:hover {
  background-color: rgba(143, 190, 146);
  color: white;
}
main {
  padding: 20px 20px;
  margin-top: 35px;
}

main img {
  height: auto;
  display: block;
  margin: 0 auto;
}
header img {
  width: 100%;
}

body > footer {
  background-color: rgba(209,244,220);
  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;
  clear:both;
}

main ol {
  list-style-type: upper-roman;
}

table{
  width: 100%;
  border: 10px double rgb(209, 244, 220);
  border-collapse: collapse;
}

th,td{
  height: 35px;
  border: 1px solid gray;
  padding: 10px;
}

thead, tfoot{
  background-color: rgb(74, 100, 63);
  color:white;
}

tbody tr:nth-of-type(even){
  background-color: rgb(197,206,221)
}

@media only screen and (max-width: 768px) {

  body {
  width: 100%;
  margin: 0;
  }
  nav li {
    float: none;
    width: 100%;
    font-size: x-large;
  }
  nav a {
    border-bottom: 1px solid black;
  }
  main img {
    width: 90%;
    float: none;
  }

  table, tbody, tr, td, th{
  display: block;
}

thead,tfoot{
  display: none;
}

tbody td{
  position: relative;
  padding-left: 40%;
  overflow: visible; /* Provided from the lecture */
  height: auto; /* Provided from the lecture */
}

td::before{
  content: attr(data-label);
  position: absolute;
  top: 0px;
  left: 0px;
  padding: 10px; /* Provided from the lecture, book says 5px */
  width: 40%;
  white-space: nowrap; /* Provided from the lecture */
}
}

@media only screen and (min-width: 769px) {
  html {
    background-image: url("Background.jpg");
  }
  nav li {
    width: 20%;
    float: left;
  }
  main img {
    width: 25%;
    float: right;
    padding: 25px;
  }
}
.gallery{ 
  display: flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: center;
}
.gallery img {
  width: 23%;
  height:auto;
}
@media only screen and (max-width: 1024px) {
  .gallery img{
    width: 48%;
  }
}
@media only screen and (max-width: 768px) {
  .gallery img {
    width: 90%;
  }
}

