body {
  background: white;
  font-family: Arial;
}
h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 3em;
  line-height: 1.2em;
  padding: 0.5em 0 0 0;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
a {
  color:black;
}
a:visited, a:active {
  color:#515151;
}
a:hover {
  color:#bebebe;
}
.date {
  font-style: italic;
  color: #929191;
  font-size: 0.7em;
  width: 100%;
  text-align: center;
  display: block;
}
.scriptureland .date {
  width: auto !important;
  text-align: left !important;
  display:initial !important;
}
#wrapper {
  text-align: center;
  font-family: arial;
}
#logo {
  width: 300px;
}
.header {
  font-family: 'Josefin Sans', sans-serif;
  color: #282828;
  font-size: 2em;
  padding: 0.5em 0 0.5em;
}
.topmenu {
  font-family: 'Josefin Sans', sans-serif;
  font-size:1.2em;
}
.topmenuinner {
   margin-left:auto;
   maring-right:auto;
   display: flex;
  justify-content: center;
}
.menuitem {
  float:left;
}
.menuitem a {
  padding: 1em 1em;
  display: block;
}
.menuitem a:hover {
  background-color: black;
  color:white;
}
@media (max-width: 602px){
  .aboutmenuitem {
      display:none;
    }
  .menuitem a {
    padding: 1em 0.7em;
  }
  .topmenu {
    font-size:1em;
  }
  .sacredtravel .filterDiv img, .sacredtravel .happyDiv img {
    width: 100% !important;
  }

  .sacredtravel .sacredtextwrap .sectiontitle {
    text-align: center;
    float:none !important;
    display: grid;
  }

  .sacredtravel .sacredtextwrap .sectiontitle {
    max-width: none !important;

  }

  .sacredtravel .flagsize { font-size: 3em; width:100%; text-align:center; padding:0px }



}
.accordion {
  font-family: 'Josefin Sans', sans-serif;
  background-color: transparent;
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  transition: 0.4s;
  color: #2f2f2f;
  padding:1em;
  font-size: 1.2em;
  cursor: pointer;
}
.active, .accordion:hover {
  background-color: #282828;
  color: #e5e5e5;
}
.joinusbtn {
    animation-name: animation;
    animation-duration: 4.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;    
    animation-play-state: running;
}
.joinusbtn:hover, .joinusbtn.active {
  animation-name: none;
  background-color: #282828;
  color: #e5e5e5;
}
@-webkit-keyframes animation {
    0%     {background-color: transparent; color: #2f2f2f;}
    5%     {background-color: transparent; color: #2f2f2f;}
    40.0% {background-color:#fef7ff; color: #000000;} /* your chosen 'mid' color */ 
    70.0%  {background-color: transparent; color: #2f2f2f;}
    75.0% {background-color: transparent; color: #2f2f2f;}
    100.0%  {background-color: transparent; color: #2f2f2f;}
}

@keyframes animation {
    0%     {background-color: transparent; color: #2f2f2f;}
    5%     {background-color: transparent; color: #2f2f2f;}
    40.0% {background-color:#fef7ff; color: #000000;}
    70.0%  {background-color: transparent; color: #2f2f2f;}
    75.0% {background-color: transparent; color: #2f2f2f;}
    100.0%  {background-color: transparent; color: #2f2f2f;}
}
.panel {
  padding: 1em;
  background-color: #f2f2f2;
  display: none;
  overflow: hidden;
  line-height: 1.7em;
}
.panel.topanel {
  background-color: #e3e3e3;
}
.unlock {
  display:block !important;
  text-align: left;
}
.panelinner {
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}
.panelinnerarticle {
  text-align: justify;
}
.sectiontitle {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.4em;
}
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
#wrapper input, #wrapper textarea {
  padding:10px;
  border: 1px #1f1f1f solid;
  font-family: arial;
  width: 80%;
  /*max-width: 400px;*/
  max-width: 500px;
  font-size: 20px;
  background-color: #e5e5e5;
  text-align:center;
  color: #282828;
}
#wrapper input[type="text"], #wrapper textarea {
  margin: 0;
  outline: 0;  
  box-sizing: border-box; 
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;   
}
#wrapper input[type=submit] {
  cursor:pointer;
  margin-top: 10px;
  -webkit-appearance: none;
}
#wrapper input[type="text"]:placeholder{
  color: #888;
}
#wrapper input[type="text"]:focus, #wrapper textarea:focus{
  background-color: #000;
  color: #e5e5e5;
}
#wrapper input[type=submit]:hover {
  background-color:#000;
  color: #e5e5e5;
}
.innerpadding {
  padding-left: 2em;
  padding-top: 1em;
}
.revealbtn {
  font-style: italic;
  font-size: 80%;
  cursor: pointer;
  color: #515151;
}
.revealbtn:hover {
  color: #bebebe;
}
.scriptbtn {
  margin-top: 0.5em;
  background-color: #000;
  font-family: 'Josefin Sans', sans-serif;
  color: #e5e5e5;
  font-size: 1.2em;
  padding: 1em;
  text-decoration: none !important;
}
.noDecoration, a:link, a:visited {
    text-decoration: none;
}
.writing .panelinnerarticle a:link, a:visited {
    text-decoration: underline;
}
.writing .noDecoration a:link, .writing .noDecoration a:visited {
    text-decoration: none !important;
}
.scriptbtn:hover {
  background-color: #515151;
}
.kill {
  display:none;
}
.container {
  position: relative;
}
.image {
  opacity: 1;
  display: block;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}
.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
.container:hover .image, .container:active .image {
  opacity: 0;
}
.container:hover .middle, .container:active .middle {
  opacity: 1;
}
.centerimage {
  text-align: center;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
}
.centerimage img {
  max-width: 500px;
  min-width: 290px;
  width: 70%;
  border: 1px solid #929191;
}
.centerimagekids img {
  max-width: 600px !important;
  width: 80% !important;
}
#pager {
  width:100%;
  margin-top:2em;
  padding:0;
  border:0;
  margin-bottom:1em;
}
#pager td.first {
  width:45%
}
#pager td.last {
  text-align:right;
  width:45%
}
.copyright {
  color: #e1e1e1;
  width: 100%;
  text-align: center;
  display: block;
  font-size: 0.75em;
  font-style: italic;
  margin-top: 1em;
}
.copyright a, .copyright a:visited {
  color: #e1e1e1;
  text-decoration: none;
}
.copyright a:hover {
  color: #929191;
  text-decoration: none;
}

.disclaimer {
  font-style: italic;
  padding: 1em;
  background-color: #e3e2e2;
  border: #bdbdbd 1px solid;
  font-size: 0.8em;
  line-height: 1.5em;
  text-align: center;
}

.disclaimer2 {
  font-style: italic;
  padding: 1em;
  background-color: #fec8fc;
  border: #bdbdbd 1px solid;
  font-size: 0.8em;
  line-height: 1.5em;
  text-align: center;
}

.disclaimer2 a {
  color: #e739e1;
  text-decoration: none !important;
}

.disclaimer2 a:hover {
  color: #ff00a8;
  text-decoration: underline !important;
}



/* NEW STUFF */

.socialmedia {
  width: 100%;
  max-width:560px;
  margin: 0em auto 1.5em auto;
  display: flex;
}

.preorderbtn {
  width: 100%;
  max-width:541px;
  margin: 0em auto 0em auto;
  display: flex;
  position:relative;
}

.socialmedia img {
  width: 50%;
}

.socialmedia img:hover {
  opacity:  0.5;
}

.preorderbtn img {
  width:  50%;
  margin: auto;
}

.preorderbtn2 {
  width: 100%;
  max-width:541px;
  margin: 0em auto 0em auto;
  display: flex;
  position: relative;
}

.preorderbtn2 img {
  width:  100%;
}

.videoo {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width:  560px;
  min-height: 210px;
}

.mailinglistx {
    margin-bottom: 2em;
}

.socialwrap {
  width:20%;
  float:left;
  text-align: center;
}

.texxy {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2em;
}

.pulsating-circle {
  position: absolute;
  left: 50%;
  margin-left: -190px;
  top: 0%;
  margin-top: 90px;
  width: 90px;
  height: 90px;
  pointer-events: none;
}
  
  .pulsating-circle:before {
    content: '';
    position: relative;
    display: block;
    width: 600%;
    height: 600%;
    box-sizing: border-box;
    margin-left: -100%;
    margin-top: -100%;
    border-radius: 270px;
    background-color: #c9ab81;
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  }

  .preorderbtn2:hover .pulsating-circle:before {
    background-color: red;
  }
  
  .pulsating-circle:after {
    content: '';
    position: absolute;
    left: 0; 
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 15px;
    animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -.4s infinite;
  }


@keyframes pulse-ring {
  0% {
    transform: scale(.33);
    opacity: 0.8;
  }
  80%, 100% {
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(.8);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(.8);
  }
}


/* OVERLAY */


.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: -6;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
  z-index:6;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 35%;
  min-width: 300px;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: orange;
}

.popup .content {
  max-height: 30%;
  overflow: auto;
}


/* SACRED GROUND */

.thumb {
  float: left;
  padding: 5px;
  box-sizing: border-box;
  width: 200px;
}
.thumb img { 
  width:100%; 
}
.thumb img:hover { 
  filter: brightness(0.75); 
}
.breadcrumb {
  width:100%; 
  text-align:right
}
.blurbcontent {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blurbcontent:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(242, 242, 242, 0), rgba(242, 242, 242, 1) 90%);
  width: 100%;
  height: 4em;
}
.blurbexpanded {
  height: auto;
}
.blurbexpanded:after {
  background-image: none !important;
}
#read-more-btn {
  width: 100%;
  border: 0px;
  background-color: lightgrey;
  padding: 10px;
  font-size: 1em;
}
.more-btn2 {
  text-align: center;
  margin-top:10px;
}
#read-more-btn:hover {
  background-color:#000;
  color: white;
}

