*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

header{
	position: sticky;
	top: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: royalblue;
	padding: 5px 50px;
	z-index: 5;
}

header.dark{
	background-color: black;
	transition: background-color 0.2s;
}

body{
	font-family: sans-serif;
}

.logo{
	font-weight: bolder;
	color: white;
	font-size: 25px;
	cursor: pointer;
}

.logo span{
	display: inline-block;
	font-size: 30px;
	border-radius: 2px;
	color: rgb(15, 55, 173);
	background-color: white;
	padding: 0px 5px;
	text-shadow: 1px 2px 5px ;
	box-shadow: 0px 2px 3px black;
	transition: 0.5s;
}

.logo span:hover{
	animation: spin 1s ;
}

nav{
	display: flex;
	align-items: center;
	gap: 30px;
}

.rightNav{
	display: flex;
	align-items: center;
	gap: 20px;
}

.navicon{
	font-size: 18px;
	color: white;
	background: transparent;
	padding: 0px 10px;
	transition: 0.4s;
	cursor: pointer;
}

.navicon:hover{
	transform: translateY(-3px);
	filter: drop-shadow(5px 2px 4px black );
}

.searchBar{
	position: relative;
}

.searchBar i{
	position: absolute;
	color: grey;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
}

#search{
	border-radius: 20px;
	outline: none;
	border: none;
	height: 30px;
	width: 250px;
	padding: 0px 20px;
	padding-left: 40px;
}

.profilecontainer{
	position: relative;
}

.profile{
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
}

.profile img{
	width: 60px;
}

.check{
	position: absolute;
	background-color: royalblue;
	width: 10px;
	height: 10px;
	border: 1.7px solid white;
	border-radius: 50%;
	right: 1px;
	top: 1px;
}

main{
	display: flex;
	min-height: 100vh;
	background-color: rgb(240, 240, 240);
	gap: 10px;
	padding: 10px 20px 10px 5px;
	transition: background-color 0.2s;
}

main.dark{
	background-color: rgb(27, 27, 27);
	color: white;
}

.leftside{
	position: sticky;
	top: 80px;
	border-radius: 5px;
	height: 90vh;
	width: 25%;
	padding-left: 30px;
}

.leftside .extras ul{
	list-style: none;
}

.leftside .extras ul li{
	cursor: pointer;
	font-size: 15px;
	padding: 10px 0;
}

.leftside .extras ul li:hover{
	color: blue;
	filter: drop-shadow(5px);
}

.leftside .extras ul li i{
	padding-right: 10px;
	filter: drop-shadow(1px 1px black);
	color: royalblue;
} 

.leftside .extras ul li a{
	text-decoration: none;
	color: royalblue;
	transition: 0.3s;
}

.leftside .extras ul li a:hover{
	color: rgb(3, 33, 124);
}

.leftside .shortcuts{
	display: flex;
	flex-direction: column;
	font-size: 14px;
	gap: 10px;
}

.leftside .shortcuts .title{
	color: silver;
}

.leftside .shortcuts img{
	width: 30px;
	border-radius: 5px;
}

.leftside .shortcuts p{
	transition: 0.2s;
	cursor: pointer;
}

.leftside .shortcuts a:hover{
	color: royalblue;
}

.maincontent{
	font-family: Arial, Helvetica, sans-serif;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-radius: 5px;
	height: 70%;
	width: 60%;
}

.maincontent .stories{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 200px;
	border-radius: 10px;
	overflow-x: scroll;
	overflow-y: hidden;
}

.maincontent .stories .story{
	position: relative;
	min-width: 100px;
	max-width: 101px;
	height: 160px;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
}

.maincontent .stories .story .storypost{
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100%;
	filter: brightness(0.9);
	transition: 1s;
}

.storypost:hover{
	transform: scale(1.1);
	filter: brightness(1);
}

.maincontent .stories .story .addstory{
	position: absolute;
	width: 35px;
	height: 35px;
	background-color: royalblue;
	border: 3px silver solid;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 55%;
	right: 50%;
	box-shadow: 2px 2px 3px grey;
	transform: translateX(50%);
	cursor: pointer;
}

.maincontent .stories .story .addstory:hover{
	animation: pop 1s infinite;
}

.maincontent .stories .story .addstory i{
	color: white;
}

.maincontent .stories .story .userprofile{
	position: absolute;
	border: 4px solid royalblue;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	left: 10px;
	top: 5px;	
	overflow: hidden;
}

.maincontent .stories .story .userprofile img{
	width: 140%;
}

