/* Styles shared by home.css and menu.css.
   This file is linked BEFORE the page stylesheet, so page files can override. */

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	line-height: 1.5;
	/* the site's colors are authored explicitly: stop Samsung Internet /
	   Chrome "dark mode" from repainting light backgrounds dark */
	color-scheme: only light;
}

.unselectable {
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none;    /* Firefox */
	-ms-user-select: none;     /* Internet Explorer/Edge */
	user-select: none;         /* Standard */

	/* Optional: Prevents the blue "tap highlight" on mobile devices */
	-webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'Cairo';
  src: url('cairo.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}

header img {
	max-width: 5rem;
	height: auto;
	border-radius: 9999px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	margin: 0 auto;
}

@media ( min-width : 768px) {
	header img {
		max-width: 7rem;
	}
}

@media ( min-width : 1024px) {
	header img {
		max-width: 9rem;
	}
}

h1 {
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 800;
	text-align: center;
	margin-bottom: 2rem;
	color: var(--color-primary-text);
}

@media ( min-width : 640px) {
	h1 {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}

.categories-container .category-link-text:last-child {
	margin-bottom: 0;
}

.category-link-text:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

.language-toggle {
	width: 2rem;
	position: fixed;
	top: 1rem;
	right: 1rem;
	cursor: pointer;
	z-index: 1000;
}

.language-toggle:hover {
	transform: translateY(-2px);
}

footer {
	width: 100%;
	text-align: center;
	color: #6B7280;
	font-size: 1rem;
	line-height: 1.5rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 1rem;
	align-items: center;
	justify-content: center;
	margin-top: 1rem;
}

.footer-social-media {
	width: 2.25rem;
	height: 2.25rem;
	display: block;
}
