@charset "UTF-8";

/*!
 * ConvergenWeb - info@convergenceweb.ch
 * buttons.css 
 * Copyright (c) 2021 ConvergenceWeb
 */

.trame-button {
	height:20vh;
	width:80vw;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.button {
	min-width: 150px;
	max-width: fit-content;
	margin: 1em;
	padding: 1em 2em;
	background: none;
	position: relative;
	z-index: 1;
	-webkit-backface-visibility: hidden;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
	border-radius:20vh;
}
.button:focus {
	outline: none;
}
.button > span {
	vertical-align: middle;
}


/* Sizes */
.button--size-s {
	font-family:'Inter', sans-serif; 
	font-size:3vh;
	text-decoration: none;
}


/* Typography and Roundedness */
.button--text-upper {
	letter-spacing: 2px;
	text-transform: none;
}

.button--text-thick {
	font-weight: 600;
}

/* Borders */
.button--border-thick {
	border: 3px solid;
	color: #00e0c6;
}

.button--border-medium {
	border: 2px solid;
    color: #fff;
}

/* Wayra */
.button--wayra {
	overflow: hidden;
	width: fit-content;
	-webkit-transition: border-color 0.3s, color 0.3s;
	transition: border-color 0.3s, 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);
}
.button--wayra::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 150%;
	height: 100%;
	background: #fff;
	z-index: -1;
	-webkit-transform: rotate3d(0, 0, 1, -45deg) translate3d(0, -3em, 0);
	transform: rotate3d(0, 0, 1, -45deg) translate3d(0, -3em, 0);
	-webkit-transform-origin: 0% 100%;
	transform-origin: 0% 100%;
	-webkit-transition: -webkit-transform 0.3s, opacity 0.3s, background-color 0.3s;
	transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.button--wayra:link {
	color: #00e0c6;
	border-color: #00e0c6;
	text-decoration: none;
}

.button--wayra.button--inverted:link {
	color: #fff;
	border-color: #fff;
	text-decoration: none;
}

.button--wayra:visited {
	color: #00e0c6;
	border-color: #00e0c6;
	text-decoration: none;
}

.button--wayra.button--inverted:visited {
	color: #fff;
	border-color: #fff;
	text-decoration: none;
}

.button--wayra:hover {
	color: #fff;
	border-color: #fff;
	text-decoration: none;
}

.button--wayra.button--inverted:hover {
	color: #fff;
	border-color: #fff;
	text-decoration: none;
}

.button--wayra:hover::before {
	opacity: 1;
	background-color: #fff;
	-webkit-transform: rotate3d(0, 0, 1, 0deg);
	transform: rotate3d(0, 0, 1, 0deg);
	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.button--wayra.button--inverted:hover::before {
	background: linear-gradient(to right, rgba(191, 13, 62,1), rgba(191, 13, 62,0)); 
}


/******************************** BOOTSTRAP MEDIA QUERIES ********************************/
/* Xs Screen portrait */
@media screen and (max-width: 1199px) {
.trame-button {
	height:20vh;
	width:80vw;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}	
}

/* Xs Screen landscape */
@media screen and (max-width: 767px) and (orientation: portrait) {
.button--size-s {
    font-size: 5vw;
}	
}
/* Xs Screen landscape */
@media screen and (max-width: 767px) and (orientation: landscape) {
.button--size-s {
    font-size: 3vw;
}	
}
/* Md Screen portrait */
@media screen and (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {


.button {
	max-width: none;
	min-width:inherit;
	width: 35vw;
	height: 10vh;
	padding: 1vh 1vw;
	border-radius:20vh;
}
.button--size-s {
	font-size:2vh;
	line-height:3vh;
}
}

/* Sm Screen landscape */
@media screen and (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
.button--size-s {
	font-size:4vh;
}	
}
