/* 
  ------------------------------------------------
  PVII Affinity
  Copyright (c) 2013 Project Seven Development
  www.projectseven.com
  Metroplex Theme
  ------------------------------------------------
*/

body {
	background-color: #FFFFFF;
	font-family: "Segoe UI", "Gill Sans", Optima, sans-serif;
	margin: 0px 0px 30px 0px;
}

/*LAYOUT WIDTH */
.p7DMM04, #layout {
	max-width: 1392px;
	margin: 0px auto;
}
#layout {
	max-width: 1360px;
	padding: 15px;
	border: 1px solid rgba(0,0,0,.75);
	overflow: hidden;
}

/*Drop Menu Magic Adjustments*/


/*Baseline Adjustment for images needed with strict DOCTYPE*/
img {vertical-align: bottom;}


/*Logo and Banner*/
#logo {
	padding: 10px 20px;
	position: relative;
	background-image: -webkit-linear-gradient(#333, #111);
	background-image: none;
	margin-left: auto;   /*changed from 60 to auto with smaller logo*/
	margin-right: auto;   /*added with smaller logo*/
	width: 70%; /*changed from 30% to 70% with smaller logo*/
/*	box-shadow: 0px 0px 30px #000;*/
}

#headerwrapper{  /*added to shrink logo on scroll*/
	width: 100%;
	position: sticky;
	top:0;
	background-image:url(../images/headerbkgd3.jpg) !important;
/*	opacity: .8;   taking out as scroll you could see through*/
	z-index: 1000 !important;  /*added to keep on top when scrolling*/
	background-repeat: repeat;
}


#topnumbers {
	float: right;
	margin-top: -120px;     /*changed from -150 to -120 with smaller logo*/
	width: 40%;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 20px;
	font-weight: 700;
/*	color: #084B7E;*/
	text-align: left;
	line-height: 1.5em;
}



/*Utility Rules for images. Makes images scale with window size.*/
#logo img, .affinity-row img, .footer img {
	height: auto !important;
	width: auto !important;
	max-width: 100%;
}
/* 
Add the fancy class to the scalable class to add a drop shadow
<img class="scalable fancy"...>
*/
.fancy {
	border: 1px solid rgba(255,255,255,.5);
	box-shadow: 0px 0px 20px rgba(0,0,0,.5);
}
/* 
Add the accented class to the scalable class to add eounded corners and a border.
<img class="scalable accented"...>
*/
.accented {
	border: 1px solid #000;
}


/*Default Row Structures*/
.affinity-row {
	padding: 0px;
	margin-bottom: 15px;
}

/*Clear Fix to Clear Floats*/
.affinity-row:after {
	visibility: hidden;
	display: block;
	content: "\0020";
	clear: both;
	height: 0;
}
/*Strctural wrapper for 2-column row*/
.affinity-row .column-half {
	width: 49.5%;
	float: left;
	margin-right: 1%;
}

/*Strctural wrapper for 3-column row*/
.affinity-row .column-third {
	width: 32.5%;
	float: left;
	margin-right: 1.25%;
}
.affinity-row .column-full {/* added for decor page*/
	width: 98.5%;
	float: left;
	margin-right: 1.25%;
}
.affinity-row .column-twothirds { /* added for contacts page*/
	width: 65%;
	float: left;
	margin-right: 1.25%;
}

/*Strctural wrapper for 4-column row*/
.affinity-row .column-fourth {
	width: 24.25%;
	float: left;
	margin-right: 1%;
}
/*Strctural wrapper for 5-column row*/
.affinity-row .column-fifth {
	width: 19%;
	float: left;
	margin-right: 1.25%;
}

/*Strctural wrapper for 2-column sidebar-left row*/
.affinity-row.sidebar-left .column-1 {
	width: 74.75%;
	float: right;
	margin-left: 1.25%;
	-webkit-transition: width ease-in-out .5s .1s;
	transition: width ease-in-out .5s .1s;
}
.affinity-row.sidebar-left .column-2 {
	width: 24%;
	float: right;
	transition: width ease-in-out .5s .1s;
}
.affinity-row.sidebar-left .column-content {
	line-height: 1.5;
}
.affinity-row.sidebar-left .column-2 .column-content {
	font-size: .9em;
}

