/* ======= Author: P.Alaei ==============
   ======= Created on: 26.12.2017 ======= */


/* ===========================================================================================
   ======= General classes ======= */

html,
body {
    /* This line is needed for always-on-bottom footer solution. */
    height: 100%;
}

body {
    /* These two lines are needed for always-on-bottom footer solution. */
    display: flex;
    flex-direction: column;
    /* Bootstrap's fixed-navbar height (85px Main menu + 28px User bar) */
    padding-top: 113px;
    font-family: 'IranSans';
}

.reveal {
    border: 1px solid goldenrod;
}


/* ======= Material z-depths ======= */

.ny-z-depth-1 {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

.ny-z-depth-2 {
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.ny-z-depth-3 {
    box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.3);
}

.ny-z-depth-4 {
    box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.3);
}

.ny-z-depth-5 {
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.3);
}


/* ======= Namayeyar Colors ======= */


/* === Colors === */

.ny-blue {
    color: #2196f3;
}

.ny-blue-dark {
    color: #0069c0;
}

.ny-blue-light {
    color: #6ec6ff;
}

.ny-orange {
    color: #ff9800;
}

.ny-orange-dark {
    color: #c66900;
}

.ny-orange-light {
    color: #ffc947;
}

.ny-teal {
    color: #009688;
}

.ny-teal-dark {
    color: #00675b;
}

.ny-teal-light {
    color: #52c7b8;
}


/* === backgrounds === */

.ny-bg-blue {
    background-color: #2196f3;
}

.ny-bg-blue-dark {
    background-color: #0069c0;
}

.ny-bg-blue-light {
    background-color: #6ec6ff;
}

.ny-bg-orange {
    background-color: #ff9800;
}

.ny-bg-orange-dark {
    background-color: #c66900;
}

.ny-bg-orange-light {
    background-color: #ffc947;
}

.ny-bg-teal {
    background-color: #009688;
}

.ny-bg-teal-dark {
    background-color: #00675b;
}

.ny-bg-teal-light {
    background-color: #52c7b8;
}


/* ======= Text/link/button coloring ======= */

*::selection {
    /* Text highlight color */
    background: #0069c0;
    color: #fff;
}

.boldify {
    color: rgb(0, 77, 64);
    font-size: 1.2em;
    font-weight: bold;
}

