@import url('fonts/fontawesome.css');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,600');

@font-face
{
	font-family: 'FontAwesome';
	src: url('fonts/fa-regular-400.woff2') format('woff2');
}

@font-face
{
	font-family: 'FontAwesome';
	src: url('fonts/fa-brands-400.woff2') format('woff2');
}

/*@font-face
{
	font-family: 'FontAwesome';
	src: url('//use.fontawesome.com/releases/v4.7.0/fonts/fontawesome-webfont.woff2') format('woff2');
}*/

body .buorg
{
	color: black;
}

body
{
	margin: 0;
	background-color: #333333;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	height: 100vh;
	overflow-x: hidden;
	/*position: fixed;*/
}

body, main
{
	/*width: 100%;*/
	/*min-height: 100vh;*/
}

body, textarea, input, button
{
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
}

body, textarea
{
	color: white;
}

textarea
{
	background-color: #042e48;
	flex: 1;
	align-self: stretch;
	padding: 6px 10px;
	border-color: #4dace6;
}

input, button
{
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1px solid #999;
	color: #111;
	background-color: white
}

button:disabled
{
	color: #999;
}

input
{
	flex: 1;
}

textarea:-ms-input-placeholder
{
	color: rgba(255,255,255,0.9);
}

textarea::-moz-placeholder
{
	color: rgba(255,255,255,0.9);
}

textarea::-webkit-input-placeholder
{
	color: rgba(255,255,255,0.9);
}

ul, dl
{
	margin: 0;
}

iframe
{
	border: none;
	width: 100%;
	height: 100%;
}

*::before
{
	font-family: 'FontAwesome';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 32px;
	display: inline-block;
}

nav *::before
{
	font-size: 20px;
}

.about-desc *::before
{
	font-size: 20px;
}

nav
{
	width: 100%;
	display: flex;
	/*text-transform: uppercase;*/
	font-size: 14px;
	flex-shrink: 0;
}

nav span
{
	margin: 0 5px;
	/*font-family: 'Raleway', sans-serif;*/
	/*text-transform: uppercase;*/
}

nav span, nav *::before
{
	vertical-align: middle;
}

nav>*
{
	padding: 3px 6px;
}

nav>*:last-child
{
	flex: 3;
}

button::before
{
	font-size: 14px;
	margin-right: 6px;
}

a
{
	display: inline-block;
	text-decoration: none;
	color: inherit;
}

p a
{
	display: inline;
	text-decoration: underline;
}

h1
{
	text-transform: uppercase;
	font-size: 14px;
	font-weight: bold;
	margin: 0;
}

h2
{
	margin: 5px;
	font-size: 17px;
	font-weight: normal;
}

/*.preview h2
{
	margin: 0;
}*/

h3
{
	font-weight: normal;
	display: inline-block;
	margin: 5px;
	font-size: 16px;
}

dl
{
	margin: -5px 5px 5px;
}

dt, dd
{
	margin: 2px;
}

dt
{
	font-weight: 600;
	margin-top: 14px;
}

dd
{
	margin-left: 30px;
}

.flip
{
	transition: 0.5s;
	transform-style: preserve-3d;
	position: relative;
}

/*.index
{
	overflow: hidden;
}*/

.index>*:hover .flip
{
	transform: rotateX(180deg);
}

@media (hover: none)
{
	.index>*:hover .flip
	{
		transform: none;
	}
}

/*@media (hover: hover), (orientation: landscape)
{
	.index>*:hover .flip
	{
		transform: rotateX(180deg);
	}
}*/

.flip:nth-child(3)
{
	transition-delay: 0.1s;
}
.flip:nth-child(4)
{
	transition-delay: 0.2s;
}
.flip:nth-child(5)
{
	transition-delay: 0.3s;
}
.flip:nth-child(6)
{
	transition-delay: 0.4s;
}
.flip:nth-child(7)
{
	transition-delay: 0.5s;
}
.flip:nth-child(8)
{
	transition-delay: 0.6s;
}
.flip:nth-child(9)
{
	transition-delay: 0.7s;
}
.flip:nth-child(10)
{
	transition-delay: 0.8s;
}

.front, .back
{
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.front
{
	/* for firefox 31 */
	transform: rotateX(0deg);
}

/* back, initially hidden pane */
.back
{
	transform: rotateX(180deg);
	z-index: -2;
}

.preview
{
	background-color: rgba(0,0,0,0.5);
	text-shadow: 0 0 3px black;
	width: 100%;
	height: 100%;
	overflow: hidden;
	transition-duration: 0.5s;
}

.preview>*
{
	text-align: center;
}

.back:not(:hover) .preview, a:not(:hover)>.preview
{
	opacity: 0;
}

.back:hover .preview, a:hover>.preview
{
	opacity: 1;
}

@media (hover: none)
{
	.back:hover .preview, a:hover>.preview
	{
		opacity: 0;
	}
}

/*@media (hover: hover), (orientation: landscape)
{
	.back:hover .preview, a:hover>.preview
	{
		opacity: 1;
	}
}*/

.zoom
{
	cursor: zoom-in;
}

.dash
{
	line-height: 0;
}

.more .preview
{
	z-index: -2;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.3);
}

