/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}


@font-face {
	font-family: 'Gadget';
	src: url('assets/fonts/Gadget-Display.woff2') format('woff2'), url('assets/fonts/Gadget-Display.woff') format('woff');
	font-style: normal;
	font-weight: 800;
}

@font-face {
	font-family: 'Haas';
	src: url('assets/fonts/NHaasGroteskDSPro-55Rg.woff2') format('woff2'), url('assets/fonts/NHaasGroteskDSPro-55Rg.woff') format('woff');
	font-style: normal;
	font-weight: 550;
}

@font-face {
	font-family: 'Haas';
	src: url('assets/fonts/NHaasGroteskDSPro-65Md.woff2') format('woff2'), url('assets/fonts/NHaasGroteskDSPro-65Md.woff') format('woff');
	font-style: normal;
	font-weight: 650;
}

.happy-tree {
	--text-color: #003B17;
	--bg-color: #00E996;
}

.cherry-baby {
	--text-color: #00E996;
	--bg-color: #FF003E;
}

.snow-crystal {
	--text-color: #B2E1EB;
	--bg-color: #2B3659;
}

.hot-wine {
	--text-color: #EEA274;
	--bg-color: #9E0300;
}

.candle-light {
	--text-color: #9D0200;
	--bg-color: #FFF879;
}

.candy-darling {
	--text-color: #FFFFFF;
	--bg-color: #694893;
}



html {
	overflow-y:scroll;
	overflow-x: hidden;
}

html,body {
	font-family: 'Haas', sans-serif;
	font-size: 18px;
	line-height: 1.4;
	min-height: 100%;
	height: auto;
	margin: 0;
	background-color: var(--bg-color);
	color: var(--text-color);
}


body {
	position: relative;
	padding: 2vw;
}

main {
	position: relative;
}

a,a:link,a:hover,a:active {
	color:inherit;
	text-decoration:none;
	border-bottom: 0.01em solid var(--text-color);
}

button {
	cursor:pointer;
}

button, input, select, textarea {
	font: inherit;
	text-transform: inherit;
	background-color: inherit;
	border: 2px solid var(--text-color);
	color: inherit;
	outline:none;
	padding: 0;
}

::placeholder {
	color: inherit;
	opacity: 1;
}


.gadget-font {
	font-family: 'Gadget', sans-serif;
	text-transform: uppercase;
}

/* header */

.app-header {
	position: relative;
	height: 26vw;
}

.app-header .logo svg {
	fill: var(--text-color);
	width: 80%;
}




/* name inputs.. from: to: */

