/* RESET */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* END RESET */
@font-face{
	font-family: 'WritingForResearch';
	src: url('https://creativeresearchmethods.com/fonts/SourceSerif.ttf');
}

body {
  margin: 0;
  padding: 0;
  
}
.show_assoc_array{
	font-size: 12px;
}
div {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
a {
	text-decoration: none;
	font-weight: 600;
}
a:Hover{
	text-decoration: underline;
}
em {
  font-weight: 600;
}
#main{
	-webkit-box-sizing: border-box;
    box-sizing: border-box;
     background-image: url('../images/bg.jpg');
    background-color: rgba(224,224,224,0.8);
    background-blend-mode: lighten;
    background-repeat: repeat repeat;
    font-family: 'WritingForResearch';
	font-size: 1.4vw;
	padding: 30px;
	/* padding: 0px 50px 50px 50px;*/
	width: 100%;
	z-index: 1;
  
}
/* Modal dialog stuff */
#overlay {
	display: none;
    position:fixed;
    top:0;
	width:100%;
	height:100%;
    left:0;
    background-color:#ddd;
    opacity:0.5;
    z-index:1001;
    overflow-y: scroll;
}
.modal{
	display: none;
    position: absolute;
    width:80vw;
    overflow-y: scroll;
    background-color:#fff;
    margin: 0px;
    top: 2vh;
    left: 10vw;
    opacity:1;
    z-index:1002;
    text-align: center;
    border: thick black solid;
    padding: 2vw;
    transition: display 1s;
      
}
.ontop{ /* to allow stacking of modals */
	z-index: 1003;
}
.modal p{
	margin-top: 1vh;
	font-size: clamp(10px, 1vw, 20px);	
}
.modal p input[type=button]{
	margin-top: 1vh;
	font-size: clamp(14px, 1vw, 20px);		
	padding: 0.5vh;
	font-weight: bolder;
}

p.modalheading{
	text-align: center;
	font-size: clamp(25px, 2vw, 34px);	
	font-weight: 600;
	margin-top: 1.5vh;
	clear: both;
}
h1 {
	font-size: 6vh;
	font-weight: 800;
	text-align: center;
	margin-top: 10px;
}
h2{
	font-size: clamp(25px, 2vw, 34px);	
	font-weight: 600;
	text-shadow: 1px 1px white;
	text-align: center;
}
.center,
.normal.center{
	text-align: center;
}
.bottom{
	vertical-align: bottom;
}
.formheading{
	text-align: center;
	font-size: clamp(25px, 2vw, 34px);	
	border-top: thin black solid;
	margin-top: 1.5vh;
	padding-top: 1.5vh;
	clear: both;
}

