/* SETUP */

html {
	--menu-height: 6vh;
	--trans-duration: 0.6s;
	--accent-arab-world: #d4183f;
	--accent-arab-history: #592de3;
	--accent-arab-city: #5048bf;
	--outer-padding: max(calc(2.5vh + 0.1vw), 1vw);
}

html,
html * {
	margin: 0;
	padding: 0;
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	touch-action: none;
	font-family: 'Fedra', 'Zarid', 'LastResort', sans-serif;
	user-select: none;
}

body {
	opacity: 1;
	transition: opacity var(--trans-duration);
	position: relative;
	overscroll-behavior: contain;
	color: black;
	font-size: 1.4vh;
	line-height: 1.4;
}

body.loading {
	opacity: 0;
	transition: opacity 0s;
}

iframe {
	border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: bold;
}

a {
	color: inherit;
	text-decoration: none;
}

.animated {
	transition-duration: var(--trans-duration);
}

i {
	font-style: italic;
}

sup {
	position: relative;
	bottom: 0.5em;
	font-size: smaller;
}

strong {
	font-weight: 500;
}

b {
	font-weight: 700;
}

/* Toast feature */

#toasts {
	pointer-events: none;
	position: fixed;
	z-index: 100;
	top: 0;
	left: 0;
	right: 0;
	text-align: center;
}

#toasts li {
	width: auto;
	display: inline-block;
	background-color: #592de3;
	color: white;
	font-size: 1.3em;
	margin: var(--outer-padding);
	border-radius: var(--outer-padding);
	padding: calc(0.5 * var(--outer-padding)) var(--outer-padding);
	box-shadow: 0 0 0.5vh -0.3vh rgb(0 0 0 / 40%);
	animation: fadetoast 6s ease-in-out 1;
	opacity: 0;
}

@keyframes fadetoast {
	0% {
		transform: translateY(-100%);
		opacity: 0;
	}

	10% {
		transform: translateY(0);
		opacity: 1;
	}

	90% {
		transform: translateY(0);
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateY(-100%);
	}
}

/* Zarid Font */

@font-face {
	font-family: 'Zarid';
	src: url('fonts/ZaridSans-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'Zarid';
	src: url('fonts/ZaridSans-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'Zarid';
	src: url('fonts/ZaridSans-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: block;
}

/* Fedra Font */

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-Light.woff2') format('woff2');
	font-weight: 200;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-LightItalic.woff2') format('woff2');
	font-weight: 200;
	font-style: italic;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-Book.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-BookItalic.woff2') format('woff2');
	font-weight: 300;
	font-style: italic;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-Demi.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-DemiItalic.woff2') format('woff2');
	/* Demi-italic missing*/
	font-weight: 400;
	font-style: italic;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-MediumItalic.woff2') format('woff2');
	font-weight: 500;
	font-style: italic;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-Bold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'Fedra';
	src: url('./fonts/FedraSansPro-BoldItalic.woff2') format('woff2');
	font-weight: 600;
	font-style: italic;
	font-display: block;
}

/* buttons */
button {
	vertical-align: middle;
	border-radius: 2em;
	min-width: 2.3em;
	text-align: center;
	border-width: 0.1em;
	border-style: solid;
	border-color: currentColor;
	padding: 0.5em 1em;
}

/* Specifics */

.swiper-wrapper {
	box-sizing: border-box;
}