﻿@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: normal;
    src: url('/content/fonts/eot/iranyekanwebregular(fanum).eot');
    src: url('/content/fonts/eot/iranyekanwebregular(fanum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('/content/fonts/woff2/iranyekanwebregular(fanum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('/content/fonts/woff/iranyekanwebregular(fanum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('/content/fonts/ttf/iranyekanwebregular(fanum).ttf') format('truetype');
}

html, body {
    font-family: iranyekan, BNazanin, Tahoma;
    padding: 0;
    margin: 0;
    height: 100%;
    direction: rtl;
    direction: rtl;
}

body {
    background-color: #eee;
}

#slides {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    opacity: 1;
    z-index: 9998;
    display: none;

}
    #slides > div:nth-child(2) {
        width:auto;
        height: auto;
        text-align:center;
        vertical-align:middle;
    }
    #slides > div:nth-child(2) > img {
        margin:auto;

    }
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    opacity: .6;
    z-index: 9997;
    display: none;
}

    #lightbox > div {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

* {
    font-family: iranyekan, BNazanin, Tahoma !important;
    font-size: 13px !important;
    line-height: 24px;
}

h1, h2, h3 {
    font-weight: bold !important;
}

button.primary {
    background: #1087ff;
    border: 1px solid #003eff;
    color: #fff;
}

    button.primary:visited {
        background: #1087ff;
        border: 1px solid #003eff;
        color: #fff;
    }

    button.primary:hover {
        background: #007fff;
        border: 1px solid #007fff;
        color: #fff;
    }

    button.primary:focus {
        background: #007fff;
        border: 1px solid #007fff;
        color: #fff;
    }

    button.primary:active {
        background: #0179f2;
        border: 1px solid #003eff;
        color: #fff;
    }

#banner {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

    #banner > #logo {
        width: 50%;
    }

    #banner > div {
        width: 50%;
        float: left;
    }

        #banner > div > div:first-child {
            height: 20px;
        }

        #banner > div > h1:last-child {
            background-color: #ffea00;
            margin-bottom: 4px;
            padding: 0 4px;
            font-weight: normal !important;
        }

#resend {
    cursor: pointer;
}

#sponsor {
    direction: rtl;
    color: #999;
    margin: 0 auto;
}

    #sponsor > p {
        margin: 0;
        padding: 4px 10px;
    }
form{
    height:100%;
}
#main {
    direction: rtl;
    background-color: #fff;
    margin: 0 auto;
    position: relative;
}

    #main > div {
        padding: 10px;
    }

.box {
    margin-top: 4px;
    padding: 1px 0;
    position: relative;
    height: 30px;
}

    .box > span:first-child {
        position: absolute;
        top: 3px;
        right: 0;
    }

    .box > span:nth-child(2) {
        position: absolute;
        top: 5px;
        left: 0;
    }

.vjet {
    margin: 10px 0 0 0;
}

input.error {
    color: red;
    border-color: red;
    background-color: #ffe4e4;
}

.vjet .error {
    color: red;
    border-color: red;
    display: block;
}

.vjet button {
    margin-bottom: 6px;
}

.parbal-table {
    background-color: greenyellow;
    display: inline-block;
    width: 100%;
    height: 36px;
}

    .parbal-table > span:first-child {
        float: right;
        line-height: 36px;
        margin-right: 6px;
    }

    .parbal-table > span:nth-child(2) {
        float: left;
        line-height: 36px;
        margin-left: 6px;
    }

button {
    margin: 0;
    width: 100%;
}

.hidden {
    display: none;
}



#result > #report {
    padding: 10px;
    background-color: #e6ffa9;
    border: 1px dashed #808080;
}

    #result > #report > div {
        padding: 4px 10px;
        background-color: #fff;
        border: 1px solid #999;
        margin-bottom: 4px;
    }

        #result > #report > div:last-child {
            margin-bottom: 0;
        }

#forecast input[type=text] {
    width: 40px;
}