.link
{
	position: relative;
}

.link>*, .link::before
{
	z-index: 1;
}

.link::after
{
	content: '\A';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.2);
	opacity: 0;
	transition-duration: 0.4s;
}

.link:hover::after
{
	opacity: 1;
}

@media (hover: none)
{
	.link:hover::after
	{
		opacity: 0;
	}
}

/*@media (hover: hover), (orientation: landscape)
{
	.link:hover::after
	{
		opacity: 1;
	}
}*/

.about-desc
{
	grid-row: span 1 !important;
	grid-column: span 12 !important;
	align-items: start;
	justify-content: flex-start;
}


.about-p
{
	margin: 5px 16px;
}

p
{
	font-size: 14px;
	margin: 16px;
}

.content
{
	position: relative;
}

.site
{
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 150%;
	transform-origin: top left;
	transform: scale(0.6666);
}

.summary
{
	text-align: center;
}

.itemuse
{
	width: 110px;
	text-align: center;
	display: inline-block;
	vertical-align: top;
	margin: 10px 4px;
}

.programming .item
{
	font-size: 22px;
}

.use
{
	font-size: 11px;
}

#features
{
	align-items: left;
}

#faq
{
	/*grid-row: span 12;*/
	grid-column: span 4;
	grid-row: unset;
	align-items: left;
	justify-content: flex-start;
}

main>*, .index>*>*, .back, .preview
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

main.websites
{
	margin: -2px;
}

/*main.websites, */main.websites>*
{
	margin: 2px;
}

/*.index>*>*
{
	min-width: 20vw;
	min-height: 11.25vw;
}*/

.index>*:nth-child(n+6):nth-child(-n+7)>*
{
	height: 100%;
}

main.about>*
{
	padding: 8px;
}

main.contact>*
{
	padding: 10px;
	/*justify-content: center;
	align-items: center;*/
	flex-direction: row;
}

label, time
{
	margin: 5px;
	cursor: unset;
}

nav label
{
	margin: none;
	margin-right: 5px;
}

main
{
	flex-grow: 1;
}

main,
.index>*
{
	display: grid;
	grid-auto-flow: dense;
	position: relative;
}

.index>*
{
	grid-template-rows: repeat(12, 1fr);
	grid-template-columns: repeat(12, 1fr);
}

/*main.animations
{
	grid-auto-rows: 4.6875vw;
}*/

main.about
{
	grid-auto-rows: min-content;
	grid-template-columns: repeat(12, 1fr);
	/*grid-template-rows: unset;*/
	/*grid-auto-flow: dense;*/
}

.cover
{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 2;
}

/* re-display cover after all panels transition*/
.index>*:first-child:not(:hover) .cover
{
	transition-delay: 1.3s;
}
.index>*:nth-child(n+2):nth-child(-n+5):not(:hover) .cover
{
	transition-delay: 0.8s;
}
.index>*:nth-child(n+6):nth-child(-n+7):not(:hover) .cover
{
	transition-delay: 0.5s;
}
.index>*:nth-child(n+1):nth-child(-n+7):hover .cover
{
	visibility: hidden;
}
@media (hover: none)
{
	.index>*:first-child:not(:hover) .cover
	{
		transition-delay: none;
	}
	.index>*:nth-child(n+2):nth-child(-n+5):not(:hover) .cover
	{
		transition-delay: none;
	}
	.index>*:nth-child(n+6):nth-child(-n+7):not(:hover) .cover
	{
		transition-delay: none;
	}
	.index>*:nth-child(n+1):nth-child(-n+7):hover .cover
	{
		visibility: visible;
	}

	/*.index>*:first-child:not(:hover) .cover
	{
		transition-delay: 1.3s;
	}
	.index>*:nth-child(n+2):nth-child(-n+3):not(:hover) .cover
	{
		transition-delay: 0.8s;
	}
	.index>*:nth-child(n+4):nth-child(-n+6):not(:hover) .cover
	{
		transition-delay: 0.5s;
	}
	.index>*:nth-child(n+1):nth-child(-n+6):hover .cover
	{
		visibility: hidden;
	}*/
}

/*main.index>*>*:hover
{
	transform: scale(1.05);
	z-index: 5;
}

main.index>*:nth-child(n+1):nth-child(-n+6)>*:hover
{
	transform: scale(1.05) rotateX(180deg);
}*/

