/* CSS Document */
:root {
  	--main-bg-color: white;
  	--panel-bg-color: #E9EDEE;
  	--dark-cyan: #1E5D81;
	--cyan: #1BAFDD;
	--coral: #F16A6A;
	--gold: #FFB453;
	--pearl-gray: #E9EDEE;
	--midnight:#1C3F54;
	--blue-black: #000408;
 	--transition: 0.5s;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Raleway";
  src: url("/fonts/Raleway-VariableFont_wght.ttf") format("ttf");
}

html, body {
	box-sizing:border-box;
	background-color: var(--pearl-gray);
	font-family: "Segoe UI Semi-Light", Arial, sans-serif;
	line-height: 1.5em;
	color: #203040;
	font-size: 16px;
}

/* Error display */
.errorDisplay {
	background: #FCC;
	color: #123;
	font-size:1.5em;
	padding: 5vh;
	margin: 5vh;
	border: double 5px red;
}

/* Computer */
body {
	margin: 52px 0 30px 0;
	padding:0;
}

article {
	width: 80vw;
	min-width: 300px;
	margin: 0 auto;
	padding-bottom: 30px;
	background:white;
}

.flex-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: calc(100vw - 30px);
	min-height: 60vh;
	padding: 20px; 
	border: none;
	margin: 5px auto;
	box-shadow: 5px 5px 5px rgba(0,0,0,0.35);
	background: #F8F8FB;
}
 
.flex-item {
	background-color: #f4f4f4;
	width: 200px;
	height: 200px;
	margin: 20px;
	border: 1px solid black;
}


/* Mobile Devices */
@media (max-width: 520px) {
	body {
		margin: 48px 0 30px 0;
		padding: 0;
	}
	article {
		padding:0;
		width: 100vw;
		margin: 0;
		padding-bottom: 30px;
		background:white;
	}
	.flex-container {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
		width: 100vw;
		min-height: 60vh;
		padding: 0; 
		border: none;
		margin: 0;
		box-shadow: none;
		background: #F8F8FB;
	}
	.flex-item {
		background-color: #f4f4f4;
		width: 200px;
		height: 200px;
		margin: 20px;
		border: 1px solid black;
	}
}


/* Image */

img {
  max-width: 100%;
}
img[width] {
  width: auto; /* Defer to max-width */
}
img[width][height] {
  height: auto; /* Preserve aspect ratio */
}

/* Let SVG scale without boundaries */
img[src$=".svg"] {
  width: 100%;
  height: auto;
  max-width: none;
}



.hidden {
	display:none;
}
#modal,.modal-inner, #content {
	display: none;
}
#modal.show {
	margin:0;
	padding:0;
	z-index: 100;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.9);
	position:absolute;
	top:0;
	left:0;
	display: flex;
	justify-content: center; /* align horizontal */
	align-items: center; /* align vertical */
}

.modal-inner.show{
	width:60vw;
	max-width: 600px;
	min-width: 300px;
	height: 80vh;
	max-height: 900px;
	min-height: 460px;
	background: white;
	overflow-y:auto;
	display: block;
}
#modalPopupButtons {
	width:320px;
	height: 30px;
	background: transparent;
	border:none;
	box-shadow:none;
	display:flex;
	flex-direction:row;
}

