/* The sidebar menu style */

.sidenav {
	height: 100%;								/* Remove for 'auto' height */
	width: 160px;								/* Width of the sidebar */
	position: fixed;							/* Fixed sidebar */
	z-index: 1;									/* Stay on top */
	top: 0;										/* Stay at the top */
	left: 0;									/* Align to the left */
	overflow-x: hidden;							/* Disable horizontal scroll */
	padding-top: 20px;							/* Give space on top */
	text-align: center;							/* Align text in center */
	background-color: whitesmoke;				/* Background diff from main */
}

/* The navigation menu links style */

.sidenav a {
	text-decoration: none;						/* No formatting for links */
	padding: 3px;								/* Leave gap between links */
	display: block;								/* Make it box model element */
}

/* Main division content style with side navigation bar */

.main {
	margin-left: 160px;							/* Width of the sidebar */
}

/* Full division content style without side navigation bar */

.full {
	margin-left: 0px;							/* No sidebar present */
}

/* Floating division to create columns */

.column {
	float: left;								/* Multiple floating columns */
	margin: 0px 8px 12px 8px;					/* Leave gap between columns */
}

/* Centered division for sanskrit hymns */

.hymn {
	margin-left: 20%;
	display:inline-block;
	border: 2px outset blue;
	background-color: aliceblue;
	text-align: center;
	font-family: verdana;
	font-size: 16px;
	color: darkblue;
}

/* Style of the search box */

input[type=text] {
	background-image: url('/search.png');		/* Add a search icon */
	background-position: 4px 4px;				/* Position the icon */
	background-repeat: no-repeat;				/* Do not repeat the icon */
	background-size: 20px 20px;					/* Set the size of the image */
	float: right;								/* Right float the input box */
	padding: 4px 10px 6px 30px;					/* Position the input text */
	margin-bottom: 12px;						/* Leave space below the box */
	font-size: 14px;							/* Set the size of the text */
	width: 160px;								/* Match mobile 320px width */
}

/* Do not give any special formatting to hyper links */

a {
	text-decoration: underline;					/* Underline the links */
	font-family: verdana;
	font-size: 14px;
}

/* When you hover mouse over the navigation links, change their color */

a:hover {
	color: darkblue;							/* Change color on hover */
	font-weight: bold;							/* Make it bold on hover */
}

/* Define heading and paragraph default font and style */

h1 {
	font-family: verdana;
	font-size: 18px;
}

h2, p, ul, ol {
	font-family: verdana;
	font-size: 14px;
}

/* Define the catelogue list content style */

ul.catelog {
	list-style: none;
}

ul.catelog li {
	float: left;
	width: 8em;
}

/* Define the reference list content style */

ol.reflist {
	line-height: 24px;							/* Leave space between items */
	font-size: 12px;
}

/* Define table default font and style */

table {
	border-collapse: collapse;					/* Show a single line */
	text-align: left;							/* Applies to entire table */
}

td, th {
	border: 2px solid white;					/* Same as main background */
	padding: 4px;								/* Leave gap in cell text */
	font-family: verdana;
	font-size: 14px;
}

td {
	vertical-align: text-top;					/* Top align the text */
	background-color: whitesmoke;				/* Table darker than main */
}

th {
	vertical-align: middle;						/* Middle align the header */
	background-color: gainsboro;				/* Header darker than table */
}

table tr:first-child td {
	border-top: 0;								/* Remove table top border */
}

table tr td:last-child {
	border-right: 0;							/* Remove table right border */
}

table tr:last-child td {
	border-bottom: 0;							/* Remove table bottom border */
}

table tr td:first-child {
	border-left: 0;								/* Remove table left border */
}

/* On screens with width below 460px, change style */

@media screen and (max-width: 460px) {
	.sidenav {width: 120px;}					/* Narrow the navigation bar */
	.main {margin-left: 120px}					/* Main margin same as above */
	.hymn {font-size: 14px}

	input[type=text] {font-size: 12px;}

	a {font-size: 12px;}						/* Reduce all the font sizes */
	h1 {font-size: 16px;}
	h2, p, ul, ol, td, th {font-size: 12px;}
	ol.reflist {font-size: 10px;}
}
