:root { --box-shadow-color: #e8e8e8; }

a { color: #47bdb6; }

a:hover { text-decoration: underline; }

header .container { position: relative; }

#account_menu {
	position: absolute;
	right: 0;
	top: 0;
	padding-right: 15px;
}

#home {
	overflow: hidden;
	height: 100vh;
}

#home::before {
	position: absolute;
	top: 2vw;
	left: 2vw;
	content: '';
	background: url(CloudCarpenter_Websites_Logo_White.png) no-repeat;
	background-size: contain;
	display: block;
	width: 42vw;
	height: 42vw;
	opacity: 0.15;
}

.loader, #home, #portfolio-wrapper, #portfolio, footer { background: linear-gradient(to bottom right, #47bdb6 20%, #bd0043 80%) fixed; }

#home-content {
	position: absolute;
	color: white;
	top: 5vw;
	left: 10vw;
	width: 0;
	overflow-x: visible;
}

#home-content h1 {
    text-shadow: 3px 3px 7.5px black;
	font-size: 5vw;
	white-space: nowrap;
}

#banner-title {
	font-family: 'Mallanna', sans-serif;
	font-size: 6vw;
	margin-top: .3em;
}

.slogan {
	font-family: 'Poppins', sans-serif;
	white-space: nowrap;
}

#banner-title .slogan {
	font-size: 2vw;
	color: #ccc;
}

/* temporarily prevent this perspective on mobile
because it causes flickering on Chrome Android */
@media screen and (min-width: 701px) {
	.perspective {
		height: 100%;
		perspective: 2500px;
		/* necessary for Firefox */
		position: absolute;
		width: 100%;
		transform-style: preserve-3d;
		overflow: hidden;
	}
}

#website-grid {
	position: absolute !important; /* override position:relative applied by masonry plugin */
	top: 0;
	right: 0;
	width: 1800px;
	transform: rotateX(50deg) rotateZ(-40deg);
	transform-origin: top right;
	transform-style: preserve-3d;
}

#website-grid .brick {
	margin-left: 0; /* override default for .brick elements in master.css */
	margin-right: 15px;
}

#website-grid a {
	display: block;
	width: calc(100% / 7 - 15px);
	margin-bottom: 15px;
	border-radius: 15px;
	background-color: rgba(0, 0, 0, .2);
	box-shadow: -5px 5px 5px 5px rgba(0, 0, 0, .2);
	transform-style: preserve-3d; /* necessary for Firefox */
}

#website-grid img {
	width: 100%;
	height: auto;
	border-radius: 15px;
	box-shadow: -5px 5px 0 0 #999;
	transition: all .2s ease;
	transform-origin: bottom;
}

#website-grid a:hover img, #website-grid img:hover {
	transform: rotateX(-20deg);
	box-shadow: -5px 2px 0 0 #999;
}

#header-title {
	line-height: 1em;
	font-size: 37px;
	font-family: 'Mallanna', sans-serif;
}

#header-title .slogan {
	font-size: 17px;
	color: #bd0043;
	white-space: nowrap;
}

#logo img {
	float: left;
	max-height: 75px;
	margin-right: 15px;
	opacity: .6;
}

nav ul {
	list-style: none;
	margin-bottom: 0;
}

nav ul li:last-child { margin-right: 0; }

.reviewer { text-align: right; }

.gold {
	float: left;
	color: #e7711b;
}

h3 .gold {
	float: none;
	font-size: 18px;
}

#portfolio h2, #portfolio p { color: white; }

.padtop_90 { padding-top: 90px; }

.bounce { line-height: 1em; }

#about .col-md-4, #about .col-md-7 { padding: 0; }

#commercial {
	aspect-ratio: 16 / 9;
	width: 100%;
	box-shadow: -40px 50px var(--box-shadow-color);
	margin-bottom: 55px;
}

#plans table {
	table-layout: fixed;
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	border-collapse: separate;
}

#plans td, #plans th { text-align: center; }

#plans tbody td {
	border-top: thin solid #aaa;
	padding: .4em .5em;
}

