body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f4;
	visibility: hidden;
	margin: 0px;
	padding: 0px;
}

header {
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom: 2px solid black;
	flex-wrap: wrap;
	background-color: #f4f4f4;
}

footer {
	position: fixed;
	bottom: 0px;
	right: 0px;
	display: none;
}

button {
	font-size: 1.5rem;
	cursor: pointer;
	background-color: orange;
	color: white;
	border: none;
	border-radius: 5px;
	margin: 2px;
	padding: 4px;
}

.header {
	padding: 5px;
}

.buttonGame {
	display: flex;
	width: 40vw;
	border: 0.2rem solid black;
	margin: 0.2rem;
	font-size: 1.2rem;
	border-radius: 1rem;
	background-color: orange;
	color: white;
	min-height: 15vh;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-wrap: wrap;
	flex-direction: column;
}

.buttonGame a {
	color: white;
	text-decoration: none;
}

.imageTitle {
	width: 100%;
	justify-content: center;
	align-items: center;
	display: flex;
}

.title {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1rem, 2vw, 2rem);
	padding: 0px;
	flex-grow: 1;
	font-weight: bold;
}

.title2 {
	font-size: 2rem;
	text-align: center;
	padding: 5px;
}

.titleText {
	display: flex;
	color: black;
	text-transform: uppercase;
	font-size: large;
}

.titleImg {
	width: 64px;
	height: 64px;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.menuItem {
	margin: 0.2rem;
}

.h1main {
	color: darkorange;
	font-weight: 1000;
}

.gameContainer {
	padding: 0px;
	text-align: center;
	min-width: 15vw;
	width: 100%;
}

.gameBoard {
	flex-wrap: wrap;
	display: none;
	width: 100%;
}

.helpContainer {
	background-color: white;
	padding: 2rem;
	margin: 2rem;
	border-radius: 0.5rem;
	text-align: center;
	border: 0.2rem solid black;
	overflow-y: auto;
	font-size: 1rem;
	height: 70%;
}

.helpTable {
	display: flex;
	font-size: 1rem;
	justify-content: center;
	margin-top: 0.2rem;
}

.helpTableCell {
	display: flex;
	border: 0.1rem solid black;
	justify-content: center;
	width: 6vw;
	height: 3vh;
}

.helpTableHeader {
	display: flex;
	border: 0.1rem solid black;
	text-align: center;
	background-color: lightgray;
	justify-content: center;
	width: 6vw;
	height: 3vh;
}

.baseDigit {
	border: 0.15rem solid black;
	margin: 0.1rem;
	width: 1rem;
	font-size: 3rem;
	border-radius: 0.5rem;
}

.extraDigit {
	width: 2.75rem;
	margin: 0.1rem;
	text-align: center;
	font-size: 2rem;
	color: blue;
	height: 2.5rem;
}

.takenDigit {
	width: 2.75rem;
	margin: 0.1rem;
	text-align: center;
	font-size: 2rem;
	color: blue;
	height: 2.5rem;
}

.numberLine {
	display: flex;
	justify-content: center;
	margin: 0;
}

.inputContainer {
	display: flex;
	justify-content: center;
}

.currentPoints {
	font-size: 2rem;
	margin-top: 0.5rem;
}

.timer {
	font-size: 1.5rem;
	margin: 0.5rem;
}

.modal {
	display: none;
	font-size: clamp(0.75rem, 2vw, 2rem);
}

.modalContent {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	position: fixed;
	border: 2px solid black;
}

.button {
	margin: 5px;
	padding: 15px;
	font-size: clamp(1rem, 1.5rem, 2rem);
}

.popup {
	display: none;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	top: 0px;
	left: 0px;
	position: fixed;
	width: 100%;
	height: 100%;
}

.popupContent {
	background-color: white;
	padding: 1vw;
	border-radius: 2vw;
	text-align: center;
	border: 0.2rem solid black;
	top: 10vh;
	left: 25%;
	position: relative;
	width: 50vw;
	font-size: 1rem;
}

.main {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	flex-wrap: wrap;
	background-color: #f4f4f4;
	width: 100%;
	height: 100%;
}

.formula {
	font-size: 2rem;
	padding-top: 20px;
}

.modalPanel {
	background-color: gray;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 10000;
	display: none;
}

.modalClose {
	font-weight: bold;
	text-align: right;
	padding: 1vh;
	font-size: 2rem;
	cursor: pointer;
}

.history {
	background-color: white;
	padding: 2rem;
	margin: 2rem;
	border-radius: 0.5rem;
	text-align: left;
	border: 0.2rem solid black;
	overflow-y: auto;
	font-size: 1rem;
	height: 70%;
}

.settings {
	background-color: white;
	padding: 2rem;
	margin: 2rem;
	border-radius: 0.5rem;
	text-align: left;
	border: 0.2rem solid black;
	overflow-y: auto;
	font-size: 1rem;
	height: 70%;
}

.compare {
	padding: clamp(0.5rem, 1rem, 1rem);
}

.initSelector {
	text-align: center;
}

.copyright {
	font-size: 1rem;
	color: orange;
	padding: 1rem;
	margin: 1rem;
	display: block;
	text-align: center;
}

.lang-selector-container {
	display: inline-flex;
	align-items: center;
	font-family: sans-serif;
	background: #fff;
	padding: 5px;
	border-radius: 30px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	width: fit-content;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
}

.lang-options {
	display: none;
	max-width: 0;
	opacity: 0;
	transition: all 0.5s ease;
	white-space: nowrap;
}

.lang-selector-container.open .lang-options {
	opacity: 1;
	display: block;
	position: absolute;
	top: 40px;
	z-index: 5000;
}

.lang-item {
	width: var(--item-size);
	height: var(--item-size);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	border-radius: 50%;
	transition: background 0.2s;
	margin: 0 2px;
}

.lang-item:hover {
	background: #e0e0e0;
}

.current-lang {
	width: var(--item-size);
	height: var(--item-size);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eee;
	border-radius: 50%;
}