
$menu-width: 250px;
$menu-height: 200px;
$background: white;
$border-color: #e9e9e9;
$img-height: 36px;
$gap-height: 0;
$headerbar: 1014px;

header{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 52px;
    background: white;
    border: 1px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(26,26,26,.1);

    @media only screen and (max-width: 767px){
        height: 200px;
        border-width: 0;
        padding: 0;
    }
}

nav.headerbar{
    width: $headerbar;
    height: 100%; 
    display: flex;

    div {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .headerbar-menu{
        flex-grow: 3;

        #headerbar-search{
            flex-grow: 1;
            margin-right: 200px;
            background: #f6f6f6;
            height: 68%;
            border: 1px solid #ebebeb;

            svg,img{
                height: 70%;
                fill: #8590a6;
                padding-right: 5px;
                margin-right: 0;
            }
        }

        input[name=search]{
            border-width: 0;
            flex-grow: 1;
            outline: none;
            height: 100%;
            background: transparent;
            font-size: 1.0em;
            font-weight: 300;
            color: #8590a6;
            padding-left: 0.5em;
        }
    }

    img {
        height: 80%;
        margin-left: 5px;
        margin-right: 5px;
    }

    .headerbar-info img {
        border-radius: 50%;
    }


}


#menu-card{
    width: $menu-width;
    height: $menu-height;
    border: 1px solid $border-color;
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    box-shadow: 1px 1px 0 0 rgba(0,0,0,0.1), 2px 2px 0 0 rgba(0,0,0,0.07);
    background-color: white;
    

    div {

        display: flex;
        justify-content: center;

        &:hover{
            cursor: pointer;
        }
        flex: 0 0 33.3%;
        height: 50%;

        $top-offset: -12%;

        svg {
            width: $img-height;
            // transform: translateY(-12%);
            margin-top: $top-offset;
        }
        
        img {
            width: $img-height;
            // transform: translateY(-12%);
            margin-top: $top-offset;
        }

        &::after {
          content: attr(data-alter);
          display: block;
          position: absolute;
          transform: translateY($menu-height/4 + $img-height/2 + $gap-height);
      }
    }
}


$ad-width-a: $headerbar;
$ad-height-a: 100px;
$ad-width-b: 100px;
$ad-height-b: 600px;

footer{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #fff;
    .ad-display{
        width: $ad-width-a;
        border: 1px dashed #c0c0c0;

        img {
            // width: 100%;
            // height: 100%;
        }
    }
}
