html {
  --fontFamily:Arial, Verdana, Helvetica;
  --trgBlue: #094D87;
  --trgGrey: rgba(230,230,230,.5)
}/* to use enter "var(--fontFamily);" */

/* trying to reset some of hubspots default styling */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, em, img, u, i, dl, dt, dd, ol, ul, li {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--fontFamily) !important;
}

.inactive {
  display:none;
}

.active{
  display:inline-flex;
}

#brokerName {
  display:none;
}


/*** this is the container that puts the library module in the center of the page *******/
.contains_main_libary_content { 
  display:block;
  width: 100%;
  background-color:white;
}
/**---------------------------- End Contains the Library Module ------------------------- */
.selectionSection{
  box-shadow: 5px 2px 4px rgb(0, 0, 0, .25); 
}

.selectDescription {
  background-color:white;
}

.selectDescription h3{
  text-align:center;
  font-size:24px;
  padding:30px 15px 30px 15px;
  background-color: var(--trgGrey);
}

.selectSearchGroup {
  display:flex;
  max-width: 1100px;
  margin: 0px auto;
  padding: 20px;
}


#tagSelect {
  display:block;
  padding:6px;
  width: 275px;
  transition: ease-in .3s;
  margin-left:15px;
}


#searchBar {
  display:flex;
  align-items:center;
  padding: 10px;
  margin:0px auto;
}

#tagDropdown {
  list-style-type: none;
  margin: 0px auto;
}

#reset.reset,
.search-button {
  border: none;
  padding:6px 10px;
  margin-left:10px;
  height:30px;
  background-color:rgba(200,200,200,.6);
  border: none;
  border-radius:4px;
  box-shadow: 1px 1px 5px rgb(0, 0, 0, .25);
  border: .5px solid rgb(80, 80, 80, .3);
}

#reset.reset:hover,
.search-button:hover {
  background-color:rgba(200,200,200,.8);
  box-shadow: 2px 2px 5px rgb(0, 0, 0, .25);
}

#reset.reset:active,
.search-button:active {
  transform: translateY(2px);
  background-color:rgba(200,200,200,1);
  box-shadow: 1px 1px 5px rgb(0, 0, 0, .25);
}


#form_id input {
  padding:6px;
}
#form_id input#search-by  {
  width:252px; 
  transition: ease-in .3s;
}

@media only screen and (max-width: 800px) {
  #form_id input#search-by  {
    width:177px; 
  }
  #tagSelect {
    width: 200px;
  }
  .selectDescription h3 {
    font-size: 20px;
    padding: 15px 15px 15px 15px; 
  }
}

@media only screen and (max-width: 648px) {
  #searchBar {
    display:block;
  }

  #tagSelect {
    display:block;
    width: 193px;
    margin-top:15px;
    margin-left:0px;
  }
}

/* ---------------------------- Ebook Pagination Buttons -------------------------- */
.paginationButtonsWrapper{
  /*border-bottom: 2px solid rgba(80, 80, 80, .7);
  margin-bottom:20px;*/
  background-color:ailver;
}
.paginationButtons {
  display:grid;
  grid-template-columns:1fr 1fr;
  justify-content:center;
  align-content:center;
  margin:0px auto; 
  width:350px; 
  padding:20px 10px 10px 10px;

}

.nextBatch,
.previousBatch{
  display:flex;
  justify-content:center;
  align-content:center;
  flex-wrap: wrap;
  height:40px;
  background-color:rgba(200,200,200,.6);
  border: none;
  border-radius:4px;
  margin:10px 20px;
  box-shadow: 1px 1px 5px rgb(0, 0, 0, .25);
  border: .5px solid rgb(80, 80, 80, .3);
}

.nextBatch:hover,
.previousBatch:hover{
  background-color:rgba(200,200,200,.8);
  box-shadow: 1px 1px 5px rgb(0, 0, 0, .25);
}

.nextBatch:active,
.previousBatch:active{
  transform: translateY(2px);
  background-color:rgba(200,200,200,1);
  box-shadow: 4px 3px 5px rgb(0, 0, 0, .25);
}


/* -------------------- Back To Top Of Page BUTTON  ----------------- */

.backToTop ul { 
  display:flex;
  align-items: center !important;
  justify-content: center !important;
  list-style-type: none;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  background-color: white !important;
  margin-bottom:10px;
}

