@charset "utf-8";

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

h1 {
  color: black;
  text-shadow: 4px 4px 5px grey;
  text-align: center;
}

h2,
h3 {
  color: rgb(87, 46, 0);
  text-shadow: 4px 4px 5px grey;
}

h2.Gallery,
h2.Video {
  text-align: center;
}

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

nav a {
  padding-left: 10px;
  padding-right: 10px;
  color: ivory;
  display: block;
  background-color: rgb(87, 46, 0);
  line-height: 2.8em;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.25s ease-in-out 0.25s,
    color 0.25s ease-in-out 0.25s,
    font-size 0.5s ease-in-out;
}

nav a:hover {
  text-decoration: underline;
  color: ivory;
  background-color: grey;
  font-size: 1.2em;
}

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

header img {
  width: 100%;
}

.MPCol1 h2,
.MPCol2 h2,
.MPCol3 h2 {
  text-align: center;
}

.MPCol2 li {
  text-align: center;
  list-style: none;
}

.InteriorProjects h2,
.OutdoorProjects h2 {
  text-align: center;
}

/* Flexbox styles for images */
div.gallery {
  display: flex;
  flex-flow: wrap;
  align-items: center;
}

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

div.imgGallery img {
  width: 100%;
}

/* Table Settings */
table.HoursOfOperation {
  background-color: Ivory;
  width: 100%;
  border: 10px solid rgb(87, 46, 0);
  border-collapse: collapse;
}

table.HoursOfOperation th,
table.HoursOfOperation td {
  border: 3px solid grey;
}

table.HoursOfOperation thead {
  background-color: grey;
  color: black;
}

table.HoursOfOperation tbody th {
  background-color: grey;
  color: white;
  text-align: left;
}

table.HoursOfOperation tbody td {
  text-align: center;
}

table.HoursOfOperation tfoot {
  background-color: grey;
  color: black;
}

table.HoursOfOperation col#Day {
  width: 40%;
}

table.HoursOfOperation col#Hours {
  width: 60%;
  text-align: center;
}

body > footer {
  background-color: rgb(87, 46, 0);
  color: ivory;
  font-weight: bold;
  font-size: 0.9em;
  line-height: 1.5em;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  clear: both;
}

main hr {
  clear: both;
}

/* Form Settings */
form input:focus,
form select:focus,
form textarea:focus {
  background-color: rgb(220, 255, 220);
}

form input#zip:focus:valid,
form input#phone:focus:valid {
  background: rgb(220, 255, 220) url(rb_valid.png) bottom right/contain
    no-repeat;
}

form input#zip:focus:invalid,
form input#phone:focus:invalid {
  background: rgb(255, 232, 233) url(rb_invalid.png) bottom right/contain
    no-repeat;
}

body > footer {
  background-color: rgb(87, 46, 0);
  color: ivory;
  font-weight: bold;
  font-size: 0.9em;
  line-height: 1.5em;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  clear: both;
}

body > footer > a {
  color: forestgreen;
}

/* Mobile Devices */
@media only screen and (max-width: 768px) {
  header {
    padding: 0;
  }

  main > img {
    width: 90%;
    float: none;
    padding: 0px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

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

  /* Table Settings */
  table,
  tbody,
  tr,
  td,
  th {
    display: block;
  }

  thead {
    display: none;
  }

  .MainPage {
    flex-direction: column;
  }

  table.HoursOfOperation tbody th {
    background-color: grey;
    color: white;
    text-align: center;
  }

  tbody td {
    text-align: center;
  }

  /* Forms */
  form {
    width: 100%;
    font-size: large;
  }

  fieldset {
    width: 100%;
    padding: 5px;
    margin: 0;
  }

  input,
  select {
    position: inherit;
    display: block;
    height: 50px;
    padding: 5px;
    width: 90%;
  }

  label {
    position: inherit;
    display: block;
    height: 50px;
    width: 90%;
  }

  textarea {
    height: 100px;
    width: 95%;
  }

  input[type="submit"],
  input[type="reset"] {
    float: none;
    width: 90%;
    margin: 10px;
    font-size: 1.2em;
  }
}

/* Tablet Devices */
@media only screen and (min-width: 769px) and (max-width: 1100px) {
  header {
    padding: 0;
  }

  main > img {
    width: 90%;
    float: none;
    padding: 0px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

  div.imgGallery {
    flex-basis: 48%;
    max-width: 50%;
  }

  /* Table Settings */
  table,
  tbody,
  tr,
  td,
  th {
    display: block;
  }

  thead {
    display: none;
  }

  .MainPage {
    flex-direction: column;
  }

  table.HoursOfOperation tbody th {
    background-color: grey;
    color: white;
    text-align: center;
  }

  tbody td {
    text-align: center;
  }

  /* Forms */
  form {
    width: 100%;
    font-size: large;
  }

  fieldset {
    width: 100%;
    padding: 5px;
    margin: 0;
  }

  input,
  select {
    position: inherit;
    display: block;
    height: 50px;
    padding: 5px;
    width: 90%;
  }

  label {
    position: inherit;
    display: block;
    height: 50px;
    width: 90%;
  }

  textarea {
    height: 100px;
    width: 95%;
  }

  input[type="submit"],
  input[type="reset"] {
    float: none;
    width: 90%;
    margin: 10px;
    font-size: 1.2em;
  }
}

/* Desktop Devices */
@media only screen and (min-width: 1101px) {
  html {
    background-image: url(background.jpg);
    background-repeat: round;
    background-position: top left;
  }

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

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

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

  .MainPage {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .Services {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .InteriorProjects,
  .OutdoorProjects {
    padding: 20px;
  }

  /* Forms */
  form {
    width: 90%;
  }

  fieldset {
    width: 90%;
    padding: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  input,
  select {
    display: block;
    position: relative;
    left: 30%;
    padding: 5px;
    height: auto;
    width: 60%;
  }

  label {
    display: block;
    position: absolute;
    padding: 5px;
    width: 30%;
  }

  input[type="radio"] {
    display: inline;
    position: inherit;
    left: 0;
    width: auto;
  }

  label.radio {
    display: inline;
    position: inherit;
  }

  textarea {
    margin-top: 25px;
    height: 100px;
    width: 95%;
  }

  input[type="submit"],
  input[type="reset"] {
    display: block;
    float: left;
    left: 0;
    text-align: center;
    width: 40%;
    padding: 10px;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 10px;
  }

  footer {
    clear: both;
  }
}
