
/* Global Variables - Colors */

:root {
  --red: #e4002b;
  --red_dark: #b60022;
  --blue: #1676d0;
  --green: #00a64f;
  --green_fch: #08ac8c;

}

/* Fonts */

@font-face {
  font-family: Vafle;
  src: url('vafle-regular.woff2');
}
@font-face {
  font-family:'Open Sans';
  src: url('open-sans-regular.woff2');
  font-weight:300;
  font-style:normal
}
@font-face{
	font-family:'Open Sans';
	src: url('open-sans-bold.woff2');
	font-weight:700;
	font-style:normal
}

/* Essentials */

html {
	font-family: Open Sans;
}

body {
	text-align: center;	
	background: #fff;
}

h1 {
	font-size: 2.5rem;
	margin: 10px;	
	font-family: vafle;
	line-height: 70px;
}

h2 {
	font-family: Vafle;
	text-align: left;
}

/* Specific elements */

#container {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	padding: 0 20px 0 20px;
}

#game {
	float: left;
	width: 100%;
	z-index: 10;
	margin-top: 20px;
	margin-bottom: 100px;
}

/* Google Recaptcha */

.grecaptcha-badge {
	z-index: 2;
}

/* Modals */

.modal
{
    background-color: rgba(0,0,0,0.7);
}

.modal-header {
	border-bottom: transparent;
}

.modal-title {
	font-family: Vafle;
	text-transform: uppercase;
	line-height: 50px;
}

.modal-content {
	border-radius: 0.15rem;
}

.modal-footer {
	border-top: transparent;
	padding-top: 0;
}

/* Pexeso cards */

