/* 
very strongly based on mishnah_indexmenu.css
*/
body { 
    font-family: arial;
    font-size: 16px; 
    background: url("daftile.gif");
} 
.clear { clear: both; }
img { border: none; }   
    
#options {width: 457px; margin: 10px auto; text-align: center; color: #0000FF}
#options input { margin-bottom: 15px; font-size: 1em; }
#options span { font-size: 1em; }

/**********************************************
USED FOR THE DROP-DOWN 2-LEVEL MENU & TABLE
***********************************************/
/*Picker tables*/
.section_parent {
    display: flex;
    flex-wrap: nowrap;
    margin: 1px;
    gap: 3px;
}

.chapter_title {
	flex-basis: 12%;
}
.section_content {
	flex-basis: 88%;
}
.section_topic {
	border: 2px solid #000;
	background:white;
}
.section_chapter {
    border: 1px solid gray;
    padding: 20px 5px;
    font-size: 16px;
    font-family: sans-serif;
    font-weight: 400;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section_name {
    margin-bottom: 1px;
    float: left;
    padding: 4px;
    display: flex;
    border-radius: 2px;
    align-items: center;
    background: cornflowerblue;
    border: 1px solid gray;
    margin:5px;
}
.section_name a {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    font-family: sans-serif;
    letter-spacing:0.5px;
}
.section_name a:hover {
    text-decoration: none;
}
.section_name:hover {
    background: #12449c;
}
@media(max-width: 770px) {
   .chapter_title {
	flex-basis: 16%;
}
   .section_content {
	flex-basis: 84%;
}
}
@media(max-width: 600px) {
   .chapter_title {
	flex-basis: 21%;
}
   .section_content {
	flex-basis: 79%;
}
   .section_topic {
    margin-right: 14px;
}
}

#menu {padding: 10px; font-size: 16px; position: relative; margin: auto; }
.topnav, .topnav ul {
    padding: 0; 
    margin: 0; 
    list-style: none;
	display: inline-block;
}
.topnav li {
    position: relative;
    width: 135px;
    border: 1px solid #9AC1C9;
    background-color: #CCDDFF;
    color: #2D486C;
    font-size: 1em;
    font-weight: bold;
}
.topnav > li:not(.inactive) > a{
	background: #337ab7;
	color: white;
}
html[dir=ltr] .topnav li {
    float: left;
    margin-right: 0.5em;	
}
html[dir=rtl] .topnav li {
    float: right;
    margin-left: 0.5em;	
}
.topnav li:hover {
    background-color: #99CCFF;
}
.topnav a {
    display: block;
    text-decoration: none;
    color: #2D486C;
}

* html .topnav a {
    width: 100%;
}
.topnav ul {
    display: none;
    position: absolute;
    padding: 0;
	line-height: 125%;
}
.topnav ul li {
    border: 0 none transparent;
    border-bottom: 1px solid #E7EDF5;
    background-color: #CCDDFF;
    font-size: 80%;
    padding: 0;
}

@media(min-width: 1000px) {
	.topnav li:hover ul{
		display: block;
		z-index: 1;
	}
	.topnav li a {
		margin: 0 auto;
	}
}

.topnav ul li span{
	display: block;
}

@media(max-width: 999px) {
	.topnav li a br {
		display: none;
	}
	.sec_nav ul li{
		width:875px;
	}
	#min-width-1000px{
		display: none;
	}
	.parsha_title span{
		display: block;
	}
	.chumash_view .topnav {
		display: block;
	}
	.topnav > li {
		width: 100% !important;
		line-height: 30px;
	}
	.topnav > li:first-child {
		border-radius: 20px 20px 0 0;
		overflow: hidden;
	}
	.topnav + .topnav > li:first-child {
		border-radius: 0;
	}
	.topnav > li:last-child {
		border-radius: 0 0 20px 20px;
		overflow: hidden;
	}
	.topnav ul {
		position: relative;
	}
 	html[dir=ltr] .topnav li {
		margin-right: 0;
	}
	html[dir=rtl] .topnav li {
		margin-left: 0;
	}
	.topnav li {
		width: auto;
		float: none !important;
	}
	.topnav ul li {
		border: 1px solid #9AC1C9;
		border-width: 1px 0 0;
	}
	.topnav .open_menu_item {
		cursor: pointer;
		position: absolute;
		display: block;
		width: 36px;
		/* border: 1px solid #9AC1C9; */
		border: 1px solid transparent;
		top: -1px;
		color: #2D486C;
		/* background: gray; */
		background: transparent;
	}
	.topnav .open_menu_item:before {
		content: '\2bc6';
	}
	.topnav li.hover .open_menu_item:before {
		content: '\2bc5';
	}
	html[dir=ltr] .topnav .open_menu_item {
		right: -1px;
	}
	html[dir=rtl] .topnav .open_menu_item {
		left: -1px;
	}
	.topnav ul li:after{
		content: ' ';
		display: block;
		clear: both;
	}
	.topnav ul li > span,
	.topnav ul li > a > span{
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: 0 5px;
	}
	html[dir=ltr] .topnav ul li span {
		float: left;
	}
	html[dir=rtl] .topnav ul li span {
		float: right;
	}
	html[dir=rtl] .topnav ul li span:first-child{
		text-align: left;
	}
	html[dir=rtl] .topnav ul li span:last-child{
		text-align: right;
	}
	html[dir=ltr] .topnav ul li span:first-child{
		text-align: right;
	}
	html[dir=ltr] .topnav ul li span:last-child{
		text-align: center;
	}
}

