* { margin: 0; padding: 0; outline: none; }

p { margin-bottom: 14px; }

body {
	margin-top: 0px;
	padding-top: 0px;
	background-image: linear-gradient(to left, transparent 60%, black 100%),url('../images/H7kVzJgum3M.jpg');
	background-position-x: right;
	background-position-y: center;
	background-size: 70%;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-color: #000;
	position: static;
}

#container {
/*	background: rgba(255,255,204,0.9); */
	background: rgba(255,255,255,0.9);
	font-family: Arial, Helvetica, sans-serif;
	margin: 15px auto;
	margin-top: 25px;
	padding: 15px;
	width: 80%;
/*	height: 550px; */
	min-height: 450px;
	border: 4px solid #600;
	text-align: left;
	display: flex;
	flex-direction: column-reverse;
}

/*#container > div {
	border: 2px dotted red;
}*/

#masthead {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

h1 {
	color: #600;
	text-align: center;
	font-family: Tahoma, Geneva, sans-serif;
	margin-top: 10px;
/*	margin-bottom: 15px; */
}

h3 {
	color: #600;
	text-align: center;
	font-family: Tahoma, Geneva, sans-serif;
	font-style: italic;
	font-size: large;
	margin-bottom: 15px; 
}

h4 {
	color: #600;
	text-align: center;
	font-family: Tahoma, Geneva, sans-serif;
	font-weight: ;
	font-style: italic; 
	font-size: large;
	margin-bottom: 15px; 
}

#nav {
	height: 30px;
	width: inherit;
	display: flex;
	align-items: center;
	justify-content: space-between;
	/*border: 1px dotted red;*/
	/*margin: 0 15px;*/
}

a.navlink:visited, a.navlink:link {
	text-decoration: none;
}

a.navlink:hover {
	text-decoration: underline;
}

span.navlink {
	color: #666;
}

.navlink {
	color: #600;
	text-align: center;
	font-family: Tahoma, Geneva, sans-serif;
	font-weight: lighter;
	font-style: normal;
	font-size: small;
	text-transform: uppercase;
	/*margin-bottom: 15px;*/
	flex: 1 1 auto;
	display: block;
	border-left: 1px solid #600;
	/*border: 1px dotted blueviolet;*/
}

.navlink:first-child {
	border-left: none;
}

#karenphoto {
	/*margin-right: 10px;*/
	display: block;
	flex: 1 1 auto;
}

#karenphoto img {
	border: 2px solid black;
	max-width: 100%;
	height: auto;
	display:block;
	margin: 0 auto;
}

#content {
	padding: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	/*border: 1px dotted green;*/
}

/*#content div {
	border: 1px dotted red;
}*/

#textcontent {
	align-self: stretch;
}

#footer {
	color: #666;
	font-family: 'Times New Roman', Times, serif;
	font-style: italic;
	font-size: small;
	text-align: center;
}

#footer a {
	text-decoration: none;
	color: #ccc;
}

#footer a:hover { text-decoration: underline; }

p.extratopspace {
	margin-top: 1em;
}

p.credits {
	text-align: center;
}

td {
	padding: 8px;
}

ul {
	list-style-position: inside;
	margin-bottom: 15px;
}

.clear { clear: both; }

/* MODAL BOX CSS */

#overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

#modal {
    position:absolute;
    background:url(tint20.png) 0 0 repeat;
    background:rgba(0,0,0,0.2);
    border-radius:14px;
    padding:8px;
}

#modalcontent {
	font-family: Arial, Helvetica, sans-serif;

    border-radius:8px;
    background:#fff;
    padding:20px;
}

#close {
    position:absolute;
    background:url(close.png) 0 0 no-repeat;
    width:24px;
    height:27px;
    display:block;
    text-indent:-9999px;
    top:-7px;
    right:-7px;
}

/* END MODAL BOX CSS */

/* EMAIL FORM CSS */

#inline { /* display: none; */ width: 600px; }
#inline h2 { font-size: 1.8em; line-height: 1.9em; margin-bottom: 15px;  }
label { margin-right: 12px; margin-bottom: 9px; font-family: Georgia, serif; color: #646464; font-size: 1.2em; }

.txt { 
display: inline-block; 
color: #676767;
width: 420px; 
font-family: Arial, Tahoma, sans-serif; 
margin-bottom: 10px; 
border: 1px dotted #ccc; 
padding: 5px 9px;
font-size: 1.2em;
line-height: 1.4em;
}

.txtarea { 
display: block; 
resize: none;
color: #676767;
font-family: Arial, Tahoma, sans-serif; 
margin-bottom: 10px; 
width: 500px; 
height: 150px;
border: 1px dotted #ccc;
padding: 5px 9px; 
font-size: 1.2em;
line-height: 1.4em;
}

.txt:focus, .txtarea:focus { border-style: solid; border-color: #bababa; color: #444; }

input.error, textarea.error { border-color: #973d3d; border-style: solid; background: #f0bebe; color: #a35959; }
input.error:focus, textarea.error:focus { border-color: #973d3d; color: #a35959; }

#send { 
color: #dee5f0;
display: block;
cursor: pointer;
padding: 5px 11px;
font-size: 1.2em;
border: solid 1px #224983;
border-radius: 5px;
background: #1e4c99; 
background: -webkit-gradient(linear, left top, left bottom, from(#2f52b7), to(#0e3a7d)); 
background: -moz-linear-gradient(top, #2f52b7, #0e3a7d); 
background: -webkit-linear-gradient(top, #2f52b7, #0e3a7d);
background: -o-linear-gradient(top, #2f52b7, #0e3a7d);
background: -ms-linear-gradient(top, #2f52b7, #0e3a7d);
background: linear-gradient(top, #2f52b7, #0e3a7d);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2f52b7', endColorstr='#0e3a7d'); 
}
#send:hover {
background: #183d80; 
background: -webkit-gradient(linear, left top, left bottom, from(#284f9d), to(#0c2b6b)); 
background: -moz-linear-gradient(top,  #284f9d, #0c2b6b); 
background: -webkit-linear-gradient(top, #284f9d, #0c2b6b);
background: -o-linear-gradient(top, #284f9d, #0c2b6b);
background: -ms-linear-gradient(top, #284f9d, #0c2b6b);
background: linear-gradient(top, #284f9d, #0c2b6b);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#284f9d', endColorstr='#0c2b6b');
}
#send:active {
color: #8c9dc0; 
background: -webkit-gradient(linear, left top, left bottom, from(#0e387d), to(#2f55b7)); 
background: -moz-linear-gradient(top,  #0e387d,  #2f55b7);
background: -webkit-linear-gradient(top, #0e387d, #2f55b7);
background: -o-linear-gradient(top, #0e387d, #2f55b7);
background: -ms-linear-gradient(top, #0e387d, #2f55b7);
background: linear-gradient(top, #0e387d, #2f55b7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0e387d', endColorstr='#2f55b7');
}

@media screen and (width >= 850px) {		/* for desktop displays: */

	body {
		background-image: linear-gradient(to left, transparent 60%, black 100%),url('../images/H7kVzJgum3M.jpg');
		background-position-x: right;
		background-position-y: center;
		background-size: 70%;
	}

	#container {
		flex-direction: row;
	}

	#karenphoto {
		display: block;
		flex: 1 0 auto;
	}

	/*#karenphoto img {
		border: 2px solid black;
		width: 320px;
		height: 569px;
	}*/
}
