@media only screen and (max-width: 768px) {
	
	#header {
		position: relative;
		width: 100%;
		height: auto;
		display: flex;
		flex-direction: column;
	}

	#logo .logo-marker {
		position: fixed;
		top: 0;
		left: 0;
		height: 50px;
		width: 100%;
		z-index: 999;
		display: flex !important;
		justify-content: space-between !important;
		align-items: center;
		background: #2f92ff;
		border-bottom: 0;
		-webkit-box-shadow: 0px 2px 10px rgb(255 255 255 / 29%), inset 0px 3px 5px rgb(255 255 255 / 25%), 0px -1px 8px 2px rgb(0 0 0 / 30%), inset 0 -4px 8px rgb(255 255 255 / 30%), inset -1px -5px 6px rgb(0 0 0 / 20%);
		-moz-box-shadow: 0px 2px 10px rgb(255 255 255 / 29%), inset 0px 3px 5px rgb(255 255 255 / 25%), 0px -1px 8px 2px rgb(0 0 0 / 30%), inset 0 -4px 8px rgb(255 255 255 / 30%), inset -1px -5px 6px rgb(0 0 0 / 20%);
		box-shadow: 0px 2px 10px rgb(255 255 255 / 29%), inset 0px 3px 5px rgb(255 255 255 / 25%), 0px -1px 8px 2px rgb(0 0 0 / 30%), inset 0 -4px 8px rgb(255 255 255 / 30%), inset -1px -5px 6px rgb(0 0 0 / 20%);
	}

	.wrapper.logo-wrap {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 20px;
	}

	#logo img {
		width: 90px;
	}

	a.logo, a.logo2 {
/* 		font-family: 'astro'; */
		font-size: 22px;
		font-weight: bold;
		color: #efefef;
		text-decoration: none;
    	padding: 0 !important;
	}
	
	label.menu-btn{
		display: flex;
		flex-direction: column;
		width: 30px;
		cursor: pointer;
	}

	.menu-icon{
		background: #fff;
		border-radius:10px;
		height: 3px;
		margin:  3px 0;
		opacity: 0.789;
		transition: .5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
	}

	.menu-icon.mc-1 {
	  	width:50%;
	}
	
	.menu-icon.mc-2{
	  	width:100%;
	}

	.menu-icon.mc-3{
	  	width:75%;
	}

	.menu-btn.active-btn .menu-icon.mc-1{
		transform-origin:bottom;
    	transform: rotatez(45deg) translate(4px,0px);
	}

	.menu-btn.active-btn .menu-icon.mc-2{
		width: 98%;
		transform-origin:top;
		transform:rotatez(-45deg)
	}

	.menu-btn.active-btn .menu-icon.mc-3{
		transform-origin:bottom;
		width:50%;
    	transform: translate(13px,-5px) rotatez(45deg);
	}

	#logo ul.top_links {
		font-weight: bold;
		text-align: left;
		margin: 0;
	}

	#header #panel .upper, #header #panel .lower{
		position: relative;
		top: 29.5px !important;
		z-index: 993;
	}

	#search input.textbox{
		width: 150px;
	}

	#light_mode #search input.textbox{
		background: #ddd;
	}

	#header ul.menu.top_links {
		position: fixed;
		height: 100%;
		width: 300px;
		top: 0;
		left: -100%;
		padding-top: 83px;
		flex-direction: column;
		justify-content: flex-start;
		box-shadow: 1px 0px 40px 1px rgba(40, 40, 40, 0.35)
					,1px 0px 45px 0px rgba(40, 40, 40, 0.45);
		background: var(--ul-top-back);
		z-index: 9990;
		overflow: hidden;
		transition: 0.6s left ease-in-out;
	  }
  
	#header ul.menu.top_links li {
		margin: 0;
		width: 100%;
	}
	
	.help-list ~ .day-night {
		display: none;
	}
	
	#header ul.menu.top_links li a, .forums {
		width: 100%;
		height: 44px;
		padding: 0 1.5rem;
		transition: margin 0.8s;
		margin-left: -100%;
		display: flex;
		background-image: none;
		color: var(--ul-top-a-col);
		font-size: 13px;
		text-transform: capitalize;
		white-space: nowrap;
		align-items: center;
	}
	
	.forums {
    	justify-content: space-between;
		cursor: pointer;
	}

	#header ul.menu.top_links li a:hover, #header ul.menu.top_links li .forums:hover {
		background: var(--ul-top-a-hov-back);
		color: #3989da;
	/* 	  transition: 0s; */
	}
  
	#header ul.menu.top_links.active-menu {
		left: 0;
    }

	#header ul.menu.top_links.active-menu li a,#header ul.menu.top_links.active-menu li .forums {
		margin-left: 0px;
	}
	
	.menu.top_links li.active1{
		background: #303347;
	}
	
	#header ul.menu.top_links li.active1 a, #header ul.menu.top_links li.active1 .forums{
		color: #3989da;
	}
	
	#header ul.menu.top_links li a i, .forums i {
		margin-right: 6px;
		transition: 0.6s all;
	}
		
	.menu.top_links li a:hover i:not(.drop-icon), .menu.top_links li .forums:hover i:not(.drop-icon) {
		animation: bcb 0.4s;
		-webkit-animation: bcb 0.4s;
	}

	@-webkit-keyframes bcb {
		0% {
			transform: scale(1);
		}
		100% {
			transform: scale(1.4);
		}
	}
	
	#header ul.menu.panel_links li a {
		background-image: none;
		margin: 0 !important;
		font-size: 17px;
	}
	
	#header ul.menu.user_links li a{
		font-size: 17px;
		background-image: none;
		color: var(--light-grey);
	}
	
	#header #panel .upper a.logout {
		background: none;
		background-image: none;
		padding: 0;
	}
	
	#header ul.menu.top_links .show_mobile.xlogo {
		height: 50px;
		width: 100%;
		display: flex;
		justify-content: space-around !important;
		align-items: center;
		background: #2f92ff;
		position: absolute !important;
		top: 0;
		left: 0;
	}
	
	#header ul.menu.top_links .xlogo img {
		text-align: center;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.drop {
		display: block !important;
	}
	
	.drop.active{
		background: var(--ul-top-a-hov-back);
	}
	
	.drop.active .forums{
		color: #3989da !important;
	}
	
	.drop .drop-down{
		width: 100%;
		display: flex;
		flex-direction: column;
		padding: 0;
		background: var(--ul-top-back);
		max-height: 0;
		transition: 0.25s max-height;
		opacity: 0;
	}
	
	.drop.active .drop-down {
		max-height: 134px;
		transition: 0.3s max-height ease;
		opacity: 1;
	}
	
	.drop .drop-down li {
		display: flex !important;
		flex-direction: column;
		margin: 0;
		transition: 0.5s linear;
		overflow: hidden;
	}
	
	.drop .drop-down li a {
		transition: 0.4s ease-in-out !important;
		padding-left: 3.4rem !important;
		font-size: 11px !important;
	}
	
	.drop .drop-down li a:hover {
		background: var(--ul-top-a-hov-back) !important;
		color: #3989da !important;
	}

	.drop .border-dot {
		margin: 5px;
		height: 0px;
		font-size: 1px;
		list-style-type: none;
	}

	.drop.active .border-dot {
		border-bottom: 1px dashed #b3b3b3;
		transition: 0.1s;
	}
	
	.drop-down li a i {
		animation: none !important;
		transition: 0.3s !important;
	}

	.drop.active .drop-down li a:hover i {
		transform: scale(1.4);
	}
	
	.drop-icon {
		transition: 0.3s !important;
	}
	
	.drop.active .drop-icon {
		transform: rotate(180deg);
	}
	
	.pm_alert , .red_alert {
		padding: 19px 18px;
	}
}

