@font-face {
    font-family: 'vazir';
    src: url('/font/vazir.eot'); /* IE9 Compat Modes */
    src: url('/font/vazir.eot') format('embedded-opentype'), /* IE6-IE8 */
         url('/font/Vazir.woff2') format('woff2'), /* Super Modern Browsers */
         url('/font/vazir.woff') format('woff'), /* Pretty Modern Browsers */
         url('/font/vazir.ttf')  format('truetype'); /* Safari, Android, iOS */
        /* url('webfont.svg#svgFontName') format('svg');*/ /* Legacy iOS */
  }

  * , *::after , *::before {
      box-sizing: border-box;
      padding: 0;
      margin: 0;
}

body {
    direction: rtl;
    display: flex;
    background-color: #fff;
    font-family: vazir;
    font-size: 1.5rem;
    height: 100vh;
}

.fullmenu {
    position: fixed;
    top: -100%;
    left: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #282750;
    transition: all 0.5s ease-out;
    -webkit-transition: all 0.5s ease-out;
    -moz-transition: all 0.5s ease-out;
    -ms-transition: all 0.5s ease-out;
    -o-transition: all 0.5s ease-out;
}

.fullmenu.show {
    top: 0;
}

.menuimg {
    position: relative;
    min-width: 600px;
    height: 100%;
}

.menuimg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu ul {
    position: relative;
}

.menu ul li {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 0 5px;
    margin: 5px 0;
    overflow: hidden;
}
/* وقتی موس روی لیست میره یک هاور جذاب ایجاد میکنه */
.menu ul li::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #ff3f59;
    transform: scaleY(0);
    -webkit-transform: scaleY(0);
    -moz-transform: scaleY(0);
    -ms-transform: scaleY(0);
    -o-transform: scaleY(0);
    transition: transform 0.3s ease-in-out;
    -webkit-transition: transform 0.3s ease-in-out;
    -moz-transition: transform 0.3s ease-in-out;
    -ms-transition: transform 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out;
    transform-origin: bottom;
}

.menu ul li:hover::before {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -o-transform: scaleY(1);
    transform-origin: top;
}

.menu ul li a {
    position: relative;
    display: block;
    text-decoration: none;
    font-size: 3.2rem;
    font-weight: 750;
    color: #fff;
    transition: transform 0.3s ease-in-out;
    -webkit-transition: transform 0.3s ease-in-out;
    -moz-transition: transform 0.3s ease-in-out;
    -ms-transition: transform 0.3s ease-in-out;
    -o-transition: transform 0.3s ease-in-out;
}
/* روش جالبیه برای عوض کردن کانتنت */
.menu ul li a::before {
    content: attr(data-text);
    position: absolute;
    bottom: -100%;
    right: 0;
    color: #fff;
}

.menu ul li:hover a {
    transform: translateY(-100%);
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
}

.hamburger {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    background-image: url('../pic/hamburger.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
}

.hamburger.close {
    background-image: url('../pic/close.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}