@media (max-width: 648px){
  .thumb {width: 260px;}
}

@media (max-width: 568px){
  .thumb {width: 100%;}
}

/* HOME PAGE */

#home .preorderbox {
    background-color: white;
    color: black;
    width: 100%;
    padding: 1em;
    box-sizing: border-box;   
  }
#home .socialbox {
     background-color: white;
    color: black;
    width: 100%;
    padding: 1.5em 0 0.1em 0;
  }


  /* SACRED TRAVEL */

.sacredtravel .container {
  overflow: hidden;
}

.sacredtravel .filterDiv, .sacredtravel .happyDiv {
  float: left;
  width: 100%;
  margin: 2px;
}

.sacredtravel .filterDiv{
  display: none; /* Hidden by default */
}

.sacredtravel a:hover .filterDiv, .sacredtravel a:hover .happyDiv{
  background-color: #c0bebe;
  color: black;
}

.sacredtravel .filterDiv img, .sacredtravel .happyDiv img {
  width:100px;
  float:left;
  }

  .sacredtravel .sacredtextwrap{
    width:100%;
  }

.sacredtravel .sacredtextwrap .sectiontitle {
  float: left;
    padding: 10px;
    max-width: 480px;

  }

  .flagsize { 
    float: left;
    width: 77%;
    font-size: 2em;
    padding: 0px 10px;
  }

  .sacredtravel .sacredtextwrap a:hover {
    color:black;
  }

