* {
  font-family:Georgia, 'Times New Roman', Times, serif;
box-sizing: border-box;
}
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body, h1, h2, p, ul {
  margin: 0;
  padding: 0;
}

header {
  background-color: #000000;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 15px 40px; 
  min-height: 80px;   
}

header img {
  max-width: 80px;
  height: auto;
}

nav a {
  font-size: 1rem;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  display: block;
} 

nav li {
  margin-left: 20px;
}

/* Navigation list */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li, nav a, .dropdown {
  float: none; 
}

.menu-toggle {
  display: none; 
  background: transparent;
  border: none;
  color: #81D959; 
  font-size: 2.5rem; 
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

@media screen and (max-width: 992px) {
  
  .abouttext {
    flex-direction: column-reverse !important;
    padding: 20px 5%;
    gap: 30px;
  }
  
  .abouttext p, 
  .slideshow-wrapper {
    flex: none;
    width: 100%;
  }

  .slideshow-container {
    width: 100%;
    margin-bottom: 20px;
    transform: none;
  }

  header {
    flex-direction: row; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%;
    position: relative;
  }

  nav {
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    background-color: #000;
    z-index: 1000;
  }

  nav ul {
    flex-direction: column; 
    width: 100%;
    display: none; 
  }

  nav ul.show {
    display: flex;
  }

  nav a, .dropdown .dropbtn {
    width: 100%;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #222;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    background-color: #111;
    box-shadow: none;
    text-align: center;
  }

  .dropdown-content a {
    text-align: center;
    padding: 15px;
    color: #81D959;
  }

  .menu-toggle {
    display: block !important;
    position: static; 
  }

  h2 {
    padding-left: 5% !important;
    padding-right: 5% !important;
    text-align: center;
  }

  .avmain p, .carpentry-about p {
    padding-left: 5% !important;
    padding-right: 5% !important;
    max-width: 100%;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn {
  font-size: 1rem;  
  border: none;
  outline: none;
  color: white;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  padding: 14px 16px;
  cursor: pointer;
}

.avheader .dropdown .dropbtn {
  color: #000000;
}

nav a:hover, .dropdown:hover .dropbtn {
  background-color: #81D959;
  color: #333;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.avheader, .avheader nav {
  background-color: #f9f9f9;
}

.avheader nav a {
  color: #333;
}

main {
  background-color: #333;
  color: #D9D9D9;
  flex: 1;
}

.avmain {
  background-color: #f5f5f5;
  color: #333;
  padding-bottom: 50px;
  width: 100%;
}

button {
  font-weight: bold;
}

.avmain .listheader, 
.avmain p, .carpentrymain h1, .carpentrymain .listheader, .carpentrymain p {
  padding-left: 50px;
  padding-right: 15%; 
  max-width: 1000px;
}

.avmain h1, .carpentry-about h1 {
  padding: 40px 5% 10px 5%; 
  color: #81D959;
}

.avmain h2, .carpentry-gallery h2 {
  padding-left: 0%;
  margin-bottom: 20px;
  text-align: center;
}

#ownertext {
  text-align: left;
  padding-left: 7%;
}

#youtubelink strong, #youtubelink {
  color: #333;
  text-align: center;
  margin-bottom:20px;
}

.avmain ul li, .carpentrymain ul li{
  padding-left: 50px;
  padding-right: 15%;
  font-size: 1.1rem;
  list-style-type: none;
  margin-left: 20px;
}

 .contactmain {
  background-color: #f5f5f5;
  color: #333;
}

.contactmain {
  background-image: url(../images/jobs/AV/backgroundimage.JPG);
}

.avmain #goback {
  color: #333;
}

.avmain strong, .contactmain {
  color: #81D959;
}

.avfooter {
  background-color: #f9f9f9;
  color: #333;
}

section {
  margin-bottom: 100px;
}

p {
  font-size: 1rem;
  line-height: 1.8;
}

h1 {
  color: #81D959;
  line-height: 1.2;
}

.abouttext {
  display: flex; 
  align-self: flex-start;
  flex-direction: row;
  gap: 40px;
  padding: 20px 5%;
  max-width: 1400px;
  margin:0 auto;
  background-color: transparent;
}

.carpentry-about h2 {
  text-align: left;
  padding-left: 7%;
}

