/**
* Stylesheet for Header
*
*/

/** BUTTON ICON **/

.button .btn-nav {
    position: absolute;
    left: 0;
    z-index: 90;
}
.button .btn-nav:hover{
    cursor: pointer;
	text-decoration: none;
}

.button .btn-nav .icon {
    display: inline-block;    
}
.button .btn-nav .icon .sr-only {
    width: 20px;
    height: 2px;
    display: block;
    background-color: var(--color-link);
    margin: 5px 0;
    transition: 0.4s;
}
.dark-theme .button .btn-nav .icon .sr-only {
	background-color: #eb0;
}

.button .btn-nav .icon .sr-only:nth-child(2) {
    width: 17px;
}
.button .btn-nav .icon:hover .sr-only:nth-child(2) {
    width: 20px;
}
.button .btn-nav .icon .sr-only:last-child {
    width: 14px;
	margin-bottom: 4px;
}
.button .btn-nav .icon:hover .sr-only:last-child {
    width: 20px;
}

.button .btn-nav .icon.change .sr-only:first-child {
    width: 20px;
    transform: translate(0, 8px) rotate(-45deg);
}
.button .btn-nav .icon.change .sr-only:nth-child(2) {opacity: 0;}
.button .btn-nav .icon.change .sr-only:last-child {
    width: 20px;
    transform: translate(0, -6px) rotate(45deg);
}

/**  BUTTON SEARCH DARK MODE **/

.button .dark-search {
	position: absolute;
	right: 0;
	z-index: 90;
}
.button .dark-search:hover {
	text-decoration: none;
}

/**  BUTTON SEARCH ICON **/

.button .btn-search {
	width: 24px;
	height: 24px;
	transition: all 0.3s ease-in-out;
	display: inline-block;
	position: relative;
	border-radius: 50%;
  	/* background-color: var(--color-link); */
	border: 2px solid var(--color-link);

}
.dark-theme .button .btn-search {
	/* background-color: #ffffff; */
	border: 2px solid #eb0;
}
.button .btn-search::before {
	content: '';
	position: absolute;
	top: 16%;
	right: 27.3%;
	width: 0;
	height: 2px;
	margin-top: 1px;
	background-color: var(--color-link);
	transform: rotate(-45deg);
	transform-origin: right top;
}
.dark-theme .button .btn-search::before {
	background-color: #eb0;
}

.button .btn-search::after {
	content: '';
	position: absolute;
	bottom: 20%;
	right: 27.3%;
	width: 27%;
	height: 2px;
	margin-top: -2px;
	background-color: var(--color-link);
	transform: rotate(45deg);
	transform-origin: right bottom;
}
.dark-theme .button .btn-search::after {
	background-color: #eb0;
}

.button .btn-search .icon {
    position: absolute;
    display: block;
    top: 17%;
    left: 19%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    border-color: var(--color-link);
}
.dark-theme .button .btn-search .icon {
    border-color: #eb0;
}

.button .btn-search.change::before,
.button .btn-search.change::after {
  	width: 70%;
}
.button .btn-search.change .icon {
	width: 0;
	height: 0;
	border-color: transparent;
	border: 0;
}
.button .btn-search::before,
.button .btn-search::after,
.button .btn-search .icon {
    transition: all 0.3s ease-in-out;
}
.button .btn-search:hover {
  	cursor: pointer;
}


/**  BUTTON DARK MODE ICON **/

.button .btn-dark {
    width: 24px;
    height: 24px;
    background-color: #888;
    cursor: pointer;
    display: inline-block;
    border-radius: 50%;
    padding: 5px;
}
.dark-theme .button .btn-dark {
    background-color: #fff;
}

.button .btn-dark .icon {
    width: 7px;
    height: 14px;
    display: block;
    background-color: #fff;
    border-radius: 14px 0 0 14px;
}
.dark-theme .button .btn-dark .icon {
    background-color: #333;
}

/** ------------------------------------------------- HEADER SECTION ---------------------------------------------*/

