@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 {
  width: 25%;
  float: right;
  padding: 25px;
  height: auto;
  display: block;
  margin: 0 auto;
}

img{
  float: right;
  margin: 0 0 1em 1em;
}

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

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)
}


/* Form Style from Prof Shearer lecture*/

form{
  width:90%
}

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

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;
}

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

input:focus, select:focus, textarea:focus{
  background-color: rgb(74, 100, 63);
}

input#name:focus:valid,
input#zip:focus:valid,
input#phone:focus:valid,
input#mail:focus:valid {
  background: rgb(74, 100, 63); url(rb_valid.png) bottom right/contain no-repeat;
}

input#name:focus:invalid,
input#zip:focus:invalid,
input#phone:focus:invalid,
input#mail:focus:invalid {
  background: rgb(74, 100, 63); url(rb_invalid.png) bottom right/contain no-repeat;
}

@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 */
}

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%;
    left: 0;
  }

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

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

@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%;
  }
}

