/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    /* overflow-y: hidden; */
    /* height: 100vh; */
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */
::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio, canvas, iframe, img, svg, video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */
.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers
 */
.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
    /* 1 */
}

    /*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */
    .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
        clip: auto;
        -webkit-clip-path: none;
        clip-path: none;
        height: auto;
        margin: 0;
        overflow: visible;
        position: static;
        width: auto;
        white-space: inherit;
    }

/*
 * Hide visually and from screen readers, but maintain layout
 */
.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before, .clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
    *, *:before, *:after {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

        a[href]:after {
            content: " (" attr(href) ")";
        }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after, a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre, blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr, img {
        page-break-inside: avoid;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }

    h2, h3 {
        page-break-after: avoid;
    }
}

.padding_space {
    padding: 15px;
}

.mainBody {
    /*background: url('../images/bluesky-bg.png') no-repeat;
    background-size: cover;*/
    position: relative;
    /* padding-bottom: 60px; */
    overflow-y: hidden;
    background-color: #fce7eb
}

#mainWrapper {
    position: relative;
    width: 100%;
    height: calc(100vh);
    display: block;
    background: url('../images/bg/Main-BG-Repeat.png') no-repeat;
    background-position: center center;
    background-size: cover;
    /* background-size: 100%; */
}

/* Main Building */
img.main_building {
    height: 100%;
    z-index: 10;
    max-width: 526px;
    object-fit: contain;
    vertical-align: bottom;
    bottom: 0;
    width: auto !important;
    object-position: bottom;
    display: none;
}

.building_wrapper {
    height: 100%;
    text-align: center;
    position: relative;
}

.building {
    height: calc(100% - 30px);
    z-index: 10;
}

/* End of Main Building */
/* Narrator Wrapper */
.narrator_wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 5%;
    width: 250px;
    height: 200px;
    background: rgba(255, 249, 246, 0.89);
    border-radius: 7px;
}

.narrator_icon_top_left {
    position: absolute;
    left: 15px;
    top: 0px;
}

.narrator_text {
    color: #222;
    font-size: 19px;
    text-align: center;
    padding: 20px 30px 20px 30px;
    line-height: 30px;
    direction: rtl;
}

/* End of Narrator Wrapper */
/* About Button Wrapper */
.about_button_wrapper {
    position: absolute;
    top: 4%;
    left: 5%;
}

.about_button {
    border: 3px solid #fff;
    border-radius: 11px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    padding: 6px 20px 10px 20px;
    line-height: 40px;
    direction: rtl;
    text-decoration: none;
    font-weight: normal;
}

.modal-content {
    direction: rtl;
    text-align: justify;
}

.btn-flat {
    text-align: center;
}

/* End of About Button Wrapper */
/* Right Panel Wrapper */
.right_panel_wrapper {
    position: absolute;
    top: 40%;
    transform: translateY(-40%);
    right: 5%;
    width: 250px;
    min-height: 300px;
    background: rgba(51, 53, 53, 0.7);
    border-radius: 7px;
}

    /*.right_panel_wrapper .welcome {
        color: yellow;
        direction: rtl;
        text-align: center;
        font-size: 2.5rem;
    }*/

/* label focus color */
.input-field label {
    color: #fff !important;
}

/* label underline focus color */
input:not([type]), input[type=text]:not(.browser-default), input[type=password]:not(.browser-default), input[type=email]:not(.browser-default), input[type=url]:not(.browser-default), input[type=time]:not(.browser-default), input[type=date]:not(.browser-default), input[type=datetime]:not(.browser-default), input[type=datetime-local]:not(.browser-default), input[type=tel]:not(.browser-default), input[type=number]:not(.browser-default), input[type=search]:not(.browser-default), textarea.materialize-textarea {
    border: 1px solid #484848 !important;
    border-radius: 5px;
    /* box-shadow: 0 1px 0 0 #717070 !important; */
    color: #717070;
    direction: rtl;
    /* text-align: left; */
    padding-right: 10px;
    background: white;
}

.input-field {
    margin-top: 0 !important;
}

.btn, .btn-large, .btn-flat {
    width: 100%;
    line-height: 36px;
    padding: 0 1rem;
    direction: rtl;
}

.register_button {
    background-color: white;
    border: 2px solid red;
    border-radius: 5px;
    color: red;
    /* padding-top: 0; */
    line-height: 30px;
}

.btn.register_button:hover, .btn-large.register_button:hover {
    background-color: red;
    color: white;
    border-color: white;
}

