/*
The main shared css definitions, used in joomla AND on forum
*/








/*
 fancy block quote
 https://codepen.io/maxds/pen/DcveB
*/


blockquote {
  display:inline-block;
  background: #fff;
  padding: 15px 20px 15px 45px;
  margin: 5px 0 20px;
  position: relative;
  
  /*Font*/
  font-family: Georgia, serif;
  font-size: 120%;
  line-height: 1.2;
  color: #666;
  text-align: justify;
  
  /*Borders - (Optional)*/
  border-left: 15px solid #c76c0c;
  border-right: 2px solid #c76c0c;
  
  /*Box Shadow - (Optional)*/
  -moz-box-shadow: 2px 2px 15px #ccc;
  -webkit-box-shadow: 2px 2px 15px #ccc;
  box-shadow: 2px 2px 15px #ccc;
}

blockquote::before{
  content: "\201C"; /*Unicode for Left Double Quote*/
  /*Font*/
  font-family: Georgia, serif;
  font-size: 60px;
  font-weight: bold;
  color: #999;
  /*Positioning*/
  position: absolute;
  left: 10px;
  top:5px;
}

blockquote::after{
  /*Reset to make sure*/
  content: "";
}

blockquote a{
  text-decoration: none;
  background: #eee;
  cursor: pointer;
  padding: 0 3px;
  color: #c76c0c;
}

blockquote a:hover{
 color: #666;
}

blockquote em{
  font-style: italic;
}

.dcblockquotefrom {
	font-size: 125%;
	font-style: italic;
	font-wight: bold;
	text-align: right;
}

.dcblockquotefrom_extra {
	font-size: 75%;
	background-color: clear;
}
.dcblockquotefrom_extra a {
	background: none;
}








/*
 alternative to blockquote look -- very similar to blockquote above
 */
.dcblock {
  display:inline-block;
  background: #fff;
  padding: 15px 50px 15px 25px;
  margin: 5px 0 20px;
  position: relative;
  
  /*Font*/
  font-family: Georgia, serif;
  font-size: 120%;
  line-height: 1.2;
  color: #666;
  text-align: justify;
  
  /*Borders - (Optional)*/
  border-left: 15px solid #ba4118;
  border-right: 2px solid #ba4118;
  
  /*Box Shadow - (Optional)*/
  -moz-box-shadow: 2px 2px 15px #ccc;
  -webkit-box-shadow: 2px 2px 15px #ccc;
  box-shadow: 2px 2px 15px #ccc;
}






























/*
DCBOX STUFF - this is used in sidebars, weblinks, etc.
 */





/* main text display */
/* max-height will be overridden by style in code */
.dcbox_maintext {
	max-height: 9999px;
	overflow: hidden;
	position: relative;
}


/* see https://css-tricks.com/text-fade-read-more/ */
.dcboxreadmore {
	position: absolute; 

	/* this top value will be overridden by style in code */
	top: 9999px;
	left: 0;
	width: 100%; 
	text-align: center; 
	margin: 0px;
	padding: 20px 0; 

	/* "transparent" only works here because == rgba(0,0,0,0) */
	background-image: linear-gradient(to bottom, transparent, white);
}


/*
 this readmoreinner allows us to align the readmore link to BOTTOM, but it does make the face out less visually pleasing unless we ALSO put a linear gradient in it
 the height needs to match the setting for the TOP value that is set through code for .dcboxreadmore, if it's shorter than top and maxheight
 */
.dcboxreadmoreinner {
	position: relative;
	height: 40px;
	background-image: linear-gradient(to bottom, transparent, white);
}

/* invisible until they hover over the faded out bottom text */
.dcboxreadmore a, .dcboxreadmore button {
	position: absolute; 
	bottom: 0;
	left: 0;
	width: 100%;
	text-align:center;
	background: none;
	text-decoration: none;
	font-style: italic;
	opacity: 0;

}
.dcboxreadmore a:hover, .dcboxreadmore button:hover{
	display: initial;
	opacity: 0.6;
}


.dcbox_visitlink {
	font-size: 150%;
	text-align: center;
}






/* dcbox ads, usually in sidebar */

