header {
	width: 100%;
	margin: 0;
	padding: 0;
  text-align: center;
  background: #ccc;
  /* position:fixed; */
  z-index: 100;
}

header a:link,
header a:visited {
  color: #fff;
  opacity: 1;
}
header a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/*  */

.Headbar {
	/* padding: 16px 16px 4px; */
	padding: 0 16px 4px;
	display: grid;
	grid-template-columns: 1fr 3fr 1fr;
	grid-gap: 0;
	z-index: 2;

}

/* @media (min-width: 800px) {
  .Headbar {
	grid-template-columns: 1fr 10fr 240px;
  }
} */

/*  */
#nav-drawer {
	position: relative;
  text-align: left;
	/*  */
	padding-top: 16px;
}

.nav-unshown {
	display:none;
}

#nav-open {
	display: inline-block;
	width: 48px;
	height: 24px;
	vertical-align: middle;
}

#nav-open span,
#nav-open span:before,
#nav-open span:after {
	position: absolute;
	height: 2px;
	width: 26px;
	border-radius: 2px;
	background: #fff;
	display: block;
	content: '';
	cursor: pointer;
}
#nav-open span:before {
	bottom: -7px;
}
#nav-open span:after {
	bottom: -14px;
}

#nav-close {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: .24s ease-in-out;
}

#nav-content {
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 72%;
    max-width: 360px;
    height: 100%;
    background-color: rgb(240, 240, 240);
    transition: .2s ease-in-out;
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
}

#nav-input:checked ~ #nav-close {
    display: block;
    opacity: .5;
}

#nav-input:checked ~ #nav-content {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
    box-shadow: 6px 0 25px rgba(0,0,0,.12);
}

/*  */

#nav-content h2 {
	width: 200px;
	margin: 24px auto;
	padding: 24px 0 0;
}

#nav-content ul	{
	width: 88%;
	margin: 0 24px 48px 24px;
	padding: 0;
  list-style: none;
}

#nav-content ul li {
	font-size: 14px;
	margin: 6px 0 0;
	padding: 12px 0 6px;
	border-top: 1px dotted #ddd;
}

#nav-content ul li:last-child {
  border-bottom: 1px dotted #ddd ;
  padding-bottom: 12px;

}

/*  */
.HeadLogo {
	padding: 12px 0 0;
	/* margin: -6px auto 0; */
	margin: -6px auto 0;
	font-size: 18px;
	line-height: 32px;
	color: #fff;
	letter-spacing: 0.06em;
  text-align: center;
}


#nav-content ul li a:link,
#nav-content ul li a:visited {
  color: #777;
}

#nav-content ul li a:hover {
  color: #9a0100;
  opacity: 1;
}

/*  */
.HeadNav {
  text-align: right;
	padding: 0;
	margin: 0;
	font-size: 1.8rem;
  font-weight: 600;
}

.HeadNav ul {
  list-style: none;
  margin: 12px 24px 0 0;
  padding: 0;
}

.HeadNav ul li {
  display: inline;
  margin: 0 6px;
  font-size: 1.8rem;
}

.HeadNav a {
  padding: 12px;
}

.HeadNav a:link,
.HeadNav a:visited {
  box-shadow: inset 0 0 0 0 #9b0100;
  color: #9b0100;
  transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
  /* color: #9b0100;
  background: rgba(255, 255, 255, 1);
  opacity: 1; */
}

.HeadNav a:hover {
  color: #ffed44;
  box-shadow: inset 200px 0 0 0 #9b0100;
  opacity: 1;
  /* color: #ffed44;
  background: rgba(155, 1, 0, 1);
  opacity: 1; */
}

@media (max-width: 799px){
  .HeadNav { display:none }
}

/*  */


.HeadLogo a:link img,
.HeadLogo a:visited img {
  opacity: 1;
  transition: all .2s;
}
  
.HeadLogo a img:hover {
  opacity: 0.7;
}


/* ======================================================================== */