body {
  width: 90%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: white;
  background-color: rgba(60,60,60,0.9);
}

header img {
  width: 100%;
  display: block;
  object-fit: cover;
}

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

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

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

nav a:hover {
  background-color: #1abc9c;
  font-size: 1.2em;
  transition:
    background-color 0.5s ease-in 0.2s,
    color 0.5s ease-in 0.2s,
    font-size 1s ease;
}

main {
  margin-top: 70px;
  padding: 20px;
}
main img {
  max-width: 100%;
  height: auto;
}

.about-photo {
  float: right;
  width: 25%;
  max-width: 320px;
  margin-left: 20px;
  margin-bottom: 10px;
}

body > footer {
  clear: both;
  padding: 15px;
  text-align: center;
  color: white;
  background-color: rgba(60,60,60,0.95);
}

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

.imgGallery {
  flex: 23%;
  max-width: 23%;
  height: 200px;
  overflow: hidden;
  padding: 4px;
}

.imgGallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vacations-title {
  padding-left: 20px;
}

.family-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.family-table th,
.family-table td {
  border: 1px solid black;
  padding: 10px;
  text-align: left;
}

.family-table thead {
  background-color: #e0e0e0;
}

.family-table thead th {
  color: black;
  font-weight: bold;
}

.family-table tbody td {
  color: white;
}

.family-table tfoot {
  background-color: #f4f4f4;
  font-style: italic;
}

.family-table tfoot td {
  color: #555;
}

form {
  width: 90%;
}

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

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

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

label.radio {
  position: relative;
  left: 30%;
  width: auto;
  display: inline-block;
}

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

input:focus,
select:focus,
textarea:focus {
  background-color: rgb(220,255,220);
}

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

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

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

@media only screen and (max-width: 600px) {
  .family-table thead,
  .family-table tfoot {
    display: none;
  }

  .family-table,
  .family-table tbody,
  .family-table tr,
  .family-table td {
    display: block;
    width: 100%;
  }

  .family-table tr {
    margin-bottom: 15px;
    border: 1px solid #555;
    padding: 10px;
    background-color: #ffffff;
  }

  .family-table tbody td {
    border: none;
    padding: 6px 0;
    color: #000000;
  }

  .family-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #333333;
  }
}

@media only screen and (max-width: 480px) {
  body {
    width: 100%;
    margin: 0;
  }

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

  nav a {
    line-height: 2.2em;
    padding: 8px 0;
  }

  header img {
    height: 130px;
  }

  .about-photo {
    float: none;
    display: block;
    width: 90%;
    max-width: 100%;
    margin: 15px auto;
  }

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

@media only screen and (min-width: 769px) {
  html {
    background-image: url("background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

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