/* inspired by https://medium.com/@stephan.romhart/how-i-organize-my-css-for-websites-without-a-framework-4d93fbbc74fe */


/* Reset */

*,*::before, *::after {
	box-sizing: border-box;
}

html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td, header, footer, aside, nav, article, figure, figcaption {
	margin: 0;
	padding: 0;
}

fieldset, img, input, button, textarea {
	border: 0;
}

address, caption, cite, code, dfn, em, strong, th, var {
	font-style: normal;
	font-weight: 400;
}

ol, ul {
	list-style: none;
}

caption, th {
	text-align: left;
}

h1, h2, h3, h4, h5, h6 {
	font-size: 100%;
	font-weight: 400;
}

q:before, q:after {
	content: '';
}

abbr, acronym {
	border: 0;
}

a {
	text-decoration: none;
}

a:active, a:focus {
	outline: none;
} 


/* Variables */

:root {
  /* Reset 1rem = 10px */
  font-size: 10px;
  
  /* Basic colors */
  --white: #ebebe7;
  --white-translucent: #ebebe788;
  --black: #130b18;
  --black-translucent: #130b1888;
  --bg1: #110d35;
  --bg2: #363861;
  --cyan: #00d0e2;
  --cyan-transparent: #00d0e288;
  --magenta: #f176f8;
  --yellow: #ece44a;
    
  /* Layout variables */
  --content-padding: 5rem;
  --content-padding-small: 2rem;
  --content-padding-tiny: 1rem;
}


/* Global spacing */ 

body {
  font-family: 'Helvetica', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.4;
}

section {
  padding: var(--content-padding);
}

p, ul, figure {
  margin-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
}

h1 {
  font-size: 4rem;
  margin-bottom: 3rem;
}

h1 a {
  font-size: 2rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 2.2rem;
  font-weight: 700;
}

input, button {
  padding: 0.5em;
}

input[type="text"] {
  padding-left: 0;
}

input[type="submit"].primary, button.primary {
  font-size: 1em;
}


/* Global colors and typography */

body {
  color: var(--white);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height: 100vh;
}

a {
  color: var(--cyan);
}

a:visited {
  color: var(--magenta);
}

a:hover {
  color: var(--yellow);
}

h1 {
  text-shadow: 0 0.05em 0 var(--black), 0 0.1em 1.25em var(--cyan);
}

h2, h3, h4, h5, h6 {
  text-shadow: 0 0.05em 0 var(--black), 0 0.1em 1.25em var(--white-translucent);
}

input[type="text"], input[type="email"], input[type="password"] {
  background: transparent;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  background: transparent;
  color: var(--white);
  border-bottom: 1px solid var(--white);
}

form .error {
  color: #f00;
  font-size: .8em;
}

::placeholder {
  color: var(--cyan-transparent);
}

input[type="submit"], button {
  background: transparent;
  font-weight: 600;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: 0.5em;
  cursor: pointer;
}

input[type="submit"]:hover, button:hover {
  border-color: var(--white);
}

input[type="submit"]:disabled, button:disabled {
  cursor: default;
}

strong {
  font-weight: 600;
}


/* Specifics */

#container {
  padding: var(--content-padding);
  padding-top: 0;
  width: var(--content-width);
}

#container > header {
  border-bottom: 1px solid var(--white);
  padding-bottom: var(--content-padding-small);
  margin: var(--content-padding-small) 0;
}

#container > header > nav > * {
  float: right;
  padding-left: var(--content-padding-small);
}

#container > header > nav > .logo {
  float: none;
  display: inline-block;
  padding-left: 0;
}

.prompt, .prompt input, .prompt button {
  font-size: 2rem;
}

.prompt input[type="text"] {
  min-width: 50vw;
}

.promptGallery {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
  list-style: none;
  line-height: 0;
}

.promptGallery > li {
  position: relative;
  max-width: 512px;
  min-width: 256px;
  min-height: 256px;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  color: var(--white-translucent);
}

.promptGallery > li > * {
  display: block;
  position: relative;
}

.promptGallery > li a, .promptGallery > li img {
  display: block;
  width: 100%;
  position: relative;
}

.promptGallery > li div.details {
  display: block;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  padding: var(--content-padding-tiny);
  line-height: 1.4;
  font-size: 1.5rem;
  font-weight: 600;
}

.promptGallery > li div.details:not(.actionable) {
  text-shadow: 0 1px 0 var(--black), 0 1px 3px var(--black);
}

.promptGallery > li div.actionable {
  background: var(--black-translucent);
}

.promptGallery > li div.actionable button {
  float: right;
}

.promptGallery > li , .promptGallery > li a {
  color: var(--white);
}

.promptGallery > li a:hover {
  color: var(--yellow);
}

.productSelector {
  margin-top: var(--content-padding);
}

.individualProduct {
  display: flex;
}

.individualProduct .details {
  padding-left: var(--content-padding);
}

.productImage {
  display: block;
  width: 42rem;
  height: 42rem;
  position: relative;
  overflow: hidden;
}

.promptGallery > li.productImage {
  width: 100%;
  height: auto;
}

.productImage img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.productImage img.design {
  opacity: 0.9;
  position: absolute !important;
}

.productColor {
  position: relative; top: .1em;
  display: inline-block;
  vertical-align: baseline;
  width: 1em;
  height: 1em;
  outline: 1px solid var(--white-translucent);
  border-radius: 2px;
}

.designHero {
  position: relative;
  overflow: hidden;
  text-align: center;
  line-height: 0;
  margin-left: calc(var(--content-padding) * -1);
  margin-right: calc(var(--content-padding) * -1);
}

.designHero > .backdrop {
  width: 100%;
  height: 100%;
  position: absolute;
  background-size: cover;
  background-position: center center;
  left: 0;
  right: 0;
  filter: blur(20px) opacity(75%) brightness(50%) contrast(125%) saturate(125%);
  z-index: -1;
  overflow: hidden;
}

.designHero > img {
  max-width: 100%;
}

/* Media Queries */

/* Standard desktop  */
/*@media(max-width: 1920px) {
	:root {
		--content-padding: 4rem;
	}
}*/

/* Old desktop or large scaled UI */
/*@media(max-width: 1280px){
	:root {
		font-size: 8px;
	}
}*/

/* Tablet landscape */
@media(max-width: 1024px){
  .individualProduct {
    display: block;
  }

/*
  .productImage {
    margin-left: calc(var(--content-padding) * -1);
    width: calc(100vw - var(--content-padding)*0.5);
    height: calc(100vw - var(--content-padding)*0.5);
  }
*/
}

/* Tablet portrait */
@media(max-width: 800px) {
	:root {
    --content-padding: 2rem;
	}
/*
  .productImage {
    width: calc(100vw - var(--content-padding));
    height: calc(100vw - var(--content-padding));
  }
*/
}

/* Smartphones */
@media(max-width: 550px) {
	:root {
		--content-padding: 1rem;
    font-size: 9px;
	}

  header > nav .detail {
    display: none;
  }

  /*
  .productImage {
    margin-left: calc(var(--content-padding) * -1);
    margin-right: calc(var(--content-padding) * -1);
    width: calc(100vw - var(--content-padding)*2);
    height: calc(100vw - var(--content-padding)*2);
  }
  */
}