html {
    -ms-overflow-style: scrollbar;
}

body {
    overflow-y: scroll;
    overflow-x: hidden;
}

.modalBackground {
    background-color: Gray;
    filter: alpha(opacity=70);
    opacity: 0.7;
}

.modalPopup {
    background-color: #FFFFFF;
    border-width: 1px;
    border-style: solid;
    border-color: #000000;
    padding: 3px;
}

.modalContent {
    padding: 10px;
}

.modal-body {
    max-height: none !important;
    overflow: auto;
}

input[type="text"], input[type="password"], input[type="date"], input[type="email"], input[type="tel"], select {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.required:after {
    content: "*";
    color: inherit;
}

form {
    margin-top: 0;
}

/* custom disabled */
ul.country-select-list {
    cursor: not-allowed;
}

.disabled {
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

    .disabled .btn {
        background-color: #f0f0f0;
        color: #d5d5d5;
        font-weight: unset;
    }

/* custom hidden */
.hidden {
    display: none
}

/* custom button */
.button:hover {
    cursor: pointer;
}

/* bootstrap modal */
.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform 0.3s ease-out;
    transition: -webkit-transform 0.3s ease-out;
    -o-transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
}

.modal.show .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - (0.5rem * 2));
}

.modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
}

    .modal-backdrop.fade {
        opacity: 0;
    }

    .modal-backdrop.show {
        opacity: 0.5;
    }

.modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

    .modal-header .close {
        padding: 1rem;
        margin: -1rem -1rem -1rem auto;
        background-color: #ffffff;
        border: none;
        cursor: pointer;
        font-size: 24px
    }

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

    .modal-footer > :not(:first-child) {
        margin-left: .25rem;
    }

    .modal-footer > :not(:last-child) {
        margin-right: .25rem;
    }

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
    }

    .modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}

.login-button {
    margin-top: 20px !important;
}

.error-header, .study-closed-header {
    margin-bottom: 0.4em !important;
}

/* general overrides */
.find_site button.all_location_btn {
    text-align: left;
}

body.sm .zip-search .zip-button, body.md .zip-search .zip-button, body.lg .zip-search .zip-button, body.xl .zip-search .zip-button {
    margin-top: 34px;
}

/* rtl overrides */
[dir="rtl"], [dir="rtl"] * {
    text-align: right;
}

    [dir="rtl"] .menu_wrapper {
        margin-right: 25px;
    }

    [dir="rtl"] .language_dropdown {
        border-left: unset;
        border-right: 2px solid #322664;
        padding-right: 15px;
    }

    [dir="rtl"] header ul.primary_nav {
        margin-left: 10px;
    }

        [dir="rtl"] header ul.primary_nav.active {
            right: unset;
            left: 10px;
        }

    [dir="rtl"] .styled_list > li {
        margin-right: 25px;
    }

    [dir="rtl"] ul li:before {
        left: unset;
        right: -25px;
    }

    [dir="rtl"] ul li ul li {
        right: 25px;
    }

        [dir="rtl"] ul li ul li:before {
            left: unset;
        }

    [dir="rtl"] .custom_select:after {
        right: unset;
        left: 10px;
    }

    [dir="rtl"] section.hero .planet.p1 {
        top: 30px;
        right: -184px;
    }

    [dir="rtl"] section.hero .planet.p2 {
        right: -40px;
    }

    [dir="rtl"] section.hero .planet.p3 {
        left: -32%;
        right: unset;
    }

    [dir="rtl"] section.hero .planet.p4 {
        bottom: -65%;
        right: 50%;
    }

    [dir="rtl"] section.hero .planet.p5 {
        right: unset;
        left: -20%;
    }

    [dir="rtl"] .about_study_items > div > div img {
        margin-right: unset;
        margin-left: 20px;
    }

    [dir="rtl"] .bg_pattern:before {
        transform: scaleY(-1);
    }

    @media (min-width: 992px) {
        [dir="rtl"] section.criteria.inclusion_criteria .image_wrapper img {
            right: -200px;
        }
    }

    [dir="rtl"] section.criteria.exclusion_criteria .image_wrapper {
        transform: scaleX(-1);
    }

        [dir="rtl"] section.criteria.exclusion_criteria .image_wrapper img {
        }

    [dir="rtl"] .zip-button button {
        margin-right: 10px;
        position: relative;
        top: -3px;
    }

    [dir="rtl"] body.xs .zip-button button {
        top: unset;
    }

    [dir="rtl"] .all_location_btn img {
        transform: scaleX(-1);
        margin-right: 5px;
    }

    [dir="rtl"] .find_site button.all_location_btn:hover img {
        transform: scaleX(-1) translateX(6px);
    }

    [dir="rtl"] .accordion-button:after {
        left: unset;
        right: 0;
    }

    [dir="rtl"] .accordion-button {
        padding-right: 60px;
    }

    [dir="rtl"] .modal-header .close {
        margin: -1rem auto -1rem -1rem;
    }

