@charset "utf-8";

html {
  background-image: url("background.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}


/* 4) Body styles */
body {
  font-family: Verdana, Geneva, sans-serif;
  color: rgb(91, 91, 91);
  background-color: ivory;

  margin: 0;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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


/* 5) Header section */
header {
  text-align: center;
  padding: 20px;
}

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


/* 6) h2 */
h2 {
  font-size: 1.3em;
}

/* 7) Nav section */
nav {
  background-color: rgb(205, 220, 230);
  padding: 15px;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  margin: 0 10px;
}

nav a {
  text-decoration: none;
  display: block;
  background-color: rgb(197, 206, 221);
  line-height: 2.8em;
  padding: 0 14px;
  color: rgb(91, 91, 91);
}

nav a:hover,
nav a:focus {
  background-color: rgb(7, 93, 146);
  color: ivory;
}


/* 10) main padding */
main {
  padding: 20px;
  margin-top: 35px;
}


/* 11) img styles */
main > img {
  width: 25%;
  padding: 25px;
  float: right;   /* requirement #8 */
}



/* 12) body > footer */
body > footer {
  background-color: rgb(205, 220, 230);
  color: rgba(40, 40, 40, 0.6);
  font-weight: bold;
  font-size: 0.9em;
  line-height: 3em;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  clear: both;

}

/* 13) Change list marker on education page list */
.school-list {
  list-style-type: square;
}

/* Gallery */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery img {
  width: calc(25% - 10px);
  height: auto;
  display: block;
}

/* Tablet: 2 columns */
@media only screen and (max-width: 1024px) {
  .gallery img {
    width: calc(50% - 10px);
  }
}

/* Mobile: 1 column */
@media only screen and (max-width: 768px) {
  .gallery img {
    width: 100%;
  }
}

/*  TABLE (Week 5)
    */

.tableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 15px;
}

table {
  width: 100%;
  border: 10px double rgb(9, 153, 243);
  border-collapse: collapse;
}

th, td {
  height: 25px;
  border: 1px solid gray;
  padding: 10px;
  vertical-align: top;
}

thead, tfoot {
  background-color: rgb(7, 93, 146);
  color: rgb(255, 255, 255);
}

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

