* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

header {
  background: white;
}

header img {
  display: block;
  margin: 1em auto;
  object-fit: scale-down;
  width: 100%;
}

footer {
  text-align: right;
  font-size: small;
//  text-shadow: 0px 0px 10px white, 0px 0px 10px white;
}

nav {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  margin: 10px;
  z-index: 10;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
  border-radius: 0.5em;
//  border: 1px solid #333;
}
nav li {
  float: left;
}
nav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
nav a:link, nav a:visited {
  color: white;
}
nav a:hover {
  background-color: #333;
}
nav a.active {
  background-color: dodgerblue;
}

h2 {
  color: dodgerblue;
}

article {
  padding: 1em 10%;
}
article h2:first-child {
  margin-top: 0;
}
article li + li {
  margin-top: 0.5em;
}
article ul {
  list-style-image: url('images/icons/li.svg');
}

#rock7 {
  background-color: lightblue;
  text-align: center;
}

#intro {
  color: white;
  font-size: larger;
  position: relative;
  background-color: rgba(0,0,0,0.6);  /* dark filter for bkgd images */
}
#intro:before { /* to put black background for animation to start from */
  background: black;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}
#intro img.bknd {
  animation: bkgdAnim 30s linear 0s infinite;
  position: absolute;
  object-fit: cover;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  will-change: opacity;
}
#intro img.bknd:nth-of-type(1) {animation-delay: 0s}
#intro img.bknd:nth-of-type(2) {animation-delay: 10s}
#intro img.bknd:nth-of-type(3) {animation-delay: 20s}
#intro h2 {
//  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black, 0 0 10px black;
  background-color: rgba(0,0,0,0.15);
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}
@keyframes bkgdAnim {
  0%   {opacity: 0;}
  5%   {opacity: 1;}
  33%  {opacity: 1;}
  38%  {opacity: 0;}
  100% {opacity: 0;}
}


/* Products */
#products {
  background-color: mediumaquamarine;
  text-align: center;
}


/* Contact Us */
.flexDiv {
  display: flex;
}
#contactForm {
  padding: 1.5em 3% 1.5em 5%;
  min-width: 350px;
}
#contactAddr {
  padding: 1.5em 5% 1.5em 3%;
  min-width: 360px;
}
p#disclaimer {
  margin: 1em 5%;
  clear: both;
}
@media screen and (max-width: 850px) {
  .flexDiv {
    flex-wrap: wrap;
  }
  #contactForm, #contactAddr {
    padding: 1.5em 5%;
  }
}
input[type=text], input[type=email], input[type=url], input[type=tel], textarea {
  background-color: whitesmoke;
  padding: 1em;
  width: 100%;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  border: 1px solid #ccc;
  border-radius: 0.5em;
}
input[type=text]:invalid, input[type=email]:invalid, input[type=url]:invalid, input[type=tel]:invalid {
  background-color: mistyrose;
}
input[type=submit] {
  color: white;
  background-color: dodgerblue;
  padding: 1em 2em;
  margin-top: 1em;
  border: none;
  border-radius: 0.5em;
  font-size: larger;
}
input[type=submit]:hover {
  background-color: blue;
}
.protection {
  display:none;
}
/* contact form response */
.form_error {
  color: red;
}
.form_success {
  color: white;
  background-color: dodgerblue;
  padding: 1em 2em;
  border: none;
  border-radius: 0.5em;
  font-size: larger;
}