#content.show {
	padding: 5px;
	width: calc(60vw - 20px);
	max-width: 580px;
	min-width: 280px;
	height: 80vh;
	max-height: 900px;
	min-height: 460px;
	background: white;
	display: block;
}
.blurred {
	filter: blur(2px);
	
 	transition: 0.8s;
}
.shadowedText {
	text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.wrong {
	color: red;
	 text-decoration: line-through;
}
.right {
	color:green;
	font-weight:500;
}
.small {
	font-size:0.7rem;
	line-height:1rem;
}
.stepContainer {
	margin:0;
	padding:0;
	display: flex;
	justify-content: flex-start;
	flex-direction: row;
}
.stepNumber {
	width: 40px;
	height:40px;
	border-radius: 10px;
	background: var(--coral);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size:1.8em;
	font-weight:bold;
	float: left;
	margin: 10px 10px 0 0;
}
.stepNumber.disabled {
	background: var(--pearl-gray);
}

div {
	box-sizing:border-box;	
}
header {
	font-family: "Segoe UI Semi-Bold", Arial, sans-serif;
	line-height: 1.5em;
}
footer {
	display:flex;
	justify-content: space-between;
	font-size: 0.8em;
	text-align: right;
	font-style: italic;
}
.container {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
	width: 92vw;
	margin: 10px auto;
	background: white;
	border: solid 5px white;
	box-shadow: 5px 5px 5px rgba(0,0,0,.5);
}
.lightformed {
	display: flex;
    align-items: center;
    justify-content: center;
	padding: 5vw 5vw;
	font-size: 4em;
	width: 100vw;
	height: 40px;
	margin: 0;
	color: white;
	background: radial-gradient(circle, rgba(0,212,255,1) 0%, rgba(45,80,185,1) 55%, rgba(45,80,185,1) 100%);
	font-family:Raleway, Segoe UI, Sans-Serif;
	font-variation-settings: "wght" 100;
	letter-spacing: 2px;
	font-size:5vw;
	font-weight:100;
}

.purpleBox {
	display: flex;
    align-items: center;
    justify-content: center;
	flex-direction: column;
	padding: 0 5px 5px 5px;
	font-size: 4em;
	width: 35vw;
	margin: 0;
	color: white;
	font-size:medium;
	background: #2F1AA3 url(../images/spiral.png) center center no-repeat; /* Do not repeat the image */
 	background-size: contain; /* Resize the background image to cover the entire container */
}

.form-container {
	display: flex;
	padding: 30px;
	margin: 30px;
	font-size: 1em;
	justify-content:center;
	flex-direction: column;
	flex-wrap: wrap;
	width: 75%;
	max-width:600px;
	min-width:300px;
	background: white;
	color: var(--midnight);
	border: 5px solid var(--coral); 
	border-radius:10px;
}
.editor-container {
	display: block;
	padding: 0 5px 5px 5px;
	font-size: 1em;
	width: 92vw;
	margin: 0 auto;
	background: var(--dark-cyan);
	color: white;
	min-height: 80vh;
}
.editor-frame {
	width:85%;
	min-width: 300px;
	height: 280px;
	background: white;
	margin: 10px auto;
	border: 5px solid var(--coral); 
	border-radius:10px;
}
#editor {
	background:white;
	height:200px;
	overflow:auto;
	color:black;
}
.bg1 {
	background: #000;
	color: #FFF;
}
.bg2 {
	background: #BBB;
	color: #000;
}
.bg3 {
	background: #FFDE00;
	color: #000;
}
.bg4 {
	background: #FC8;
	background-size: cover;
	color: #000;
}
.bg5 {
	background: #39F;
	background-size: cover;
	color: #000;
}
.bg6 {
	background: #96F;
	color: #FFF;
}
.bg7 {
	background: #6D3;
	color: #000;
}
.horizontal {
	grid-column: span 1;
}
.vertical {
	grid-row: span 2;
	grid-column: span 1;
}
.big {
	grid-column: span 1;
	grid-row: span 2;
}

@media only screen and (min-width: 481px) {
	.container {
		width: 100vw;
		margin: 0 auto;
	}
}

@media only screen and (min-width: 717px) {
.container {
	width: 100vw;
	margin: 0 auto;
}
.horizontal {
	grid-column: span 2;
}
.vertical {
	grid-row: span 2;
}
.big {
	grid-column: span 2;
	grid-row: span 2;
}
}
@media only screen and (min-width: 769px) {
.container {
	width: 80vw;
	margin: 10px auto;
	max-width: 1215px;
}
.horizontal {
	grid-column: span 2;
}
.vertical {
	grid-row: span 2;
}
.big {
	grid-column: span 2;
	grid-row: span 2;
}
}

/* entire container, keeps perspective */
.flip-container {
	perspective: 1000px;
	margin:5px;
}
/* flip the pane when clicked */
.flip-container.hover .flipper, .flip-container.flip .flipper {
	transform: rotateY(180deg);
}

.flip-container, .front, .back {
	width: 320px;
	height: 480px;
}

/* flip speed goes here */
.flipper {
	transition: 0.6s;
	transform-style: preserve-3d;

	position: relative;
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;
	padding:10px;
	position: absolute;
	top: 0;
	left: 0;
	border-radius:5px;
}

/* front pane, placed above back */
.front {
	z-index: 2;
	/* for firefox 31 */
	transform: rotateY(0deg);
	background-color:#ACF;
}

/* back, initially hidden pane */
.back {
	transform: rotateY(180deg);
	background-color:#FC3;
	padding: 5px;
    display: flex;
    font-size: 1em;
	justify-content: space-around;
	flex-direction: column;
}

/**********************
* Structural elements *
**********************/
/* Nav bar */
nav {
	position: fixed;
	top:0;
	display:flex;
	justify-content: space-around;
	flex-direction: row;
	align-items: center;
	
	background: var(--blue-black);
	
	width:100vw;
	height: 51px;
	color: white;
	font-size: 16px;
	font-family: "Segoe UI Light", Arial, Helvetica, Sans-Serif;
	padding:0;
	margin:0;
	margin-bottom: 20px;
	z-index:99;
}

