@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;
    flex-direction:column;
    background-color: #fff;
    font-family: vazir;
    font-size: 1.5rem;
    height: 100vh;
}

header {
    width: 100%;
    height: 120px;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.container {
    width: 90vw;
    margin: auto;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 0;
}

header nav ul {
    width: 25%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav .logo {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
}

.imagebox {
    position: relative;
    width: 100%;
    height: 100vh;
}

.imagebox .slides {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.imagebox .slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
}

.imagebox .slides img.show {
    opacity: 1;
}

.nextprev {
    position: absolute;
    top: 50%;
    left: 0;
    list-style: none;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.nextprev li {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
}

.nextprev li:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* به جای استفاده از آیکون و فونت آسام به صورت خلاقانه از روش زیر برای ساختن فلش استفاده شده */

.nextprev li::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border-left: 5px solid #000;
    border-bottom: 5px solid #000;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}

/* برای اینکه فلش دوم به سمت راست بچرخه از این روش استفاده کردم*/
/* به جای این روش ها میشد با کلاس کار رو راحت تر انجام داد ولی چون متفاوت بود خوشم اومد */

.nextprev li:nth-child(2)::before {
    transform: rotate(225deg);
    -webkit-transform: rotate(225deg);
    -moz-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    -o-transform: rotate(225deg);
}