.pexeso-card {
	width: 25%;
	float: left;
}
.no-select {
	-webkit-user-select: none;  
	-moz-user-select: none;    
	-ms-user-select: none;      
	user-select: none;
}
.face {
	width: 100px;
	height: 100px;
	
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	
	margin: 10px 10px 10px 10px;

	-moz-transition: all .3s;
	-webkit-transition: all .3s;
	transition: all .3s;

	border-radius: 2px;
	
	-moz-transition-property: opacity, -moz-transform, -moz-box-shadow;
	-moz-transition-duration: .3s;
	-webkit-transition-property: opacity, -webkit-transform, -webkit-box-shadow;
	-webkit-transition-duration: .3s;
	transition-property: opacity, transform, box-shadow;
	transition-duration: .3s;
	
	-moz-backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.front {	
	background: white;
    background-image: url('/images/FCH.svg');
	border: 1px solid rgba(137,141,141,0.4);
    background-size: 80px;
    background-position: center;
    background-repeat: no-repeat;
	z-index: 10;
}

.back {
	margin-top: -110px;
	background: rgba(137,141,141,0.05);
	
	-moz-transform: rotate3d(0,1,0,-180deg);
	-webkit-transform: rotate3d(0,1,0,-180deg);
	transform: rotate3d(0,1,0,-180deg);
	
	z-index: 8;
}

.back img {
	display: block;
	float: left;
	padding: 1px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card:hover .face{
	-webkit-box-shadow: 0 0 20px rgba(137,141,141,0.5);
	box-shadow: 0 0 10px rgba(137,141,141,0.5);
}

.card-flipped .face{
	-webkit-box-shadow: 0 0 20px rgba(137,141,141,0.5);
	box-shadow: 0 0 10px rgba(137,141,141,0.5);		
}

.card-flipped .front {
	-moz-transform: rotate3d(0,1,0,180deg);
	-webkit-transform: rotate3d(0,1,0,180deg);
	transform: rotate3d(0,1,0,180deg);
	z-index: 8;
}

.card-flipped .back {
	-moz-transform: rotate3d(0,1,0,0deg);
	-webkit-transform: rotate3d(0,1,0,0deg);
	transform: rotate3d(0,1,0,0deg);
	z-index: 10;
}

.card-removed {
	opacity: 0;
}

/* Buttons */

.btn-vut {
	cursor: pointer;
	font-family: vafle;
	height: 45px;
	text-transform:uppercase;
	font-size: 14px;
	letter-spacing: .08em;
	padding: 0px 20px 0px 20px;
	border-radius: 1px;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.btn-vut:focus {
	outline:0 !important;
	box-shadow: none !important;
}

.btn-vut.red {
	background-color: var(--red);
	border: 0px none; 
}
.btn-vut.blue {
	background: none;
    color: var(--blue);
	border: 3px solid;	
    border-color: var(--blue);
}

.btn-vut.red:hover, .btn-vut.red:active, .btn-vut.red:focus {
	background-color: var(--red_dark) !important;
	border-color: var(--red_dark) !important;
}

.btn-vut.red:disabled { 
	background-color: var(--red);
    border-color: var(--red);
}

.btn-vut.blue:hover, .btn-vut.blue:active, .btn-vut.blue:focus {
    background-color: var(--blue) !important;
	border-color: var(--blue) !important;
	color: #fff !important; 
}

.btn-vut.lang {
	background: none;
    color: var(--blue);
    border-color: var(--blue);
	border: 2px solid;
	line-height: 30px;
	height: 35px;
	vertical-align: middle;
	margin-right: 5px;
}

.btn-vut.lang img {
	height: 20px;
	margin-bottom:2px;
	margin-right: 3px;
	vertical-align: middle;
}

.btn-vut.lang:hover, .btn-vut.lang.active {
    background-color: var(--blue) !important;
	border-color: var(--blue) !important;
	color: #fff !important; 
}

/* Index */

.index-container {
	width: 80%;
	margin: 0 auto;
}

.index-header {
	width: 100%;
	float: left;
	margin-bottom: 20px;
}

.index-header img {
	height: 70px;
	float: left;
	margin: 10px;
	max-height: 70px;
}

.index-logo {
	height: 50px;
	max-height: 50px;
}

.index-lang {
	width: 100%;
	float: left;
	margin-bottom: 20px;
}
.index-lang div {
	float: right;
}

.index-text {
	width: 100%;
	margin-top: 40px;
	margin-bottom: 40px;
}

.index-card-box {
	width: 100%;
	margin-bottom: 20px;
}

.index-footer {
	width: 100%;
	background-color: var(--red);
	color: white;
}

.index-footer p {
	margin: 0px;
	padding: 20px 0px;
}
.index-footer a {
	color: white;
}

/* Index - cards */

.card {
	border-radius: 0px;
	border: none;
}

.card img {
	border-radius: 0px;
	border: none;
}
.card-img-top {
	border-radius: 0px !important; 
}

.card-info {
	display: none;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background-color: rgba(0, 0, 0, 0.75);
	color: white;
}

.card-info-top {
	color: white;
	padding-top: 15px;
	font-family: vafle;
	font-weight: bold;
	font-size: 1.5em;
	width: 100%;
	float: left;
}

.card-info-middle {
	color: white;
	width: 100%;
	padding-left: 10px;
	padding-right: 10px;
	float: left;
	text-align: justify;
}

.card-info-bottom {
	color: white;
	width: 100%;
	float: left;
}

.card-info-bottom .time {
	margin: 0 auto;
	display: block;
	font-weight: bold;
}

.card-info-bottom button {
	display: block;
	margin: 20px auto;	
}

 .ribbon-wrapper {
    width: 85px;
    height: 88px;
    overflow: hidden;
    position: absolute;
    top: -3px;
    right: -3px
}
.ribbon {
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
	font-family: vafle;
    letter-spacing: .05em;
    line-height: 15px;
    text-align: center;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    position: relative;
    padding: 7px 0;
    right: -11px;
    top: 10px;
    width: 100px;
    height: 28px;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .3);
    box-shadow: 0 0 3px rgba(0, 0, 0, .3);
    background-color: var(--blue);
	z-index: 1;
}
.ribbon.hard {
	background-color: var(--red);
}
.ribbon.easy {
	background-color: var(--green);
}
.ribbon.medium {
	background-color: yellow;
	color: #000;
}

.ribbon:before,
.ribbon:after {
    content: "";
    border-top: 3px solid #9e9e9e;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    position: absolute;
    bottom: -3px
}
.ribbon:before {
    left: 0
}
.ribbon:after {
    right: 0
}

/* Submit modal */

.alert, .form-control {
	border-radius: 0;
}

.db {
	display: none;
	color: #fff;
	font-family: 'Open Sans',Arial,Helvetica,sans-serif;
	font-size: 14px;
	font-weight: 700;
}

.db-success {
	background-color: var(--green);
	border-color: var(--green);
}

.db-failure {
	background-color: var(--red);
	border-color: var(--red);
}

/* Extras */

.extra .modal-content {
	border: 5px solid var(--red);
	border-radius: 1px;
	width: initial;
	margin-left: 50px;
	margin-right: 10px;
}

.extra-box {
	display:block;
	float:left;
	text-align: justify;
}

.extra-box p {
	margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 0px;
}

.ribbon-wrapper.extra {
	right: initial;
	left: -100px;
	top: -100px;
	width: 200px;
	height: 200px;
}

.extra .modal-dialog {
	margin: 8rem auto;
}

.ribbon.extra {
	-webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
	
	background-color: var(--green_fch);
	
	right: initial;
	left: 40px;
	top: 90px;
	
	height: 35px;
    line-height: 20px;
	
	width: 130px;
}
.ribbon.extra:before {
	content: none;
}
.ribbon.extra:after {
	content: none;
}

@media (max-width: 1100px) {
	
	/* INDEX HEADER BEGIN */
	
	h1 {
		font-size: 2rem;
	}
	
	/* INDEX HEADER END */
	/* INDEX CARDS BEGIN */
	
	.card-columns {
		-webkit-column-count: 2;
		-moz-column-count: 2;
		column-count: 2;
		-webkit-column-gap: 1.25rem;
		-moz-column-gap: 1.25rem;
		column-gap: 1.25rem;
	}
	
	/* INDEX CARDS END */
}

@media (max-width: 900px) {

	/* INDEX HEADER BEGIN */
	
	h1 {
		font-size: 2rem;	
	}

	/* INDEX HEADER END */
	
}

@media (max-width: 830px) {

	/* INDEX HEADER BEGIN */
	
	h1 {
		font-size: 1.5rem;	
	}
	
	/* INDEX HEADER END */	
	
}

@media (max-width: 750px) {
	
	/* INDEX CARDS BEGIN */
	
	.card-columns {
		-webkit-column-count: 1;
		-moz-column-count: 1;
		column-count: 1;
	}
	
	/* INDEX CARDS END */
	/* SUBMIT MODAL BEGIN */
	
	.modal-title {
		width: 100%;
	}
	
	/* SUBMIT MODAL END */
}

@media (max-width: 710px) {
	
	/* INDEX HEADER BEGIN */
	
	h1 {
		font-size: 2rem;	
	}
	.index-logo {
		width: 100%;
	}
	.index-lang div {
		float: initial;
	}
	
	/* INDEX HEADER END */
}

@media (max-width: 500px) {
	
	/* PEXESO CARDS BEGIN */
		
  	.face {
		width: 80px;
		font-size: 0.8em;
		height: 80px;
	}
	.front {	
		background-size: 65px;
	}
	.back {
		margin-top: -90px;
	}

	/* PEXESO CARDS END */
	/* SUBMIT MODAL BEGIN */
	
	#pexeso-submit .modal-title {
		display: none;
	}

	/* SUBMIT MODAL END */
}

@media (max-width: 400px) {
	
	/* PEXESO CARDS BEGIN */
	
  	.face {
		width: 70px;
		height: 70px;
		font-size: 0.7em;
	}
	.front {	
		background-size: 55px;
		margin: 5px 5px 5px 5px;
	}
	.back {
		margin-top: -75px;
		margin-left: 5px;
	}
	
	/* PEXESO CARDS END */
	/* INDEX CARDS BEGIN */
	
	.card {
		min-height: 300px;
	}
	.card img {
		min-height: 300px;
		object-fit: cover;
	}
	
	/* INDEX CARDS END */
}

@media (max-width: 350px) {
	
	/* PEXESO CARDS BEGIN */
	
  	#container {
		padding: 0px;
	}
	.face {
		width: 60px;
		height: 60px;
		font-size: 0.6em;
	}
	.front {	
		background-size: 45px;
		margin: 5px 5px 5px 5px;
	}
	.back {
		margin-top: -65px;
		margin-left: 5px;
	}
	
	/* PEXESO CARDS END */
}

@media (max-width: 330px) {
	
	/* INDEX HEADER BEGIN */
	
	h1 {
		font-size: 1.5rem;	
	}
	.btn-vut.lang {
		line-height: 18px;
		height: 50px;
	}
	.btn-vut.lang img {
		margin-top: 4px;
	}
	
	/* INDEX HEADER END */
	/* INDEX CARDS BEGIN */
	
	.card {
		min-height: 400px;
	}
	.card img {
		min-height: 400px;
		object-fit: cover;
	}
	
	/* INDEX CARDS END */
}