main>*,
main>*>*,
.back
{
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.index>*:nth-child(n+1):nth-child(-n+5)
{
	align-items: unset;
}

main>*:first-child,
.index>*>*:nth-child(2)
{
	grid-column: span 8;
	grid-row: span 8;
}

main>*:nth-child(n+2):nth-child(-n+5),
.index>*>*:nth-child(n+3):nth-child(-n+6)
{
	grid-column: span 4;
	grid-row: span 4;
}

main>*:nth-child(n+6)/*:nth-child(-n+8)*/,
.index>*>*:nth-child(n+7)
{
	grid-column: span 2;
	grid-row: span 2;
}

/*main>*:nth-child(n+9)
{
	grid-column: span 1;
	grid-row: span 1;
}*/

/*main>*:nth-child(n+10)
{
	display: none;
}*/

.index>*:nth-child(n+2):nth-child(-n+5)>*:nth-child(n+2)
{
	grid-column: span 6;
	grid-row: span 6;
}

.index>*:nth-child(n+6)>*
{
	grid-column: span 12;
	grid-row: span 12;
}

.index>*:nth-child(n+2)>* .preview p,
.index>*:first-child>*:nth-child(n+7) .preview p,
main:not(.animations)>*:nth-child(n+6) .preview p,
[data-size="2"] .preview p
{
	display: none;
}

.small
{
	grid-column: span 2 !important;
	grid-row: span 4 !important;
}

main .tools
{
	display: block;
	grid-column: span 3;
	grid-row: unset;
	align-items: left;
	justify-content: flex-start;
}

[data-status="Send"]::before
{
	content: "\f1d8";
}

[data-status="Send"]:not(:disabled)
{
	cursor: pointer;
}

[data-status="Sending"]::before
{
	content: "\f3f4";
	animation: spin 2s infinite linear;
	display: inline-block;
}

[data-status="Sent"]::before
{
	color: #00a71e;
	content: "\f00c";
}

[data-status="Error"]::before
{
	color: red;
	content: "\f12a";
}

[data-status]::after
{
	content: attr(data-status);
}

.fa-tablet::before
{
	transform: rotate(90deg);
}

nav .home
{
	background-color: #595959;
}

.fa-app-store-ios
{
	background-color: #1f9ff0;
}

.fa-google-play
{
	background-color: #a4c639;
}

.ausmash
{
	background-color: #ff4a1b;
}

#send button
{
	margin: 2.5px;
}

@media (hover: none)
{
	.site
	{
		display: none;
	}
}

@media (orientation: landscape)
{
	main.contact>*:not(#message)
	{
		grid-row: span 1;
	}

	#name, #email
	{
		grid-column: span 3;
	}

	#subject
	{
		grid-column: span 5;
	}

	#message
	{
		grid-row: span 1;
		grid-column: span 12;
	}

	#send
	{
		grid-column: span 1;
		min-width: 80px;
	}

	main.contact
	{
		grid-template-columns: repeat(11, 1fr) max-content;
		grid-template-rows: min-content 1fr;
		height: 100%;
	}
}

@media (orientation: portrait)
{
	main
	{
		grid-template-columns: repeat(8, 1fr);
		grid-auto-rows: 7.03125vw;
	}

	/*main:not(.about)
	{
		grid-auto-rows: 7.03125vw;
	}*/

	/*main.about
	{
		grid-auto-rows: max-content;
	}*/

	/*nav>*:first-child:nth-last-child(3) > span
	{
		display: none;
	}*/

	nav>*:first-child:nth-last-child(3)
	{
		flex: 1;
	}

	#name, #email, #subject
	{
		grid-row: span 2;
		grid-column: span 8;
	}

	#message
	{
		grid-row: span 13;
		grid-column: span 8;
	}

	#send
	{
		grid-row: span 2;
		grid-column: span 8;
	}

	.description, #features, #faq
	{
		grid-column: span 8 !important;
	}

	main .tools
	{
		grid-column: span 12 !important;
	}
}

@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 2/1)
{
	main
	{
		grid-auto-rows: 4.6875vw;
		grid-template-columns: repeat(12, 1fr);
	}
}

@media (min-aspect-ratio: 2/1) and (max-aspect-ratio: 3/1)
{
	main
	{
		grid-auto-rows: 3.515625vw;
		grid-template-columns: repeat(16, 1fr);
	}
}

@media (min-aspect-ratio: 3/1) and (max-aspect-ratio: 8/1)
{
	main
	{
		grid-auto-rows: 2.8125vw;
		grid-template-columns: repeat(20, 1fr);
	}
}

@media (min-aspect-ratio: 8/1)
{
	main
	{
		grid-auto-rows: 2.34375vw;
		grid-template-columns: repeat(24, 1fr);
	}
}

@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 4/3)
{
	main>*:nth-child(n+2):nth-child(-n+3)
	{
		grid-column: span 6;
		grid-row: span 6;
	}
}

/*@media (min-aspect-ratio: 7/2) and (max-aspect-ratio: 4/1), (min-aspect-ratio: 7/1)
{
	main>*:nth-child(n+2):nth-child(-n+3)
	{
		grid-column: span 8;
		grid-row: span 8;
	}
}*/

@keyframes spin
{
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}