﻿.menu a {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */

.menu,
.menu ul,
.menu ul li,
.menu ul li a,
.menu #menu-button {
    margin: 0px;
    padding: 0px;
    border: 0px;
    list-style: none;
    line-height: 1px;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

}

.menu:after,
.menu > ul:after {
    height: 0px;
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0px;
    content: ".";
}

.menu #menu-button 
{
    display: none;
}

.menu 
{
    font-family: IranSans;
    z-index: 99999;
}

.menu > ul > li 
{
    width:14.28%;
    text-align:center;
    float: right;
}

.menu > ul > li > a 
{
    padding: 27px 0px;
    font-size: 15px;
    color: #000000;
    text-decoration: none;
}

.menu > ul > li:hover > a 
{
    color: #fff;
    
}

.menu > ul > li.has-sub > a 
{
    padding-right: 10px;
    color:#181818;
}

.menu > ul > li.has-sub > a:hover
{
    color:#181818;
}

.menu > ul > li.has-sub > a:after 
{
    width: 8px;
    height: 2px;
    background-color: #000;
    display: block;
    content: '';
    position: absolute;
    top: 27px;
    right: 2px;
        
}

.menu > ul > li.has-sub > a:before 
{
    width: 2px;
    height: 8px;
    background-color: #000;
    display: block;
    content: '';
    position: absolute;
    top: 24px;
    right: 5px;
}

.menu > ul > li.has-sub:hover > a:before {
    height: 0px;
    top: 23px;
}

.menu ul ul {
    position: absolute;
    right: -9999px;
}

