/*
Base
 */
html {
	width: 100%;
	height: 100%;
}

body {
	line-height: 1.6em;
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: left;
	width: 100%;
  	font-family: 'Rubik', sans-serif;
  	font-weight: 300;
	color: #454545;
	-webkit-backface-visibility: hidden;
	background-color: #315798;
	background-image: url(../images/background.svg);
	background-repeat: no-repeat;
}

h1, h2, h3, h4, p, a {
	padding: 0;
	margin: 0;
}

h1 {
	font-size: 3em;
  	padding: 1em 0.5em;
}

h2 {
	padding: 1em;
    text-align: center;
    font-weight: 300;
    font-size: 1em;
}

p.tip {
	color: #C4C4C4;
	line-height: 1.4em;
    margin-top: 1em;
}

header, #intro, #content {
	width: 100%;
	max-width: 1200px;
	margin: 45px auto;
}

nav {
	float: right;
	color: #FFF;
}

nav a:link, nav a:active, nav a:hover, nav a:visited {
	color: #FFF;
	font-weight: bold;
	font-size: 1em;
	text-decoration: underline;
}

#intro {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-top: 160px;
	color: #FFF;
}

#content {
	background-color: #FFF;
	border-radius: 16px;
}

fieldset {
	border: none;
	margin-bottom: 30px;
	padding: 0;
}

label, input, textarea, select {
	display: block;
	width: 350px;
	font-family: 'Rubik', sans-serif;
}

input, textarea, select {
	padding: 1em;
 	font-size: 1em;
}

input, button, textarea, select {
	height: 60px;
	border-radius: 16px;
	border:  1px solid #FFF1F5;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

button {
	background-color: #EF8281;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: bold;
	color: #FFF;
	border: none;
	padding: 0 2em;
}

button:hover {
	background-color: #ED6362;
}

#form button, #mailer button, #add button {
	float: right;
}

form a {
	font-weight: bold;
    color: #315798;
    display: inline-block;
    margin-top: 1em;
}

.tools a {
	text-decoration: none;
}

.error {
	width: calc( 100% - 4em );
	padding: 1em;
	background-color: #F1BABA;
	border: 1px solid #ED6362;
	border-radius: 3px;
	color: #FFF;
	margin: 1em;
}

input.error {
	border: 2px solid #ED6362;
}

.inactive, #templates.inactive, #email-form.inactive, #email-sender.inactive, #email-recipients.inactive {
	display: none;
}

.active, #email-sender.active, #email-recipients.active {
	display: initial;
}

#templates.active {
	display: inline-flex;
}

#email-form.active, #template-form.active {
	display: flex;
}

.confirm {
	width: calc( 100% - 4em );
	padding: 1em;
	background-color: #B6D2C2;
	border: 1px solid #6FCF97;
	border-radius: 3px;
	color: #FFF;
	margin: 1em;
}

#header {
	display: flex;
    justify-content: space-between;
}

#header button {
	margin: 2em;
}

#steps {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 847px;
	margin: auto;
	background: linear-gradient(180deg, rgba(0,0,0,0) calc(50% - 3px), rgba(240,200,199,25%) calc(50%), rgba(0,0,0,0) calc(50% + 3px)
    );
}

form#mailer, form#add {
	width: 577px;
	padding: 0 0 0 5em;
}

form#mailer input, form#mailer textarea, form#mailer select, form#add input, form#add textarea, form#add select {
	width: 577px;
}

form#mailer textarea, form#add textarea {
	height: 300px;
}

.dot {
	height: 55px;
	width: 55px;
	background-color: #F5ECEC;
	border-radius: 50%;
	display: inline-block;
	color: #FFF;
	font-size: 2em;
	font-weight: 400;
	text-align: center;
	line-height: 1.7em;
}

.dot.active {
	background-color: #F0C8C7;
}

#templates, #email-form, #template-form {
	display: inline-flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 43px;
}

#email-form, #template-form {
	display: flex;
}

#template {
	padding: 2em;
	background-color: #ED6362;
	border-radius: 16px 0 0 16px;
}

#upload.is-dragover #new-template {
	background-image: none;
  background-color: #F5ECEC;
  outline: 2px dashed #ED6362;
  outline-offset: -10px;
}

#new-template {
	background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#new-template .box__file, #new-template p.tip {
	display: none;
}

#new-template label {
	width: 100%;
  margin: 6em 0 0 0;
  text-align: center;
}

#new-template img.spinner {
	width: 30px;
	margin-top: 0.5em;
}

.card-container {
	margin-bottom: 100px;
}

.card-container button {
	margin: 0 9em;
}

.card {
	width: 280px;
	height: 315px;
	margin: 0 43px 30px 43px;
	border-radius: 16px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	background-color: #FFF;
	position: relative;
	overflow: hidden;
}

.card .opacity, .card .preview {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #FFF;
}

.card .opacity {
	display: none;
	opacity: 50%;
}

.card .preview {
	z-index: -1;
}

.card:hover .opacity {
	display: block;
}


.card ul.tools {
	display: none;
}

.card:hover ul.tools {
	display: block;
	margin: 0;
  list-style: none;
  padding: 0;
  position: absolute;
  top: 1em;
  right: 1em;
}

.card:hover ul.tools li {
	padding: 0.3em 0.5em;
  border: 1px solid #E5E5E5;
  border-radius: 3px;
  background-color: #FFF;
  margin-bottom: 0.5em;
}

.card:hover ul.tools li:hover {
  background-color: #FBFBFB;
}

.card img {
	width: 250px;
	margin: auto;
    display: block;
}

.card .tag {
	background-color: #F1A4A3;
    border-radius: 16px;
    padding: 0.1em 1em;
    color: #fff;    position: absolute;
    bottom: 1em;
    right: 1em;
}

#sent {
	flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #FFF;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 70%;
    display: none;
    pointer-events: none;
}

#status {
	position: fixed;
    top: calc( 50% - 275px );
    left: calc( 50% - 275px );
	background-color: #315798;
	border-radius: 50%;
    display: none;
	width: 550px;
	height: 550px;
}

#status h1, #status p, #status a {
	text-align: center;
    color: #fff;
    padding-top: 3em;
}

#status p {
    padding-top: 0;
}

#status button, #status a {
	margin: 3em auto;
    display: block;
}

#status a {
	padding-top: 0;
}

#status svg {
	display: block;
    margin: auto;
    margin-top: 4em;
}