/* in the name of god */
:root{
	--color1:#0077C2;
    --color2:#59a5f5;
    --color3:#c8ffff;
    --color4:#00BFFF;
    --color5:#00619a;
    --color6:#FFFFFF;
    --color7:#f5f5f5;
    --color8:#cccccc;    
    --color9:#333333;
    --color10:#5c5c5c;
	--bg-color:#eff2f6;
}
@font-face{
	font-family: Estedad;
	src: url(../fonts/Estedad.woff2);
}
@font-face{
	font-family: Mikhak;
	src: url(../fonts/Mikhak.woff2);
}
*{
	box-sizing: border-box;
}
html body{
	scroll-behavior: smooth;
}
html{
	font-size: 17px;
}
body{
	font-family: Estedad, tahoma;
	text-align: justify; background-image: url(../images/bg.jpg);
	background-attachment: fixed;
}
h1{
	font-family: Mikhak;
	border: solid 3px rgb(63, 100, 212);
	border-radius: 0px 30px;
	padding: 3px 10px;
	margin: 10px;
	background-color: red;
	font-weight: 1000;
	color: white;
	/* text-shadow: 3px 3px 0px cadetblue */
}
a{
	color: royalblue;
	text-decoration: none;
}
.p_bg{
	direction: ltr;
	text-align: center;
}
.bold{
	font-weight: bold;
}
html{
	scroll-behavior: smooth;
}
a:hover{
	color: red;
}

#up{
	position: fixed;
	right: 10px;
	bottom: 40px;
	width: 50px;
	aspect-ratio: 1;
	margin: 0 auto;
	background-image: url(../images/btn.png);
}
#up:hover{
	background-position: top right;
}
/* website structure */
main{
	display: grid;
	grid-template-columns: 200px auto;
	grid-template-areas:
	'header header'
	'aside article'
	'footer footer' 
	;
	gap: 10px;
	width: 950px;
	background-color: white;
	min-height: 1000px;
	border: 1px solid black;
	margin: 0 auto;
	padding: 10px;
	border: 10px solid black;
	border-image: url(../images/border.png) 20% stretch;
	background-clip: padding-box;
}
header aside article footer{
	background-color: var(--color6);
	border: 1px solid #dee2e6;
	border-radius: 10px;
}
header{
	grid-area: header;
	min-height: 150px;
	border: 1px solid black;
	margin-bottom: 10px;
	padding: 10px;
}
aside{
	grid-area: aside;
	width: 200px;
	border: 1px solid black;
	min-height: 710px;
	float: right;
}
article{
	grid-area: article;
	width: 700px;
	border: 1px solid black;
	min-height: 710px;
	float: right;
	margin-right: 10px;
	padding: 10px;
	margin: auto;
}
footer{
	grid-area: footer;
	min-height: 100px;
	border: 1px solid black;
	text-align: center;
	margin-top: 10px;
}
#main-menu{
	display: none;
}
#main-menu ul{
	font-weight: 300;
	list-style-type: none;
	margin: 0;
	padding: 0;
}
#main-menu ul li{
}
#main-menu ul li a{
	padding: 6px 10px;
	margin: 3px 0px;
	width: 100%;
	height: 100%;
	display: block;
	background-color: var(--color1);
	color: var(--color6);
	border-right: 7px solid var(--color9);
	transition: 0.3s;
}
#main-menu ul li a:hover{
	background-color: var(--color3);
	color: var(--color9);
	border-right: 7px solid var(--color4);
	box-shadow: -7px 7px 0px var(--color2);
}
#nav ul{
	margin: 0;
	padding: 0;
	list-style-type: none;
	text-align: center;
}
#nav ul li{
	display: inline-block;
}
#nav ul li a{
	padding: 5px;
	border-radius: 7px 7px 0px 0px;
	display: block;
	width: 100%;
	height: 100%;
	background-color: #222831;
	color: white;
	border-bottom: 2px solid #00adb5;
	transition: 0.3s;
}
#nav ul li a:hover{
	background-color: #00adb5;
	border-bottom: 2px solid #222831;
}
#ads{
	position: fixed;
	left: 0px;
	bottom: 0px;
}
/* gallery */
#gallery{
	text-align: center;
}
#gallery img{
	transition: 0.2s;
	width: 130px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	margin: 5px;
	filter: grayscale(40%) blur(5px);
}
#gallery img:hover{
	transform: rotate(360deg) scale(1.1);
	filter: grayscale(0%);
}
@keyframes logoplay{
	from{
		transform: translate(-300px);
		opacity: 0;
	}
	to{
		transform: translate(0px);
		opacity: 1;
	}
}
#logo{
	animation: logoplay 2s;
}
@keyframes menuplay{
	0%{
		transform: translate(300px);
	}
	50%{
		transform: translate(-30px);
	}
	100%{
		transform: translate(0px);
		opacity: 1;
	}
}
#main-menu ul li{
	opacity: 0;
	animation: menuplay 1.7s forwards;
}
@keyframes navplay{
	0%{
		transform: translatey(-100px);
	}
	50%{
		transform: translatey(30px);
	}
	100%{
		transform: translatey(0px);
		opacity: 1;
	}
}
#nav ul li{
	opacity: 0;
	animation: navplay 1s forwards;
}
/* medium screen */
@media screen and (max-width: 1024px){
	main{
		width: 100%;
	}
	#nav{
		display: none;
	}
	article{
		display: calc(100% - 210px);
	}
	#main-menu{
		display: inherit;
	}
}
/* small screen */
@media screen and (max-width: 500px){
	#main-menu{
		display: inherit;
	}
	main{
		grid-template-columns: auto;
		grid-template-rows: auto auto auto auto;
		grid-template-areas:
		'header'
		'article'
		'aside'
		'footer' 
		;
	}
	aside{
		width: auto;
	}
	article{
		width: auto;
	}
}
/* html-css */