.input-group {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.input-group {
	display:flex;
	flex-direction: row;
	margin-bottom: 0.2em;
	align-items: center;
}

.input-group label {
	width: 38%;
}

.input-group input,
.input-group button {
	display:block;
	width: 100%;
	line-height: 1;
	text-align: left;
	padding: 0.05em 0.2em 0 0.2em;
}

.to-overlay {
	overflow-y: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	background-color: var(--bg-color);
	overflow-y: scroll;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
	padding: 4vw 4vw 4em 4vw;
	font-family: 'Haas', sans-serif;
	font-size: 1rem;
	text-transform: none;
	font-weight: bold;
}

.to-overlay p,
.to-overlay-closer-wrapper {
	font-size: 2rem;
	line-height: 1;
}

.to-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.to-overlay .input-group {
	flex-direction: column;
	align-items: flex-start;
	font:inherit;
}

.to-overlay .input-group label {
	margin-bottom: 0.2em;
}

.to-dropdown-list {
	line-height: 2;
	margin: 2em 0;
}

.to-dropdown-button,
.to-overlay-closer-wrapper button {
	color: var(--bg-color);
	background-color: var(--text-color);
	padding: 0.05em 0.2em 0 0.2em;
}


.to-overlay-closer-wrapper {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 2;
	padding: 2vw;
	background-color: var(--bg-color);
}

.to-overlay-closer-wrapper button {
	width: 100%;
	padding: 0.1em 0.2em 0.05em 0.2em;
	text-align: center;
}

.to-dropdown-list li {
	display:flex;
	flex-direction: row;
	align-items: center;
	cursor:default;
}

.to-dropdown-list li.selected .checkbox {
	background-color: var(--text-color);
}

.to-dropdown-list li .name {
	flex-grow:1;
	width: 100%;
}


.checkbox {
	display:inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid var(--text-color);
	margin-right: 8px;
}

.to-scroll-slider {
	display:none;
}

.to-overlay .input-group input {
	padding: 0.15em 0.2em 0.2em 0.2em;
}

.to-custom-message {
	margin-bottom: 0.8em;
}





/* canvas */

.edit-canvas-wrapper {
	position: relative;
	display:block;
	width: 100%;
	height: 0;
	padding-bottom: 141%;
	overflow:hidden;
}

.edit-canvas {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 2px solid var(--text-color);
}


.card {
	background-color: inherit;
	padding: 8%;
	text-align: center;
	overflow:hidden;
	display:flex;
	align-items: center;
	justify-content: center;
}

.text-input {
	position: relative;
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	outline:none;
	word-break: break-word;
}

.edit-input::selection {
	color: var(--bg-color);
	background-color: var(--text-color);
}

.print-canvas {
	position: relative;
	top: 0;
	font:inherit;
	width: 148mm;
	height: 210mm;
	overflow:hidden;
}

.print-canvas-wrapper {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	overflow:hidden;
}



/* font controls */

.font-controls {
	margin-top: 0.8em;
	margin-bottom: 1em;
}

.font-controls>div {
	display:flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 0.7em;
	height: 36px;
}

.font-controls label {
	width: 13%;
	height: 100%;
	display:flex;
	justify-content: center;
	margin-right: 1%;
}

.font-controls .font-size svg {
	width: 30px;
	height: auto;
	margin-bottom: 4px;
}

.font-controls .line-height svg {
	height: 36px;
	width: auto;
}

.font-controls svg path {
	fill: var(--text-color);
}


.font-controls input {
	width: 100%;
	touch-action:none;
}

.default-button {
	text-transform: uppercase;
}




/* color controls */

.color-list {
	display:grid;
	grid-template-columns: 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr; 
  gap: 0.3em 0.3em;
	margin-bottom: 0.8em;
}

.color-list li {
	color: var(--text-color);
	background-color: var(--bg-color);
	border: 2px solid transparent;
	text-align: center;
	display:block;
	font-weight: bold;
	cursor:pointer;
}

.color-list li.active {
	border: 2px solid var(--text-color);
}



/* icon controls */

.icon-controls {
	margin-bottom: 1em;
}

.icon-list {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.icon-list li {
	display:block;
	width: 56px;
	height: 56px;
	height: auto;
	border: 2px solid var(--text-color);
}

.icon-list img {
	display:block;
}

.scatter-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events:none;
	z-index: 1;
	overflow:hidden;
}

.scatter-container img {
	position: absolute;
	width: 30px;
	height: 30px;
	top: 0;
	left: 0;
}



/* progress buttons */


.progress-buttons button {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 0.3em;
	display:block;
	width: 100%;
	text-align: center;
	color: var(--bg-color);
	background-color: var(--text-color);
	padding: 0.1em 0.2em 0.05em 0.2em;
}



/* overlays */

.general-overlay {
	position: fixed;
	opacity: 0;
	pointer-events:none;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg-color);
	z-index: 3;
	transition: opacity 0.5s ease;
	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.general-main-message {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 1em;
	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 3.5em;
	width: 80%;
}

.general-progress-message,
.general-success-message,
.general-error-message {
	opacity: 0;
	position: absolute;
	transition: opacity 0.5s ease;
}

.general-download-message {
	opacity: 0;
	max-width: 80%;
	transition: opacity 0.5s ease;
	transition-delay:0.5s;
}

.error-details {
	display:none;
}

.error-details.active {
	display:block;
}

.general-success-message.active,
.general-progress-message.active,
.general-download-message.active,
.general-error-message.active {
	opacity: 1;
}

.general-overlay-closer-wrapper {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	font-size: 2rem;
	line-height: 1;
	padding: 2vw;
	z-index: 2;
}

.general-overlay-closer {
	display:block;
	width: 100%;
	text-align: center;
	color: var(--bg-color);
	background-color: var(--text-color);
	opacity: 0;
	pointer-events:none;
	transition: opacity 0.5s ease;
}

.general-overlay-closer.active {
	opacity: 1;
	pointer-events:auto;
}


.general-overlay.open {
	pointer-events: auto;
	opacity: 1;
}



/* tablet + */
@media only screen and (min-width: 800px) {
	.app-header {
		position: absolute;
		width: 280px;
		height: auto;
	}
	
	.app-header .logo svg {
		width: 100%;
	}
	
	.main-columns {
		position: relative;
		display:flex;
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 1.5em;
	}
	
	
	/* name inputs.. from: to: */
	
	.input-fields {
		position: relative;
		display:flex;
		flex-direction:column;
		width: 42%;
		margin-top: 80px;
	}
	
	.from-form {
		margin-bottom: 0.6em;
	}
	
	.input-group label {
		width: 90px;
	}
	
	.input-group input,
	.input-group button {
		flex-grow: 1;
		width: calc(100% - 90px);
	}
	
	.input-fields .input-group button {
		color: var(--text-color);
		background-color: var(--bg-color);
		border:none;
		cursor:default;
		pointer-events:none;
		padding: 0;
	}
	
	.to-dropdown-list {
		margin-top: 0;
		line-height: 1.2;
	}
	
	.to-dropdown-list li {
		padding: 0.2em 0;
	}
	
	
	
	
	.to-overlay .input-group input {
		width: calc(100% - 4px);
		padding: 0.2em;
	}
	
	.to-overlay {
		position: relative;
		opacity: 1;
		flex:1;
		pointer-events:auto;
		padding: 0 0 0 91px;
		overflow:hidden;
		width: calc(100% + 14px);
	}
	
	.to-overlay-scroll-wrapper {
		position: relative;
		height: 100%;
		overflow-x:hidden;
		overflow-y:scroll;
		width: calc(100% + 20px);
		padding-right: 40px;
	}
	
	.to-dropdown-list-title {
		display:none;
	}
	
	.to-overlay-closer-wrapper {
		display:none;
	}
	
	.to-overlay .checkbox {
		width: 15px;
		height: 15px;
	}
	
	.to-scroll-slider {
		display:block;
		position: absolute;
		transform-origin: top left;
		transform: rotate(90deg);
		top: 0;
		left: calc(100% - 10px);
	}
	
	.to-scroll-slider.hidden {
		display:none;
	}
	
	
	/* canvas */
	
	.edit-canvas-wrapper {
		width: 56%;
		padding-bottom: 79.46%;
	}
	
	
	/* controls */
	
	.style-controls {
		position: relative;
		width: 100%;
		height: 140px;
	}
	
	.font-controls {
		position: absolute;
		display:flex;
		flex-direction:row;
		width: 60%;
		justify-content: space-between;
	}
	
	.font-controls>div {
		width: 47%;
	}
	
	.icon-controls {
		position: absolute;
		right: 0;
		width: 36%;
	}
	
	.icon-list li {
		cursor:pointer;
	}
	
	
	.color-controls {
		position: absolute;
		margin-top: 4.5em;
		width: 100%;
	}
	
	.color-list {
		grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; 
		grid-template-rows: 1fr;
	}
	
	.color-list li {
		display:block;
		width: auto;
		padding: 0.3em 0.1em;
	}
	
	
	/* progress buttons */
	
	.progress-buttons {
		position: relative;
		display:flex;
		right: 0;
		flex-direction: row;
		width: 100%;
		justify-content: flex-end;
	}
	
	.progress-buttons button {
		display:block;
		width: auto;
		padding: 0.1em 0.5em 0.05em 0.5em;
		margin-left: 0.15em;
	}
	
	
	
	/* overlays */
	
	.general-overlay-closer-wrapper {
		position: relative;
		width: auto;
	}
	
	.general-overlay-closer {
		padding: 0.1em 0.5em 0.05em 0.5em;
	}
	
	.general-main-message {
		font-size: 4rem;
		margin-bottom: 0;
	}
	
}

/* desktop + */
@media only screen and (min-width: 1100px) {
	.input-fields {
		width: 60%;
	}
	
	.edit-canvas-wrapper {
		width: 38%;
		padding-bottom: 53.92%;
	}
	
	.to-overlay {
		width: calc(100% + 18px);
	}
	
	.icon-controls {
		width: 38%;
	}
	
	
	.to-scroll-content {
		column-count: 2;
	}
}

/* desktop ++ */
@media only screen and (min-width: 1300px) {
	
	.main-columns {
		margin-bottom: 0.8em;
	}
	
	.to-scroll-content {
		column-count: 3;
	}
	
	.style-controls {
		height: 114px;
		margin-top: 2em;
	}
	
	.color-list {
		margin: 0;
	}
	
	.color-list li {
		padding: 0.1em;
	}
	
	.icon-controls {
		width: 36%;
	}
}