.menu ul ul li {
    height: 0px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.menu li:hover > ul {
    right: auto;

}

.menu li:hover > ul > li {
    height: 45px;
}

.menu ul ul ul {
    margin-right: 100%;
    top: 0px;
}

.menu ul ul li a {
    width: 250px;
    padding: 22px 15px 21px 15px;
    font-size: 13px;
    color: #181818;
    text-decoration: none;
    background-color: #ffffff;
    border-bottom: solid 1px #333333;
}

.menu ul ul li:last-child > a,
.menu ul ul li.last-item > a {
    border-bottom: 0px;
}


.menu ul ul li:hover > a,
.menu ul ul li a:hover {
    color: #fc2323;
}

.menu ul ul li.has-sub > a:after {
    width: 8px;
    height: 2px;
    background-color: #ffffff;
    display: block;
    content: '';
    position: absolute;
    top: 22px;
    left: 11px;
}

.menu ul ul li.has-sub > a:before {
    width: 2px;
    height: 8px;
    background-color: #ffffff;
    display: block;
    content: '';
    position: absolute;
    top: 19px;
    left: 14px;
}

.hvr-underline-from-center
{
    margin:10px auto 0px 0px;
    vertical-align: middle;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

.hvr-underline-from-center:before 
{
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #080808;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 50%;
  transform-origin: 50%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-underline-from-center:hover, .hvr-underline-from-center:focus, .hvr-underline-from-center:active {
    color: white;
}
.hvr-underline-from-center:hover:before, .hvr-underline-from-center:focus:before, .hvr-underline-from-center:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */

@media only screen and (max-width:1366px) 
{
    .menu > ul > li 
    {
        float: right;
        border-left: none;
    }
}
@media only screen and (max-width:1280px) 
{

}

@media only screen and (max-width:1024px) 
{

}


@media screen and (max-width:980px) 
{
    .menu > ul > li > a 
    {
        font-size: 13px;
    }
    .menu > ul > li.has-sub > a:after 
    {
        right: 12px;
    }

    .menu > ul > li.has-sub > a:before 
    {
        right: 15px;
    }
}

@media only screen and (max-width:768px) 
{
    .menu 
    {
        width: 100%;
        z-index: 9999;
    }

    .menu > ul > li 
    {
        width: auto;
    }

    .menu ul 
    {
        width: 100%;
        display: none;
        background-color: #444444;
    }

    .menu ul li 
    {
        width: 100%;
        border-top: solid 1px #333333;
    }

    .menu ul ul li,
    .menu li:hover > ul > li 
    {
        height: auto;
    }

    .menu ul li a,
    .menu ul ul li a 
    {
        width: 100%;
        font-size:13px;
        border-bottom: 0px;
        color:#ffffff;
    }


    .menu ul li a:hover 
    {
        color: #fc2323;
    }

    .menu > ul > li {
        float: none;
    }

    .menu > ul > li.has-sub > a 
    {
        padding-right: 15px;
        color:#ffffff;
    }

    .menu > ul > li.has-sub > a:hover 
    {
        color:#fc2323;
    }

    .menu ul ul li a 
    {
        /* paddinge zir zir menu */
        background: none;
        color: #ffffff;
        text-align: right;
    }

    .menu ul ul ul li a 
    {
        /* paddinge zir zir zir menu */
        text-align: right;
    }

    .menu ul ul li:hover > a,
    .menu ul ul li.active > a {
        background-color: #000000;
        color: #ffffff;
    }

    .menu ul li:hover > a,
    .menu ul li.active > a 
    {
        background-color: #000000;
        color: #fc2323;
    }

    .menu ul ul li:hover > a,
    .menu ul ul li.active > a 
    {
        background-color: #000000;
        color: #fc2323;
    }

    .menu ul ul,
    .menu ul ul ul 
    {
        width: 100%;
        margin: 0px;
        text-align: right;
        position: relative;
        right: 0px;
    }

    .menu > ul > li.has-sub > a:after,
    .menu > ul > li.has-sub > a:before,
    .menu ul ul > li.has-sub > a:after,
    .menu ul ul > li.has-sub > a:before 
    {
        display: none;
    }

    .menu #menu-button 
    {
        padding: 28px 15px 25px 0px;
        font-size: 13px;
        color: #000000;
        cursor: pointer;
        display: block;
    }

    .menu #menu-button:after 
    {
        width: 20px;
        height: 4px;
        border-top: 2px solid #000000;
        border-bottom: solid 2px #000000;
        display: block;
        content: '';
        position: absolute;
        top: 22px;
        left: 17px;
    }

    .menu #menu-button:before 
    {
        width: 20px;
        height: 2px;
        background-color: #000000;
        display: block;
        content: '';
        position: absolute;
        top: 34px;
        left: 17px;
    }

    .menu #menu-button.menu-opened:after 
    {
        width: 15px;
        height: 2px;
        background-color: #000000;
        border: 0px;
        top: 23px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .menu #menu-button.menu-opened:before 
    {
        width: 15px;
        background-color: #000000;
        top: 23px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .menu .submenu-button 
    {
        width: 46px;
        height: 46px;
        border-left: 1px solid rgba(0,0,0,0.2);
        display: block;
        cursor: pointer;
        z-index: 99;
        position: absolute;
        left: 0px;
        top: 0px;
    }

    .menu .submenu-button.submenu-opened 
    {
        /* selected plus icon */
        background-color: #000000;
        height:55px;
    }

    .menu ul ul .submenu-button 
    {
        height: 34px;
        width: 34px;
    }

    .menu .submenu-button:after {
        width: 8px;
        height: 2px;
        background-color: #ff0000;
        display: block;
        content: '';
        position: absolute;
        top: 27px;
        right: 19px;
    }

    .menu ul ul .submenu-button:after 
    {
        top: 15px;
        right: 13px;
    }

    .menu .submenu-button.submenu-opened:after 
    {
        background-color: #ffffff;
    }

    .menu .submenu-button:before {
        width: 2px;
        height: 8px;
        background-color: #ff0000;
        display: block;
        content: '';
        position: absolute;
        top: 24px;
        right: 22px;
    }

    .menu ul ul .submenu-button:before 
    {
        top: 12px;
        right: 16px;
    }

    .menu .submenu-button.submenu-opened:before 
    {
        display: none;
    }
}

/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
    