.dcbox blockquote {
  background: #fff;
  padding: 9px 10px 5px 10px;
  margin: 0px 0 10px;

  font-size: 100%;
  line-height: 1.3;
	 
  border-left: 1px solid #c7ac8c;
  border-right: 1px solid #c7ac8c;
  
  -moz-box-shadow: 2px 2px 5px #ccc;
  -webkit-box-shadow: 2px 2px 5px #ccc;
  box-shadow: 2px 2px 5px #ccc;
}

.dcbox blockquote::before{
  content: "\2018"; /*Unicode for Left Double Quote*/
  font-size: 30px;
  left: 1px;
  top:-4px;
}

.dcbox .dcblockquotefrom {
	padding-top: 8px;
}

.dcbox_smallimage {
	padding-top: 8px;
	text-align: right;
	padding-right: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.dcbox_largeimage {
	text-align: center;
	padding-top: 0px;
	padding-bottom: 10px;
}

.dcbox_largeimage img.dcboximg {
	/* new 11/11/17 standardize widths, see also .dcboxmode_def img, this is used for weblinks display */
  width: 160px;
}

.dcblockquotefrom a , .dcbox_smallimage a {
  text-decoration: none;
  background: none;
}

.dcbox_maintext {
	text-align: justify;
}





/* for simple (weblink) style dcadbox */

.dcboxitems_outer {
	margin: 0px;
	padding: 0px;
}


.dcmain .dcboxitems_outer {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* this makes quote boxes full width? */
.dcbox {
	margin-bottom: 16px;
	display: flex;
	flex-flow: column;
}






/* first sentence and title styling for dcbox */
.dcboxtitle {
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	text-align: center;
	font-size: 150%;
	font-weight: bold;
}


.dcmain h2.dcboxtitle {
	padding-top: 0px;
	line-height: 1.5;
}

.dcboxtitle a {
  text-decoration: none;
}

.dcboxtitle a:hover{
 color: #666;
}


.dcboxfirstsentence {
	font-weight: bold;
	padding-bottom: 10px;
	text-align: left;
}


.dcbox_leadin {
	text-align: left;
	font-size: 100%;
}


.dcbox_googlead {
	padding-bottom: 15px;
}











/*
MODAL pop-up dcboxes, when user clicks for more info about a dcbox ad
see https://stackoverflow.com/questions/9899676/twitter-bootstrap-scrollable-modal
*/


/* attempt to make bootstrap modal scroll too tall text */
/* Important part */
.dcbox .modal-dialog{
  overflow-y: initial !important;
}
.dcbox .modal-body{
  height: auto;
  overflow-y: auto;
  /* handles modal being too tall, makes it scrollable */
  max-height: calc(100vh - 200px);
}

.dcbox .modal-body{
	padding-top: 12px;
}
.dcbox .modal-title{
	margin-bottom: 0px;
}


/* make modal version of dcboxes have larger font, etc. */
.modal .dcbox_maintext, .modal .dcblockquotefrom, .modal .dcboxfirstsentence, .modal .dcboxtitle {
	font-size: 150%;
}

.modal .dcbox_largeimage img.dcboximg {
	max-width: 300px !important;
	max-height: 240px !important;
	width: auto;
	height: auto;
	float: left;
	margin-right: 15px;
	margin-left: 20px;
}

.modal .dcboxtitle {
	text-align: left;
	padding-top: 5px;
	padding-bottom: 8px;
	margin-left: 20px;
}

.modal .dcbox_smallimage img {
	max-width: 160px !important;
	max-height: 160px !important;
}

.modal .dcbox blockquote::before {
  content: none;
  font-size: 70px;
}

.dcbox .modal-body blockquote::before {
  content: "\201C";
  font-size: 50px;
  top:-20px;
  left:-4px;
}

.modal .dcbox_leadin {
	font-size: 150%;
}

.dcbox .modal-body li {
	line-height:24px;
}

.modal blockquote {
	width: 90%;
	display: table;
	padding: 20px;
	margin: auto;
}

.modal .dcbox_maintext {
		padding-right: 25px;
		padding-bottom: 20px;
	}















/* mod_dcweblinks styling */

.dcboxmode_def {
  background: #fff;
  padding: 10px 10px 5px 10px;
  margin: -2px 0 10px;

  font-size: 100%;
  line-height: 1.3;
	 
  border-top: 1px solid #c7ac8c;
  border-bottom: 1px solid #c7ac8c;
  
  -moz-box-shadow: 2px 2px 5px #ccc;
  -webkit-box-shadow: 2px 2px 5px #ccc;
  box-shadow: 2px 2px 5px #ccc;
  
  display: block;
  flex-flow: initial;
  clear: both;
  overflow:auto;
}

.dcboxmode_def .dcboxtitle {
	text-align: left;
	display: block;
	overflow: auto;
	margin-bottom: 8px;
}

.dcboxmode_def img {
	text-align: left;
  display: initial;
  vertical-align: top;
	max-width: 160px;
}

.dcboxmode_def .dcbox_largeimage {
	float:left;
	display: initial;
	text-align: left;
}

.dcboxmode_def .dcbox_maintext {
	display: table-cell;
	position: initial;
	padding-left: 10px;

	text-align: left;
	clear:both;
}


/* i dont think this is currently used */
.dcboxmode_def_type_category {
	background: #edc9a5;
}










/* needed to keep sidebar from growing */
.dcside .dcbox_weblink {
	max-width: 180px;
}
.dcside .dcbox_testimonial {
	max-width: 180px;
}
.dcside .dcbox_googlead {
	max-width: 180px;
}







/* rss dcbox styling, used in feedek rss functions */

.dcboxmode_ad , .dcrssbox {
  background: #fff;
  padding: 10px 10px 5px 10px;
  margin: -2px 0 10px;

  font-size: 100%;
  line-height: 1.3;
	 
  border-top: 1px solid #c7ac8c;
  border-bottom: 1px solid #c7ac8c;
  
  -moz-box-shadow: 2px 2px 5px #ccc;
  -webkit-box-shadow: 2px 2px 5px #ccc;
  box-shadow: 2px 2px 5px #ccc;
}




/* ATTN: dcquoteinbox -- where is this used? */

.dcquoteinbox {
  display:inline-block;
  position: relative;
  margin-left: 10px;
}

.dcquoteinbox::before{
  font-family: Georgia, serif;
  font-size: 180%;
  content: "\201C"; /*Unicode for Left Double Quote*/
  position: absolute;
  left: -11px;
  top:-5px;
}

.dcquoteinbox::after{
  /*Reset to make sure*/
  content: "";
}





/* ATTN: where is this used? */
/* on testimonial reviews */
.dcpagelink {
	margin-top: 8px;
	font-style: italic;
	text-align: right;
}







/* ATTN: where is this used? */

/* hide links back to source page when we are showing in review */
.dcboxmode_def .dcpagelink {
    visibility: hidden;
}

.dcboxmode_def .dcboxfirstsentence {
	/*padding-bottom: 0px;*/
	/*line-height: 1;*/
	font-size: 130%;
}




















/* ATTN: is this still used? */
/* I think these are used for menulist tables */

/* table style with rows of items, image on left */
.dcitable {
  display: block;
  overflow:auto;
  border-spacing: 15px;
}

.dcirow {
	display: table-row;
	text-align: left;
	clear:both;
	margin: 20px;
}

.dcirow img , .dcirow .dcispacer {
	max-width: 160px;
	float:left;
	display: initial;
	text-align: left;
	margin-right: 20px;
	margin-top: 10px;
	margin-bottom: 15px;
	width: 120px;
}

.dcirow .dcitd {
	display: inline-block;
	vertical-align: top;
}










/* tool tip -- shown on received payment page 
from https://www.w3schools.com/css/css_tooltip.asp */
.dctooltip {
    position: relative;
    display: inline-block;
    /*border-bottom: 1px dotted black;*/ /* If you want dots under the hoverable text */
}

/* Tooltip text */
.dctooltip .dctooltiptext {
    visibility: hidden;
    width: 240px;
    background-color: black;
	opacity: 0.80;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
	padding: 10px;
    position: absolute;
    z-index: 1;
	top: -60px;
}

/* Show the tooltip text when you mouse over the tooltip container */
.dctooltip:hover .dctooltiptext {
    visibility: visible;
}




/* generic superscript class */
.dcsuperscript {
	vertical-align: super;
	font-weight: bold;
}




