:root {
	--border-radius: 4px;
	--border-radius-alt: 50%;
	--border-thin: 1px;
	--button-background: #C08B86;
	--button-text: #EDD2BE;
	--color-accent: #C2847A;
	--color-accent-dark: #8F5C55;
	--color-bg: #E0CFC2;
	--color-bg-alt: #EEE0CB;
	--color-text: #222324;
	--color-text-alt: #000000;
	--font-size-small: 0.75rem;
	--font-size-medium: 1.2rem;
	--font-size-normal: 1.5rem; 
	--font-size-large: 2rem; 
	--font-size-xlarge: 3rem;
	--full-width: 100%;
	--icon-size: 26px;
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 4rem;
	--spacing-xl: 5rem;
	--spacing-2xl: 15rem;
	--z-index: 1000;
}

.about,
.contact,
.projects {
	padding: var(--spacing-md);
	scroll-margin-top: 80px;
}

body {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 100vh;
	background-color: var(--color-bg);
	margin: 0;
	font-family: 'Inter', sans-serif;
	color: var(--color-text);
}

.contact {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xs);
}

.contact__link {
	color: var(--color-accent);
	margin: 0 var(--spacing-xs);
	font-size: var(--font-size-medium);
	text-decoration: none;
}

.contact__link:hover {
	color: var(--color-accent-dark);
}

.contact__wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

.form__group--letter {
	text-align: center;
	margin-top: var(--spacing-md);
	margin-bottom: var(--spacing-md);
}

.form__group--help {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.form__input--type-checkbox {
	width: 15px;
	height: 15px;
	cursor: pointer;
	accent-color: var(--color-accent);
	margin: 0;
}

.form__input--type-text {
	background: #EAD3D0;
	border: var(--border-thin) solid var(--color-accent-dark);
	border-radius: var(--border-radius);
	padding: var(--spacing-xs) var(--spacing-sm);
	font-size: var(--spacing-sm);
	text-align: center;
	color: var(--color-accent-dark);
	outline: none;
	margin: 0 auto;
}

.form__input--type-text::placeholder {
	color: var(--color-accent-dark);
}

.form__input--type-text:focus::placeholder {
	color: transparent;
}

.form__text {
	font-size: var(--spacing-sm);
}

.form__text-letters {
	display: block;
	font-weight: bold;
	color: var(--color-text-alt);
	margin-bottom: var(--spacing-sm);
	text-align: center;
}

.flower__item--gone {
	transform: translateY(50px) rotate(60deg);
	opacity: 0;
}

.game {
	padding-top: var(--spacing-sm);
	padding-bottom: var(--spacing-sm);
}

.game {
	background-color: var(--color-bg);
	border-radius: var(--spacing-md);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	padding: var(--spacing-sm);
	position: relative;
}

.game__button {
	display: block;
	background: var(--button-background);
	border: var(--border-thin) solid var(--color-accent-dark);
	border-radius: var(--border-radius);
	padding: var(--spacing-xs) var(--spacing-sm);
	font-size: var(--font-size-medium);
	cursor: pointer;
	color: var(--button-text);
	margin: 0 auto;
}

.game__button:hover {
	background: var(--color-accent-dark);
}

.game__character {
	text-align: center;
}

.game__character--hidden {
	display: none;
}

.game__character-title {
	margin: 0;
	font-size: var(--font-size-medium);
}

.game__text {
	padding-top: var(--spacing-sm)
}

.game__title {
	text-align: center;
	border-top: 1px solid #e0d2c3;
	color: var(--color-accent-dark);
	padding-top: var(--spacing-sm);
	margin-top: var(--spacing-sm);
	margin-bottom: var(--spacing-sm);;
}

.highlight {
	color: var(--color-accent);
}

html {
	scroll-behavior: smooth;
}

#language-switch {
	display: flex; 
	align-self: center;
	justify-self: end;
	align-items: center;
	padding: 0;
	margin: 0;
}

#language-switch img {
	display: block;
	height: var(--icon-size);
	width: var(--icon-size);
}

.letter__box {
	color: var(--color-accent-dark);
	display: inline-block;
	width: var(--spacing-md);
	height: var(--spacing-md);
	margin: 0 var(--spacing-xs);
	border: var(--border-thin) solid var(--color-accent-dark);
	border-radius: var(--border-radius);
	text-align: center;
	line-height: var(--spacing-md);
	font-weight: bold;
	font-size: var(--font-size-medium);
}

.letter__wrapper {
	display: flex;
	flex-wrap: wrap;
	margin	: var(--spacing-sm);
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
}

.navigation {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	padding: var(--spacing-sm);
	gap: var(--spacing-sm);
	position: sticky;
	top: 0;
	z-index: var(--z-index);
	background-color: var(--color-bg);
}

.navigation__closedMenu {
	display: none;
	font-size: var(--font-size-large);
	background: none;
	border: none;
	cursor: pointer;
}

