/* Ministries.css style sheet */

/* body {
  background-image: url(/images/dove.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}
*/

/* html, body, and .container settings helped with keeping
footer at bottom of screen regarless of scroll direction. */
/* html, body { */
  /* height: 100%; */
  /* margin: 0; */
/* } */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  margin-left: auto;
  margin-right: auto;
  width: 1024px;
  flex: 1;
}

header {
  color: black;
  font-family: "Trebuchet MS", "Lucida Sans U Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-size: smaller;
  font-style: italic;
  text-align: center;
}

h1 {
    font-size: 54px;
    color: rgb(122, 127, 127);
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 0;
}

h2 {
    font-size: large;
    color: rgb(0, 0, 0);
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
}

nav {
  text-align: center;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

nav a {
  background-color: rgb(0 0 0 / 40%);
  color: white;
  border-radius: 7px;
  padding: 5px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  background-color: black;
  color: white;
}

/* Dropdown Button */
.dropbtn {
  background-color: rgb(0 0 0 / 40%);
  border-radius: 9px;
  color: white;
  padding: 5px;
  font-weight: bold;
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: black;
  min-width: 160px;
  z-index: 1;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: rgb(223, 223, 223);
  color: black;
}

/* Links inside the dropdown */
.dropdown-content a {
  background-color: black;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  background-color: rgba(255, 255, 255, 0.39);
  border: none;
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: black;
  color: white;
}

/* .MenAtWork, .WomenAtWork, .ChildrenMinistry and .Missionaries entries used for Pictures/Text */
.MenAtWork {
  position: relative;
  margin-right: 20px;
  width: 300px;
  float: left;
}

.WomenAtWork {
  position: relative;
  margin-right: 20px;
  width: 300px;
  float: left;
  clear: both;
}

.ChildrenMinistry {
  position: relative;
  margin-right: 20px;
  width: 300px;
  float: left;
  clear: both;
}

.Missionaries {
  position: relative;
  margin-right: 20px;
  width: 300px;
  float: left;
  clear: both; 
}

.MenAtWorkText {
  background-color: rgb(255 255 255 / 50%);
  color: rgb(0, 0, 0);
  float: left;
  font-size: 14pt;
  font-weight: bold;
  width: 68%;
  text-align: justify;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

.WomenAtWorkText {
  background-color: rgb(255 255 255 / 50%);
  color: rgb(0, 0, 0);
  float: right;
  font-size: 14pt;
  font-weight: bold;
  width: 68%;
  text-align: justify;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

.ChildrenMinistryText {
  background-color: rgb(255 255 255 / 50%);
  color: rgb(0, 0, 0);
  float: right;
  font-size: 14pt;
  font-weight: bold;
  width: 68%;
  text-align: justify;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

.MissionariesText {
  background-color: rgb(255 255 255 / 50%);
  color: rgb(0, 0, 0);
  float: right;
  font-size: 14pt;
  font-weight: bold;
  width: 68%;
  text-align: justify;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

.slide {
  display: none; 
  background: #eee; 
  object-fit: cover;
}

.active {
  display: block;
}

.prev, .next {
  cursor: pointer; 
  position: absolute;
  top: 50%; 
  width: auto; 
  margin-top: -22px; 
  color: black; 
  font-weight: bold; 
  font-size: 24px; 
  user-select: none; 
  background: rgba(255, 255, 255, 0.7); 
  border-radius: 3px;
}

.next { right: 0; }
.prev { left: 0; }

footer {
 background-color: transparent;
 color: rgb(0, 0, 0);
 text-align: center; 
 font-size: 17px;
 padding-top: 5px;
 padding-bottom: 5px;
 position: static;
 width: 100%;
 margin-top: auto;
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    text-align: center;
  }
  header, h1, h2 {
    font-size: 1.2em;
    text-align: center;
    padding: 5px 0;
  }
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    min-width: 100px;
  }
  /* Links inside the dropdown */
  .dropdown-content a {
    padding: 8px 12px;
  }
  nav a, .dropbtn {
    font-size: 14px;
    padding: 5px 2px;
    margin-bottom: 8px;
    display: inline-block;
  }
  .dropdown {
    font-size: 10px;
  }
  nav {
    font-size: 16px;
  }
  .MenAtWork, .WomenAtWork, .ChildrenMinistry, .Missionaries {
    float: none;
    margin: 20px auto;     /* Center the container */
    display: block;
    text-align: center;    /* Center content inside */
  }
  .MenAtWorkText, .WomenAtWorkText, .ChildrenMinistryText, .MissionariesText {
    background-color: transparent;
    color: rgb(0, 0, 0);
    font-size: 10pt;
    width: 90%;
    float: none;
    margin: 10px auto 0 auto; /* Center the text block */
    text-align: justify;        /* Center text for mobile */
  }
  img {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
.active {
  display: block;
}
.prev, .next {
  cursor: pointer; 
  position: absolute;
  top: 50%; 
  width: auto; 
  margin-top: -22px; 
  color: black; 
  background: rgba(255, 255, 255, 0.7); 
}
  footer {
    width: 100%;
    font-size: 12px;
  }
}