.boldify-link {
    color: #2196f3;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.boldify-link:hover,
.boldify-link:active,
.boldify-link:focus {
    text-decoration: none;
}

.ny-btn-blue {
    background-color: #2196f3;
    color: #fff;
    border: none;
    border-color: transparent;
    outline: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.ny-btn-blue:hover,
.ny-btn-blue:active,
.ny-btn-blue:focus {
    background-color: #00897b;
    color: #fff;
}

.ny-btn-orange {
    background-color: #ff9800;
    color: #000;
    border: none;
    border-color: transparent;
    outline: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.ny-btn-orange:hover,
.ny-btn-orange:active,
.ny-btn-orange:focus {
    background-color: #c66900;
    color: #fff;
}


/* ======= link/text hover effects ======= */

.hover-effect-white {
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.hover-effect-white:hover,
.hover-effect-white:active,
.hover-effect-white:focus {
    color: #fff;
}

.hover-effect-teal {
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.hover-effect-teal:hover,
.hover-effect-teal:active,
.hover-effect-teal:focus {
    color: #009688;
}


/* ======= Bootstrap columns' padding reset ======= */

[class*='col-'].no-gutter {
    padding-right: 0;
    padding-left: 0;
}


/* ======= Bootstrap tooltip fix ======= */

*.tooltip>.tooltip-inner {
    min-width: 60px;
    max-width: 320px;
    font-family: "IranSans";
    font-size: 1.06em;
    white-space: nowrap;
}


/* ======= Bootstrap buttons' border and outline removal ======= */

a.btn-remove-border,
a.btn-remove-border:active,
a.btn-remove-border:focus,
.btn.btn-remove-border,
.btn.btn-remove-border:active,
.btn.btn-remove-border:focus {
    border: none;
    border-color: transparent;
    outline: 0;
    text-decoration: none;
}

.btn.btn-remove-outline:focus {
    outline: 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}


/* ======= Bootstrap modals ======= */

.modal-header-primary {
    color: #fff;
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    background-color: #428bca;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.modal-header-info {
    color: #fff;
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    background-color: #5bc0de;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.modal-header-success {
    color: #fff;
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    background-color: #5cb85c;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.modal-header-warning {
    color: #fff;
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    background-color: #ff9634;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.modal-header-danger {
    color: #fff;
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
    background-color: #d9534f;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}


/* ======= Material switch ======= */


/* to change the color of switch, use bootstrap label classes for the labels (eg. label-primary) */

.material-switch {
    display: inline-block;
    position: relative;
    text-align: right;
}

.material-switch>input[type="checkbox"] {
    display: none;
}

.material-switch>label {
    cursor: pointer;
    height: 0px;
    position: relative;
    width: 40px;
    margin-bottom: 0;
}

.material-switch>label::before {
    background: rgb(0, 0, 0);
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    content: '';
    height: 14px;
    margin-top: -9px;
    position: absolute;
    opacity: 0.3;
    transition: all 0.4s ease-in-out;
    width: 34px;
}

.material-switch>label::after {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    content: '';
    height: 20px;
    left: 4px;
    margin-top: -8px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease-in-out;
    width: 20px;
}

.material-switch>input[type="checkbox"]:checked+label::before {
    background: inherit;
    opacity: 0.5;
}

.material-switch>input[type="checkbox"]:checked+label::after {
    background: inherit;
    left: 24px;
}


/* ======= Perfect Scrollbar always-visible ======= */

.ps__rail-x,
.ps__rail-y {
    opacity: 0.6;
}


/* ===========================================================================================
   ======= Header and navbar ======= */

.navbar {
    margin-bottom: 0;
    border-bottom: 0;
    background-color: #f5f5f5;
    box-shadow: 0px 0px 12px 0px rgb(97, 97, 97);
}


/* ======= User top bar ======= */

.user-bar {
    padding: 0 8%;
    background-color: #263238;
}

.user-bar-flex {
    display: flex;
    align-items: center;
    font-size: 0.80em;
    color: #fff;
}

.user-login-link {
    /* All of the styles for this element are the same as '.user-logout-link'.
       Edit both of them accordingly. */
    margin-right: auto;
    font-size: 1.04em;
    border-radius: 0;
    color: #f5f5f5;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.user-login-link:hover,
.user-login-link:active,
.user-login-link:focus {
    background-color: #FAFAFA;
    color: #0069c0;
}

.user-login-link i {
    margin-left: 4px;
    font-size: 1.44em;
    vertical-align: middle;
}

.user-login-info {
    padding-left: 8px;
    margin: 0;
}

.user-login-info a {
    padding: 6px 2px;
    font-size: 1.04em;
    color: #f5f5f5;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.user-login-info a:hover,
.user-login-info a:active,
.user-login-info a:focus {
    color: #f5f5f5;
}

.user-login-loc {
    padding-left: 10px;
    margin: 0;
    margin-right: auto;
    color: #f5f5f5;
}

.user-login-loc span {
    margin-right: 4px;
}

.user-logout-link {
    /* All of the styles for this element are the same as '.user-login-link'.
       Change accordingly. */
    margin-right: auto;
    font-size: 1.04em;
    border-radius: 0;
    color: #f5f5f5;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.user-logout-link:hover,
.user-logout-link:active,
.user-logout-link:focus {
    background-color: #FAFAFA;
    color: #0069c0;
}

.user-logout-link i {
    margin-left: 4px;
    font-size: 1.44em;
    vertical-align: middle;
}


/* ======= Main menu ======= */

.navbar-wrapper {
    padding: 0 8%;
}

.navbar-header .navbar-toggle {
    margin-top: 24px;
}

.navbar-header .navbar-brand.ny-logo-img {
    width: 174px;
    height: 84px;
    padding: 0;
    padding-top: 8px;
    padding-bottom: 14px;
    margin: 0;
}

.ny-logo-img img {
    height: 100%;
}

.navbar-collapse .navbar-nav {
    padding-top: 16px;
}

.navbar-collapse .navbar-nav>li>a {
    padding-top: 16px;
    padding-bottom: 16px;
}

.navbar-login-btn-wrap {
    padding-left: 24px;
}

.navbar-collapse .navbar-nav .navbar-login-btn {
    padding: 10px 14px 8px;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.navbar-collapse .navbar-nav .navbar-login-btn:hover,
.navbar-collapse .navbar-nav .navbar-login-btn:focus {
    background-color: #009688;
    color: #fff;
}

.navbar-collapse .navbar-nav .navbar-create-btn {
    padding: 10px 10px 8px 14px;
    border-radius: 2px;
    font-size: 1.1em;
    color: #fff;
    background-color: #2196f3;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.navbar-collapse .navbar-nav .navbar-create-btn:hover,
.navbar-collapse .navbar-nav .navbar-create-btn:focus {
    box-shadow: none;
    background-color: #009688;
    color: #fff;
}

.navbar-collapse .navbar-nav .navbar-create-btn i {
    margin-left: 4px;
    vertical-align: middle;
}

.navbar-collapse .navbar-nav .navbar-create-btn label {
    margin: 0;
    cursor: inherit;
}


/* ===========================================================================================
   ======= Breadcrumb ======= */

.breadcrumb {
    padding: 9px 15px;
    margin: 0;
    margin-bottom: 20px;
    list-style: none;
    border-radius: 1px;
    background-color: #fff;
}

.breadcrumb li {
    margin-right: 15px;
}

.breadcrumb li a:hover {
    text-decoration: none;
}


/* ===========================================================================================
   ======= Main page ======= */

.flex-fix-wrapper {
    /* Applies to 'main-wrapper' upper div to create always-on-bottom footer. */
    flex: 1 0 auto;
}

.main-wrapper {
    background-color: #FAFAFA;
}

.theme {
    padding: 22px 8% 34px;
}

.intro-img {
    /* this element's height is being handled in the media queries. */
    position: relative;
    background: url('../../img/intro-bg.jpg') no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.intro-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.partners-wrap {
    background-color: #37474F;
}

.partners-head {
    padding: 40px 10px 20px;
    text-align: center;
}

.partners-head h3 {
    margin: 0;
    color: #fff;
}

.partners-row {
    padding: 14px 0 30px;
    text-align: center;
}

.partners-shrinker {
    display: inline-block;
    float: none;
    text-align: center;
}

.partners {
    /* The first two lines of this style is to center Bootstrap's col-md-3 */
    display: inline-block;
    float: none;
    padding: 8px 14px;
}

.partners-content {
    padding: 6px 0 10px;
    border-radius: 7px;
    background-color: #fff;
}

.partners-content a {
    text-align: center;
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.partners-content a img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

.partners-content a label {
    padding-bottom: 10px;
    margin: 0;
    margin-bottom: 6px;
    display: block;
    font-size: 1.2em;
    cursor: inherit;
}

.pajoohyar-link a label {
    border-bottom: 2px solid rgb(255, 87, 34);
}

.samim-link a label {
    border-bottom: 2px solid rgb(0, 137, 123);
}

.virastyar-link a label {
    border-bottom: 2px solid rgb(41, 182, 246);
}

.partners-content a p {
    margin: 0;
    font-size: 0.80em;
}


/* ===========================================================================================
   ======= Footer ======= */

.footer {
    padding: 16px 0 12px;
    background-color: #282E3C;
    color: #fff;
}

.footer-links {
    padding-bottom: 10px;
    text-align: center;
}

.footer-links a {
    padding: 2px 6px 0;
    color: #8dd4ff;
}

.footer-statement {
    text-align: center;
}

.footer-statement p {
    margin: 0;
    font-size: 0.80em;
    line-height: 1.8;
    color: #dadada;
}

.footer-statement p a {
    padding: 0 2px 2px;
    font-size: 1.1em;
    color: #8dd4ff;
}


/* ===========================================================================================
   ======= Third-party modules fixes ======= */


/* ======= Angucomplete-alt ======= */

.document-search .angucomplete-dropdown {
    /* Initial width was 250px */
    width: 100%;
    /* Initial z-index was 9999 */
    z-index: 2000;
    /* Initial margin-top was -6px */
    margin-top: -4px;
}

.document-search .angucomplete-dropdown {
    max-height: 220px;
    overflow-y: auto;
}

.hide-me {
    display: none;
}