.header .site .logo {
	padding: 2px 0;
	text-align: center;
}
.header .site .logo img {
	height: 50px;
	width: auto;
	margin: 5px 0;
}
.header .site h1.name {
	font-weight: normal;
	text-align: center;
	padding-top: 2px;
	font-size: 1.7rem;
}
.header .site h1.name a {
	text-decoration: none;
}
.header .site p.tagline {
	text-align: center;
	padding-bottom: 3px;
	font-size: 0.8rem;
}

.header .menux .navbar {
	width: 100%;
	overflow-x: scroll;
}
.header .menux .navbar .nav {
	width: 250%;
}
.header .menux .navbar ul {
	list-style-type: none;
	margin: 0;
	padding: 0 10px;
}
.header .menux .navbar ul li {
	display: inline-block;
	padding: 15px 5px;
}
.header .menux .navbar ul li ul {
	display: inline-block;
}
.header .menux .navbar ul li a {
	font-weight: bold;
	text-transform: uppercase;
	font-size: 1em;
	display: inline-block;
	text-decoration: none;
	color: var(--color-text);
}
.dark-theme .header .menux .navbar ul li a {
	color: #ffffff;
}
.header .menux .navbar ul li a:hover {
	color: var(--color-hover);
	text-decoration: none;
}
.dark-theme .header .menux .navbar ul li a:hover {
	color: #eebb00;
}

/** Header.Main */
.header.main .site {
	position: relative;
	height: 70px;
	margin: 0 20px;	
}
.header.main .site .button {
	position: absolute;
	z-index: 90;
	width: 100%;
	height: 0;
	bottom: 50%;
	margin-bottom: 14px;
}
.header.main .site .button,
.header.main .site .logo, 
.header.main .site h1,
.header.main .site p,
.header.main .menux {
	display: none;
}

.header.main .menux {
	margin: 0 20px;	
}
.header.main .banner {
	margin: 15px 10px;
    text-align: center;
}
.header.main .banner img {
    width: 100%;
    height: auto;
}


/** Header.Fixed */