#plans td:first-child { text-align: left; }

#plans td:nth-child(2), #plans th:nth-child(2) { border-left: thin solid; }

#plans th:nth-child(2) { border-top: thin solid; }

#plans tr:last-child td:nth-child(2) { border-bottom: thin solid; }

#plans td:nth-child(2) a, #plans td:nth-child(3) a, #plans td:last-child a { color: inherit; }

#plans td:nth-child(3), #plans th:nth-child(3) {
	background-color: #47bdb6;
	border-top-color: #cdedeb;
	color: white;
}

#plans td:last-child, #plans th:last-child {
	background-color: #bd0043;
	border-top-color: #e7a2bb;
	color: white;
}

footer p { color: white; }

.box { margin-bottom: 60px; }

.box .box-hero-image { aspect-ratio: 16 / 9; }

.box h3 { font-size: 22px; }

.box h4 {
    font-size: 20px;
	color: #666;
}

.box h5 {
	font-size: 18px;
	color: #777;
}

#contact_form {
	width: 100%;
	max-width: 665px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

#contact_form .formgroup { width: 48%; }

#contact_form .formgroup:nth-of-type(5),
#contact_form .formgroup:nth-of-type(6) { width: 100%; }

#contact_form textarea { min-height: 100px; }

#contact_form button {
	font-family: inherit !important;
	text-transform: capitalize !important;
	border: solid 2px #dfdfdf;
	background: none;
	font-size: 13px;
	padding: 9px 11px;
	text-align: left;
	min-width: 140px;
	line-height: 17px;
	transition: all ease 0.3s;
	color: black;
	box-shadow: none !important;
	border-radius: 50px;
}

#contact_form button::after {
	font-family: 'Material Design Icons';
	content: '\F0054'; /* arrow-right */
	float: right;
}

#contact_form button:focus { border: solid 2px black; }

#contact_form button:hover {
    background: black;
    color: white;
    border-color: black;
    transition: all ease 0.3s;
}

#contact_form button:focus {
	border-color: var(--input-focus-color);
    box-shadow: 0 0 0 1px var(--input-focus-color);
	outline: none;
}

.page_details {
	margin-top: 2em;
	line-height: 1.5em;
}

.copy .page_details { margin-top: 0; }

.sidebar h1, .page h1 {
	font-size: 23px;
	font-weight: bold;
	margin-bottom: 30px;
}

#sb_contact a[href^="mailto:"]::before {
	font-family: 'Material Design Icons';
	content: '\F01EE'; /* email */
	margin-right: .3em;
}

#sb_contact a[href^="tel:"]::before {
	font-family: 'Material Design Icons';
	content: '\F03F2'; /* phone */
	margin-right: .3em;
}

svg { margin: -1px 0; }

/* allow special tables to scroll horizontally (used on manage_sites, run_script, and query_databases)*/
.copy table.material-design.not-responsive {
	display: block;
	overflow-x: auto;
}

/*if is_frontpage*/
.is_frontpage header {
	display: none;
	position: fixed;
}