/*----------------------------------------------------------------*/
#menu {
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display:none;
    opacity:1;
}

    #menu > div:first-child {
        height: 80px;
        border-bottom: 1px solid #999;
    }

#menubutton {
    position: absolute;
    top: 20px;
    left: 20px;
}

#menubt {
    margin-top: 6px;
    display: inline-block;
    cursor: pointer;
    opacity: .8;
}

    #menubt:hover {
        opacity: 1;
    }

    #menubt > div {
        width: 35px;
        height: 5px;
        background-color: #333;
        margin: 6px 0 0 0;
        transition: 0.4s;
    }

    /* Rotate first bar */
    #menubt.change .bar1 {
        background-color: #333;
        -webkit-transform: rotate(-45deg) translate(-8px, 8px);
        transform: rotate(-45deg) translate(-7px, 7px);
    }
    /* Fade out the second bar */
    #menubt.change .bar2 {
        opacity: 0;
    }

    /* Rotate last bar */
    #menubt.change .bar3 {
        background-color: #333;
        -webkit-transform: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
    }

#menubt {
    position: relative;
}

#close{
    position:absolute;
    top:10px;
    left:10px;
    z-index:9999;
    cursor: pointer;
}
    #close > div {
        width: 35px;
        height: 5px;
        background-color: #fff;
        margin: 16px 0 0 0;
        transition: 0.4s;
    }
/* Rotate first bar */
#close .bar1 {
    -webkit-transform: rotate(-45deg) translate(-8px, 8px);
    transform: rotate(-45deg) translate(-7px, 7px);
}

    /* Rotate last bar */
    #close .bar2 {
        -webkit-transform: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
    }
/*----------------------------------------------------------------*/
#notifications {
    max-height: 100%;
    width: 300px; /*responsive*/
    position: fixed;
    display: block;
    margin: 0;
    padding: 0;
    left: 10px;
    bottom: 10px;
    z-index: 9999;
}

    #notifications > li {
        min-height: 20px; /*responsive*/
        width: 100%;
        float: left;
        display: inline-block;
        background-color: #5cb85c;
        border: 1px solid #3a913a;
        text-shadow: 1px 1px 1px #3a913a;
        margin: 0;
        padding: 18px 0;
        margin-top: 10px;
        position: relative;
    }

        #notifications > li.error {
            background-color: #e74c3c;
            border: 1px solid #cc392a;
            text-shadow: 1px 1px 1px #cc392a;
        }

        #notifications > li > i {
            position: absolute;
            top: 2px;
            left: 2px;
            background: url('images/close.png') no-repeat center; /*--------------------------------*/
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        #notifications > li > span {
            color: #fff;
            margin: 0 20px;
            display: block;
        }


input[type=text], input[type=tel] {
    min-width: 300px;
    padding: 4px 4px;
    margin: 8px 0;
    box-sizing: border-box;
}

@media screen and (min-width:1281px) { /*hi-res laptops and desktops*/
    #main, #sponsor {
        width: 50%;
    }
}

@media screen and (min-width:1025px) and (max-width:1280px) { /*big landscape tablets, laptops, and desktops*/
    #main, #sponsor {
        width: 50%;
    }
}

@media screen and (min-width:961px) and (max-width:1024px) { /*tablet, landscape iPad, lo-res laptops ands desktops*/
    #main, #sponsor {
        width: 70%;
    }
}

@media screen and (min-width:641px) and (max-width:960px) { /*portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones*/
    #main, #sponsor {
        width: 70%;
    }
}

@media screen and (min-width:481px) and (max-width:640px) { /*portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide.*/
    #main {
        width: 100%;
    }

    #user > span {
        display: none;
    }
}

@media screen and (max-width:480px) { /*smartphones, iPhone, portrait 480x320 phones*/
    #main, #sponsor {
        width: 100%;
    }

    #user > span {
        display: none;
    }

    input[type=text], input[type=tel] {
        width: 100%;
        min-width: 100px;
    }
}

input.slider {
    width: 100px !important;
    min-width: 100px;
}
