@import 'https://fonts.googleapis.com/css?family=Playfair+Display|Open+Sans';


body {
	background-color:#ddd;
	font-family: Playfair Display, Arial, Helvetica, Sans;
	margin: 30px 20px 20px 20px;
}
h1{
	font-size: 24px; 
}
table {
	width: 100%; 
	border-collapse: collapse;
}
th {
	text-align: left;
	background-color: rgba(107, 136, 168,0.7);
	color: #fff;
}
th, td{
	padding: 5px 1vw;
	vertical-align: top;
}
table a{
	text-decoration: none;
	border-bottom: 1px dashed #999; 
}
#all{
	max-width: 1400px;
	margin: auto;
	background-color:#fff; 


}
.header{
	background-image:url('images/newchurch.jpg');
	background-repeat:no-repeat;
	background-position:center center;
	height: 450px;
	background-size: cover;
	position:relative; 
	border-radius: 6px 6px 0 0; 
}
.container{
	max-width: 1400px;
	padding: 2vw;
	margin: auto;
}
.newchurch{
	font-family:Playfair Display, Arial, Helvetica, sans-serif;
	font-size: 100px;
	color: #fff;
	text-align:right;
	text-shadow: #000 2px 2px;
	line-height: 100px; 
	padding: 2vw 2vw 0.3vw 2vw;
}
.isleofwight{
	font-family: Playfair Display, Arial, Helvetica, sans-serif;
	font-size: 42px;
	color: #fff;
	text-align:right;
	text-shadow: #000 2px 2px;
	line-height: 42px; 
	padding: 0.3vw 2vw 2vw 2vw;
}
/* drop down menu */

.nav {
	margin: auto;
	width: 800px;
	text-align: center; 
}
.navigation{
	height: 60px;
	background-color:rgba(107, 136, 168,0.7);
	text-align: center;
}
.clearfix::after
{
	content: '';
	display: table;
	clear: both;
}


#nav
		{
			font-family: 'Open Sans', sans-serif;
			font-weight: 400;
			width: 100%;
			position: relative;
			margin: -16px 0 0 0;
			z-index: 100;

		}

#nav > a
			{
				display: none;
			}

#nav li
			{
				position: relative;
				list-style: none; 
			}
#nav li a
				{
					color: #fff;
					display: block;
					text-decoration: none; 
				}
#nav li a:active
				{
					background-color: #666 !important;
				}

#nav span:after
			{
				width: 0;
				height: 0;
				border: 0.313em solid transparent; /* 5 */
				border-bottom: none;
				border-top-color: #fff;
				content: '';
				vertical-align: middle;
				display: inline-block;
				position: relative;
				right: -0.313em; /* 5 */
			}

/* first level */

#nav > ul
			{
				height: 60px;

	
			}
#nav > ul > li
				{
				/*	width: 25%; 
					height: 100%;*/
					float: left;
				}
#nav > ul > li > a
					{
					/*	height: 100%;*/
						font-size: 14px; /* 24 */
						line-height: 1.5em; /* 60 (24) */
						text-align: center;
						padding: 19px 20px 20px 20px;

					}
#nav > ul > li:not( :last-child ) > a
						{
							border-right: 1px solid #fff;
						}
#nav > ul > li:hover > a,
#nav > ul:not( :hover ) > li.active > a
						{
							background-color: #000;
						}


/* second level */

#nav li ul
				{
					background-color: rgba(30,30,30, 0.8);
					display: none;
					position: absolute;
					top: 100%;
					width: 200px;
					text-align: left;

				}
#nav li:hover ul
					{
						display: block;
						left: 0;
						right: 0;
					}
#nav li:not( :first-child ):hover ul
						{
							left: -1px;
						}
#nav li ul a
						{
							font-size: 0.9em; /* 20 */
							border-top: 1px solid #000;
							padding: 0.75em; /* 15 (20) */
												margin-left: -40px;

						}
#nav li ul li a:hover,
#nav li ul:not( :hover ) li.active a
							{
								background-color: #666;
							}




.footer{
	padding: 20px 3vw;
	background-color: #ddd;
	text-align: right;
	color: #000
}
.footer a{
	color: #000; 
	text-decoration: none;
	padding: 0 10px; 
} 

.footer a:hover{
	color: #333; 
	text-decoration: underline;
} 
.maintext{
	padding: 20px 5vw;
	font-size: 16px;
	color: #333;
}
.maintext a{
	color: #333; 
} 
.councillors, .planning {
	max-width: 1000px;
	margin: auto;
}	
.blank td{
	background-color: #fff !important; 
	height: 30px; 
}
 
