/* Scroll arrows */
.scrollToTop {
	background: var(--main-color);
	color: var(--main-font-color);
	position: fixed;
	z-index: 4000;
	bottom: 243px;
	right: 20px;
	border-radius: 2px;
	padding: 9px 10px;
	cursor: pointer;
	display: block;
	font-size: 18px;
}

.scrollToDown {
	background: var(--main-color);
	color: var(--main-font-color);
	position: fixed;
	z-index: 4000;
	bottom: 200px;
	right: 20px;
	border-radius: 2px;
	padding: 9px 10px;
	cursor: pointer;
	display: block;
	font-size: 18px;
}


/* Avatar in header */
#avatarheader {
	cursor: pointer;
	position: relative;
	border-radius: 50%;
	height: 40px;
	width: 40px;
	object-fit: cover;
	border-radius: 10px;
	-webkit-filter: sepia(50%);
	filter: sepia(50%);
	transition: all 0.6s ease;
}

#avatarheader:hover {
	-webkit-filter: sepia(30%);
	filter: sepia(30%);
}

/* Avatar container */
.av_bcg {
    position: relative; /* Ensures the dropdown positions correctly */
    border: 3px solid var(--main-color);
    border-radius: 10px;
    margin-right: 10px;
	margin-top: 5px;
	margin-bottom: 5px;
    cursor: pointer; /* Makes it clear it's interactive */
}

/* Avatar image */
.av_bcg a {
    padding: 0 !important;
    display: block;
}

/* Dropdown menu (hidden by default) */
.av_menu {
    display: none;
    position: absolute;
    top: 109%; /* Position below the nav item */
    right: -16px;
    background: var(--background-color);
    border-radius: 5px;
    min-width: 70px;
    z-index: 999;
	font-family: var(--main-font);
	font-size: 1rem;
}

.av_menu .items {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px;
	transition: background 0.6s ease-in-out;
	gap: 10px;
}

/* Show dropdown on hover */
.av_bcg:hover .av_menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown item styling */
.av_menu a {
    border: 3px solid var(--main-color);
	border-radius: 10px;
    transition: background 0.6s ease-in-out;
    padding: 10px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.av_menu a:hover {
    background: var(--main-color);
    color: var(--main-font-color) !important;
}


/* Navigation */
.sticky_nav {
	background: var(--background-color);
	width: 100%;
	box-shadow: var(--main-shadow);
	position: fixed;
	z-index: 1000;
	justify-content: space-between;
	align-items: center;
	display: flex;
	font-size: 1rem;
	font-family: var(--thead-font);
}

.member {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Individual Nav Items */
.sticky_nav a {
    color: var(--main-font-color);
    text-decoration: none;
    padding: 10px 15px;
    position: relative;
    transition: background 0.3s;
	cursor: pointer;
}

/* Hover Effect */
.sticky_nav a:hover {
	color: var(--link-hover);
}

/* Dropdown Container */
.nav-item {
    position: relative;
    display: inline-block;
}

/* Dropdown Menu */
.dd_menu {
    display: none;
    position: absolute;
    top: 130%; /* Position below the nav item */
    left: 0;
    background: var(--background-color);
    border-radius: 5px;
    min-width: 200px;
    z-index: 999;
	font-family: var(--main-font);
	font-size: 0.8rem;
}

.dd_menu .items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    transition: background 0.6s ease-in-out;
    gap: 10px;
}

.dd_menu .items a {
    border: 1px solid var(--main-color);
    transition: background 0.6s ease-in-out;
    padding: 10px;
    display: inline-block;
}

.dd_menu .items a:hover {
    background: var(--button-bg);
}

/* Social icons default state */
.social {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 1.75rem;
    color: var(--main-font-color);
	max-width: 200px;
	text-shadow: none;
}

/* Default icon style */
.social_icon {
    background: var(--button-bg);
	background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: -webkit-text-fill-color 0.6s ease-in-out, color 0.6s ease-in-out, background 0.6s ease-in-out;
}

/* Fix: Ensure only the hovered <a> changes its icon color */
.dd_menu .items a:hover .social_icon {
    -webkit-text-fill-color:var(--main-font-color); /* Changes only the hovered icon */
    background: none;
}

/* Show Dropdown on Hover */
.nav-item:hover .dropdown {
    display: block;
}

.nav-item:hover .dd_menu {
    display: block;
}

.nav-item:hover .dd_account {
    display: block;
}

/* PM and hr */
.unread {
	background: var(--button-bg);
	background-clip: text;
	-webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
	text-shadow: none;
}
		
.unread_frame {
	border: 2px solid var(--main-color);
	border-radius: 10px;
	padding: 5px;
}		
		
.green {
	background: var(--button-bg);
	width: 90%
}	

/* Responsiveness */

.mobile_nav {
	display: none;
}

.mobile_member {
	display: none;
}

@media only screen and (max-width: 970px) {
	.sticky_nav {
		display: none;
	}

	.desktop_member {
		display: none;
	}

	.mobile_member {
		display:flex;
	}

	.mobile_nav {
		background: var(--background-color);
		width: 100%;
		box-shadow: var(--main-shadow);
		position: fixed;
		z-index: 1000;
		justify-content: space-between;
		align-items: center;
		display: flex;
		font-size: 1rem;
		font-family: var(--thead-font);
	}

	/* Individual Nav Items */
	.mobile_nav a {
		color: var(--main-font-color);
		text-decoration: none;
		padding: 10px 15px;
		position: relative;
		transition: background 0.3s;
		cursor: pointer;
	}
	
	/* Hover Effect */
	.mobile_nav a:hover {
		color: var(--link-hover);
	}
}

@media only screen and (max-width: 480px) {
	.mobile_nav a {
		padding: 5px 7px;
	}
}


@media only screen and (max-width: 400px) {
	.mobile_nav a {
		padding: 3px 5px;
	}
}