.header.fixed {
	position: fixed;
	width: 100%;
	z-index: 95;
	top: -100px;
	transition: top 1s ease-in-out;
	background-image: linear-gradient(var(--direct-bg), var(--color-bg), var(--color-bg-2));
	display: none;
}
.dark-theme .header.fixed {
	background-image: linear-gradient(to left, #111, #111);
}
.header.fixed .site {
	position: relative;
	margin: 0 20px;
}
.header.fixed .site .logo img {
	height: 42px;
	width: auto;		
	margin: 0 auto;
}
.header.fixed .site h1.name {
	font-size: 1.5rem;
}
.header.fixed .site p.tagline {
	font-size: 0.8rem;
}
.header.fixed .site .button {
	position: absolute;
	z-index: 90;
	width: 100%;
	height: 0;
	bottom: 50%;
	margin-bottom: 14px;
}

.header.fixed .site-menu {
	background-image: linear-gradient(to right, var(--menu-bg), var(--menu-bg-2));
}
.dark-theme .header.fixed .site-menu {
	background-image: linear-gradient(to right, #222, #444);
}

.header.fixed .site-menu .menux {
	margin: 0 15px;
}
.header.fixed .menux .navbar ul li {
	padding: 5px;
}
.header.fixed .menux .navbar ul li a {
	color: var(--menu-link);
}
.header.fixed .menux .navbar ul li a:hover {
	color: var(--menu-hover);
}
.dark-theme .header.fixed .menux .navbar ul li a:hover {
	color: #eb0;
}


/** Header.Mfixed */

.header.mfixed {
	position: fixed;
	width: 100%;
	z-index: 95;
	top: 0;
	background-image: linear-gradient(var(--direct-bg), var(--color-bg), var(--color-bg-2));
}
.dark-theme .header.mfixed {
	background-image: linear-gradient(to right, #111, #111);
}
.header.mfixed .site {
	position: relative;
	margin: 5px 15px 0 15px;
}
.header.mfixed .site .logo img {
	height: 30px;
	width: auto;		
	margin: 0 auto;
}
header.mfixed .site h1.name {
	font-size: 1.3rem;
}
.header.mfixed .site p.tagline {
	font-size: 0.7rem;
}

.header.mfixed .site .button {
	position: absolute;
	z-index: 90;
	width: 100%;
	bottom: 50%;
	margin-bottom: 14px;
}

.header.mfixed .menux {
	background-image: linear-gradient(to right, var(--menu-bg), var(--menu-bg-2));
}
.dark-theme .header.mfixed .menux {
	background-image: linear-gradient(to right, #222, #444);
}

.header.mfixed .menux .navbar ul li {
	padding: 3px 5px;
}
.header.mfixed .menux .navbar ul li a {
	color: var(--menu-link);
}
.dark-theme .header.mfixed .menux .navbar ul li a {
	color: #fff;
}
.header.mfixed .menux .navbar ul li a:hover {
	color: var(--menu-hover)
}
.dark-theme .header.mfixed .menux .navbar ul li a:hover {
	color: #eb0;
}

/**---------------------------------------  MENU SLIDER HEADER ----------------------------------------------------------*/

.header .menu-slide { 
	position: fixed;
	z-index: 99;
	background-image: linear-gradient(var(--direct-bg), var(--color-bg), var(--color-bg-2));
	padding: 20px 20px;    
	top: 0;
	left: -100%; 
	width: 100%; 
	height: 100%;
	overflow-y: auto;
	transition: left 0.3s ease-in-out;
}
.dark-theme .header .menu-slide { 
	background-image: linear-gradient(to left, #111, #111);
}
.header .menu-slide .sitex .logo {
	padding: 2px 0;
	position: relative;
}
.header .menu-slide .sitex .logo img {
	height: 40px;
	width: auto;
	margin: 5px 0;
}
.header .menu-slide .sitex h1.name {
	font-weight: normal;
	padding-top: 2px;
	font-size: 1.7rem;
}
.header .menu-slide .sitex h1.name a {
	text-decoration: none;
}
.header .menu-slide .sitex p.tagline {
	padding-bottom: 3px;
	font-size: 0.8rem;
}
.header .menu-slide .button {
	position: absolute;
	top: 30px;
	right: 40px;
}
.header .menu-slide ul li {
	padding: 5px 0;
	display: block;
}
.header .menu-slide ul li a {
	font-weight: bold;
	color: var(--color-text);
	font-size: 1.1em;
}
.dark-theme .header .menu-slide ul li a {
	color: #ffffff;
}

.header .menu-slide ul li a:hover {
	text-decoration: none;
	color: var(--color-hover);
}
.dark-theme .header .menu-slide ul li a:hover {
	color: #eebb00;
}
.header .menu-slide ul li ul{
	margin-left:10px; 
	padding:0;
	margin-top: 10px;
}
.header .menu-slide ul li ul li {
	padding: 5px 0;
	margin: 0;
	display: inline-block;
	width: 46%;	
}
.header .menu-slide ul li ul li a {
	font-weight: normal;
}

.header .menu-slide.active {
	left: 0;
}

.header .menu-slide .footer {
	padding: 30px 0;
} 


/**-----------------------------------------------------------  SEARCH FORM HEADER ------------------------------------------------*/

.header .searchbox {
	position: fixed;
	display: block;
	z-index: 99;
	width: 100%;
	height: 100%;
	right: -110%;
	top: 0;
	background-image: linear-gradient(var(--direct-bg), var(--color-bg), var(--color-bg-2));
	padding: 20px 15px;
	overflow: hidden;
	transition: right 0.3s ease-in-out;
	text-align: center;
}
.dark-theme .header .searchbox {
	background-image: linear-gradient(to left, #111, #111);
}
.header .searchbox.active {
	right: 0;
}

.header .searchbox .button .dark-search {
	right: 30px;
	top:30px
}

.header .searchbox .search-form {
	display: inline-block;
	border-radius: 25px;
	border: 1px solid var(--color-hd);
	width: 80%;
	margin-top: 45%;
}
.dark-theme .header .searchbox .search-form {
	border: 1px solid #ccc;
}
.header .searchbox .search-form input[type="text"] {
	width: 75%;
	font-size: 1em;
	padding: 10px 10px;
	border-radius: 25px 0 0 25px;
	text-align: center;
	border: 0;
	border-color: #666;
	border-style: solid;
}
.header .searchbox .search-form input[type="submit"] {
	width: calc(25% - 5px);
	padding: 10px 20px;
	border: 0;
	border-radius: 0 25px 25px 0;
	cursor: pointer;
	background-color: var(--color-hd);
	color: #fff;
}
.dark-theme .header .searchbox .search-form input[type="submit"] {
	background-color:#ccc;
	color: #111;
	box-shadow: none;
}
.header .searchbox .search-form input:focus {
	outline: none;
}

.advertise {
	display: none;
}

@media screen and (min-width: 768px) {  /*768 or 992 or 1200*/

	/**---------------------------------------  MENU SLIDER HEADER ----------------------------------------------------------*/
	
	.header .menu-slide { 
		padding: 20px 0;    
		width: 420px; 
		overflow-y: auto;
	}
	.header .menu-slide .sitex {
		margin-left: 35px;
	}
	.header .menu-slide ul {
		margin-left:15px; 
		padding-left:20px;
	}
	.header .menu-slide ul li ul{
		margin-left:5px; 
		padding-left:5px;
		margin-top: 10px;
	}
	.header .menu-slide ul li a {
		font-size: 1em;
	}
	.header .menu-slide .footer {
		padding: 30px 35px;
	} 

	/** ------------------------------------------------- HEADER SECTION DESKTOP ---------------------------------------------*/

	/** Header.Main */

	.header.main .site {
		height: auto;		
	}
	.header.main .site .button,
	.header.main .site .logo, 
	.header.main .site h1,
	.header.main .site p,
	.header.main .menux {
		display: block;
	}

	.header.main .banner {
		margin: 0 10px;
	}

	

	.header .menux .navbar .nav {
		width: 1000px;
	}
	.header .menux .navbar ul {
		padding: 0;
		margin: 0;
	}
	.header .menux .navbar ul li {
		padding: 15px 10px 15px 0;
	}	

	/** Header.Main */

	.header.main { display: block; }

	/** Header.Fixed */
	
	.header.fixed { display: block; }

	/** Header.Mobile.Fixed */

	.header.mfixed { display: none; }

}

@media screen and (min-width: 992px) {  /*768 or 992 or 1200*/

	.header .menux .navbar {
		overflow-x: hidden;
	}

	.ads-fly {
		position: fixed;
		top: 90px;
		width: 307px;
		display: block;
		margin: 0;
	}
}

@media screen and (min-width: 1280px) {  /*768 or 992 or 1200*/

	/** ------------------------------------------------- HEADER SECTION DESKTOP ---------------------------------------------*/

	.header.main .banner {
		margin: 0;
	}


	/**-----------------------------------------------------------  SEARCH FORM HEADER ------------------------------------------------*/

	.header .searchbox .search-form {
		width: 500px;
		margin-top: 300px;
	}

	/**----------------------------------------------*/

	.advertise {
		position: fixed;
		z-index: -1;
		width: 100%;
		top: 15px;
		display: block;
		transition: top 1s ease-in-out;
	}
	.advertise .adv-fly-top {
		width: 1280px;
		margin: auto;
	}
	.advertise .adv-fly-top .adv-2 {
		width: 1000px;
		float: left;
		
	}
	.advertise .adv-fly-top .adv-2a {
		float: left;
		width: 140px;
		text-align: right;
	}
	.advertise .adv-fly-top .adv-2a img, 
	.advertise .adv-fly-top .adv-2b img {
		width: 140px;
		height: auto;
	}
	.advertise .adv-fly-top .adv-2b {
		width: 140px;
		float: right;
	}

}