/*
 * Made by Erik Terwan
 * 24th of November 2015
 * All rights reserved
 *
 *
 * If you are thinking of using this in
 * production code, beware of the browser
 * prefixes.
 */

.topcontrols span {
    vertical-align: middle;
    line-height: 25px;
}

#burger a {
    text-decoration: none;
    color: #232323;

    transition: color 0.3s ease;
}

#burger a:hover {
    color: tomato;
}

#burger {
    display: inline-block;
    position: relative;
    top: 0px;
    left: 0px;
    width: 20px;

    z-index: 1;

    -webkit-user-select: none;
    user-select: none;
    margin-top: 0px;
    padding-right: 4px;
}

#burger input {
    display: block;
    width: 20px;
    height: 16px;
    position: absolute;
    // top: -7px;
    // left: -5px;

    cursor: pointer;

    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */

    -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#burger span {
    display: block;
    width: 20px;
    height: 4px;
    margin-top: 3px;
    margin-bottom: 2px;
    position: relative;

    background: red;
    //#cdcdcd;
    border-radius: 3px;

    z-index: 1;
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#burger_menu {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;

    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);
}

#burger_menu li {
    padding: 10px 0;
    font-size: 22px;
}

/*
 * And let's slide it in from the left
 */
#burger input:checked ~ ul {
    transform: none;
}