@charset "utf-8";
*{
	box-sizing:border-box;
}
html, body{
	height: 100%;
}
body{
	width: 80%;
	margin: auto;
	font-family: 'Lato', sans-serif;
	color: #112f55;
}
.content-wrap{
	min-height: 100%;
	position: relative;
}
a:link{
	color: #112f55;
}
header{
	background: url(/National_Library/oe_/https://dafdigest.org/images/noisebg.gif);
	width: 100%;
	position: relative;
	margin-bottom: 1em;
}
.dd-logo{
	position: absolute;
	top: 25%;
	left: 2%;
	max-width: 55%;
	height: auto;
	}
.gemaraglobe{
	float: right;
	margin-right: 4%;
	max-width: 35%;
	height: auto;
}
.right-column{
	width: 20%;
	float: left;
	margin: 0px 0 0px 2em;
}
nav ul{
	padding: 0;
	margin: 0;
}
nav ul li,.sidebar-bottom{
	background: #f4eac6;
	text-align: center;
}
nav ul li{
	padding: 3% 7%;
	margin-bottom: 4%;
}
nav a, nav a:visited, footer a, footer a:visited{
	text-decoration: none;
	color: inherit;
}
nav a:hover, footer a:hover, a:visited{
	color: #30582c;
}
nav ul li, footer ul li, .features ul li{
	list-style: none;
}
nav ul li, footer ul li{
text-transform:uppercase;
}
.cctc-logo{
	margin: 2em 0;
	max-width: 100%;
	height:auto;
}
.sidebar-bottom{
	padding-bottom: 40%;
	font-size: .9em;
}
.main{
	width: 74%;
	float: left;
	text-align: center;
	padding-bottom: 80px;
	padding-left: 10px;
}
.main-text{
	color: #324358;
	max-width: 85%;
	padding: 13% 0 3% 0;
	margin: auto;
	position: relative;
	background: url(/National_Library/oe_/https://dafdigest.org/images/countries-background.jpg) no-repeat;
	background-size:100% auto;
	max-width: 697px;
	min-height: 437px;
}
.main-text::before{
	content: url(/National_Library/oe_/https://dafdigest.org/images/beitza.png);
	position: absolute;
	left: 1.5em;
	bottom: -2em;
}
.learn, .dyd{
	font-family: 'Droid Serif', serif;
	font-weight: 700;
}
.dyd{
	color: #356033;
	font-size: 1.3em;
}
.resource, .featuring{
	display: block;
	font-weight: 700;
	margin-top: 2em;
}
.main-text ul{
	list-style-position: inside;
	padding: 0;
	margin-top: .5em;
	font-family: 'Droid Serif', serif;
}
.features ul{
	margin: 0;
	padding: 0;
}
.subscribe{
	background: url(/National_Library/oe_/https://dafdigest.org/images/subscribe.png) center no-repeat;
	position: relative;
	padding: 3% 5% 3% 2%;
	left: 12.5em;
	top: -60px;
	color: #f4eac6 !important;
	text-decoration: none;
}
.testimonials{
	border-top: #f5f6f8 solid 3px;
	border-bottom: #f5f6f8 solid 3px;
	padding-bottom: 1em;
	padding-left: 6em;
	float: left;
	width: 100%;
	margin-top: 2em;
	height: 171px;
	text-align: left;
	background: -webkit-gradient(radial, center center, 0px, center center, 100%, , color-stop(0%, rgba(252,242,206,0)), color-stop(100%, rgba(255,253,221,1)));
	background: -webkit-radial-gradient(center, ellipse cover, rgba(252,242,206,0) 0%, rgba(255,253,221,1) 100%);
	background: -o-radial-gradient(center, ellipse cover, rgba(252,242,206,0) 0%, rgba(255,253,221,1) 100%);
	background: -ms-radial-gradient(center, ellipse cover, rgba(252,242,206,0) 0%, rgba(255,253,221,1) 100%);
	background: radial-gradient(ellipse at center, rgba(252,242,206,0) 0%, rgba(255,253,221,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcf2ce', endColorstr='#fffddd', GradientType=1 );
}
.testimonials h3{
	font-family: 'Droid Serif', serif;
}
blockquote{
	width: 75%;
	margin: auto;
}
blockquote cite{
	float: right;
}
footer{
	width: 76%;
	position: absolute;
	bottom: 0;
	right: 0;
	text-align: center;
	padding-bottom: .5em;
}
footer ul{
	margin: 0;
	padding: 0;
}
footer ul li{
	display: inline-block;
	padding: 0 2%;
}
footer p{
	font-size: .8em;
	margin-bottom: 0;
}
/*subscribe page*/
.subscribe-form{
	border: #f4eac6 medium solid;
	width: 60%;
	margin: auto;
	padding: 1em;
}
.red-asterik{
	color: #f00;
}
.vr-signup-form{
	width: 75%;
	margin: auto;
	padding-top: 10px;
}
.vr-field label{
	float:left;
}
.vr-field input{
	float:right;
}

.subscribe-form table{
	margin: auto;
}
.subscribe-form input{
	margin-top: 5px;
	border: 1px solid #999;
	padding: 3px;
}
/*archives & contact page & masechtas & sponsorships*/
.archives table, .contact table, .masechtas table{
	width: 60%;
	vertical-align: middle;
	margin: .5em auto;
}
.masechtas table{
	border-collapse: separate;
	border-spacing: 5px;
}
.masechtas table td{
	padding-top:1em;
}
.archives table legend, .sponsor-type {
	background: url(/National_Library/oe_/https://dafdigest.org/images/noisebg.png);
	color: #f4eac6;
	border-radius: 5px 5px 5px 5px;
	-moz-border-radius: 5px 5px 5px 5px;
	-webkit-border-radius: 5px 5px 5px 5px;
	border: 0px solid #000000;
	text-align: center;
}
.archives table legend{
	width: 10em;
	padding: .5em 0;
}
.sponsor-type{
	padding: .4em .3em;
	text-transform: uppercase;
	margin-bottom: .5em;
	display: inline-block;
}
.archives fieldset{
    border: #f4eac6 thin solid;
	margin: .5em;
    padding: 0.35em 0.625em 0.75em;
	height: 275px;
}
.archives ul{
	margin: 0;
	padding: 0;
}
.archives li{
	list-style-position: inside;
	list-style-type:
}
.ancDaf{
	padding: 0;
}
.sponsor-form{
	margin: 0 5%;
}
.sponsor-form legend{
	padding: .85em;
}
.sponsor-form ul{
	padding: 0;
}
.sponsor-form li{
	list-style-position: inside;
}
#spons{
	margin-bottom: 1em;
}
.opt-details{
	display: none;
}
.spons/mem{
	vertical-align: middle;
	float: left;
}
.sponsor-form table{
	width: 90%;
	margin: auto;
}
.sponsor-form table td{
	height: 2em;
}
.sponsor-form table td:first-child{
	text-align: right;
	padding-right: 1em;
	width: 40%;
}
.sponsor-form table td:last-child{
	text-align: left;
	width: 50%;
}
/*testimonials page*/
.testimonials-page{
	height: 600px;
	overflow: auto;
	position: relative;
	margin-bottom: 1em;
}
.testimonials-page h1{
	position: relative;
	top: 0;
}
.testimonials-page blockquote cite{
	float: none;
	display: block;
	margin-bottom: .75em;
}
.small-width-contact-us{
	display: none;
}
/*resources*/
.resources p{
	margin: .5em 0;
}
.resources{
	margin-bottom: .5em;
}
/*clearfix*/
.clearfix:after {
     visibility: hidden;
     display: block;
     font-size: 0;
     content: " ";
	 clear: left;
	 clear: right;
     clear: both;
     height: 0;
     }
/*media queries*/
@media only screen and (min-width: 1350px){
body{
	max-width: 1097px;
	/*so that it doesn't go beyond that width- the sides are left empty and the layout is centered*/
}
}
@media only screen and (max-width: 1290px){
body{
	width: 95%;
	/*so that there is just a bit white space on the sides in order that the contact us right panel doesn't get cut off*/
}
}
@media only screen and (max-width: 1081px){
	body{
		width: 100%;
		/*so that there is no white space on the sides- it was 80% in a larger size and then letters get cut off*/
	}
}
@media only screen and (min-width: 884px) and (max-width: 1000px){
	.sidebar-bottom, .right-column{
		width: 202px;
	}
	.main{
		width: 650px;
	}
	.testimonials{
		padding-left: 2em;
	}
}
@media only screen and (min-width: 884px) and (max-width: 905px){
	.right-column{
		margin: 0px 0 0px .75em;
	}
}
@media only screen and (max-width: 883px){
	.right-column{
		width: 100%;
		margin: 0;
		text-align: center;
	}
	.sidebar-bottom{
		display: none;
	}
	nav ul{
		text align: justify;
	}
	nav ul li:first-child{
		display: none;
	}
	nav ul li{
		display: inline-block;
		padding: .5em .25em;
		width: 24%;
		margin-bottom: 0;
		}
	nav ul:after {
	  content: '';
	  width: 100%;
	  display: inline-block;
	}
	.main, footer{
		width: 100%;
		margin-top: 1em;
	}
	.testimonials{
		float: none;
	}
	.small-width-contact-us{
		display: block;
		padding: .5em 6em;
		margin: 1em auto;
		background: #f4eac6;
		white-space: nowrap;
	}
	.small-width-contact-us .cctc-logo{
		margin: 0;
		float:left;
	}
}
@media only screen and (max-width: 673px){
	.main-text::before {
		content: url(/National_Library/oe_/https://dafdigest.org/images/beitza-smaller.png);
		bottom: 2em;
		left: 3em;
	}
}
@media only screen and (max-width: 630px){
	.main-text{
		background: url(/National_Library/oe_/https://dafdigest.org/images/countries-background-smaller-size.jpg) no-repeat center;
	}
	.subscribe{
		left: 10em;
	}
	.small-width-contact-us{
		padding: .5em 2em;
	}
	.testimonials{
		padding-left: 4em;
	}
}
@media only screen and (max-width: 600px){
	.main-text::before {
		left: 0;
		bottom: 1em;
	}
}
@media only screen and (max-width: 575px){
	.main-text{
		padding: 15% 0 3% 0;
	}
}
@media only screen and (max-width: 520px){
	nav ul li{
		width: 49%;
		margin-bottom: 3px;
	}
	.testimonials{
		margin-bottom: 20px;
	}
	.testimonials blockquote{
		width: 80%;
	}
	footer p{
		font-size: .7em;
	}
}
@media only screen and (max-width: 480px){
	.dd-logo{
		float: left;
		max-width: 100%;
		padding: 20px;
		position: static;
	}
	.gemaraglobe{
		display: none;
	}
	nav ul li{
		width: 100%;
	}
	nav ul li:first-child{
		display: inline-block;
	}
	.main-text::before {
		display: none;
	}
	.main-text{
		background:url(/National_Library/oe_/https://dafdigest.org/images/countries-background-smallest-size.jpg) no-repeat;
		background-size: 100%;
		max-width: 100%;
		min-height: 480px;
	}
	.testimonials {
   		padding-left: .25em;
		height: 178px;
	}
	.testimonials blockquote {
    	width: 95%;
	}
	.testimonials p {
    	margin: .5em 0;
	}
	.testimonials h3{
		margin: 1em 0 .5em 0;
	}
	.small-width-contact-us {
    	padding: 0.5em .5em .5em 0;
		white-space: nowrap;
		margin-bottom: 80px;
	}
	.small-width-contact-us .cctc-logo {
	max-width: 50%;
	}
	footer li{
		display: block;
		padding: .25em 0;
	}
	.contact table input{
		size: auto;
	}
}
textarea{
	width: 100%;
}
@media only screen and (max-width: 400px){
	.main-text {
		font-size: .9rem;
	}
	.contact table {
		margin: .5em auto 40px auto;
	}
}