.backToTop li {
  display:inline-block;
  border-style: solid;
  border-width: 1.5px;
  border-color:var(--trgBlue);
  background-color: white;
  padding: 15px 20px;
  color:var(--trgBlue);
  font-weight: strong;
  font-size: 1.0em; 
  font-family: Arial, Verdana, Helvetica;
  border-radius: 8px;
}

.backToTop li:hover{
  background-color: var(--trgBlue);
  cursor: pointer;
  color:white;
  font-weight: bold;
}

.backToTop li:active{
  background-color: rgba (0,0,0,.7);
  transform: translateY(3px);
}

li.backToTopButton.active {
  background-color: var(--trgBlue);
  cursor: pointer;
  color:white;

}

/* ----------------------------Back To Top Button -------------------------- */


#ebooks_table {
  display: flex ;
  align-items: center !important;
  justify-content: space-evenly  !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  max-width:1200px;
  margin: 0px auto;
  margin-bottom: 10px;
  width:100%;
}


.table_item {
  transition: all 2s ease-in-out !important;
  width:310px;
  height:auto;
  border-radius: 6px;
  margin-top:10px !important;
  box-shadow: 1px 1px 5px rgb(0, 0, 0, .25);
  border: .5px solid rgb(80, 80, 80, .3);
  background-color:white;
}

.table_item:hover {
  /*box-shadow: 0 5px 15px rgba(0,0,0,0.9);*/
}

.book_container{
  display:block;
  width: 100%;
}

.article_title {
  width: 100%;
  height: auto; 
}

.article_title h2{
  display: flex;
  align-items: center !important; 
  justify-content:center;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border-bottom-style:solid;
  text-align: center;
  padding: 10px 5px;
  margin:0px;
  height: 100%;
  min-height: 45px;
  font-family: Arial, Verdana, Helvetica;
  /*text-transform: uppercase;*/
  letter-spacing: 0.04em;
  font-size:16px;
  color:black;
  background-color:white;
}

.ebookDescriptWrapper {
  position:relative;
  background-color:var(--trgGrey);
  padding: 0px;
  margin 0px;
  z-index:1000;
}

.img_column {
  display:flex;
  justify-content: center !important;
  align-items: center !important;
}
.img_column a {
  display:flex;
  flex-direction: row;
  justify-content: center !important;
  align-items: center !important;
}

.img_column img {
  width:100%;
  max-width: 130px;
  padding: 4px;

}

.descriptionWrapper {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: var(--trgBlue);
  overflow: hidden;
  width: 100%;
  height:0;
  transition: .5s ease;
  color:white;
}

@media only screen and (min-width: 640px) {
  .ebookDescriptWrapper:hover .descriptionWrapper {
    bottom: 0;
    height: 100%;  
  }
}

.description {
  color: white;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  width:95%;
}

.descriptionWrapper.show {
  bottom: 0;
  height: 100%;  
}

.description p {
  width:100%;
  padding:0px;
  margin:0px;    
}

.downArrowWrapper {
  display:none;
  padding:10px;
  position:relative;
  z-index:100;
  background-color:white;  
}

.downArrow { 
  width: 0; 
  height: 0; 
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;  
  border-top: 10px solid #000;
  transition: .5s ease; 
  animation: pulse 2s infinite;
}

.downArrow.rotate {  
  transition: .5s ease;
  transform: rotateZ(-180deg) !important;
}

@media only screen and (max-width: 639px) {
  .downArrowWrapper {
    display:flex;
    justify-content:center;
    transition: .5s ease;
  }
}


/* ------------------------------- Begin download Buttons ------>*/
#download.downloadNow {
  display:flex;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none;
  font-family: Arial, Verdana, Helvetica;
  color: white;
  font-size: 1em;
  background-color: var(--trgBlue);
  border:none;
  border-radius: 4px;
  padding: 10px;
  margin: 15px auto 15px auto;   
  width: 50%;
}

#download.downloadNow:hover {
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#download.downloadNow:active {
  cursor: pointer;
  border: .5px solid rgba(0,0,0,.5)!important;
  background-color: var(--trgBlue)!important;
  transform: translateY(3px);
  box-shadow: 0 5px 15px rgba(0,0,0,.7);
}