.datadiv { margin: 30px auto 0 auto; background-color: transparent; max-width: 800px; }
.datadiv h3 { color: #2D486C; text-align: center; margin: 0.5em 0 0.5em 0; }
.topic { border: 2px solid; background-color: white; overflow: hidden; } 
.topic td { border: 1px solid; text-align: center; } 
.topic td a { display: block; } 

#credits { width: 100%; }
#credits img { width: 100px; height: 80px; }
.resource_info { width: 45%; }
.resource_info span { font-size:1em; }
.resource_info h3 { margin-bottom: 2px; font-size: 1.2em; }
.todays_info { width: 10%; }

/*Button to Show Current Maseches or text 'Mishnayos in red are today's'*/
.current_status { text-align:center; margin-top:1.5em; }
.current_status p { color:red; margin:0em 0em 0em 0em; font-weight:bold; }
.current_status .button-link {
    display:inline-block;
    padding: 2px 5px 2px 5px;
    background: #6699CC;
    color: #FFF;
    font-weight:bold;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: solid 1px #99CCFF;
    text-decoration: none;
    margin:5px 2px 5px 2px;
    height: 20px;
}
.current_status .button-link:hover {
    background: #99CCFF;
    border: solid 1px #6699CC;
    font-weight:bold;
    text-decoration: none;
}

/* **************************** */

body{text-align:center;}

#menu.openmenu .topnav ul {
	display: block;
	position: relative;
}

.topnav:after{
	content: ' ';
	display: block;
	clear: both;
}
.topnav .inactive {
	background-color: darkgray
}
.topnav .inactive a{
	color: lightgray;
}
#toggleview_form input{margin-top: 30px;}
.chumash_view .topnav {max-width: 868px}
.datadiv > h3{font-size: 1.5em}
.datadiv > .legend{
	text-align: center;
	color: black;
	margin-bottom: 24px;
}
.topic {
	padding-bottom: 1px;
}
html[dir=ltr] .topic {
	padding-left: 67px;
}
html[dir=rtl] .topic {
	padding-right: 67px;
}
.topic > .chapter{
	width: 63px;
	height: 63px;
}
html[dir=ltr] .topic > .chapter{
	clear: left;
	margin-left: -66px;
}
html[dir=rtl] .topic > .chapter{
	clear: right;
	margin-right: -66px;
}
.topic > div{
	display: block;
	line-height: 30px;
	width: 30px;
	border: 1px solid gray;
}
html[dir=ltr] .topic > div{
	float: left;
	margin: 1px 1px 0 0;
}
html[dir=rtl] .topic > div{
	float: right;
	margin: 1px 0 0 1px;
}
.topic > div a{
	color: white;
	text-decoration: none;
	background: cornflowerblue;
	line-height: 30px;
	width: 30px;
	display: block;
}
.topic > div a:hover{
	background: #12449c;
}
div.disabled{
	color: gray;
}

