/* Whole document setup */

html {
  font-family: 'Avenir Medium', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-image: url("img/background-texture.jpg");
  z-index: -1;
  background-size: cover;
  background-repeat: repeat;
  background-attachment: fixed;
}

#bold {
  font-family: 'Avenir Medium';
}

/* Animation declarations */

@keyframes menu-hover {
  from {
    background-color: #495916;
    color: #fff;
  }
  to {
    background-color: #698020;
    color: #fff;
  }
}

@keyframes desktop-menu-hover {
  from {
    color: #495916;
  }
  to {
    color: #DF6E12;
  }
}

.header-bg {
  width:100%;
  height: 650px;
}

/* Carousel Animations */

.crossfade {
  width: inherit;
  height: inherit;
}

.crossfade > figure {
  animation: imageAnimation 30s linear infinite 0s;
  backface-visibility: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  color: transparent;
  height: inherit;
  left: 0px;
  opacity: 0;
  position: absolute;
  top: 0px;
  width: inherit;
  z-index:-1;
  border: none;
  padding: none;
  margin: 0;
}

@keyframes
imageAnimation {  0% {
 animation-timing-function: ease-in;
 opacity: 0;
}
 8% {
 animation-timing-function: ease-out;
 opacity: 1;
}
 17% {
 opacity: 1
}
 25% {
 opacity: 0
}
 100% {
 opacity: 0
}
}

.crossfade > figure:nth-child(1) { background-image: url('img/photo-home1.jpg'); }

.crossfade > figure:nth-child(2) {
  animation-delay: 6s;
  background-image: url('img/gallery6.jpg');
}

.crossfade > figure:nth-child(3) {
  animation-delay: 12s;
  background-image: url('img/gallery1.jpg');
}

.crossfade > figure:nth-child(4) {
  animation-delay: 18s;
  background-image: url('img/photo-home2.jpg');
}

.crossfade > figure:nth-child(5) {
  animation-delay: 24s;
  background-image: url('img/gallery5.jpg');
}

/* END OF CAROUSEL */

.footer-bg {
    background-image: url(img/photo-footer.jpg);
    width:100%;
    display: block;
    overflow: auto;
    background-position: 80% 60%;
    background-repeat: no-repeat;
    background-size: cover;
}

header {
  background-color: rgba(72,89,22,0.75);
  height: 60px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

/* Contact information bar at the very top of every page */

.contact {
  display: block;
  color: white;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
}

.contact ul {
  height: 35px;
  list-style: none;
  display: flex;
  float: right;
  padding: 0;
  margin: 8px;
  max-width: 948px;
}

.contact ul p {
  color: white;
  font-size: 14px;
  margin: 13px auto;
  margin-left: 5px;
  padding: 0;
}

.contact ul i {
  color: white;
  font-size: 28px;
  margin: 10px 5px;
}

.contact ul li img {
  height: 35px;
  float: right;
  margin: 5px 10px;
}

/* The table, containing the logo and slogan, and hamburger in responsive design */

.header-wrapper {
  padding: 10px 0;
  background: rgba(255,255,255,0.75);
  height: 150px;
}

.space {
  width: 10%;
}

td.header-image {
  background-size: contain;
  background-position: center;
  background-repeat:no-repeat;
  padding-right: 50px;
}

td.desktop-nav {
  font-size: 24px;
  width:8%;
  min-width: 121px;
  overflow: hidden;
}

td.desktop-nav a {
  text-decoration: none;
  color: #495916;
  font-weight: 900;
  text-shadow: 0px 0px 1px #495916;
  transition: color 0.2s;
}

td.desktop-nav a:hover {
  color: #DF6E12;
}

.hb {
  width: 0.1%;
}

.icon {
  display: none;
}

/* Dropdown menu content */

.menu-items {
  background: rgba(72,89,22,0.75);
  height: auto;
  overflow: hidden;
  margin: 0;
  padding: 0;
  text-align: center;
}

.menu-items a {
  display: none;
  color: #fff;
  text-align: center;
  padding: 18px 35px;
  text-decoration: none;
  font-size: 22px;
}

.menu-items a:hover {
  animation-name: menu-hover;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  color: #444B47;
}

.photo-header {
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
  text-align: center;
  box-sizing: border-box;
}

.homepage-caption {
  text-align: center;
  background-image: url(img/background-texture-concrete.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 24px;
  width: 100%;
}

.transparent-wrap {
  max-width: 1200px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.transparent-wrap p {
  margin: 0;
  padding: 35px;
  font-size: 32px;
  color: #fff;
  text-shadow: 2px 2px #000;
}

.transparent-wrap form {
  margin: 0;
}

.transparent-wrap form button {
  margin-top: 0;
  margin-bottom: 40px;
  padding: 15px 70px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  text-shadow: 2px 2px 2px #000;
  background-color: #DF6E12;
  border-radius: 10px;
  transition: background-color .1s;
}

.transparent-wrap form button:hover {
  background-color: #EE822B;
}

/* Body content */

.content {
  padding: 15px;
  font-size: 18px;
  max-width: 1280px;
  display: block;
  margin: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 50px;
  max-width: 1280px;
  margin: 0 auto 30px;
}

article {
  position: relative;
  opacity: 1;
  transition: opacity 0.3s;
}

article:hover {
  opacity: 0.8;
}

/* article:hover h1 {
  opacity: 1;
} */

.article-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.article-title {
  position: absolute;
  bottom: 0;
  color: #000;
  width: 93%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  transition: opacity 0.3s;
  font-size: 18px;
}

.content ul {
  columns: 2;
}

.content ul.dropdown-list {
  columns: 1;
}

p#header {
  text-align: center;
  font-size: 30px;
  padding: auto;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(72,89,22,0.8);
}

.content p#home-subtext {
  text-align: center;
  font-size: 24px;
  padding: auto;
}

/* About Us page - content */
.list-container {
  max-width: 700px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

ul#homepage {
  font-size: 20px;
  margin: 20px;
}

/* Footer styling */

footer {
  color: #fff;
  width:100%;
  margin:0;
  overflow: hidden;
  text-align: center;
  background-color: rgba(72,89,22,0.85);
  /* background-color: rgba(105,128,32,0.75); */
}

.container {
  display: block;
  max-width: 1000px;
  margin: auto;
  padding: 5px;
  font-size: 18px;
}

.footer-right, .footer-left, .footer-links {
  display: inline-block;
  width: 30%;
  text-align: left;
}

.footer-links {
  width: 15%;
  padding-left: 3%;
  padding-right: 5%;
  vertical-align: top;
  border-right: 4px solid #698020;
  height: 230px;
}

.footer-left {
  margin-left: 5%;
}

.footer-links ul li {
  margin-top: 5px;
}

.footer-links ul li a {
  color: #EE822B;
  font-size: 22px;
  text-decoration: none;
  transition: color .3s;
}

.footer-links ul li a:hover {
  color: #fff;
}

.contact-container {
  width: 100%;
  height: auto+2;
  background-color: rgba(72,89,22,1);
}

.contact#footer {
  display: block;
  text-align: center;
  width: 100%;
  word-wrap: break-word;
}

