* {
  margin: 0;
  padding: 0;
  box-sizing:border-box;/* includes padding and border to size calculation */
}

html{
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  max-width: 1200px;
  height: 100dvh;
  background-color: black;
  display: flex;
  flex-direction: column;
  margin: auto;
}

span {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
  background-color: 5px solid white;
  padding: 4px;
}

.content-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  flex-grow: 1;
  flex-wrap: 1;
  padding: 20px;
  background-color: rgb(141,141,141);
  overflow-y: auto;
}

.navButton {
  background-image: linear-gradient(rgb(185,105,116), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60),  rgb(135,1,60),  rgb(135,1,60), rgb(135,1,60), black);
  border: none;
  color: white;
  padding: 10px 22px;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 15px;
  cursor: pointer;
}

hr{
  height: 2px;
  background-color: #eee;
  margin: 10px;
  border: none;
}

input {
  text-align: center;
}

input:focus {
  outline: none;
  background-color: #2fdc1c;
}

textarea {
  text-align: center;
}

textarea:focus {
  outline: none;
  background-color: #2fdc1c;  
}

.center-img{
  max-width:100%;
  max-height: 100%;
  position: relative;
top: 50%;
transform: translateY(-50%);
margin:auto;
}

marquee{
  height: 70px;
  behavior: "scrolling";
  direction: "Left"; 
  background-color: "blue"; 
  }

/******************************************** header ****************************************/

header {
  display: flex;
  max-height: 100px;
  height: 13dvw;
  justify-content: space-evenly;
  align-items: center;
  background-color: white;
  width: 100%;
  padding: 3px;
}

@media screen and (max-height: 500px) {
  /* If screen height is less than 500px don't display the header.*/
  header {
    display: none;
  }
 }

header img {
  display: block;
  max-height: 96px;
  max-width: 100%;
  height: 12dvw;
  }

/******************************************** menu ****************************************************/

#main-nav{
  background-image: linear-gradient(rgb(185,105,116), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), rgb(135,1,60), black);
}

#main-nav ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}


#main-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  text-decoration: none;
  color: white;
  padding: 0.3rem 0.5rem;
}

#main-nav a:hover{
  background: black;
}

#main-nav li{
  position: relative;
}

#main-nav li:hover .submenu li {
  display: block;
  top: 0;
}

.submenu li {
  display: none;
  position: absolute;
  top: 0px;
}

.submenu a {
  flex-grow: 1;
  justify-content: stretch;
}

.submenu {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  background-color: rgb(135,1,60);
  z-index: 99;
}


/******************************************** Main **************************************************/

main {
  background-color: rgb(141, 141, 141);
  /*flex-grow: 1;*/
  height: 100dvh;
  overflow-y: auto;
  padding: 20px 15px;

  display: flexbox;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  justify-content: center;
}

main img {
  /*display: block;*/
  max-width: 100%;
  height: auto;
  /*padding: 30px;*/
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
}

/******************************************** Carousel **************************************************/

.carouselDiv {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  text-align: center;
  background-color: white;
  margin: 10px 0;
  padding: 10px 0;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
}

.carouselText{
  max-width: 600px;
  padding-bottom: 10px;
  text-align: center;
  background-color: white;
  margin: 1rem 1rem 0 1rem;
}

.dot { /* The dots/bullets/indicators */ 
  cursor: pointer;
  height: 15px;
  width: 15px;
  background-color: #483e3e;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #2fdc1c;
}

.carouselDots {
  flex-shrink: 0 0 50px;
  text-align:center;
  margin: 5px 0px 10px 0px;
}

.mySlides{
  display: flex;
  flex-direction: column;
  margin: auto;
}

.mySlides img {
display: block;
margin: auto;
max-width: 100%;
height: auto;
}


/******************************************** News **************************************************/

.news{
  max-width: 800px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  background-color: white;
  margin: 10px 0;
  }

  .newsHeader{
    width: 100%;
    text-align: center;
    background-color: white;
    margin: 1em 0;
  }
  
  .news-items {
    display: flex;
    flex-direction: column;
    gap: 1em;
    background-color: white;
    justify-content: center;
  }

 .news-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
 }

.news img {
  max-width: 100%;
}

/******************************************** Footer **************************************************/

footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  min-height: 50px;
  background-image: url('images/footerBackground.jpg');
}

footer a img{
  margin-top: 2px;
  height: 40px;
}

/******************************************** Content ****************************************************/

.content-500pxWide{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  max-width: 500px;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  margin:auto;
  padding: 12px;
}

.services-content{
  display: flex;
  flex-direction: column;
  max-width: 600px;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  margin:auto;
  background-color: white;
  padding: 12px;
}