nav.child {
	margin: auto;
	display:flex;
	justify-content: space-between;
	flex-direction: row;
	align-items: center;
	text-align:center;
	width: 120px;
	font-family:"Segoe UI Light", Verdana, Arial, Helvetica, Sans-Serif;
  	vertical-align: middle;
}

#navButton {
	margin-left:10px;
	cursor:pointer;
  	vertical-align: middle;
	
}
.rotated {
	/* Firefox */
	-moz-transform: rotate(90deg);
	/* WebKit */
	-webkit-transform: rotate(90deg);
	/* Opera */
	-o-transform: rotate(90deg);
	/* Standard */
	transform: rotate(90deg);
 	transition: 0.5s;
}

.rotate180 {
	/* Firefox */
	-moz-transform: rotate(180deg);
	/* WebKit */
	-webkit-transform: rotate(180deg);
	/* Opera */
	-o-transform: rotate(180deg);
	/* Standard */
	transform: rotate(180deg);
 	transition: 0.5s;
}

#upDownArrow {
	border:none;
	margin:0;
	padding:0;
}
#upDown {
	padding: 0;	
	line-height:24px;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#45484d+0,000000+100;Black+3D+%231 */
	background: var(--blue-black); /* Old browsers */
	/* background: -moz-linear-gradient(top, #45484d 0%, #000000 100%); FF3.6-15 */
	/* background: -webkit-linear-gradient(top, #45484d 0%,#000000 100%); Chrome10-25,Safari5.1-6 */
	/* background: linear-gradient(to bottom, #45484d 0%,#000000 100%); W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	/* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); IE6-9 */

}
#navOwner {
	margin-right:10px;
}
#navDate {
	font-size:1.5rem;
}
button {
	border-radius: 5px;
	border: solid 1px var(--midnight);
	barckground: var(--gold);
	color: var(--midnight);
}
#hero {
	margin: 0;
	padding: 0;
	width: calc(100vw -20px);
	height: 20vh;
	background: var(--pearl-gray);
	display:flex;
}

/*.container:hover {
      cursor: pointer;                   
      filter: brightness(120%); 
	  border: 2px solid white;                   
}*/

/* Typography */
h1 {
	line-height: 150%;
}

p, textarea {
	font-family:"Segoe UI Light", Verdana, Arial, Helvetica, Sans-Serif;
}

.imgCoasterThumbnail {
	width:200px;
	height: 200px;
	margin: 5px 0 5px;
	border-color: #CCC;
	border-width: 1px;
	cursor: -moz-zoom-in; 
    cursor: -webkit-zoom-in; 
    cursor: zoom-in;
}
.imgCoasterThumbnail:hover {
	border-top:none;
	border-left: none;
	border-right: 2px solid #8F7A56;
	border-bottom: 2px solid #8F7A56;
	box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, 0.35);
	cursor: -moz-zoom-in; 
    cursor: -webkit-zoom-in; 
    cursor: zoom-in;
}
.inCart {
	box-shadow: inset 0px 0px 38px 15px rgba(0,128,255,1);
	border-color: blue;
	border-width: 2px;
}

.imgCoasterThumbnail .inCart:hover {
	border-color: blue;
	border-width: 2px;
	border-weight: 0, 2px, 2px, 0;
	box-shadow: inset 0px 0px 38px 15px rgba(0,128,255,1);
	box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, 0.35);
	cursor: -moz-zoom-in; 
    cursor: -webkit-zoom-in; 
    cursor: zoom-in;
}


table tr:nth-child(even) td, #bottomPanel tr td.evenRow {
	background-color: #EDEEEF;
	border-color:white;
	outline: none;
}
table tr:nth-child(odd) td, #bottomPanel tr td.oddRow {
	background-color: #DCDCDC;
	border-color:white;
	outline: none;
}
table tr th, table tr td {
	border: solid 1px white;
	outline: none;
}
th, td {
	text-align:center;
}

/***********************
*  Form Grid Layout    *
***********************/
#productForm {
    display: grid;
  	grid-template-columns: auto auto;  
  	grid-template-rows: auto auto auto auto auto auto auto;
    grid-template-areas: 
      "productType productMaterial"
      "productName productName"
	  "productText productText"
	  "productFont productFont"
      "thumbnail fullsize"
      "imageSize imageSize"	
      "submit submit";
    grid-gap: .8em .5em;
    background: #eee;
    padding: 1.2em;
}
#productType, #productMaterial {display:inline-block; width:50%;}