.start_button {
    background-color: red;
    border: 2px solid red;
    border-radius: 5px;
    color: white;
    /* padding-top: 0; */
    line-height: 30px;
}

.btn.start_button:hover, .btn-large.start_button:hover {
    background-color: white;
    color: red;
    border-color: red;
}

.login_form_button {
    background-color: white;
    border: 2px solid red;
    border-radius: 15px;
    color: red;
    /* padding-top: 0; */
    line-height: 30px;
}

.btn.login_form_button:hover, .btn-large.login_form_button:hover {
    background-color: red;
    color: yellow;
    border-color: yellow;
}
.row.login_form_right {
    width: 101%;
}
.btn.google {
    background: transparent;
    color: black;
    width: 78%;
}

    .btn.google img {
        height: 16px;
        width: 16px;
        float: left;
        margin-top: 10px;
    }

    .btn.google:hover, .google.btn-large:hover {
        background-color: #fff6fa;
        text-align: center;
    }

.rememberme_checkbox {
    text-align: center;
    margin-top: 5px;
}

    .rememberme_checkbox label {
        color: #484848;
        text-align: center;
        font-size: 0.8rem;
    }

    .rememberme_checkbox [type="checkbox"] + label:before, .rememberme_checkbox [type="checkbox"]:not(.filled-in) + label:after {
        border-color: #484848;
    }

    .rememberme_checkbox [type="checkbox"]:checked + label:before {
        top: -4px;
        left: -5px;
        width: 12px;
        height: 22px;
        border-top: 2px solid transparent;
        border-left: 2px solid transparent;
        border-right: 2px solid #484848;
        border-bottom: 2px solid #484848;
        -webkit-transform: rotate(40deg);
        transform: rotate(40deg);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform-origin: 100% 100%;
        transform-origin: 100% 100%;
    }

.lost_password_link {
    color: #484848;
    direction: rtl !important;
    font-size: 12px;
    display: block;
    text-align: center;
    width: 100%;
    margin: 12px auto;
    cursor: pointer;
}

    .lost_password_link span {
        border-bottom: 1px dotted #484848;
        padding-bottom: 3px;
        line-height: 27px;
    }

/* End of Right Panel Wrapper */
.footerWrapper {
    /* background: url('../images/ground-pattern.png') repeat-x; */
    height: 61px;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    top: unset;
    /* text-align: left; */
}

.bottom-trees {
    position: absolute;
    bottom: 0;
    /* background: url('../images/trees.png') repeat-x; */
    height: 103px;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}

/*register modal */
#register {
    background: #FFF9F6;
    border-radius: 14px;
    border: solid 5px rgb(104, 159, 183);
}

    #register.modal .modal-footer {
        background: rgba(41, 43, 45, 0.95);
    }

    #register .modal-content {
        direction: ltr;
        overflow-x: hidden;
    }

.avatar-carousel {
    max-width: 200px;
    text-align: center;
    margin: auto;
}

    .avatar-carousel .slick-slide img {
        max-height: 150px;
        margin: auto;
        border-radius: 50%;
        border: solid #689fb7;
    }
.slick-prev:before, .slick-next:before {
    color: #689fb7!important;
}
/* end of register modal */
/* Lost Password modal */
#lost_password {
    background: #FFF9F6;
    border-radius: 14px;
    border: solid 5px rgb(104, 159, 183);
}

    #lost_password.modal .modal-footer {
        background: rgba(41, 43, 45, 0.95);
        /* width: 93%; */
        left: 0;
        right: 0;
    }

    #lost_password .modal-content {
        direction: ltr;
    }

        #lost_password .modal-content h3 {
            color: #689fb7;
        }

        #lost_password .modal-content p {
            color: #464640;
        }

        #lost_password .modal-content p, #lost_password .modal-content h3 {
            direction: rtl;
            text-align: center;
        }

    #lost_password .lost_password_message p {
        color: #46d446;
    }

/* end of Lost Password modal */
/* Login modal */
#login_modal {
    background: rgba(41, 43, 45, 0.95);
    border-radius: 14px;
}

    #login_modal.modal .modal-footer {
        background: rgba(41, 43, 45, 0.95);
        /* width: 95%; */
        left: 0;
        right: 0;
    }

    #login_modal .modal-content {
        direction: ltr;
    }

        #login_modal .modal-content h3 {
            color: yellow;
        }

        #login_modal .modal-content p {
            color: #e8e89e;
        }

        #login_modal .modal-content p, #login_modal .modal-content h3 {
            direction: rtl;
            text-align: center;
        }

    #login_modal .lost_password_message p {
        color: #46d446;
    }

