/* This it the vCard itself, with the styling from Enbizcard*/
body {
	margin: 0 auto;
	width: 100%;
	padding: 0;
	max-width: 30rem;
	color: inherit;
	position: relative;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
    background-color: #fff	
}

p {
	line-height: 1.5;
	margin: 0
}

h2,
h3 {
	margin: 0
}
.icon {
	width: 1.5rem;
	height: 1.5rem
}

a {
	text-decoration: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none
}

#modal {
	display: flex;
	flex-direction: column;
	position: absolute;
	z-index: 1;
	width: 100%;
	bottom: 0;
	transition: top .2s ease-out, opacity .1s ease-out;
	transform: translateZ(0)
}

#close {
	align-self: end;
	padding: 1rem;
	cursor: pointer;
	line-height: 0
}

#keyView,
#copyView,
#qrView {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 1rem;
	text-align: center
}

#keyView p,
#copyView p,
#qrView p {
	margin: 2rem
}

#copyURL,
#dlKey {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	border-radius: .5rem;
	padding: 1rem 1.5rem;
	border: none;
	outline: none;
	cursor: pointer;
	box-sizing: border-box
}

#copyURL span,
#dlKey span {
	margin-left: .5rem
}

#qrView h3 {
	margin: 2rem 2rem 0
}

#qrView p {
	margin: .5rem 2rem 0
}

#qr {
	margin: 2rem;
	padding: 2rem;
	background: #fff;
	border-radius: .5rem
}

header {
	display: flex;
	justify-content: flex-start;
	flex-direction: column
}

#topActions {
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: flex-start
}

#topActions>div {
	display: flex
}

#topActions a {
	padding: 1rem;
	cursor: pointer;
	line-height: 0
}

main {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center
}

.name {
	font-weight: bold;
	font-size: 1.5rem;
	margin: 0
}

.sub,
.textC {
	font-size: 1rem;
	white-space: pre-line;
	line-height: 1.5
}

.sub {
	font-size: .9rem;
	margin: .5rem 0 0;
	opacity: .8
}

.textC {
	margin: 1rem
}

#cta {
	display: flex;
	align-items: center;
	border-radius: .5rem;
	margin-top: 2rem;
	padding: 1rem 1.5rem;
	cursor: pointer;
	line-height: 0;
	width: 100%;
	justify-content: center;
	box-sizing: border-box
}

#cta .icon {
	margin-right: .5rem
}

#cta p {
	margin: 0
}

.featured {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 2rem 0 0;
	width: 100%
}

.section {
	font-weight: bold;
	text-align: center;
	font-size: 1.3rem;
	padding: 1rem 0
}

.media {
	overflow: hidden;
	border-radius: .5rem;
	margin-top: 1rem
}

.media img {
	display: block;
	pointer-events: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	width: 100%;
}

.embedded iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.title {
	font-size: 1rem;
	font-weight: bold;
	margin: 0;
}

.price {
	margin: 1rem 0 0;
	font-size: 1rem;
	font-weight: bold;
}

footer {
	padding: 4rem 1rem 2rem;
	font-size: .9rem;
	text-align: center;
}

footer a {
	text-decoration: underline;
	color: inherit;
}

/* This controls the bottom part of the vcard in the body */
	.main-card {
	  max-width: 420px;
	  margin: 0 auto;
	  min-height: 100vh;
	  padding: 0;
	  position: relative;
	  z-index: 1;
	}

	/* Header section */
	.headerImgC {
		text-align: center;
		height: 190px;
		padding: 1rem;
		position: relative;
		display: flex;               
		flex-direction: column;
		align-items: center;
		justify-content: center;
		overflow: hidden;            
		z-index: 1;
	}

	/* Center logo inside header */
	#logo {
		display: block;
		margin-top: -30px;
		max-height: 7rem;
		max-width: 80%;
		object-fit: contain;
		pointer-events: none;
		user-select: none;
	}

	/* Profile photo container using margin overlap */
	.photoC {
		position: absolute;                
		left: 50%;
		transform: translateX(-50%);
		z-index: 10;
	  }

	  /* Profile photo */
	  #profilePhoto {
		width: 10rem;
		height: 10rem;
		border-radius: 50%;
		object-fit: cover;
		border: 6px solid #fff;
		background: #fff;
		box-shadow: 0 4px 15px rgba(0,0,0,.15);
		margin-top: -6rem;
		box-sizing: content-box;
		pointer-events: none;
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
	  }
	
/* This controls the QR code and the Share button */
	.top-icons{
		position:absolute;
		right:12px;
		top:12px;
		display:flex;
		gap:10px;
		align-items:center;
		}
	.iconBtn{
		background:transparent;
		border:0;
		padding:6px;
		cursor:pointer;
		border-radius:50%;
		}	
	.iconBtn:active{transform:scale(.95);}

/* Action Buttons */
	.actions {
	  display: grid;
	  grid-template-columns: repeat(3, 1fr); /* 3 columns */
	  gap: 20px; 							 /* spacing between buttons */
	  justify-content: center;
	  justify-items: center;
	  margin: 20px auto;
	  max-width: 400px;
	  width: 100%;
	  margin-top: 2rem;
	  flex-wrap: wrap;	  
	}

	/* Each button cell */
	.actionsC {
	  width: 33.33%;
	  text-align: center;
	}

.actionBtn {
	padding: .5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}	
	
	/* Button circle */
	.actionBtn a {
	  padding: 1rem;
	  line-height: 0;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  width: 30px;   
	  height: 30px;
	  border-radius: 50%;
		}

	/* Icon inside */
	.actionBtn img {
	  width: 22px;  
	  height: 22px;
	}
	
.actionBtn p {
	margin: .5rem 0 0;
	font-size: .9rem;
}	

	/* Label under button */
	.actionsC p {
	  margin-top: 6px;
	  font-size: 13px;   
	  line-height: 1.2;
	}

	
/* Info section - Person and Company Info */
	#info {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		line-height: 1.25;
		word-break: break-word;		
		margin-top: 6rem;
		text-align: center;
	  }

	.bizname {
		font-size: .9rem;
		margin: .5rem 0 0 0;
		opacity: .8;
	}	
	
	.bizaddr {
		font-size: .8rem;
		opacity: .6;
	}

/* Social Media */
	.social-grid {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 10px;
	  justify-content: center;
	  margin: 20px 0;
	}

	.social-icon {
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  width: 44px;
	  height: 44px;
	  border-radius: 50%;
	  color: #fff;
	  text-decoration: none;
	}
	
	.social-icon svg {
	  width: 22px;
	  height: 22px;
	}
		
/* Featured Content*/
	.feature {
		border-radius:12px;
		padding:12px;
		margin:12px 0;
		}
	.feature h4{
		margin:0 0 6px;
		font-size:1rem;
		color:#111;
		}
	.feature p{
		margin:0 0 8px;
		color:#333;
		font-size:.9rem;
		}
	.feature .price{
		font-weight:700;
		color:#111;
		}
	.feature button{
		margin-top:6px;
		padding:8px 12px;
		border:0;
		border-radius:8px;
		color:#fff;
		font-weight:700;
		cursor:pointer;
		}