@media only screen and (max-width: 380px) {
	#header ul.menu.top_links {
		width: 250px;
	}
}

@media only screen and (max-width: 768px) {
	
	#light_mode #header #panel .upper {
		background: #fdfdfd;
    	box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
	}
	
	.night-mode #panel .upper {
    	background: #393e46 !important;
	}
	
	#panel .upper a:link, #panel .upper a:visited, #panel .upper a:hover, #panel .upper a:active {
    	color: var(--black-tone) !important;
	}
	
	#search_mobile {
		display:inline-block !important;
	}
	
	#header #panel .lower {
		padding: 0px 7px;
	}
	
	#header ul.menu.panel_links li, #header ul.menu.user_links li{
		display: inline !important;
		margin: 0;
		padding: 0;
	}
	
	#header ul.menu.panel_links li a, #header ul.menu.user_links li a {
		padding: 7px 6px;
		margin: 0;
		color: var(--text-black);
		display: inline-block;
	}
	
	a#todaypost {
    	padding: 7.5px 20px !important;
	}
	
	#header ul.menu.panel_links li a:hover i, #header ul.menu.user_links li a:hover i{
		color: #fff;
	}
	
	.fa-guest {
		color: #fff !important;
	}
	
	#header ul.menu.panel_links li a i,#header ul.menu.user_links li a i  {
		color: var(--black-tone);
	}
	
	#header ul.menu.panel_links li a.usercp:hover{
		background: #f02e82;
	}
	
	#header ul.menu.panel_links li a.modcp:hover {
		background: #1b9617;
	}
	
	#header ul.menu.panel_links li a.admincp:hover{
		background: #d92323;
	}
	
	#header ul.menu.user_links li a#buddylink:hover{
		background: #831da8;
	}
	
	#header ul.menu.user_links li a#newpost:hover{
		background: #14c729;
	}
	
	#header ul.menu.user_links li a#todaypost:hover{
		background: #ff33f1;
	}
	
	#header ul.menu.user_links li a#pm:hover{
		background: #0274ed;
	}
	/* for dark theme */
	
	#header ul.menu.panel_links li a.usercp,
	#header ul.menu.panel_links li a.modcp,
	#header ul.menu.panel_links li a.admincp,
	#header ul.menu.user_links li a#buddylink,
	#header ul.menu.user_links li a#newpost,
	#header ul.menu.user_links li a#todaypost,
	#header ul.menu.user_links li a#pm{
		background: var(--lower-bg);
	}
	/* end */
	#header ul.menu.panel_links li a.login{
		background: #d92323;
		color: var(--white);
	}
	
	#header #panel .upper a.logout{
		background: red;
		color: var(--white);
		padding: 6px;
	}
	
	#header ul.menu.panel_links li a.register {
		background: #1b9617;
		color: var(--white);
	}
	
	#menu_desktop, .hide_mobile, .usercp_container, #threads, #views, #replies, #lastpost, #rating {
		display:none !important;
	}
	
	.smalltext {
		font-size: 11px;
	}
	
	.largetext {
		font-size: 13px;
	}
	
	.modal {
		width: auto !important;
	}
	
	.hide-768{
		display: none !important;
	}
	
	.redirect {
		margin: 0 1rem;
	}
	
	#info {
		display: none;
	}
	
	.flex-half {
		flex: 1 60%;
	}
	
	.flex-half-2 {
		flex: 1 40%;
	}
}

@media screen and (max-width: 384px) and (min-width: 319px) {
	#info2, .show_mobile2{
		display: none !important;
	}
}

@media only screen and (max-width: 321px) {
	.smalltext{
		font-size: 9px;
	}
	
	.largetext{
		font-size: 11px;
		font-weight: 100;
	}
	
	dl.forum_legend {
		display: none;
	}
}

@media only screen and (min-width: 769px) {
	
	.show_mobile,#info,#info2,.show_mobile {
		display:none !important;
		visibility:hidden; 
	}

	#header ul.menu.top_links li a i, .forums i {
		display: none;
	}

	#header ul.menu.panel_links li a i, #header ul.menu.user_links li a i {
		display: none !important;
	}
	
	#header ul.menu.top_links li.day_night a i {
		display: block !important;
		pointer-events: none;
	}

	#panel .upper {
		background: var(--tcat) !important;
	}
	
	.redirect {
		width: 50%;
		margin: auto auto;
	}
}
		
		
		
		