.login_error_message {
    font-size: 12px;
    text-align: center;
    direction: rtl;
    color: red;
    font-weight: 600;
    margin: 0;
}

/* end of Login modal */
/* Responsive menu */
.b-a, .bar, .bar:before, .bar:after {
    transition: all .25s;
    content: "";
    position: absolute;
    left: 0;
    height: 6px;
    width: 30px;
    border-radius: 15px;
    background-color: rgba(162, 162, 162, 0.95);
}

.menu-collapsed_custom {
    transition: all .25s;
    position: fixed;
    top: 0;
    right: 0;
    height: 50px;
    width: 100%;
    z-index: 1;
    cursor: pointer;
}

    .menu-collapsed_custom ul {
        transition: all 0s;
        position: fixed;
        left: -9000px;
    }

.menu-expanded_custom nav {
    height: 100vh;
}

.menu-expanded_custom li {
    width: 100%;
    margin-top: 30px;
}

.menu-collapsed_custom nav {
    border: unset;
    background-color: rgba(255, 255, 255, 0.40);
    box-shadow: unset;
    /* z-index: 10004; */
    /* position: absolute; */
    margin-top: 50px;
    height: unset;
}

.bar {
    position: fixed;
    right: 12px;
    top: 24px;
    left: unset;
}

    .bar:before {
        top: -8px;
    }

    .bar:after {
        top: 8px;
    }

.b-a-expanded, .menu-expanded_custom .bar:before, .menu-expanded_custom .bar:after {
    transition: all .25s;
    top: -0px;
}

.menu-expanded_custom {
    transition: all .25s;
    text-align: center;
    line-height: 200px;
    height: 100%;
    width: 100%;
    border-radius: 0px;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10;
}

    .menu-expanded_custom ul {
        transition: all 0s;
        position: relative;
        left: 0;
        z-index: 2;
    }

    .menu-expanded_custom a {
        transition: all .15s;
        text-decoration: none;
        font-size: 2em;
        padding: 5px;
        color: #fff;
        display: block;
    }

        .menu-expanded_custom a:hover {
            background-color: rgba(255, 255, 255, 0.8);
            transition: all .15s;
            letter-spacing: 2px;
            color: #333;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

    .menu-expanded_custom .bar {
        background-color: transparent;
        transition: all .25s;
    }

        .menu-expanded_custom .bar:before {
            transform: rotate(45deg);
        }

        .menu-expanded_custom .bar:after {
            transform: rotate(-45deg);
        }

.top_bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: transparent;
}

/* end of Responsive menu */
@media screen and (min-width: 980px) {
    #about {
        border: 17px solid #866d5e;
        border-radius: 20px;
    }

    .show_only_in_desktop {
        display: block;
    }

    .show_only_in_mobile {
        display: none;
    }

    .menu-collapsed_custom {
        display: none;
    }
}

@media screen and (max-width: 980px) {
    .padding_space {
        padding: 65px;
    }

    /*.show_only_in_desktop {
        display: none;
    }*/

    .show_only_in_mobile {
        display: block;
    }

    .building {
        height: calc(100% - 130px);
        display: table;
        width: 100%;
        text-align: center;
    }

    /*.login_form_right {
        display: none;
    }*/

    .right_panel_wrapper {
        top: 50px;
        transform: unset !important;
        right: calc(50% - 150px);
        width: 150px;
        min-height: 136px;
        z-index: 0;
    }

        .right_panel_wrapper .btn {
            font-size: 12px;
            padding: 0 3px;
        }

    /*.welcome {
        font-size: 23px !important;
        padding: 11px 0 22px;
        margin: 9px auto;
        display: block;
    }*/

    .right_panel_wrapper .row .col {
        padding: 0 .5rem;
    }

    .right_panel_wrapper .row {
        margin-bottom: 10px;
    }

    .narrator_wrapper {
        top: 50px;
        transform: unset !important;
        left: calc(50% - 150px);
        width: 148px;
        min-height: 137px;
        height: auto;
        display: none;
    }

    .narrator_text {
        font-size: 14px;
        line-height: 23px;
        padding: 15px 12px;
    }

    .narrator_icon_top_left {
        left: -10px;
        top: -10px;
        max-width: 30px;
        z-index: 5;
    }

    .narrator_wrapper, .right_panel_wrapper {
        background: rgba(51, 53, 53, 0.4);
    }

    .about_button_wrapper {
        display: none;
    }

    .menu-collapsed_custom {
        display: block;
    }
}

