@viewport {
   width: device-width;
   initial-scale:1;
}

html {
	height: 100%;
	font-size:14px;
	-webkit-text-size-adjust:100%;
}


body{
	margin:0;
	padding:0;
	background-color:#f7c5a8;
	background-image: url(../img/background_mobile.jpg);
	background-size: 100% auto;
	background-repeat: no-repeat;
  	font:16px Arial,helvetica,sans-serif;
	line-height: 1.7em;
	color:#958a83;
	width:100%;
	height: 100%;
	overflow-x: hidden;
}

a {
	color:inherit;
}

@media all and (orientation: landscape) {
	body {
		background-color:#f4ad95;
		background-image: url(../img/background_landscape.jpg);
		background-position: top left;
		background-size: 890px 450px;
	}
}

@media all and (orientation: landscape) and (min-width:890px) {
	body {
		background-color: #200609;
		background-image: url(../img/background.jpg), url(../img/background_tile.png);
		background-size: 1400px auto, 1px 604px;
		background-attachment: scroll;
		background-position: top center, top left;
		background-repeat: no-repeat, repeat-x;
	}
}

#heart_top {
	position: relative;
	display: block;
	margin:-25px auto 0 auto;
	width:140px;
	height: 65px;
}

.appstore_link {
	display: block;
	margin: 30px auto 0 auto;

}

.appstore_link img {
	max-width: 100%;
	height: auto;
}

.andsymbol {
	float:left;
}

.cards {
	width: 80%;
	margin:0 auto 0 auto;
}

h4.name {
	margin:0 0 5px 0;
	width: 100%;
	text-align: center;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	font-style: italic;
	color: #981e27;
	font-size: 1.7em;
}

h5.birthdate {
	margin:0;
	font-size: 0.8em;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	font-style: italic;
	text-align: left;
}
h5.birthdate.right {
	text-align: right;
	margin:0;
}

@media all and (orientation: landscape) and (min-width:890px) {

	h5.birthdate {
		font-size: 1.2em;
		margin:0 0 0 0.5em;
	}

	h5.birthdate.right {
		margin:0 0.5em 0 0;
	}
}

.personal_holder {
	float:left;
	width: 34%; 
}

.partner_holder {
	float: left;
	width: 34%;
	margin-right: -3%;
}

.hearth_holder {
	float: left;
	margin-top: 25%;
	width: 34%;
	position: relative;
	z-index: 10;
}

@media all and (orientation: landscape) and (min-width:890px) {
	.hearth_holder {
		margin-top:30%;
	}
}

.appstore_links {
	width: 75%;
	margin:0 auto 50px auto;
}

@media all and (orientation: landscape) {
	.appstore_links {
		width: 60%;
	}
}

.mirror {
	transform: scale(-1, 1);
}

.card_image_holder {
	position: relative;
}

.photo {
	display: block;
	position: absolute;
	top:10%;
	left:8%;
	width: 85%;
	height: 75%;
}

#spread_info {
	display: none;
}

#spread_info p {
	margin-top:0.5em;
	margin-bottom:0.5em;
}

.divider {
	width: 80%;
	max-width: 400px;
	height: 3em;
	display: block;
	margin:1em auto 1em auto;
	background-image: -webkit-linear-gradient(to right, rgba(168,41,52,0) 0%, rgba(168,41,52,1) 30%,rgba(168,41,52,0) 30%, rgba(168,41,52,0) 70%, rgba(168,41,52,1) 70%,rgba(168,41,52,0) 100%), url(../img/heart_bottom.png);
	background-image: linear-gradient(to right, rgba(168,41,52,0) 0%, rgba(168,41,52,1) 30%,rgba(168,41,52,0) 30%, rgba(168,41,52,0) 70%, rgba(168,41,52,1) 70%,rgba(168,41,52,0) 100%), url(../img/heart_bottom.png);
	background-size: 100% 1px, 45% auto;
	background-repeat: no-repeat;
	background-position: center center;
}

@media all and (orientation: landscape) and (min-width:890px) {
	#heart_top {
		position: relative;
		display: block;
		margin:-15px auto 0 auto;
		width:140px;
		height: 65px;
	}
}

.sheet {
	background-color: #fff7f1;
	background-image: url(../img/sheet_decor_TL.png), url(../img/sheet_decor_TR.png), -webkit-linear-gradient(to right, #e3d4c8 0%, #fff7f1 10%, #fff7f1 90%, #e3d4c8 100%);
	background-image: url(../img/sheet_decor_TL.png), url(../img/sheet_decor_TR.png), linear-gradient(to right, #e3d4c8 0%, #fff7f1 10%, #fff7f1 90%, #e3d4c8 100%);
	background-position: top 5px left 5px, top 5px right 5px, top center;
	background-repeat: no-repeat;
	background-size: 150px 142px, 150px 142px, auto auto;
	border:1px solid #fffaf6;
	box-shadow: 0 0 3px 1px #101010;
	position: relative;
	width: 100%;
	height: 100%;	
}

.sheet_holder {
	position: relative;
	min-height: 10em;
}


.rot1, .rot2 {
	display: none;
}


@media all and (orientation: landscape) and (min-width:890px) {

	.sheet {
		min-height: 550px;
		padding-bottom:5em;
	}

	.rot1, .rot2 {
		display: block;
		position: absolute;
		transform: rotate(-3deg);
		background-image: -webkit-linear-gradient(to right, #e3d4c8 0%, #fff7f1 10%, #fff7f1 90%, #e3d4c8 100%);
		background-image: linear-gradient(to right, #e3d4c8 0%, #fff7f1 10%, #fff7f1 90%, #e3d4c8 100%);
		background-position: top center;
		background-repeat: no-repeat;
		background-size: auto auto;
		max-height: 550px;
	}

	.rot1 {
		transform: rotate(-4deg);
	}

	.rot2 {
		transform: rotate(-2deg);
	}
}

#main {
	width: 95%;
	max-width: 900px;
	margin:22% auto 0 auto;
}


@media all and (orientation: landscape) {

	#main {
		margin-top:20px;
	}
}

@media all and (orientation: landscape) and (min-width: 890px) {

	#main {
		margin-top:50px;
	}
}

#right {
	width:100%;
	padding-bottom: 2em;
	min-height: 25em;
}