h2.inset{
	margin: 1vh 3vh;
}
.quote{
	font-style: italic;
}
div.flexcontainer{/* generic thing for narrow screens */
	display: flex;
	flex-flow: row wrap;
	justify-content: space-around;
	
}
.normal,
.faqq,
.faqa {
	margin: 1vh;
	font-size: clamp(15px, 1.1vw, 20px);
	font-weight: 500;
	text-align: left;
}
.normalc{
	margin: 1vh;
	font-size: clamp(15px, 1.1vw, 20px);
	font-weight: 500;
	text-align: center;
}
.normalc em,
.normal em{
	font-weight: 800;
}
.normalcsm{
	margin: 1vh;
	font-size: clamp(12px, 0.9vw, 16px);
	font-weight: 500;
	text-align: center;
	color: #036;
}
.faqq{
 color: #660066;
}
.currency{
text-align: right;
font-family: monospace;
}
.pricingtable{
	padding: 6px;
	border: thin black solid;
	margin: 15px auto;
	width: 50%;
	font-weight: 500;
	font-size: clamp(15px, 1.1vw, 20px);
}
.pricingtable div{
	display: flex;
	justify-content: space-between;
	padding: 7px;
}
.feedbackblock{
	width: 70%;
	border: thin black solid;
	padding-top: 2vh;
	padding-bottom: 2vw;
	margin: auto;
}
.feedbackblock ul{
	text-align: left;
	 list-style-position: inside;
}
#signup{
  float: right;
  top: 0;
  width: 10vw;
  margin: 3vw;
  border: 3px solid #999999;
}
.louder{
	text-align: center;
	font-weight: 700;
	font-size: clamp(25px, 2vw, 34px);	
	text-shadow: 0 0 2px #FF0000;
}
.toppad{
	padding-top: 3vh;
}
.sixtypercent{
	width: 60vw;
}
.fiftypercent{
	width: 50vw;
}
.fortypercent{
	width: 40vw;
}
.thirtypercent{
	width: 30vw;

}
.logolink{
	width: 85%;
}
.popup{
	display: none;
}
.photodiv{
	margin: auto;
	flex: 1 1 0;
	width: 0;
	font-size: clamp(18px, 1.4vw, 26px);
	text-align: center;
	padding: 0px 5vw; 
}
.photodiv3rd{
	/* width: 30vw; deprecated because it's now a flex item*/
	margin: auto;
	flex: 1 1 0;
	width: 0;
	font-size: clamp(18px, 1.4vw, 26px);
	text-align: center;
	float: left;
}
.photo{
	height: 25vh;
	padding: 2vh 2vw;
}
.left{
float: left;
padding-left: 5vw;
}
.right{
float: right;
padding-right: 5vw;
}
.clear{
clear: both;
}
.socialicons{
	position: absolute;
	right: 0;
	line-height: 40px;
	padding-right: 15px;
}
.sponsorlogo{
	width: 180px;
	align-self: center;
	padding: 0px 20px;
}
div.sponsor_logos{
	display: flex;
	width: 100%;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
	align-items: center; 
	margin: auto;
}
.topborder{
	border-top: thin black solid;
	width: 100%;
	margin-top: 20px;
	padding-top: 20px;
}
.bottomborder{
	border-bottom: thin black solid;
	width: 99%;
	margin-bottom: 20px;
	padding-bottom: 20px;
}
#paymentlinks{
	display: flex;
	width: 100%;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
	align-items: center; 
	margin: auto;
}
.linkiframe{
	width: 30vw;
	border: thin black solid;
}
#registrationdiv{
	display: flex;
	width: 100%;
	margin: auto;
	flex-direction: row;
	flex-wrap: wrap;
	text-align: center;
	justify-content: space-between;
	align-items: start;
 
}
#registration,
#donation,
#bursary {
	width: 30vw;
	text-align: center;	
}

.actionbutton{
	font-size: clamp(20px, 2vw, 30px);	
	padding: 1vh;
	margin: 1vh;
}
.tablebutton{
	font-size: clamp(13px, 1vw, 20px);	
	padding: 0.5vh;
	margin: 0.5vh;
}
#footer,
#footer p{
	font-size: clamp(11px, 0.8vw, 14px);
	text-align: center;
	clear:both;
	display: block;
	padding-bottom: 10px;

}

/* DIVs for forms */
.formlabel{
	width: 35%;
	text-align: right;
	float: left;
}
.formitem,
.formitemcheckradio{
	width: 63%;
	text-align: left;
	float: right;
}
input[type=text],
input[type=password],
textarea{
	font-size: clamp(18px, 1.4vw, 26px);
}

