@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

@font-face{
	font-family: 'Myriad';
	src: url('../fonts/Myriad.ttf') format('truetype');
}

:root{
	--white: #FFF;
	--grey: #ccc;
	--darkgrey: #ccc;
	--black: #000;
    --color1: #1f4b8c;
	--color2: #efc616;
	--background1: rgba(0, 0, 0, 0.05);
}

body[data-theme="grey"]{}

body[data-theme="dark"]{}

*,
*:before,
*:after{
	font-family: "Tajawal", sans-serif;
	margin: 0;
	padding: 0;
	direction: rtl;
}

body{
	
}

/************************ HEADER ************************/
body header{
	margin-left: 12.5%;
	margin-right: 12.5%;
	display: grid;
	grid-template-columns: 1fr 3fr;
	height: 80px;
	align-items: center;
	text-align: center;
}

body header .title{
    display: flex;
    position: relative;
}

body header .title h1{
    color: var(--black);
    cursor: pointer;
    position: relative;
}

body header .links{
	display: flex;
	gap: 20px;
	justify-content: end;
}

body header .menuIcon{
	display: none;
}

body header .links a{
	color: var(--black);
	font-size: 17px;
	text-decoration: none;
	transition: 0.46s;
	display: grid;
	justify-items: center;
}

body header .links a:hover{
	color: var(--color2);
	font-size: 18px;
	transition: 0.36s;
}

body header .links .selected{
	color: var(--color2);
	font-size: 18px;
}

body header .links .logo{
	display: none;
}

/************************ MAIN ************************/
body main{
	margin-left: 12.5%;
	margin-right: 12.5%;
}

body main .header{
	background-image: url(../images/cover.jpg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 350px;
	border-radius: 7px;
	border: 1px var(--grey) solid;
	position: relative;
}

body main .header .status{
	position: absolute;
	bottom: -40px;
	left: 8%;
	height: 80px;
	width: 84%;
	z-index: 3;
	border-radius: 7px;
	background-color: var(--white);
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	justify-content: center;
	justify-items: center;
	align-items: center;
	text-align: center;
	box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

body main .header .status.search-active{
    grid-template-columns: 3fr 1fr;
}

body main .header .status.search-active .state{
    display: none;
}

body main .header .status input{
    display: none;
}

body main .header .status.search-active input{
	outline: none;
    width: calc(100% - 55px);
    padding: 10px;
    border: 1px var(--grey) solid;
    border-radius: 7px;
    font-size: 16px;
	display: flex;
}

body main .header .status .search{

}

body main .header .status .search .icon{
	position: relative;
	padding: 13px;
	background-color: var(--black);
	color: var(--white);
	border-radius: 12px;
	border: 1px var(--grey) solid;
	cursor: pointer;
	overflow: hidden;
}

body main .header .status .search .icon::before{
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -40px;
    opacity: 0.6;
	transform: skewX(-20deg);
    animation: shine 2.5s ease-out infinite;
}

@keyframes shine{
    0%{
        left: -100px;
    }
    60%{
        left: 100%;
    }
    100%{
        left: 100%;
    }
}

body main .header .status .search .icon i{
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
}

/************************ FOOTER ************************/
body footer{
	margin-top: 30px;
	display: grid;
	grid-template-rows: auto auto;
	height: auto;
	width: auto;
	background-color: var(--black);
	color: var(--white);
	padding: 15px;
}

body footer .guide{
	margin-left: 12.5%;
	margin-right: 12.5%;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 20px;
	gap: 15px;
}

body footer .guide .information{
	width: 100%;
}

body footer .guide div{
	flex-grow: 1;
}

body footer .guide div p{
	font-size: 15px;
}

body footer .guide div h4{
	font-size: 16px;
	margin: 6px 0px;
}

body footer .guide div .links{
	margin-left: 6px;
	display: grid;
	gap: 3.5px;
	width: 100%;
}

body footer .guide div .links a{
	text-decoration: none;
	font-size: 15px;
	color: var(--white);
}

body footer hr{
	margin-left: 12.5%;
	margin-right: 12.5%;
	height: 0.001rem;
	color: var(--grey);
	margin-top: 30px;
	margin-bottom: 10px;
}

body footer .copyright{
	margin-left: 12.5%;
	margin-right: 12.5%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 15px;
}

body footer .copyright .social{
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

body footer .copyright .social a{
	text-decoration: none;
	color: var(--white);
	cursor: pointer;
	transition: 0.46s;
	font-size: 22px;
}

body footer .copyright .social a:hover{
	color: var(--grey);
	transition: 0.46s;
}

body footer .copyright .social i{
	font-size: 18px;
}

@media (max-width: 768px){

	/************************ HEADER ************************/
	body header{
		height: 70px;
		margin-right: 15px;
		margin-left: 15px;
	}

	body header .title h1{
		cursor: default;
		font-size: 24px;
	}
	

	body header .links{
		display: grid;
		grid-template-rows: 110px repeat(5, 50px);
		grid-template-columns: 1fr;
		gap: 8px;
		position: fixed;
		padding: 10px;
		z-index: 4;
		top: 0;
		left: 0;
		height: 100%;
		width: 259px;
		background-color: var(--white);
		border-right: 1px solid var(--grey);
		border-top-right-radius: 7px;
		border-bottom-right-radius: 7px;
		transform: translate(-280px);
		transition: 0.46s;
	}

	body header .links a{
		color: grey;
		width: calc(100% - 10px);
		height: 100%;
		cursor: default;
		gap: 15px;
		border-radius: 7px;
		display: flex;
		align-items: center;
		padding-right: 10px;
	}

	body header .links a:hover{
		color: var(--color2);
		transition: 0.46s;
		background-color: rgba(0, 0, 0, 0.05);
	}

	body header .links a:active{
		color: var(--color2);
		transition: 0.46s;
		background-color: rgba(0, 0, 0, 0.05);
	}

	body header .links .logo{
		display: block;
		border-radius: 7px;
		overflow: hidden;
	}

	body header .links .logo figure img{
		height: 100px;
		width: calc(100% - 2px);
		border-radius: 7px;
		border: 1px solid var(--grey);
	}
	body header .links p{
		display: none;
	}

	body header .menuIcon{
		display: flex;
		justify-content: end;
		font-size: 24px;
		font-weight: bolder;
	}

	/************************ MAIN ************************/
	body main{
		margin-right: 15px;
		margin-left: 15px;
	}

	body main .header{
		height: 300px;
	}

	body main .header .status .search .icon{
		cursor: default;
	}

	body main .header .status.search-active input{
		outline: none;
	}
	/************************ FOOTER ************************/
	body footer .copyright .social a{
		cursor: default;
	}

	body footer .guide,
	body footer hr,
	body footer .copyright{
		margin-right: 15px;
		margin-left: 15px;
		margin-top: 15px;
	}
}