/* The "show" class is added to the filtered elements */
.sacredtravel .show {
  display: block;
}

/* Style the buttons */
.sacredtravel .btn {
  border: none;
  outline: none;
  padding: 12px 16px;
  background-color: #f1f1f1;
  cursor: pointer;
  border: 1px solid grey;
    margin: 0.2em 0;
    font-size: 0.9em;
}

/* Add a light grey background on mouse-over */
.sacredtravel .btn:hover {
  background-color: #ddd;
}

/* Add a dark background to the active button */
.sacredtravel .btn.active {
  background-color: #666;
  color: white;
}

#myBtnContainer {
  margin-bottom: 0.5em;
}

/* Grid container */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 across on large screens */
  gap: 1.5rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Individual book cards */
.book-card {
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Book image */
.book-card img {
  max-width: 100%;
  height: auto;
}

.book-card a:hover img, .book-card img:hover {
  opacity: 0.8;
}

/* Text styling */
.book-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.book-card .author {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.book-card .price {
  font-weight: bold;
  font-size: 1rem;
}

/* Tablet: 2 columns */
@media (max-width: 1100px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 650px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}


/* SCRIPTURE GATEWAY */

    /* Divider with lines */

.gateway-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  color: #666;
}

.gateway-divider span {
  flex: 1;
  height: 1px;
  background: #ccc;
  max-width: 120px;
}

.gateway-divider p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

/* Options grid */

.gateway-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gateway-options h2 {
  text-transform: none;
}

.gateway-options a:hover {
  color: black;
}


/* Cards */

.gateway-card {
  position: relative;
  padding: 2.5rem 2rem 3rem;
  border: 1px solid #ddd;
  background: #fafafa;
  text-decoration: none;
  color: #000;
  transition: all 0.25s ease;
}

.gateway-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.gateway-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  text-align: center;
}

.scripcon {
  width:100%;
  text-align: center;
}

.scripcon img {
  width:50%;
}

/* Arrow */

.gateway-card .arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

/* Hover effects */

.gateway-card:hover {
  background: lightgrey;
}

.gateway-card:hover .arrow {
  transform: translateX(6px);
}

/* ===== Mobile ===== */

@media (max-width: 500px) {

  .gateway-title {
    font-size: 2.1rem;
  }

  .gateway-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gateway-divider span {
    max-width: 60px;
  }

}