.formrow input[type='radio'],
.formrow input[type='checkbox'] {
	border: none;
}
.formitem input,
.formitem select, 
.formitem textarea {
	font-size: clamp(18px, 1.4vw, 26px);
	border: solid 1px #999;
	float: left;
}
.formrow{
	overflow: auto;
	padding-top: 10px;
}
.formdivider{
	clear: both;
	border-bottom: thin black solid;
}
div.spaced{
	padding: 8px 0px;
}
.formrow .rightlabel{
	float: left;
	text-align: left;
	font-weight: normal;
	display: inline;
	font-size: clamp(12px, 1.8vw, 18px);
}
.infolabelcolumn,
.editlabelcolumn{
	float: left;
	width: 35%;
	text-align: right;
	font-weight: normal;
	color: #036;
	font-size: clamp(12px, 1.8vw, 18px);
}
.infotextcolumn {
	float: right;
	width: 35%;
	text-align: left;
	font-weight: bold;
}
.editfieldcolumn,
.editfieldcolumncheckboxrow{
	float: right;
	width: 63%;
	text-align: left;
	font-weight: normal;
}

.editfieldcolumncheckboxrow{/* rows of checkboxes in eg o_job::historic_visit_form() */
	margin-top: 2px;
	margin-bottom: 5px;
}
.editfieldcolumn textarea{
	height: 100px;
}
.editfieldcolumn textarea,
.editfieldcolumn select,
.editfieldcolumn input[type='text'],
.editfieldcolumn input[type='radio']{
	width: 80%;
	text-align: left;
	font-size: clamp(13px, 1.2vw, 19px);
}
.editfieldcolumn input[type='checkbox']{
	width: 18px;
	float: left;
	text-align: left;
	margin-left: -1px;
	margin-top: -1px;
	margin-bottom: 2px;
}
.checkboxoption{
	text-align: center;
}
.editfieldcolumn p{
	line-height: 10px;
	font-weight: normal;
}

.detailspanel,
.editform{
	font-family: 'WritingForResearch';
	font-size: 1vw; 
	font-weight: bold; 
	color: #333333; 
	text-align: center; 
	width: 80%;
	margin: 10px auto;
	padding: 10px 0px;
	/*border-top: thin black solid;*/
}
.detailspanel div{
	padding-top: 5px;
}
.editfieldcolumncheckboxrow input[type='radio']{
	float: left;
}
.indented{

}
smaller{
}
#crm_activities{
	text-align: center;
	margin: auto;
}
div#mark-paid_popup p{
	text-align: center;
	font-size: 0.9em;
}
/* Writing for Research */

.attribution{
	font-size: clamp(12px, 1.1vw, 20px);
}
.crmproject{
	font-size: clamp(12px, 1.1vw, 20px);
}
#retreat-list{ /* Container for list of retreats on home page */
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	flex-flow: row wrap;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.retreat-list-item{
	padding: 0px;
	width: 400px;
	border: thin solid;
	border-color: #000066;
	flex: none;
	text-align: left;

}
.retreat-list-item p.rheading{
	padding: 1vw 2vw;
	color: white;
	background-color: #000066;
	font-weight: 600;
	font-size: clamp(17px, 1.4vw, 24px);
}
.retreat-list-item p.detailslink{
	padding: 1vw 2vw;
	background-color: #000066;
	font-weight: 600;
	font-size: clamp(17px, 1.4vw, 24px);
	text-align: right;
	color: white;
	
}
.retreat-list-item p.detailslink a {
	color: white;
	text-decoration: none;
}
.retreat-list-item p.detailslink a:Hover {
	text-decoration: underline;
}
.blink{
	color: #99FFFF;
	font-size: clamp(13px, 0.8vw, 17px);
	animation: blinker 1s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}
.retreat-list-item p.rtext{
	padding: 2vw;
	font-weight: 400;
	font-size: clamp(15px, 1.1vw, 20px);
}
.indeximage{
	width: 398px;
	margin: 0px;
	padding: 0px;
	vertical-align: bottom;
}

.retreat-info{ /* Container for each retreat full size*/
	margin: auto;
}
.retreat-info p{
	
}
.retreat-infoheading {  /* div for heading section */
	width: 80vw;
	margin: auto;
}
.retreat-infoheading h2 {
	font-weight: 700;
	text-align: center;
	font-size:  clamp(25px, 2vw, 34px);	
}

