html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

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

table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100vh;
}

body {
	font-family: 'Work Sans', sans-serif;
	overflow-y: scroll;
	background-color: #202020;
	background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, #282828 35px, #282828 70px);
}

#app {
	display: block;
	width: 100%;
	max-width: 960px;
	margin: 48px auto;
	padding: 24px 32px 32px;
	background-color: #f6f6f6;
}

#print {
	display: none;
}

button {
	height: 32px;
	padding: 0 16px;
	color: #fff;
	font-size: 1em;
	text-transform: uppercase;
	background-color: #B39DDB;
	border-radius: 2px;
	border: 0;
	transition: all 0.28s cubic-bezier(0.55, 0, 0.1, 1);
	cursor: pointer;
}

button:hover {
	background-color: #9575CD;
}

#app h1 {
	display: block;
	padding-bottom: 16px;
	margin-bottom: 16px;
	text-align: center;
	font-size: 2.4em;
	font-weight: 100;
	border-bottom: solid 1px #9E9E9E;
	cursor: default;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

#app h4 {
	margin: 8px 0;
	text-transform: uppercase;
}

#app .wrapper .contactList {
	display: inline-block;
	vertical-align: top;
	width: 100%;
	padding-top: 16px;
}

#app .wrapper .contactList [name="print"] {
	margin-top: 16px;
}

#app .wrapper .contactList .contactListContent {
	column-count: 4;
	column-gap: 0;
}

#app .wrapper .contactList .contact {
	display: block;
	margin: 0;
}

#app .wrapper .contactList .contact input {
	display: none;
}

#app .wrapper .contactList .contact label {
	display: inline-flex;
	align-items: stretch;
	position: relative;
	width: 100%;
	padding: 0px 12px;
	transition: all 0.28s cubic-bezier(0.55, 0, 0.1, 1);
	z-index: 100;
	cursor: pointer;
}

#app .wrapper .contactList .contact label p {
	flex: 1;
	font-size: 0.9em;
	line-height: 16px;
	margin: 8px 0;
}

#app .wrapper .contactList .contact label .editContact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	opacity: 0.2;
	transition: all 0.28s cubic-bezier(0.55, 0, 0.1, 1);
}

#app .wrapper .contactList .contact label .editContact i {
	pointer-events: none;
}

#app .wrapper .contactList .contact label .editContact:hover {
	background-color: rgba(0, 0, 0, 0.25);
}

#app .wrapper .contactList .contact label:hover .editContact:hover {
	opacity: 1;
}

#app .wrapper .contactList .contact input:checked + label {
	background-color: #81C784;
}

#app .wrapper .contactList .contact input:checked + label p {
	color: #fff;
}

#app .wrapper .contactList .contact p {
	display: inline-block;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

#app .wrapper .contactList .contact:nth-of-type(2n) {
	background-color: rgba(0, 0, 0, 0.05);
}

#app .wrapper .contactList .contact:hover {
	background-color: rgba(0, 0, 0, 0.15);
}

#app .wrapper .contactList form#getSource textarea {
	width: 80%;
	height: 320px;
	resize: none;
}

#app .wrapper .contactList form#getSource input {
	width: 80%;
	font-size: 1.4em;
}

#app .wrapper .contactList form#getSource button {
	width: 80%;
}

#app .wrapper .preview {
	display: inline-block;
	display: grid;
	grid-template-columns: 1fr 1fr;
	vertical-align: top;
	width: 100%;
	max-width: 240px;
	min-height: 64px;
	margin: 16px 0 0;
	grid-gap: 8px 8px;
	text-align: right;
}

#app .wrapper .preview .sticker {
	display: inline-block;
	width: 100%;
	height: 64px;
	margin: 0;
	background-color: #E0E0E0;
	border: solid 2px #9E9E9E;
	border-radius: 4px;
	transition: all 0.28s cubic-bezier(0.55, 0, 0.1, 1);
	z-index: 100;
	cursor: pointer;
}

#app .wrapper .preview .sticker:hover {
	background-color: #9E9E9E;
}

#app .wrapper .preview .sticker[data-sticker-selected="true"] {
	background-color: #81C784;
	border-color: #4CAF50;
}

#app .wrapper .preview .sticker[data-sticker-selected="true"]:hover {
	background-color: #4CAF50;
}

#app .credentials {
	margin-top: 8px;
	font-weight: 100;
	cursor: default;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

#app .credentials span {
	font-weight: 200;
}

.modal {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 10000;
	background-color: rgba(0, 0, 0, 0.75);
	transition: all 0.28s cubic-bezier(0.55, 0, 0.1, 1);
}

.modal.modal--hidden {
	opacity: 0;
	pointer-events: none;
}

.modal.modal--hidden .modal__container {
	transform: translateY(256px);
}

.modal__container {
	display: block;
	width: 640px;
	background-color: #E0E0E0;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
	transition: all 0.28s cubic-bezier(0.55, 0, 0.1, 1);
}

.modal__container button {
	margin: 16px 0 8px;
}

form {
	margin: 8px 0;
}

.modal__container form {
	margin: 0 auto;
	width: 90%;
	padding: 16px;
}

form label {
	display: inline-block;
	width: 30%;
	margin-bottom: 4px;
	font-size: 0.9em;
}

form input,
form select {
	display: inline-block;
	width: 60%;
	margin-bottom: 4px;
	padding-left: 4px;
	font-family: 'Work Sans', sans-serif;
	background-color: #fff;
	border: 1px solid #999;
}

#getSource {
	width: 40%;
}

#getSource input,
#getSource select {
	width: 100% !important;
}

#getSource button {
	width: 100% !important;
}

#snackbar {
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 16px 24px;
	pointer-events: none;
}

#snackbar .toast {
	padding: 14px 24px;
	color: #fff;
	background-color: #333;
	border-radius: 4px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
	cursor: default;
	transition: all 0.28s cubic-bezier(0.55, 0, 0.1, 1);
	pointer-events: all;
}

#snackbar .toast[data-state="hidden"] {
	transform: translateY(64px);
	pointer-events: none;
}

#print {
	display: none;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	overflow: hidden;
}

#print .sticker p {
	font-family: 'Arial', sans-serif;
	line-height: 1.3em;
}

@page {
	size: A4;
  margin: 0;
}

@media print {
	html,
  body {
		width: 210mm;
		height: 297mm;
		background: transparent;
		overflow: hidden;
	}

	#app {
		display: none;
	}

	#snackbar {
		display: none;
	}

	#print {
		display: grid;
		height: 100%;
	}

	::-webkit-scrollbar {
		display: none;
	}
}
