/*
 * Made by Erik Terwan
 * 24th of November 2015
 * MIT License
 *
 *
 * If you are thinking of using this in
 * production code, beware of the browser
 * prefixes.
 */

/* get rid of / adjust some MCC things */
#backdrop-max {
	display: none;
}

#sitepath {
	padding: 0px 0px 0px 0px;
}

/* move flags above level 1 menu */
#nav-main {
	display: flex;
	flex-direction: column-reverse;
}
#flags {
	margin: -15px 36px 11px 25px;
}
#flaglist {
	float: none;
}
#flaglist li {
    margin: 0 6px 0 6px;
}
img.flag {
    opacity: 0.65;
}

#nav-main .mainmenu {
  margin: 0 18px 0 18px;
  padding: 0 0 5px 0;
  background: #ffffff;
}

/* avoid blank space if no 2nd level menu, e.g. developers.html */
/* :empty doesn't work because of whitespace, so move padding to ul */
#nav-sub {
    padding-top: 0px;
}
#nav-sub ul {
	padding-top: 15px;
}

#nav-sub li {
	padding: 5px 5px 10px 15px;
}

.nav-b:link, .nav-b:visited {
    font-size: 14px;
}

#nav-main .active > div {
	/* override those for .active */
    padding: 3px 12px 3px 12px;
    background: #fff;
}

#sidebar div.sidebar-menutitle {
	width: 100%;
}
#sidebar div.sidebar-menutitle p {
	font-size: unset;
}
#sidebar .sidebar-menu {
	width: 100%;
}
.sidebar-menu ul {
	border-left: 1px solid #d3d3d3;
}

/* Hamburger stuff adjusted for MCC */
#header
{
  display: block;
  position: relative;
  top: 10px;
  left: calc(100% - 30px);
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}

#header a
{
  text-decoration: none;
  color: #232323;
  
  transition: color 0.3s ease;
}

#header a:hover
{
  color: tomato;
}


#header input
{
  display: block !important;
  width: 40px;
  height: 34px;
  position: absolute;
  top: -10px;
  left: -6px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#header .ham
{
  display: block !important;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: #cdcdcd;
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#header .ham:nth-child(2)
{
  transform-origin: 0% 0%;
}

#header .ham:nth-child(3)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#header input:checked ~ .ham
{
  opacity: 1;
  transform: rotate(45deg) translate(0px, -2px);
  background: #333333;
}

/*
 * But let's hide the middle one.
 */
#header input:checked ~ .ham:nth-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#header input:checked ~ .ham:nth-child(4)
{
  transform: rotate(-45deg) translate(-3px, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
nav
{
  position: absolute;
  width: 303px;
  left: -273px;
  margin: -37px 0;
  padding: 21px 0px 21px 0px;
  /* padding-top: 125px; */
  border-radius: 8px;
  
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

nav li
{
  padding: 10px 0;
  font-size: 22px;
}

/*
 * And let's slide it in from the left
 */
#header input:checked ~ nav
{
  transform: none;
}