.councillors tr:nth-child(odd) > td{
    background-color: #fcfcfc;
}
.councillors tr:nth-child(even) > td {
    background-color: #efefef;
}
.planning td {
    background-color: #efefef;
}
div.darker {
  	position: -webkit-sticky;
  	position: -moz-sticky;
  	position: -ms-sticky;
  	position: -o-sticky;
  	position: sticky;
	top: 0;
	background-color: #333;
	color: #fff;
	font-size: 20px; 
	padding: 5px 1vw;
	margin-bottom: 20px; 
}
.newsdiv:nth-child(odd)  {
    background-color: #f9f9f9;
}
.newsdiv:nth-child(even)  {
    background-color: #efefef;
}
.newsdiv {
	padding: 5px 1vw;
	margin-bottom: 20px;
}
.planlink {
	text-align: right; 
} 
.councillors th a{
	color: #fff;
}
#calendar { 
	width: 100%;
	font-size: 13px;
	line-height: 13px;
	border-collapse:collapse;
	table-layout: fixed;
}
#calendar a {
	color: #fff; 
}
#calendar a:hover {
	color: #ccc;
} 
#calendar td {
	padding: 3px;
	border: 1px solid #444;
}
td {
	vertical-align: top;
} 
.topdays td{ 
	text-align: center; 
	background: #ca2026;
	color: #ffffff;
	padding: 20px !important; 
} 
.highlighteddayboxes {
	background: #ca2026; 
	height: 90px;

	text-align: left;
}
.dayboxes { 
	background-color:rgba(107, 136, 168,0.9);
	height: 90px;

	text-align: left;
} 
.booked { 
	background: #1a204f; 
	height: 90px;

	text-align: left;
	color: #fff !important; 
}
.beforedayboxes, .afterdayboxes { 
	height: 90px;

} 
.numbers { 
	font-family: Times New Roman;
	font-size: 24px;
	float: right;
	line-height: 32px; 
	color: #fff;
	padding: 0px 0px 5px 5px;  
} 
.pictures {
	float: left;
	padding: 5px;
	width: 150px;
	height: 150px; 
	text-align: center; 
} 
.pictures img {
	border-radius: 10px;
}
.clear {
	clear: left;
} 


@media only screen and ( max-width: 640px )
		
{
td, th{
	display: block; 
}
.beforedayboxes, .afterdayboxes, .topdays { 
	display: none; 
}
.dayboxes, .booked, .highlighteddayboxes {
	width: 100%; 
}
}

@media only screen and ( max-width: 990px )
		
{
body {
	margin: 0;
}
		
.nav {
	margin: 0;
	width: auto;
}
.navigation{
	height: auto;
	background: none;
}
.newchurch {
	font-size: 12vw;
	line-height:  12vw;
}
.isleofwight{
	font-size: 8vw;
}
		
		
#nav
			{
				position: relative;
				top: auto;
				left: auto;
				margin: 0 0 0 0;
			}





#nav > a
				{
					width: 3.125em; /* 50 */
					height: 3.125em; /* 50 */
					text-align: left;
					text-indent: -9999px;
					background-color: #000;
					position: relative;
					}
#nav > a:before,
#nav > a:after
					{
						position: absolute;
						border: 2px solid #fff;
						top: 35%;
						left: 25%;
						right: 25%;
						content: '';
					}
#nav > a:after
					{
						top: 60%;
					}

#nav:not( :target ) > a:first-of-type,
#nav:target > a:last-of-type
				{
					display: block;
				}


			/* first level */

#nav > ul
			{
				height: auto;
				display: none;
				position: absolute;
				left: 0;
				right: 0;
	background-color: rgba(107, 136, 168,0.9);

			}
#nav:target > ul
				{
					display: block;
				}
#nav > ul > li
				{
					width: 100%;
					float: none;
				}
#nav > ul > li > a
					{
						height: auto;
						text-align: left;
						padding:  0.833em; /* 20 (24) */
					}
#nav > ul > li:not( :last-child ) > a
						{
							border-right: none;
							border-bottom: 0;
						}


/* second level */

#nav li ul
				{
					position: static;
					padding: 1.25em; /* 20 */
					padding-top: 0;
					background: none; 
					margin-left: 50px;
				}

		
/* footer nav */

#nav2
		{
			width: 60em; /* 1000 */
			font-family: 'Open Sans', sans-serif;
			font-weight: 400;
			width: 100%;
			position: relative;
			margin: -15px 0 0 0;
			z-index: 2;

		}

#nav2 > a
			{
				display: none;
			}

#nav2 li
			{
				position: relative;
				list-style: none; 
			}
#nav2 li a
				{
					color: #fff;
					display: block;
					text-decoration: none; 
				}
#nav2 li a:active
				{
					background-color: #666 !important;
				}

#nav2 span:after
			{
				width: 0;
				height: 0;
				border: 0.313em solid transparent; /* 5 */
				border-bottom: none;
				border-top-color: #fff;
				content: '';
				vertical-align: middle;
				display: inline-block;
				position: relative;
				right: -0.313em; /* 5 */
			}

/* first level */

#nav2 > ul
			{
				height: 42px;
				background-color: #333;
			}
#nav2 > ul > li
				{
				/*	width: 25%; 
					height: 100%;*/
					float: left;
				}
#nav2 > ul > li > a
					{
					/*	height: 100%;*/
						font-size: 14px; /* 24 */
						line-height: 1.5em; /* 60 (24) */
						text-align: center;
						padding: 10px 15px 10px 15px;
	background-color: #333333; 
					}
#nav2 > ul > li:not( :last-child ) > a
						{
	border-right: 1px solid #cc470d;

	
						}
#nav2 > ul > li:hover > a,
#nav2 > ul:not( :hover ) > li.active > a
						{
							background-color: #000;
						}		
		
		}




