/* Box colors */
.bg-1 {
	background: #ECEFF1;
	color: #37474f;
}
.bg-2 {
	background: #7986cb;
	color: #ECEFF1;
}
.bg-3 {
	background: #37474f;
	color: #fff;
}

/* Common buton styles */
.buton {
	min-width: 150px;
	max-width: 250px;
	display: block;
	margin: auto;
	padding: 1em 2em;
	border: none;
	background: none;
	color: inherit;
	text-align:center;
	vertical-align: middle;
	position: relative;
	z-index: 1;
	-webkit-backface-visibility: hidden;
	-moz-osx-font-smoothing: grayscale;
}
.buton:link, .buton:visited, .buton:hover, .buton:active {
	text-decoration: none;
}	
.buton:focus {
	outline: none;
}
.buton > span {
	vertical-align: middle;
}

/* Text color adjustments (we could stick to the "inherit" but that does not work well in Safari) */
.bg-1 .buton {
	color: #37474f;
	border-color: #37474f;
}
.bg-2 .buton {
	color: #ECEFF1;
	border-color: #ECEFF1;
}
.bg-3 .buton {
	color: #fff;
	border-color: #fff;
}

/* Sizes */
.buton--size-s {
	font-size: 14px;
}
.buton--size-m {
	font-size: 16px;
}
.buton--size-l {
	font-size: 18px;
}

/* Typography and Roundedness */
.buton--text-upper {
	letter-spacing: 2px;
	text-transform: uppercase;
}
.buton--text-thin {
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
}
.buton--text-medium {
	font-family: 'Poppins', sans-serif;
	font-weight: 500;
}
.buton--text-thick {
   font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 14px;
}
.buton--round-s {
	border-radius: 5px;
}
.buton--round-m {
	border-radius: 15px;
}
.buton--round-l {
	border-radius: 40px;
}

/* Borders */
.buton--border-thin {
	border: 2px solid;
}
.buton--border-medium {
	border: 2px solid;
}
.buton--border-thick {
	border: 3px solid;
}

/* Individual buton styles */

/* Winona */
.buton--winona {
	overflow: hidden;
	padding: 0;
	-webkit-transition: border-color 0.3s, background-color 0.3s;
	transition: border-color 0.3s, background-color 0.3s;
	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}
.buton--winona::after {
	content: attr(data-text);
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0;
	color: #3f51b5;
	-webkit-transform: translate3d(0, 25%, 0);
	transform: translate3d(0, 25%, 0);
}
.buton--winona > span {
	display: block;
}
.buton--winona.buton--inverted {
	color: #4273c6;
	border: 3px solid #ff8f34;
}
.buton--winona.buton--inverted:after {
	color: #fff;
	text-align:center;
}
.buton--winona::after,
.buton--winona > span {
	padding: 1em 2em;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
	transition: transform 0.3s, opacity 0.3s;
	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}
.buton--winona:hover {
	border-color: #3f51b5;
	background-color: rgba(63, 81, 181, 0.1);
}
.buton--winona.buton--inverted:hover {
	border-color: #d9d8d8;
	background-color: #ff8f34;
}
.buton--winona:hover::after {
	opacity: 1;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}
.buton--winona:hover > span {
	opacity: 0;
	-webkit-transform: translate3d(0, -25%, 0);
	transform: translate3d(0, -25%, 0);
}