h2, .carpentry-about h1 {
  padding-left: 50px;
}

.carpentry-about .numbertext {
  color: #81D959;
}

.slideshow-wrapper {
  flex: 1; 
  width: 100%;        
  position: relative;
}

.abouttext p {
  flex: 1;
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 0;
}

.listheader {
  padding: 40px 0px 0px 40px;
}

main h1 {
  padding: 40px 0px 0px 0px;
}

main ul li {
  padding-right: 0; 
  margin-bottom: 10px;
  font-size: 1.1rem;
  list-style-type: disc; 
  margin-left: 20px;     
}

.interestedbutton {
  background-color: #81D959;
  border-radius: 12px;
  padding: 20px;
  border: none;
  margin:30px 0px 60px 50px;
}

.interestedbutton a {
  text-decoration: none;
  color: black;
  font-size: 1rem;
}

.interestedbutton:hover {
  background-color: #A0D977;
}

.main-home {
  text-align: center;
}
section h1 {
  padding: 80px 0px 50px 0px;
  font-size: 2rem;
}

.listheader {
  color: #81D959;
}

strong {
  color: #A0D977;
}

.container img {
width: 40%;
padding: 20px;
margin: auto;
display: block;
}

.container a {
  color: black;
  text-decoration: none;
}

.container button:hover{
  background-color: #A0D977;
}

.container button {
  display:inline;
  margin:100px 40px 0px 40px;
  background-color: #81D959;
  border-radius: 12px;
  padding: 20px;
  border: none;
}
.container button a {
  text-decoration: none;
  color: black;
  font-size: 1rem;
}

footer {
    background-color: black;
    color: #D9D9D9;
    text-align: center;
    padding: 16px;
    min-height: 50px;
    font-size: 1rem;
}

/* GALLERY */

.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* (9 / 16 = 0.5625) */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.carpentry-gallery div, .avmain div {
  box-sizing: border-box;
}

.carpentry-gallery h1, .avmain h1, .slideshow h1 {
  font-size: 2rem;
  padding-left: 50px;
  color: #81D959;
}

.carpentry-gallery, .avmain {
  max-width: 100%;
  margin: auto;
}

h2 {
  font-size: 1rem;
  text-align: center;
}

.row {
  margin: 8px 16px;
  display: flex;
  flex-wrap: wrap;
}

.row,
.row > .column {
  padding: 8px;
}

.column {
 width: 25%;
  padding: 8px;
  display: flex;
  box-sizing: border-box;
}

.content {
  background-color: #81D959;
  color: #333;
  padding: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content a {
  text-decoration: none;
  color: #333;
}

.content:hover {
  background-color: #A0D977;
}

@media screen and (max-width: 900px) {
  .column {
    width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }

  .slideshow p {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box; 
  }

  .slideshow h1 {
    padding-left: 20px;
    font-size: 1.5rem;
  }

  #goback {
    padding-left: 20px;
  }

}

/* SLIDESHOW PAGES CODE */

.slideshow p {
  max-width: 800px;
  width: 100%;
  padding: 10px 30px;
  margin: 0;
}

#goback {
  padding-left: 30px;
}

#goback:hover {
  color: #81D959;
}

.slideshow div{
  box-sizing:border-box
}

.slideshow-container {
  max-width: 800px; 
  margin: 20px auto; 
  position: relative;
  overflow: hidden;
}

.slideshow-container img {
  width: 100%;
  height: auto;
  display: block;
}

.mySlides {
  display:none;
}

.mySlides img {
  width: 100%;
}

#slide1 {
  display: block;
}

.slideshow a {
  text-decoration: none;
  color: #f9f9f9;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  transform: translateY(-50%);
  padding: 16px;
  color: #333;
  background-color: #81D959;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.numbertext {
  color: #333;
  font-size: 1rem;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #81D959;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  margin-bottom: 50px;
}

.active, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/*CONTACT FORM */

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
}

.contact-form {
    width: 50vh;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.form-content {
    background-color: rgba(255, 255, 255, 0.9); /* transparent white overlay */
    padding: 15px;
    border-radius: 5px;
}

.contact-form h2 {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

#contactheader {
  text-align: center;
  padding: 0;
}

.contactmain button {
    background-color: #81D959;
    color: #FFFFFF;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

button:hover {
    background-color: #A0D977;
    cursor: pointer;
}