/* israel arabic overrides */
html[lang="ar-IL"] {
    h1, h2, h3, h4, h5, h6, p, li, label, button.all_location_btn, a {
        font-family: "sofia-pro-soft", "segoe-ui", sans-serif;
    }
}

/* israel hebrew overrides */
html[lang="he-IL"][dir="rtl"] section.hero .planet.p4 {
    bottom: -95%;
}

/* israel russian overrides */
html[lang="ru-IL"] {
    h1, h2, h3, h4, h5, h6, p, li, label, button.all_location_btn, a {
        font-family: "houschka-rounded", sans-serif;
    }
}

/* screen width 992 */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .mobile_spacing {
        margin-top: 30px !important;
    }

    .bg_pattern:before {
        background-image: url("../images/star-mobile.jpg");
        -webkit-transform: scale(-1, -1);
        transform: scale(-1, -1);
    }

    .image_wrapper.img_cover img:not(.decoration) {
        position: relative;
    }

    img.default_icon {
        max-height: 90px;
        max-width: 80px;
    }

    .register_button_wrapper img.poweredBy {
        margin: 7px 0 0 0;
    }

    .register_button_wrapper.mobile_center img.poweredBy {
        margin: 7px auto 0 auto;
    }

    .register_button_wrapper {
        display: block;
    }

    .criteria_notice.desktop {
        display: none;
    }

    .criteria_notice.mobile {
        display: block;
    }

    .block_item_wrapper {
        margin-top: 20px;
    }

    .block_item_wrapper .block_items .block_content p {
        font-size: 1em;
    }

    .fpo_block {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2.intra_section {
        margin: 10px 0 0.4em 0;
    }

    header .container {
        max-width: 100%;
    }

    header ul.primary_nav {
        display: none;
    }

    .questionnaire .finish_wrapper {
        display: block;
    }

    .questionnaire .questionnaire_finish button {
        margin: 15px 0 0 0;
    }

    section.hero {
        background-image: url("../images/star-mobile.jpg");
        background-size: cover;
        background-position: top center;
    }

    section.hero .container {
        padding-top: 30px;
    }

    section.hero .star_item_wrapper {
        display: none;
    }

    section.hero .star_bg,
    section.hero .star_map {
        width: auto;
        height: 80vh;
        display: none;
    }

    section.hero .astro_img_wrapper img.astronaut {
        position: relative;
        max-width: 350px;
        width: 100%;
    }

    section.hero .astro_img_wrapper .astro_image_group {
        position: relative;
        max-width: 350px;
        width: 100% !important;
        height: auto !important;
        display: none;
    }

    section.hero .astro_img_wrapper .astro_image_group_mobile img {
        max-width: 350px;
        width: 100%;
        -webkit-animation-name: astronautHover;
        animation-name: astronautHover;
        -webkit-animation-duration: 3s;
        animation-duration: 3s;
        -webkit-animation-iteration-count: infinite;
        animation-iteration-count: infinite;
    }

    section.hero .hero_content {
        min-height: auto;
        padding-top: 0;
    }

    section.hero .planet.p1 {
        display: none;
    }

    section.hero .planet.p2 {
        display: none;
    }

    section.hero .planet.p3 {
        display: none;
    }

    section.hero .planet.p4 {
        display: none;
    }

    section.hero .planet.p5 {
        width: 239px;
        top: -28%;
        right: -16%;
    }

    .about_study_items > div:not(:first-child) {
        margin-top: 20px;
    }

    .find_site .desktop {
        display: none;
    }

    .find_site .mobile {
        display: block;
    }

    .find_site > div:nth-child(1) {
        width: 100%;
    }

    .find_site > div:nth-child(2) {
        width: 100%;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .research_site_list h3 {
        margin: 20px 0 0 0px;
    }

    .research_site_list .research_site_item {
        margin-top: 20px;
    }

    section.criteria.exclusion_criteria .image_wrapper {
        height: 400px;
        margin-bottom: -80px;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }

    section.criteria.exclusion_criteria .image_wrapper img {
        height: 100%;
        width: auto;
        margin: 30px auto 0 auto;
        left: unset;
        right: 0;
    }

    section.criteria.inclusion_criteria .image_wrapper {
        height: 400px;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
        margin-bottom: -90px;
    }

    section.criteria.inclusion_criteria .image_wrapper img {
        position: relative;
        width: auto;
        height: 100%;
        bottom: unset;
    }

    section.criteria.inclusion_criteria .container > .row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
    }

    .faq_section .image_wrapper img {
        width: 80%;
        margin: 30px auto 0 auto;
    }

    .map_placeholder {
        margin-top: 30px;
    }

    .field-sm input {
        max-width: 100%;
    }

    .field-md input {
        max-width: 100%;
    }

    .radio_flex .input_group_row .radio:not(:last-child) {
        margin: 0 0 10px 0;
    }

    .radio_flex .input_group_row .radio {
        width: 100%;
    }

    .input_group_row > .col-lg-6:not(:first-child) {
        margin-top: 26px;
    }

    .page_banner img {
        width: 120%;
    }

    .menu_toggler {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}