@font-face {
    font-family: iransans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb.woff2') format('woff2'), url('../fonts/IRANSansWeb.woff') format('woff'), url('../fonts/IRANSansWeb.ttf') format('truetype');
  }
  
  @font-face {
    font-family: iransans-light;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb_Light.eot');
    src: url('../fonts/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb_Light.woff2') format('woff2'), url('../fonts/IRANSansWeb_Light.woff') format('woff'), url('../fonts/IRANSansWeb_Light.ttf') format('truetype');
  }
  
  @font-face {
    font-family: iransans-medium;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb_Medium.eot');
    src: url('../fonts/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb_Medium.woff2') format('woff2'), url('../fonts/IRANSansWeb_Medium.woff') format('woff'), url('../fonts/IRANSansWeb_Medium.ttf') format('truetype');
  }
  
  @font-face {
    font-family: iransans-bold;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/IRANSansWeb_Bold.eot');
    src: url('../fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'), url('../fonts/IRANSansWeb_Bold.woff') format('woff'), url('../fonts/IRANSansWeb_Bold.ttf') format('truetype');
  }
  

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: iransans-light;
}

h1, h2, h3, h4 {
    font-family: iransans-bold;
    text-transform: uppercase;
    color: #666666
}

.color-red {
    color: #ff5859
}

.color-blue {
    color: #1aabc5
}

.color-light {
    color: lightgray
}

.text-big {
    font-size: 1.5em
}

.text-small {
    font-size: .6em
}

.text-thin {
    font-weight: 100;
}

.text-spaced {
    letter-spacing: 1px
}

.tall-margin {
    margin: 6em 0;
}

.text-marked {
    background-image: url(../img/brush-stroke.jpg);
    width: 190px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: bottom;
    padding-bottom: 26px;
}

img {
    max-width: 100%
}

header {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    background-image: linear-gradient(to right, black, rgba(0, 0, 0, 0.7));
}

header h1 {
    color: white;
    display: inline-block;
    margin: 0;
    padding: 20px;
    border: 3px solid;
    text-align: center;
    position: relative;
}

header h1::before {
    content: "404";
    position: absolute;
    top: -30px;
    font-weight: 100;
    padding: 0 10px;
    background-color: black;
    left: 50%;
    transform: translateX(-50%);
}

.header-bg {
    z-index: -1;
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background-image: url(../img/header.jpg);
    transform: rotateZ(5deg);
    -webkit-animation: bg-scrolling-reverse 20s infinite;
    /* Safari 4+ */
    -moz-animation: bg-scrolling-reverse 20s infinite;
    /* Fx 5+ */
    -o-animation: bg-scrolling-reverse 20s infinite;
    /* Opera 12+ */
    animation: bg-scrolling-reverse 20s infinite;
    /* IE 10+ */
    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    -o-animation-timing-function: linear;
    animation-timing-function: linear;
}

/* Animations */

@-webkit-keyframes bg-scrolling-reverse {
    100% {
        background-position: 700px 418px;
    }
}

@-moz-keyframes bg-scrolling-reverse {
    100% {
        background-position: 700px 418px;
    }
}

@-o-keyframes bg-scrolling-reverse {
    100% {
        background-position: 700px 418px;
    }
}

@keyframes bg-scrolling-reverse {
    100% {
        background-position: 700px 418px;
    }
}

@-webkit-keyframes bg-scrolling {
    0% {
        background-position: 700px 418px;
    }
}

@-moz-keyframes bg-scrolling {
    0% {
        background-position: 700px 418px;
    }
}

@-o-keyframes bg-scrolling {
    0% {
        background-position: 700px 418px;
    }
}

@keyframes bg-scrolling {
    0% {
        background-position: 700px 418px;
    }
}

section {
    padding: 40px 0;
}

section:nth-of-type(even) {
    background-color: #edf5f9;
}

section:nth-of-type(even) .color-light {
    color: #a8b5bb;
}

.filters {
    margin-bottom: 30px;
}

.filters a {
    padding: .3em;
    color: #2c3e50;
    border-radius: 2px;
    margin: 0 5px 10px;
    letter-spacing: 1px;
    width: 80px;
    display: inline-block;
    text-transform: uppercase;
    border: 2px solid #2c3e50;
    text-decoration: none;
    font-size: .8em;
    transition: all .2s ease-out;
    cursor: pointer;
}

.filters a.active, .filters a:hover {
    background-color: #2c3e50;
    color: #e8ebef;
}

.grid {
    transition: height .3s ease-out;
    /* Match Masonry's transition */
}

.demo {
    width: 330px;
    max-width: 100%;
    height: 150px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    transition: .3s ease-out;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: 7px solid #f7f9fb;
}

.demo-new::after {
    content: "جدید";
    position: absolute;
    top: 10px;
    right: -28px;
    background-color: #1ce488;
    width: 100px;
    transform: rotate(45deg);
    color: #151f2a;
}

.demo .fa-eye {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 2em;
    text-align: center;
    line-height: 215px;
    background-color: rgba(0, 0, 0, .8);
    opacity: 0;
    transition: .3s ease-out;
    cursor: pointer;
}

.demo:hover {
    box-shadow: 0 5px 5px 5px rgba(0, 0, 0, .1), 0 5px 65px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform: translateY(-5px);
}

.demo:hover .fa-eye {
    opacity: 1;
    cursor: pointer;
}

.demo-1 {
    background-image: url(../img/demo-1.png)
}

.demo-2 {
    background-image: url(../img/demo-2.png)
}

.demo-3 {
    background-image: url(../img/demo-3.png)
}

.demo-4 {
    background-image: url(../img/demo-4.png)
}

.demo-5 {
    background-image: url(../img/demo-5.png)
}

.demo-6 {
    background-image: url(../img/demo-6.png)
}

.demo-7 {
    background-image: url(../img/demo-7.png)
}

.feature {
    margin: 30px 0
}

.buy-now p {
    text-transform: uppercase;
    margin-top: 10px;
    color: #a8b5bb;
}

.buy-now a {
    padding: 1em;
    display: inline-block;
    background-color: #1aabc5;
    color: #eef2f3;
    font-family: iransans-light;
    text-transform: uppercase;
    font-size: 1.5em;
    border-radius: 3px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.buy-now a:hover {
    color: #eef2f3;
    background-color: #1998af;
    text-decoration: none;
}

.buy-now .fa {
    font-size: 1.2em;
    margin-right: 15px;
}

footer {
    padding: 30px 0;
    background-color: #2c3e50;
}

footer p {
    font-size: 1.2em;
    margin: 0;
    text-align: center;
    color: #ecf0f1;
}

footer a {
    text-decoration: none;
}

footer img {
    vertical-align: bottom;
}