#left {
	float:left;
	text-align: center;
	width:30%;
	margin:1em 1em 0 4%;
}

#left img.logo {
	width:80%;
	margin: 0 auto 0 auto;
	display: block;
}

@media all and (orientation: landscape) {
	#right {
		min-height: 21em;
	}
}

@media all and (orientation: landscape) and (min-width:890px) {

	#right {
		width:60%;
		float:right;
		box-sizing: border-box;
		min-height: 45em;
	}

	#left {
		box-sizing: border-box;
		padding-bottom: 1em;
		margin-top:140px;
	}

	#left img.logo {
		width:70%;
		margin-top: -25%;
	}

	#right div.button_decor {
		margin-top:0;
	}
	
}


p {
	width: 90%;
	display: block;
	margin: 1em auto 1em auto;
	padding:0;
	font-size: 1em;
	line-height: 1.4em;
}


p a {
	color:inherit;
}


.logo {
	width: 95%;
	height: 30%;
	margin: 0.3em auto 0.2em auto;

}

.logo h3 {
	width: 100%;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	font-style: italic;
	font-size:1.8em;
	color:#981e27;
	text-align: center;
	line-height: 1em;
	margin-top: 0;
	margin-bottom: 1%;
}

@media all and (orientation: landscape) {
	.logo h3 {
		font-size: 2.4em;
		line-height: 1em;
	}
}

@media all and (orientation: landscape) and (min-width:890px) {

	.logo {
		margin:0 auto 0 auto;
	}

	.logo h3 {
		margin: 0.5em 0 0.5em 0;
		float: none;
		width: 100%;
	}
}

.card {
	width: 100%;
	background: transparent;
	border:0;
	border-radius: 8%;	
	position: relative;	  	
	z-index: 0;
}


.clear {
	width:100% !important;
	clear: both !important;
	float: none !important;
}


@media all and (orientation: landscape) and (min-width:400px) {

	.card {
		width: 100%;		
		position: relative;
		z-index: 0;
	}

	.personal_holder {
		float: left;
		margin-right: -5%;
		width: 36%;
		position: relative;
		z-index: 5;
	}

	.partner_holder {
		float: left;
		width: 36%;
		position: relative;
		z-index: 5;
	}

	.hearth_holder {
		float: left;
		margin-top: 20%;
		margin-right: -5%;
		width: 36%;
		position: relative;
		z-index: 10;
	}

}


#footer {
	color:#e1827c;
	width: 100%;
	margin: 0 auto 0 auto;
	text-align: center;
	font-size: 1em;
	line-height: 1.7em;
	padding-top:0;
	box-sizing: border-box;
}

#footer hr {
	border:1px solid red;
	width: 100%;
	max-width: 400px;
	height: 48px;
	background-image: url(../img/footer_top.png);
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: bottom left;
	border: 0;
	margin:0;
	
}

#footer p {
	width: 100%;
	font-size:0.9em;
	line-height: 1.2em;
	margin-top: 3em;
	color: inherit;
	margin:0;
	padding:1em 5% 1em 5%;
	max-width: 1000px;
	box-sizing: border-box;
	background-color: #200609;
}

#footer p:first-of-type {
	padding-top:3em;
	margin-top:-1px;
}

#footer a {
	line-height: 2em;
	color:inherit;
}

@media all and (orientation: landscape) and (min-width:890px) {

	#footer hr {
		margin:0 auto 0 auto;
		display: block;
		width: 80%;
		max-width: 800px;
		height: 1px;
		border:0;
		background-color: #e1827c;
		background: transparent -webkit-linear-gradient(to right, rgba(225, 130, 124, 0) 0%, rgba(225, 130, 124, 1) 50%, rgba(225, 130, 124, 0) 100%);
		background: transparent linear-gradient(to right, rgba(225, 130, 124, 0) 0%, rgba(225, 130, 124, 1) 50%, rgba(225, 130, 124, 0) 100%);
	}

	#footer {
		padding-top:0;
	}

	#footer p {
		width: 90%;
		margin:0 auto 0 auto;

	}

	#footer p:first-of-type {
		margin-top:0;
	}
}

.center {
	text-align: center;
}

.desktoponly,.desktoponlylink {display: none;}

.mobileonly {display: block;}

@media all and (orientation: landscape) and (min-width:890px) {
    .desktoponlylink { display: inline-block !important; }
    .mobileonly { display: none !important; }
    .desktoponly { display: block !important; }
    
}

.cshadow {
   box-shadow: 0 0 1px #000000, 0 0 4px #101010;
}