.maincontent .stories .story .username{
	font-size: 15px;
	text-align: center;
	color: white;
	position: absolute;
	bottom: 3px;
	right: 50%;
	transform: translateX(50%);
}

.createpost{
	background-color: white;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	padding: 10px 50px;
	transition: background-color 0.2s;
}

.createpost.dark{
	background-color: rgb(0, 0, 0);
	color: white;
}

.createpost .head{
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 20px;
}

.createpost .head .public{
	display: flex;
	gap: 4px;	
}

.createpost .head .public p{
	padding-top: 2px;
	font-size: 13px;
	color: silver;
}

.createpost .head .public i{
	color: royalblue;
}

.createpost .head .img{
	background-image: url(../images/profiles/mine.jpg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	height: 45px;
	width: 45px;
	border-radius: 50%;
}
.createpost textarea{
	font-size: 16px;
	resize: none;
	border: none;
	height: 80px;
	border-bottom: 1px solid silver;
	outline: none;
	background-color: transparent;
}

.createpost textarea.dark{
	color: white;
}

.createpost textarea::placeholder{
	color: silver;
}

.createpost ul {
	list-style: none;
	padding-top: 20px;
	display: flex;
	align-items: center;
	gap: 50px;
}

.createpost ul li .fa-video{
	color: red;
	cursor: pointer;
}

.createpost ul li .fa-camera{
	color: #00f999;
	cursor: pointer;
}

.createpost ul li .fa-smile{
	color: gold;
	cursor: pointer;
}

.newsfeeds{
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.feeds{
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	min-height: 200px;
	background-color: white;
	padding: 20px;
	border-radius: 5px;
	transition: background-color 0.2s;
}

.feeds.dark{
	background-color: rgb(0, 0, 0);
	color: white;
}

.feeds .top{
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.feeds .top .left p{
	font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
	font-size: 20px;
	cursor: pointer;
}

.feeds .top .info{
	gap: 10px;
	display: flex;
	align-items: center;
}

.feeds .top .info .date{
	font-size: 13px;
	color: silver;
}

.dp{
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	height: 40px;
	width: 40px;
	border-radius: 50%;
	cursor: pointer;
}

.dp1{
	background-image: url(../images/profiles/user6.jpg);
}
.dp2{
	background-image: url(../images/profiles/user3.jpg);
}
.dp3{
	background-image: url(../images/profiles/user2.jpg);
}
.dp4{
	background-image: url(../images/profiles/user1.jpg);
}
.dp5{
	background-image: url(../images/profiles/user5.jpg);
}
.dp6{
	background-image: url(../images/andrea.jpg);
}

.feeds .picture{
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	width: 100%;
	border-radius: 3px;
}

.feed1 .picture{
	height: 800px;
	background-image: url(../images/posts/post\ 1.jpg);
}
.feed2 .picture{
	height: 500px;
	background-image: url(../images/profiles/user3.jpg);
}
.feed3 .picture{
	height: 350px;
	background-image: url(../images/posts/photo-1591035897819-f4bdf739f446.jpg);
}
.feed4 .picture{
	height: 600px;
	background-image: url(../images/s1.jpg);
}
.feed5 .picture{
	height: 550px;
	background-image: url(../images/posts/photo-1519417688547-61e5d5338ab0.jpg);
}
.feed6 .picture{
	height: 400px;
	background-image: url(../images/andrea.jpg);
}

.feeds .likes{
	display: flex;
	align-items: center;
	gap: 20px;
	color: grey;
}

.feeds .likes p{
	cursor: pointer;
}


.feeds .likes .fa-thumbs-up{
	color: royalblue;
}

.newsfeeds .load{
	color: white;
	outline: none;
	border: none;
	border-radius:3px;
	align-self: center;
	display: block;
	padding: 10px 20px;
	background-color: royalblue;
	cursor: pointer;
	box-shadow: 1px 2px 4px black;
	transition: 0.5s;
}

.newsfeeds .load:hover{
	transform: translateY(-3px);
	box-shadow: 1px 3px 4px grey;
}

.rightside{
	position: sticky;
	height: fit-content;
	top: 80px;
	background-color: white;
	border-radius: 5px;
	width: 25%;
	padding: 10px;
	transition: background-color 0.2s;
}

.rightside.dark{
	background-color: rgb(14, 14, 14);
	color: white;
}

.conversations{
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 20px;
}

.chats{
	display: flex;
	gap: 10px;
	align-items: center;
	border-radius: 5px;
	padding: 3px;
	cursor: pointer;
	transition: 0.2s;
}

.chats:hover{
	background-color: rgb(216, 216, 216);
}

.chats .name{
	font-size: 12px;
}

.chats .text{
	font-size: 10px;
	color: silver;
}

.events{
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 20px;
}

.event{
	display: flex;
	gap: 15px;
}

.event .date{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 60px;
	height: 50px;
	border-radius: 5px;
	box-shadow: 2px 1px 10px black;
	cursor: pointer;
	background-color: white;
}

.event .date h4{
	color: black;
	line-height: 35px;
	text-align: center;
	border-radius: inherit;
}

.event .date p{
	width: 100%;
	text-align: center;
	font-size: 10px;
	color: white;
	background-color: blue;
	padding: 3px;
	border-bottom-left-radius: inherit;
	border-bottom-right-radius: inherit;
}

.event .title{
	font-size: 15px;
}

.event .info p{
	font-size: 13px;
	color: blue;
	cursor: pointer;
}

.event .location{
	font-size: 10px;
	color: silver;
}

.events p{
	font-size: 13px;
	color: royalblue;
	cursor: pointer;
}

.settings{
	position: fixed;
	top: 55px;
	right: 40px;
	padding: 0px 30px;
	border-radius: 3px;
	box-shadow: 2px 3px 10px grey;
	background-color: rgb(245, 245, 245);
	overflow: hidden;
	height: 0;
	transition:background-color, height  0.2s;
}

.settings.show{
	padding: 20px 30px;
	height: 400px;
}

.settings.dark{
	background-color: rgb(31, 31, 31);
	box-shadow: 2px 3px 10px black;
}

.top{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0px;
}

.top .right{
	display: flex;
	align-items: center;
	gap: 10px;
}

.top .right .see{
	color: royalblue;
	font-size: 12px;
}

.top .nightbtn{
	position: relative;
	min-width: 40px;
	min-height: 20px;
	background-color: rgb(231, 231, 231);
	box-shadow: inset 2px 3px 3px grey	;
	border-radius: 20px;
}


.top .nightbtn div{
	position: absolute;
	top:0;
	left: 0;
	min-height: 20px;
	min-width: 20px;
	background-color: rgb(228, 228, 228);
	box-shadow: 2px 0px 2px grey;
	border-radius: 50%;
	cursor: pointer;
	transition: 0.2s;
}

.top .nightbtn div.active{
	left: 20px;
	box-shadow: -2px 0px 2px grey;
}

.top .right .userimg{
	background-image: url(../images/profiles/mine.jpg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 50%;
	width: 40px;
	height: 40px;
}

.settings i{
	border-radius: 50%;
	padding: 10px;
	background-color: rgb(212, 212, 212);
	color: rgb(61, 61, 61);
}

.stng{
	display: flex;
	padding: 10px 0px;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 5px 0px;
	padding: 5px;
	border-radius: 5px	;
	border: 1px solid transparent;
	transition: 0.2s;
}

.stng:hover{
	filter: brightness(0.75);
	border: 1px solid grey;
}

.feedback{
	display: flex;
	padding: 10px 0px;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.feedback .send{
	font-size: 12px;
	color: royalblue;
	cursor: pointer;
}

@keyframes spin{
	0%{
		transform: rotate(0deg);
		box-shadow: 0px 2px 3px black;
	}
	50%{
		box-shadow: 3px 3px 5px black;
	}
	100%{
		transform: rotate(360deg);
		box-shadow: 0px 2px 3px black;
	}
}


@keyframes pop{
	0%{
		transform:translateX(50%) scale(1);
	}
	50%{
		transform:translateX(50%) scale(1.08);
	}
	100%{
		transform:translateX(50%) scale(1)
	}
}

@media( max-width: 700px ){
	header{
		padding: 10px 10px;
		justify-content: space-between;
	}

	header nav{
		gap: 10px;
	}

	.leftside{
		display: none;
	}

	.rightside{
		display: none;
	}
	main{
		gap: 0px;
		padding: 0px;
		overflow-x: hidden;
		justify-content: center;
	}
	.maincontent{
		width: 95%;
	}

	.createpost ul{
		gap: 4px;
		font-size: 12px;
	}

	.searchBar{
		display: none;
	}

	.extras{
		display: flex;
		flex-direction: column;
		align-items: center;
	}


	.extras ul li i{
		font-size: 20px;
	}
	
	.extras ul li span{
		display: none;
	}
}


@media( max-width: 500px){

}