.navigation__item {
	display: block;
	text-align: right;
	width: var(--full-width);
	padding: var(--font-size-medium) var(--spacing-md);
	border-bottom: var(--border-thin) solid var(--color-bg);
	box-sizing: border-box;
}

.navigation__item:last-child {
	border-bottom: 0;
}

.navigation__hamburgerMenu {
	font-size: var(--font-size-large);
	background: none;
	border: 0;
	cursor: pointer;
	display: block;
	padding: 0;
	margin: 0;
}

.navigation__list {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	background: var(--color-accent);
	border-top: var(--border-thin) solid var(--color-accent-dark);
	border-bottom: var(--border-thin) solid var(--color-accent-dark);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
	z-index: var(--z-index);
}

.navigation__list.open {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.navigation__link {
	color: inherit;
	text-decoration: none;
}

.navigation__link:hover {
	color: var(--color-accent-dark);
}

.navigation__link--bold {
	font-weight: bold;
}

.projects {
	background-color: var(--color-bg-alt);
}

.score__final {
		text-align: center;
	}

.score {
	text-align: center;
}

.score--finished {
	border-top: 1px solid #e0d2c3;
}

.score__text {
	display: inline-block;
	background: var(--button-background);
	border: var(--border-thin) solid var(--color-accent-dark);
	border-radius: var(--border-radius);
	padding: var(--spacing-xs) var(--spacing-sm);
	font-size: var(--spacing-sm);
	color: var(--button-text);
	margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

.site-footer {
	background-color: var(--color-accent);
	text-align: center;
	padding: var(--spacing-sm);
	font-size: var(--font-size-small);
}

.site-footer__text {
	font-size: var(--font-size-small);
}

.site-footer__link {
	text-decoration: none;
	color: var(--color-text);
}

.site-footer__link:hover {
	text-decoration: none;
	color: var(--color-text-alt);
}

.site-header {
	background-color: var(--color-bg-alt);
	padding: var(--spacing-sm);
	text-align: center;
}

.site-header__image {
	width: 100px;
	max-width: var(--full-width);
	height: auto;  
	border-radius: var(--border-radius-alt);
	display: block;
	margin: auto;
}

@media screen and (min-width: 768px) {
	.about,
	.contact,
	.projects {
		padding: var(--spacing-lg);
		scroll-margin-top: var(--spacing-sm);
	}

	.contact__wrapper {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: var(--spacing-sm);
		justify-items: center;
		padding: var(--spacing-sm);
	}

	.game__title,
	.game__text {
		padding-top: 0;
	}

	.game__text--centered {
		text-align: center;
	}

	.game__wrapper {
		display: flex;
		gap: var(--spacing-md);
		margin-top: var(--spacing-md);
		min-width: 400px;
	}

	.game__description,
	.game__content,
	.game__result {
		flex: 1;
	}

	.form__group--help {
		justify-content: center;
	}

	#flower-root {
		grid-row: 2;
		grid-column: 1 / 3;
		justify-self: center;
		text-align: center;
	}

	.navigation__item {
		display: inline-block;
		text-align: center;
		width: auto;
		padding: var(--spacing-xs);
		border-bottom: none;
	}

	.navigation__closedMenu {
		display: none;
	}

	.navigation__hamburgerMenu {
		display: none;
	}

	.navigation__list {
		display: flex;
		flex-direction: row;
		gap: var(--spacing-md);
		position: static;
		background: none;
		border: none;
		box-shadow: none;
	}

	.projects__button {
		grid-column: 2;
	}

	.site-footer {
		padding: var(--spacing-md);
	}

	.site-header {
		display: grid;
		grid-template-columns: 250px 1fr;
		align-items: center;
		gap: var(--spacing-md);
		padding: var(--spacing-md);
	}

	.site-header__image {
		width: var(--full-width);
		max-width: 250px;
		border-radius: var(--border-radius-alt);
		grid-row: 1;
	}

	.site-header__text {
		display: flex;
		flex-direction: column;
		gap: var(--spacing-sm);
		grid-column: 2;
	}
}

@media screen and (min-width: 1280px) {
	.about,
	.contact,
	.projects {
		padding-left: var(--spacing-lg);
		padding-right: var(--spacing-lg);
	}

	.about__description, 
	.projects__text {
		font-size: var(--font-size-medium);
	}

	.about__title,
	.contact__title,
	.projects__title {
		font-size: var(--font-size-large);
	}

	.game__wrapper {
		min-width: 600px;
	}

	.navigation {
		padding: var(--spacing-md);
		gap: var(--spacing-md);
	}

	.navigation__list {
		gap: var(--spacing-lg);
	}

	.projects__wrapper {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--spacing-md);
		align-items: center;
		grid-auto-flow: column;
	}
	
	.site-header {
		padding: var(--spacing-xl);
		gap: var(--spacing-xl);
	}

	.site-header__description {
		font-size: var(--font-size-medium);
	}

	.site-header__text {
		gap: 3rem;
	}

	.site-header__title {
		font-size: var(--font-size-xlarge);
	}
} 