.content-750pxWide{
  display: flex;
  flex-direction: column;
  max-width: 750px;
  width: 80%vw;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  margin:auto;
  background-color: white;
  padding: 12px;
}

.content-800pxWide{
  display: flex;
  flex-direction: column;
  max-width: 800px;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  margin:auto;
  padding: 5px;
  background-color: white;
}

/********************************************** Staff ***********************************************/

.content-staff{
  display: flex;
  max-width: 1200px;
  justify-content: space-around;
}

.content-staff-item {
  text-align: center;
  margin: 1em;
}

.staff_img{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 500px){
  .content-staff{
    flex-direction: column;
  }
}

/******************************************* Affiliates ***********************************************/

.affiliateButtons{
  display: flex;
  justify-content: center;
  gap: 1.5em;
  padding-bottom: 1em;
}

/********************************************* FAQ ***************************************************/

.faq-main-text{
  display: flex;
  flex-direction: column;  
  align-items: center;
  margin: 15px;
}

/*************************************** About  & Sevices *******************************************/

.about-content{
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  margin:auto;
  background-color: white;
  padding: 12px;
}

.content-header{
  font-size: 200%;
  width: 100%;
  text-align: center;
  padding-top: 1vh;
  padding-bottom: 1vh;
}

.content-main{
  display: flex;
  padding: 10px;
  justify-content: space-around;
  align-items: center;
}

.content-main-imgs{
  display: flex;
  flex-direction: column;
  flex: 0 2 250px; /* To modify how quickly and when the images start to shrink modify the basis and the shrink value */
  justify-content: space-around;
}

.content-main-imgs img{
  margin: 8px 0;
  max-width: 100%;
}

.content-main-text{
  display: flex;
  flex-direction: column;  
  align-items: center;
  flex: 1 1 250px;  /* To modify how quickly and when the images start to shrink modify the basis and the shrink value */
  margin: 15px;
}

.content-main-text-title{
  margin: 15px 15px 0px 15px;
}

.content-main-text-centered{
  display: flex;
  text-align: center;
  justify-content: center;
  margin: 5px 5px;
}

.content-main-text-left{
  line-height: 140%;
  margin: 10px  0 10px 20px;
}

/************************************** forms.php ******************************************/

.formsDiv{
  display: grid;
  gap: 1em;
}

/************************************** Membership Form ************************************/

.membership-app-form{
  display: grid;
  grid-template-columns: auto 1fr 1fr;
}

.maf1 { grid-area: fname; }
.maf2 { grid-area: lname; }
.maf3 { grid-area: address; }
.maf4 { grid-area: city; }
.maf5 { grid-area: state; }
.maf6 { grid-area: zip; }
.maf7 { grid-area: phone; }
.maf8 { grid-area: email; }
.maf10 { grid-area: birthDate; }
.maf11 { grid-area: occupation; }
.maf12 { grid-area: howDidUHear; }
.maf13{ grid-area: otherMembers; }
.maf14{ grid-area: submitBtn; }

.grid-container {
  display: grid;
  grid-template-areas:
    'fname fname fname'
    ' lname lname lname'
    'address address address'
    'city state zip'
    'phone email email'
    'birthDate occupation occupation'
    'howDidUHear howDidUHear howDidUHear'
    'otherMembers otherMembers otherMembers'
    'submitBtn submitBtn submitBtn';
  gap: 1px;
  background-color: #7f5064;
}

.grid-container > div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 6px;
}

/************************************** newsBits.php ******************************************/

.content-newsBit img{
  padding: 0 1em;
  max-width: 300px;
  width: 50dvw;
  float: left; 
}

.content-newsBit {
  text-align: justify;
  padding:  0 1em;
}
.content-newsBit p {
  text-align: justify;
  padding: 1em;
}

.content-newsBit li {
  text-align: justify;
  margin-left: 3em;
}

.content-newsBit h3, h4 {
  text-align: justify;
  padding-left: 2em;
}

.content-newsBit hr {
  margin-bottom: 2em;
}

/************************************** order Products **********************************/

.content-orderProducts {
  display: flex;
  flex-direction: column;
  padding: 10px;
  justify-content: space-around;
  align-items: center;
}

/************************************** Special Events **********************************/
.special-events{
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  /*margin: 10px;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  max-height: 100;
  margin: auto;
}

/*.special-events img{
  display: block;
}

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  max-width: 500px;
  box-shadow: 0 4px 8px 0 rgba(200, 0, 0, 0.2), 0 6px 20px 0 rgba(200, 0, 0, 3.89);
  margin:auto;
  padding: 12px;
*/