@media screen and (min-width: 768px) and (max-width: 980px) {
    .padding_space {
        padding: 65px;
    }

    .building {
        height: calc(100% - 130px);
    }

    .right_panel_wrapper {
        right: calc(50% - 250px);
    }

    .narrator_wrapper {
        left: calc(50% - 280px);
    }
}

@media screen and (min-width: 480px) and (max-width: 768px) {
    .padding_space {
        padding: 75px;
    }

    .building {
        height: calc(100% - 150px);
    }

    .right_panel_wrapper {
        right: calc(50% - 200px);
    }

    .narrator_wrapper {
        left: calc(50% - 250px);
    }
}

@media screen and (min-width: 380px) and (max-width: 480px) {
    .padding_space {
        padding: 95px;
    }

    .building {
        height: calc(100% - 190px);
    }
}

@media screen and (max-width: 380px) {
    .padding_space {
        padding: 95px;
    }

    .building {
        height: calc(100% - 190px);
    }
}

/* Error Text */
.text-danger:not(.field-validation-valid) {
    color: #fd0000;
    margin-bottom: 25px;
    display: block;
    margin-bottom: 0;
    font-size: 12px;
    margin-top: 5px;
}

.input-field label:not(.label-icon).active {
    -webkit-transform: translateY(-20px) scale(0.8);
    transform: translateY(-20px) scale(0.8);
}

input:not([type]), input[type=text]:not(.browser-default), input[type=password]:not(.browser-default), input[type=email]:not(.browser-default), input[type=url]:not(.browser-default), input[type=time]:not(.browser-default), input[type=date]:not(.browser-default), input[type=datetime]:not(.browser-default), input[type=datetime-local]:not(.browser-default), input[type=tel]:not(.browser-default), input[type=number]:not(.browser-default), input[type=search]:not(.browser-default), textarea.materialize-textarea {
    margin-bottom: 5px;
}

.btn, .btn-large, .btn-floating, .btn-large, .btn-flat {
    font-size: 0.9rem;
}

div#registerMessage p {
    color: black;
    text-align: center;
}

.lost_password_message.success p {
    color: green;
}

.lost_password_message.failure p {
    color: #cc651c !important;
}

.avatar_notice {
    text-align: center;
    color: black;
    direction: rtl;
    margin-top: 15px;
}

@media screen and (max-width: 980px) {
    .row.login_row_mobile {
        margin-bottom: 0 !important
    }

    #lost_password .modal-content p, #lost_password .modal-content h3 {
        font-size: 16px;
        margin: 0 auto 10px;
    }

    #lost_password .row {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 980px) {
    /*.row.google_row p {
        margin-top: 10px;
    }*/

    /*.welcome {
        padding: 0 !important
    }*/
    .copyRightText {
        width: 100%;
        text-align: center !important;
        right: 0px !important;
        bottom: 4px !important;
        position: absolute;
        background-color: #aac6d2c4;
        font-size: 12px;
        color: black;
        margin: auto !important;
    }
}

@media screen and (min-width: 980px) {
    .row.login_row_mobile {
        display: none;
    }
}

.copyRightText {
    /* width: 100%; */
    position: absolute;
    bottom: 30px;
    font-size: 12px;
    color: #000000;
    text-align: right;
    /* margin-left: 95px; */
    right: 90px;
}

    .copyRightText a {
        color: #5958a3;
    }

.copyRightText a:hover {
            color: #330101;
}

/*-----Sign Up & Login Container------*/
button.modal-action.waves-effect.green.accent-3.waves-green.white-text.btn-flat {
    border-radius: 5px;
}
a.modal-action.modal-close.deep-orange.darken-1.white-text.waves-effect.waves-green.btn-flat {
    border-radius: 5px;
}
.building_wrapper {
    height: 100%;
    text-align: center;
    position: relative;
    width: 270px;
    margin: 0 auto;
}
.building {
    height: calc(85%);
    z-index: 10;
    /* position: relative; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: right;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #b3b3b3;
}
.singinrow {
    margin: auto;
}
form p {
    margin: auto;
}
input#first_name, #password {
    height: 39px;
    font-size: 14px;
}
h3.welcome {
    background: #ffb659;
    font-size: 32px;
    padding: 20px 15px 20px 22px;
    text-align: center;
    line-height: 44px;
    border-radius: 5px;
    border: 1px;
    color: white;
    margin-bottom: 10px!important;
}
/*-----End Sign Up & Login Container------*/
form#registerForm input {
    color: black;
}
#index_panel_logged_out {
    background: white;
    padding-top: 15px;
    border-radius: 5px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

