/* natUIve – Button */

@import 'natuive-setup';

.button, input[type=submit], button[type=submit], button[type=reset], button, a.button[href] {

// 	font-size: $font-size;
	font-size: inherit;
	line-height: $line-height;
	// 	line-height: var(--line-height);
	min-height: $line-height-em;
	// 	min-height: var(--line-height-em);
	text-decoration: none;
	display: inline-block;
	cursor: pointer;
	width: auto;
	word-break: break-word;
	padding: 0 .7em;
	-webkit-appearance: none;
	background: #333;
	color: #eee;
	-webkit-transition: all .1s linear;
	transition: all .1s linear;
	border: none;
	font-family: inherit;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	user-select: none;
	border-radius: 0;

}

	button[disabled] {
		
		cursor: default;
		opacity: .2;
		margin: 0;
		font-size: inherit;

	}

	.button:hover, input[type=submit]:hover, button[type=submit]:hover, button[type=reset]:hover, form button:hover, a.button[href]:hover, button:not([disabled]):hover {
		
		background: #eee;
		color: #333;
		
	}

	.button.big, a[href].button.big, input[type=submit], form button, button.big {

		margin: $line-height-em/3 0; // Re-calculate margin, because font-size has changed. To do: fix baseline.
// 		margin: var(--line-height-em) 0;
		font-size: 1.2em;
		padding: .75em 1em;
		line-height: 1.05em;
		min-height: 0;
		font-weight: 500;

	}

/* Back to top button */

a.backtotop[href] {

	line-height: 1;
	margin: .7333em auto;
	font-weight: bold;
	background: transparent;
	background: rgba(0,0,0,.2);
	color: #fff;
	border-radius: 2em;
	font-family: 'Hiragino Mincho ProN'; /* fix for iOS */
	cursor: pointer;
	position: absolute;
	bottom: 0;
	left: 50%;
    transform: translateX(-50%);
	text-decoration: none;
	z-index: 999;
    padding: .5em;
    width: 2em;
    text-align: center;

}

// A group of buttons etc with proper horizontal margins also when wrapped

.group {
	
	margin: 0 -.25em;
}

.group > *, .group > .button.big, .group > a[href].button.big {
	
	margin-right: .25em;
	margin-left: .25em;
	
}

@media screen and (max-width: $screen-narrow-max) {

	.button.big {
		
		display: block;
		text-align: center;
		
	}
	
}