.retreat-infoheading p {
	font-weight: 700;
	text-align: left;
	font-size:  clamp(20px, 1.7vw, 30px);	
}
.retreat-info-text{  /* div for text section */
	width: 80vw;
	margin: auto;

}
div.retreat-info-text img{
	float: right;
	width: 40vw;
	margin: 10px 2vw 2vh 2vw;
}
.retreat-info-text p,
.retreat-info-text .deadline{
	font-weight: 400;
	text-align: left;
	font-size:  clamp(16px, 1.4vw, 22px);
}
.retreat-info-text .deadline{
	color:#990000;
}
.retreat-info-text p.heading{
	font-size:  clamp(20px, 1.6vw, 26px);
	font-weight: 700;
	text-align: left;
}
.pricingtable,
.footnote{
	font-size: clamp(14px, 1vw, 20px);
}
div#booking_page p em{
	font-weight: 800;
}

@media screen and (max-width: 1000px) {
	#main{
		padding: 10px;
	}

	.pricingtable{
		width: 100%;
		margin: auto;
		font-weight: 500;
		font-size: clamp(14px, 2vh, 20px);
		padding: 1vw;
	}
	.modal{
		font-size: 2vh;
		width:90vw;
		margin: auto;
		left: 5vw;
	}
	h1 {
		font-size: 4vh;
		font-weight: 800;
		
	}
	h2{
		font-size: 3vh;
		font-weight: 600;
		
	}
	.normal,
	.faqq,
	.faqa{
		font-size: 2vh;
	}
	.normalcsm{
		color: #036;
		font-size: 1.6vh;
	}
	.faqheading{
		font-size: 3vh;
	}
	.faqq,
	.faqa{
		text-align: left;
	}
	.faqq{
		color: #660066;
	}
	.sponsorlogo{
		width: 25vw;
		padding: 0vw 5vw;
	}
	#registration,
	#donation,
	#bursary {
		width: 100%;
		text-align: center;	
	}
	/* DIVs for forms - also use normal for labels */
	.formlabel{
		display: block;
		width: 100%;
		text-align: center;
		float: none;
	}
	.formitem{
		display: block;
		width: 100%;
		text-align: center;
		float: none;
	}
	.formitemcheckradio{
		text-align: left;
		padding-left: 10vw;
		width: 100%;
	}
	#_title,
	.editfieldcolumn textarea,
	.editfieldcolumn select,
	.editfieldcolumn input[type='text'],
	.editfieldcolumn input[type='checkbox'],
	.editlabelcolumn,
	.editfieldcolumn,
	.editfieldcolumncheckboxrow {
		display: block;
		width: 95%;
		font-size: 2vh;
		text-align: center;
		float: none;
		clear: both;
		margin: auto;
		
	}
	.editfieldcolumn textarea {/* override the above */
		text-align: left;
	}
	
	.indented{ /* radio buttons with right labels */
		padding-left: 3vw;
		float: left;
		font-size: 1.6vh;
		vertical-align: middle;
	}
	.indented label{
		vertical-align: middle;
	}
	.editform {
		width: 98%;
	}
	.smaller,
	.rightlabel {
		font-size: clamp(10px, 1.3vh,22px);
		float: left;
	}
	.center{
		text-align: center;
	}
	#footer,
	#footer p,
	#footer a{
		font-size: 1.8vh;
	}
	/*  WFR & home page modifications */
	.fortypercent,
	.fiftpercent,
	img.thirtypercent{
		width: 70vw;
		float: none;
		padding: 10px;
		margin: auto;
	}
	
	div.retreat-info-text img{
		display: block;
		float: none;
		width: 80vw;
		margin: auto;
		padding: 10px 0px 10px 0px;
	}
	/* added with flexbox */
	.photodiv3rd,.photodiv{
		width: 95%; 
	}
}