.contact#footer p {
  float: none;
  padding: 15px;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 100%;
  text-align: center;
}

footer ul#services {
  list-style: none;
  padding-left: 0;
}

.logo-container {
  width: 100%;
  background-color: rgba(255,255,255,0.75);
  display: inline-block;
  text-align: center;
}

.footer-logos {
  max-width: 948px;
  display: inline-block;
  margin: auto;
}

.footer-logos img {
  max-height: 80px;
  max-width: 30%;
  padding: 10px 20px;
}

/* Contact Form */
.button {
  font-family: "Avenir Medium", sans-serif;
  font-size: 16px;
  padding:3px;
}

.button#submit {
  margin-top: 20px;
  background-color: #DF6E12;
  color: #fff;
  font-size: 20px;
  border-radius: 10px;
  padding: 10px;
  transition: background-color .1s;
  cursor: pointer;
}

.center span {
  text-shadow: 1px 0 0 #000;
}

.button#submit:hover {
  background-color: #EE822B;
}

.form-wrap td {
  text-align: left;
  width: 100%;
}

.form-wrap td input {
  margin: 3px auto;
  padding: 5px;
}

input.button, textarea.button {
  width: 50%;
}

textarea {
  resize: none;
  height: 150px;
}

/* Project page specific */

p#header.subheader {
  font-size: 24px;
  width: 100%
  margin: auto;
  margin-top: 40px;
  border-bottom: 1px solid rgba(72,89,22,0.8);
}

.project-list {
  font-size: 18px;
  margin: 30px auto;
  max-width: 1100px;
}

.project-list th {
  text-align: left;
  padding-bottom: 20px;
  text-decoration: underline;
  text-shadow: 1px 0 0 #000;
  width: 300px;
}

/* Services page specific */

.list-container {
  max-width: 800px;
}

.dropdown-list {
  list-style: none;
  width: 100%;
  padding: 0;
  font-size: 20px;
  text-align: center;
}

.dropdown-list div {
  text-align: left;
  font-size: 16px;
}

.dropdown-list a, ul.dropdown-list li {
  color: #EE822B;
}

.dropdown-list div ul li {
  margin: auto 10px;
  color: #000;
}

.dropdown-list li#main, ul.dropdown-list div {
  padding: 15px;
  padding-left: 30px;
  border: 2px solid #495916;
  border-bottom: none;
  border-radius: 10px;
}

.dropdown-list li#main.last {
  border-bottom: 2px solid #495916;
}

ul.dropdown-list div.last{
  border-top: 0px solid black;
  border-bottom: 2px solid #495916;
}

.dropdown-list div p {
  margin-top: 5px;
}

/* Responsive design elements */

@media screen and (max-width: 978px) {
  .contact p {
    padding-right: 15px;
  }

  .desktop-nav {
    display: none;
  }

  .space {
    width: 5%;
  }

  .menu-items a {
    display: none;
  }
  .icon {
    display: block;
    text-align: center;
  }

  .hb {
    width: 10%;
  }

  .menu-items.responsive {
    position: relative;
  }

  .responsive a {
    float: none;
    display: block;
    text-align: center;
    padding: 18px 20px;
  }

  .photo-header img {
    width:100%;
    height: auto;
  }

  .content {
    padding: 10px 20px;
  }

  .content p#header {
    text-align: center;
    font-size: 26px;
    padding: auto;
    font-family: Avenir Medium;
  }

  .container {
    width: 100%;
  }

  .footer-left, .footer-right, .footer-links {
    float: none;
    display: block;
    font-size: 20px;
    margin: auto;
    text-align: center;
    max-width: 90%;
    width: 90%;
    border: none;
    padding: 0;
    height: auto;
  }

  .footer-left p, .footer-right p {
    width: 100%;
    padding: auto 5px;
  }

  .footer-left ul li, .footer-right ul li {
    list-style: none;
  }

  .center {
    text-align: center;
  }

  input.button, textarea.button {
    width: 80%;
  }

  .form-wrap td {
    text-align: center;
  }

  .dropdown-list div ul {
    padding: 0;
  }

  table.project-list {
    width: 100%;
    font-size: 14px;
  }
}