/*Strctural wrapper for 2-column sidebar-right row*/
.affinity-row.sidebar-right .column-1 {
	width: 74.75%;
	float: left;
	margin-right: 1.25%;
	transition: width ease-in-out .5s .1s;
}
.affinity-row.sidebar-right .column-2 {
	width: 24%;
	float: left;
	transition: width ease-in-out .5s .1s;
}
.affinity-row.sidebar-right .column-content {
	line-height: 1.5;
}
.affinity-row.sidebar-right .column-2 .column-content {
	font-size: .9em;
}
.affinity-row .no-margin {
	margin-right: 0px !important;
}
.left-border {
	border-left: 1px solid rgba(0,0,0,.75);
}
.right-border {
	border-right: 1px solid rgba(0,0,0,.75);
}
.left-right-border {
	border-left: 1px solid rgba(0,0,0,.75);
	border-right: 1px solid rgba(0,0,0,.75);
}
.boxed {
	border: 1px solid rgba(0,0,0,.75);
}
.no-border {
	border: none !important;
}
/*Column Colors */
.wood {
	background-image:url(../images/headerbkgd.jpg);
	opacity: 0.8;
}

.red {
	background-color: #D14747;
	background-image: -webkit-linear-gradient(#D04444, #B42D2D);
	background-image: linear-gradient(#D04444, #B42D2D);
}
.blue {
	background-color: #78A6EB;
	background-image: -webkit-linear-gradient(90deg, #78A6EB, #5992E6);
	background-image: linear-gradient(90deg, #78A6EB, #5992E6);
}
.gray {
	background-color: #e4e4e4;    /*  lightened grey from original #ABABAB;*/
	background-image: -webkit-linear-gradient(90deg, #eee, #eee);    /* was 90deg, #999, #BBB);*/
	background-image: linear-gradient(90deg, #eee, #eee);
}
.green {
	background-color: #81C796;
	background-image: -webkit-linear-gradient(180deg, #9AD1AB, #65BA7E);
	background-image: linear-gradient(180deg, #9AD1AB, #65BA7E);
}
.red, .blue, .gray, .green {
	border-top: 1px solid rgba(0,0,0,.1);
	border-right: 1px solid rgba(0,0,0,.4);
	border-bottom: 1px solid rgba(0,0,0,.4);
	border-left: 1px solid rgba(0,0,0,.1);
}
.black {
	background-color: #111;
	color: #BBB;
}
.white {
	background-color:  rgba(255,255,255,.7); /*#FFF replaced with RGBA colors and opacity for white*/
}

.black, .white {
	border: 1px solid rgba(0,0,0,.75);
}
/*Column Content*/
.column-content {
	padding: 15px 24px;
}

.subcolumn-content {   /* added for subpages small columns - to have less padding*/
	padding: 5px 5px;
}

.column-content p {
	line-height: 1.65;
}
.affinity-row.sidebar-right .column-content,
.affinity-row.sidebar-left .column-content,
.affinity-row.thirds.full-height .column-content {
	padding: 30px;
}


/*Headings*/
h1, h2, h3, h4 {
	line-height: 1em;
	margin: 30px 0px 0px 0px;
	font-family: "PT Sans Narrow", Optima, "Segoe UI", Arial, sans-serif;
	font-weight: 400;
}
.column-content h1:first-child,
.column-content h2:first-child,
.column-content h3:first-child,
.column-content h4:first-child {
	margin-top: 10px;
}
h1.centered-text {
	text-align: center;
	margin: 0px !important;
}
/*Use this class when you add a heading inside a row that contains multiple columns.*/
.inner-row-heading {
	position: relative;
	top: 20px;
	margin: 0px 0px 0px 24px;
}

/*Footer and Copyright*/
.footer {
	color: #000;
	font-size: 0.85em;
	border: 1px solid rgba(0,0,0,.75);
	 background-image: url(../images/headerbkgd2.jpg);         /*  added*/
	height: 100%;                                               /* added*/
}
.footer h3, .footer h4 {
	font-family: "Segoe UI", "Gill Sans", Optima, sans-serif;
	font-weight: normal;
	text-transform: uppercase;
	margin: 10px 0px 0px 0px;
}
.footer ul {
	margin: 0px;
	padding: 0px;
	margin-top: 10px;
}
.footer li {
	list-style-type: none;
	line-height: 1.75;
}
.footer a {
	color: #000;
}
.footer a:hover, .footer a:focus {
	color: #B02125;
}
.copyright {
	font-size: .7em;
	text-transform: uppercase;
	clear: both;
	padding: 0px;
	text-align:center;
}



/*Make Image Scalable - Assign this class to any image to make it scale with the browser window size*/
img.scalable {
	height: auto !important;
	width: auto !important;
	max-width: 100%;
	border-radius: 5px;
}



/* classes I added to this css page */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
	height: auto !important;
	width: auto !important;
	max-width: 100%;
	border-radius: 5px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
	float: left;
	margin-right: 8px;
	height: auto !important;
	width: auto !important;
	max-width: 100%;
	border-radius: 5px;
}
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
	clear:both;
	height:0;
	font-size: 1px;
	line-height: 0px;
}


/*Strctural wrapper for 3/4 of column in main body*/
.affinity-row .column-threefourths {
	width: 73.25%;
	float: left;
	margin-left: 1%;
}



.facebookcenter {				/*using Flex-Box to make facebook center */
	display: flex;
	list-style-type: none;
 	flex-direction: row; 
	justify-content: center;
}


@media only screen and (min-width: 701px) and (max-width: 920px) {
#logo {
	padding: 5px 10px;
	margin-left: 0px;
}
#topnumbers {
	font-size: 16px;
	padding-top: 35px; /* Changed from 60px when added wedding wire button*/
	width: 55%;  /*  added when added wedding wire button */
}
.affinity-row .column-fourth {
	width: 100%;
}
.affinity-row .column-threefourths {
	width: 100%;
}
}

/*1 Column for Narrow Browser Windows and Smartphones in both orientations*/
@media only screen and (min-width: 0px) and (max-width: 700px) {
body {
	margin: 0px;
}
.p7DMM04.p7DMM.p7dmm-left, .p7DMM04.p7DMM.p7dmm-right {
	padding: 0px !important;
}
#layout {
	max-width: none;
	padding: 0px;
	border: none;
}
.copyright {
	padding: 10px 20px;
}
.affinity-row {
	margin-bottom: 0px;
}
#headerwrapper{ 
	position: relative;
}
#logo {
	padding: 0px;
	margin: 0px;
	width: 100%;
	text-align: center;
}
#topnumbers {
	margin: 0px; 
	padding: 10px 0px; 
	width: 100%;
	text-align: center;
}
.facebookcenter {  /*took out facebook div on phones*/
	display: none;
}


/*added the .column-threefourths that I created to this section of code */
.column, .column-1, .column-2, .column-3,
.column-half, .column-third, .column-fourth,
.column-fifth, .column-threefourths{
	float: none !important;
	width: auto !important;
	margin-right: 0px !important;
}
.column-content, .footer {
	height: auto !important;
	max-height: 888678px;
	border: none !important;
}


/*Make Image Scalable - Assign this class to any image to make it scale with the browser window size*/
img.scalable {
	height: auto !important;
	width: auto !important;
	max-width: 100%;
	border-radius: 5px;
}



}
/*Medium windows - reduce padding content padding*/
@media only screen and (min-width: 700px) and (max-width: 1380px) {
#layout {
	max-width: none;
	border-left: none !important;
	border-right: none !important;
	border-bottom: none !important;
}
.affinity-row.sidebar-left .column-1 {
	width: 68.75%;
}
.affinity-row.sidebar-left .column-2 {
	width: 30%;
}
.affinity-row.sidebar-right .column-1 {
	width: 68.75%;
}
.affinity-row.sidebar-right .column-2 {
	width: 30%;
}
}
/*Landscape Tablet Exceptions to adjust padding and reduce font size*/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
	body {
	font-size: .85em;
}
}