@media (prefers-color-scheme: dark) {
	:root {
		--cms-accent-color: #333;
		--box-shadow-color: black;
	}

	.loading { background-color: rgba(0, 0, 0, .5); }

	.loading svg path { fill: white; }

	body { color: #ddd; }

	body, .diagonal-gray { background-color: black; }
	
	header { background-color: #333; }

	p { color: #979797; }

	a { color: #25bbcc; }

	#home-content, footer p, footer a { color: black; }

	#home-content h1 {
		color: black;
		text-shadow: none;
	}

	#banner-title .slogan { color: #333; }

	#home-down { color: black; }

	nav ul li a { color: white; }

	.dgray-bg { background-color: #111; }

	.diagonal-gray path { fill: #111; }

	.diagonal.home-left path, .diagonal.home-right path {
		fill: #111;
		stroke: #111;
	}

	.diagonal-white path { fill: black; }

	.box h4 { color: #999; }

	.custom_button { color: white; }

	.custom_button:hover {
		background-color: white;
		color: black;
	}

	.grecaptcha-badge { box-shadow: none !important; }

	#contact_form button {
		background-color: black;
		color: white;
		border-color: currentColor;
	}
	
	#contact_form button:hover {
		background-color: white;
		color: black;
	}

	.cards { box-shadow: none; }
	
	.cards .brick {
		background-color: black;
		box-shadow: none;
	}

	.lfab {
		background-color: black !important;
		color: inherit !important;
		box-shadow: none;
		border: thin solid;
	}

	.lfab:hover, .lfab:focus { background-color: var(--cms-accent-color) !important; }
	
	.lfab:active {
		background-color: #999 !important;
		color: black !important;
	}
}

@media screen and (min-width: 992px) {
	.sidebar {
		width: 25%;
		float: left;
	}

	.has-sidebar .page {
		float: left;
		width: 58.33%;
		margin-left: 16.66%;
	}
}

@media screen and (max-width: 1200px) {
	#website-grid { width: 1500px; }

	#website-grid a { width: calc(100% / 6 - 15px); }
}
@media screen and (max-width: 991px) {
	#commercial {
		box-shadow: none;
		margin-bottom: 10px;
	}
}

@media screen and (max-width: 900px) {
	#website-grid { width: 1300px; }

	#website-grid a { width: calc(100% / 5 - 15px); }
}

@media screen and (max-width: 767px) {
	#account_menu {
		position: static;
		float: right;
		clear: right;
	}
}

@media screen and (max-width: 700px) {
	#home::before { opacity: .5; }

	#home-content {
		color: white;
		background: linear-gradient(rgba(0, 0, 0, 0.5) 90%, transparent);
		z-index: 3;
		top: 0;
		left: 0;
		width: 100%;
		padding-top: 5vw;
		padding-left: 10vw;
	}

	#banner-title .slogan { color: #ccc; }

	#home-down { color: white; }

	#home-content h1 {
		color: white;
		font-size: 10vw;
		text-shadow: none;
	}

	#banner-title { font-size: 13vw; }

	#break-here { display: block; }

	#banner-title .slogan { font-size: 6vw; }

	@media screen and (max-height: 65vw) {
		#break-here { display: inline; }
	}

	@media screen and (max-height: 82vw) {
		#home-content { padding-top: 5vh; }

		#home-content h1 { font-size: 10vh; }

		#banner-title { font-size: 13vh; }

		#banner-title .slogan { font-size: 6vh; }
	}
}

@media screen and (max-width: 600px) {
	#plans td, #plans th h3 { font-size: 3vw; }

	#plans .page { padding: 0; }

	#contact_form { display: block; }

	#contact_form .formgroup { width: 100%; }
}

@media screen and (max-width: 450px) {
	#header-title {
		padding-left: 40px;
		font-size: 10vw;
	}

	#header-title .slogan { font-size: 4.5vw; }

	#logo {
		position: absolute;
		opacity: .2;
		bottom: 0;
		left: -15px;
	}

	#logo img {
		max-width: 100px;
		max-height: none;
	}
}

/*use this CSS when generating a screenshot for advertising
body { overflow-y: hidden; }

.perspective { perspective: 3500px !important; }

#home-down, #admin_tab, .element, .typed-cursor { display: none !important; }

.print-only-inline { display: inline; }

#home-content { left: 30vw !important; }

#home::before { left: 35vw !important; }

#website-grid { width: 2750px !important; }

#website-grid a {
	margin-bottom: 25px !important;
	border-radius: 25px !important;
	box-shadow: -15px 15px 5px 5px rgba(0, 0, 0, .2) !important;
}

#website-grid img {
	border-radius: 25px !important;
	box-shadow: -10px 10px 0 0 #999 !important;
}

svg.diagonal { height: 20% !important; }

#shane {
	position: absolute;
	top: 5vh;
	left: -22vw;
	height: 120%;
	z-index: 1;
}

.perspective { top: 25vh !important; }

#banner-title { font-size: 7vw !important; }

.slogan { display: none !important; }
*/

@media screen and (max-width: 767px) {
	.center-block.hidden-xs { display: none !important; }
}