/* ------------------------------- Begin Featured download Buttons ------>*/
#downloadFeat.downloadNowFeat {
  display:flex;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(218,165,32,1)!important;
  border:none;
  text-decoration: none;
  font-family: Arial, Verdana, Helvetica;
  color: black;
  font-size: 1em;
  border-radius: 4px;
  padding: 10px;
  margin: 10px auto !important;  
  width: 50%;
}

#downloadFeat.downloadNowFeat:hover {
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#downloadFeat.downloadNowFeat:active {
  cursor: pointer;
  border: .5px solid rgba(0,0,0,.5)!important;
  background-color: rgba(218,165,32,1)!important;
  transform: translateY(3px);
  box-shadow: 0 5px 15px rgba(0,0,0,.7); 
  color: white !important;
}

/* -----------------------------------------begin Back Button Styling*/

.pageBreadcrumb,
.pageBreadcrumb a {
  text-decoration:none;
  color:#274993;
  padding:2px 6px; 
}

.pageBreadcrumb a:hover {
  color:black;
}




/* -----------------------------------------begin dynamic ebook and guide Page Styling*/

.dl_text h4{
  font-weight: strong;
  text-align:center;
  font-family: Arial, Verdana, Helvetica;
  background-color:lightgrey;
  padding: 8px;
  margin:0px auto!important;

}

#dy_book_module {
  display:flex ;
  flex-direction: row;
  background-color: rgba(85,85,85,0.4);
  max-width: 960px;
  background-color: white;
  height:auto;
  border-radius: 6px;
  padding: 6px;
  margin: 10px auto;
}

.dy_book_container{
  display:flex ;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  border-radius: 6px;
  padding: 0px; 
}

.dy_book_title {
  display: flex!important;
  margin:0px auto !important;
  width: 100% !important;
  border-top-left-radius: 6px!important;
  border-top-right-radius: 6px!important;
  background-color: var(--trgBlue) !important;
  padding: 0px 5px !important;
  text-align: center !important;

}

.dy_book_title h1 {
  text-align:center !important;
  font-size: 22px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  margin:0px;
  padding:10px;
}

.dy_img_column{
  flex-direction: column;
  flex-basis: 50%;
  flex: 1;
  background-color: white;
  margin: 0px auto;
}

.dy_img {
/*   max-width: 240px;
  margin: 0px auto; */
  max-width: 100%;
  margin: auto;
}

.dy_img img {
  width: 100%;
  max-width: 280px;
  max-height: 450px;
  margin: 0px auto;
  display:flex;
  justify-content: center;
  align-items: center;
  object-fit: cover;
  object-position: center top;
}

.dy_des {
  /*background-color: rgba(85,85,85,0.05) !important; */
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  margin: 0px auto;
  max-width: 100%;
  margin:4px; 

}

.dy_img_column h3 {
  width: auto;
  padding: 10px;
  margin: 0px auto;
  font-family: Arial, Verdana, Helvetica;
  font-size: 1em;

}

.dy_form_column{
  flex-direction: column;
  flex-basis: 50%;
  flex: 1;
  background-color: rgba(245,245,245,.9);
  padding:0px;

}

.dl_form {
  max-width: 240px;
  padding: 16px;
  margin: 0px auto;

}

.dy_form_column input {
  Width: 90%;
  padding: 4px;
  margin: 0px 0px 10px 0px;


}
.dy_form_column label {
  font-weight:bold !important;


}
.dy_form_column .hs-button {
  margin:10px auto;
  color:white;
  font-weight:bold;
  background-color: var(--trgBlue);  
}


/* --------------------------------------------Begin buttons that are served on the thank you page of the dynamic page form.  --------------- */
#openBook.openNow {
  display:flex;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(218,165,32,1)!important;
  border:none;
  border-radius: 4px;
  text-decoration:none !important;
  text-align: center;
  color: black !important;
  padding: 10px;
  margin: 4px auto;  
  width: 75%; 
  font-family: Arial, Verdana, Helvetica;
  font-size: 1em;
} 
#openBook.openNow:hover {
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  background-color: rgba(126,137,132,.8)!important;
}

#openBook.openNow:active {
  cursor: pointer;
  border: .5px solid rgba(0,0,0,.5)!important;
  background-color: rgba(126,137,132,1)!important;
  transform: translateY(3px);
  box-shadow: 0 5px 15px rgba(0,0,0,.7);
}

@media(max-width:767px){
  .dy_book_container{
    flex-direction: column;
  }
  .dy_img_column h3{
    padding:0;
    margin: 10px 0;
  }
}