@charset "UTF-8";
/* CSS Document */


@font-face {
	font-family: 'RexLex1'; /* Choose a name for your font */
	src: url('Fonts/RexLex-v4-Level-1.ttf') format('truetype'); /* Specify the path to your .ttf file */
	font-weight: normal; /* Optional: define font weight */
	font-style: normal; /* Optional: define font style */
}
@font-face {font-family: 'RexLex2'; src: url('Fonts/RexLex-v4-Level-2.ttf') format('truetype'); }
@font-face {font-family: 'RexLex3'; src: url('Fonts/RexLex-v4-Level-3.ttf') format('truetype'); }
@font-face {font-family: 'RexLex4'; src: url('Fonts/RexLex-v4-Level-4.ttf') format('truetype'); }
@font-face {font-family: 'RexLex5'; src: url('Fonts/RexLex-v4-Mixed.ttf')   format('truetype'); }

/* Keep buttons in their assigned fonts */
button.font-rexlex1 {
	font-family: RexLex1, sans-serif !important;
}

button.font-rexlex2 {
	font-family: RexLex2, sans-serif !important;
}

button.font-rexlex3 {
	font-family: RexLex3, sans-serif !important;
}

button.font-rexlex4 {
	font-family: RexLex4, sans-serif !important;
}

button.font-rexlex5 {
	font-family: RexLex5, sans-serif !important;
}

button.font-default {
	font-family: Arial, Helvetica, sans-serif !important;
}

body {
	font-family: Arial, Helvetica, sans-serif; 
}

.cssLogo {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 200px;
	height: 100px;
}

.cssLogo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cssPageTitle {
	height: 60px;  /* Remove the fixed 40px height */
	width: 80%;
	text-align: center;
	font-size: 35px;
	margin: 0 auto;
	
}

.cssInstructions {
	line-height: 150%;
	width: 90%;
	text-align: center;
	font-size: 25px;
	margin: 0 auto;
	}   

.buttonblock {
	text-align: center;
}

button {
	padding: 5px 15px 2px 15px ;
	font-size: 20px;
	background-color: #ffffff;
	border: 2px solid transparent;
	border-color: rgb(192, 214, 214);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

button:hover {
	background-color: #f0f0f0;
}

button.active {
	font-size: 18px;
	border: 3px solid #fd8b8b;
	box-shadow: 0 0 5px rgba(244, 163, 163, 0.5);
}

.cssUserInput {
	line-height: 140%;
	font-size: 25px;
	width: 90%;
	
	}
.cssShowLetters {
	width: 600px;
	margin: auto;
	padding: 10px;
	line-height: 120%;
	text-align: center;
	font-size: 25px;
	border: 1px solid  #8f8f8f;
	border-collapse: collapse;  
	}


	/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Tablets and smaller (768px and below) */
@media screen and (max-width: 768px) {
	.cssLogo {
		position: static; /* Remove absolute positioning */
		width: 180px;
		height: 80px;
		margin: 1px auto 1px auto; /* Center horizontally, add spacing */
		display: block; /* Make it a block element so margin auto works */

	}
	
	.cssPageTitle {
		height: auto;
		font-size: 24px;
		width: 90%;
		padding-top: 20px;
	}
	
	.cssInstructions {
		font-size: 18px;
		width: 95%;
	}
	
	button {
		font-size: 16px;
		padding: 4px 10px 2px 10px;
		margin: 3px 2px;
	}
	
	button.active {
		font-size: 15px;
	}
	
	.cssUserInput {
		font-size: 18px;
		width: 95%;
	}
	
	.cssShowLetters {
		width: 95%;
		max-width: 100%;
		font-size: 18px;
		padding: 8px;
	}
}

/* Mobile phones (480px and below) */
@media screen and (max-width: 480px) {
	.cssLogo {
		position: center;
		width: 100px;
		height: 50px;
		top: 5px;
		left: 5px;
	}
	
	.cssPageTitle {
		font-size: 20px;
		width: 95%;
	}
	
	.cssInstructions {
		font-size: 16px;
		width: 98%;
		line-height: 140%;
	}
	
	button {
		font-size: 14px;
		padding: 3px 8px 2px 8px;
		margin: 2px 1px;
	}
	
	button.active {
		font-size: 13px;
	}
	
	.cssUserInput {
		font-size: 16px;
		width: 98%;
	}
	
	.cssShowLetters {
		width: 98%;
		font-size: 16px;
		padding: 5px;
		line-height: 130%;
	}
}