﻿
:root {
    --color_base: #222;
    --color_contrast_base: #FFFFFF;
    --color_input: #eee;
    --color_input_hover: #ddd;
    --color_disabled: #D1D2D3;
    --color_accent: #FFCC00;
    --font_family: "Poppins", sans-serif;
    --font_header: 22px;
    --font_body: 18px;
    --font_small: 16px;
    --font_subcopy: 16px;
    --font_button: 18px;
    --font_regular: 400;
    --font_heavy: 600;
    --base_unit: 8px;
    --button_small: 32px;
    --button_large: 48px;
    --button_padding: 0 16px;
    --input_height: 48px;
    --transition: all 300ms cubic-bezier(0.65, 0, 0.35, 1);
    --box_shadow_top: 0px -4px 4px rgba(0, 0, 0, 0.1);
    --box_shadow_bottom: 0px 4px 4px rgba(0, 0, 0, 0.1);
    --box_shadow_button: 0px 0px 0px 1px #000000;
    --gutter: 24px;
    --gap: 16px;
}



html, body {
    -webkit-tap-highlight-color: transparent;
    height: 100%;
    touch-action: none;
    touch-action: pan-y;
}

body {
    background-color: var(--color_contrast_base);
    color: var(--color_base);
    font-size: var(--font_body);
    line-height: var(--line_height);
    font-family: var(--font_family);
    font-weight: var(--font_regular);
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    direction: ltr;
    text-align: left;
}

body:lang(ar) {
    direction: rtl;
    text-align: right;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#map {
    z-index: 100;
    position: absolute;
    top: 0;
    bottom: 96px;
    right: 0;
    left: 0;
    width: 100%;
}

.hide {
    display: none !important;
}

#disabler {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
}







#nav {display:none !important;}

/* LIGHTBOX */

.modal-open {
    height: 100vh;
    overflow-y: hidden;
}
.modal-open #lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox_bg {    
    display: none;
    position: fixed;
    z-index: 10000;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.lightbox_modal {
    background-color: var(--color_contrast_base);
    padding: var(--gutter);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: fixed;
}
.lightbox_header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap);
}
.lightbox_title {
    font-size: var(--font_body);
    line-height: 140%;
    margin-top: 4px;
}
.lightbox_body {
    margin: 16px 0 24px;
    height: calc(100% - 120px);
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.lightbox_body input {
    margin-bottom: 16px;
}
.lightbox_footer {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    font-size: var(--font_small);
}
.lightbox_footer a {
    display: inline-block;
}
.lightbox_footer span a {
    display: inline;
    margin: 0;
}
.lightbox_footer span {
    display: inline-block;
    font-size: var(--font_small);
    margin: 0 16px 16px;
}
.lightbox_two_buttons {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    position: absolute;
    bottom: 24px;
    right: 24px;
    left: 24px;
}
.lightbox_two_buttons .secondary {
    margin-bottom: 16px;
}
.button_close {
    width: var(--button_small);
    height: var(--button_small);
    cursor: pointer;
}
.button_close::before {
    content: url(/assets/svg/close.svg?2);
    display: block;
    height: var(--button_small);
}
.label {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.password {
    position: relative;
}
.password span:before {
    content: 'SHOW';
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    font-size: 15px;
    background-color: transparent;
    color: var(--color_base);
    padding: 0 12px;
    height: 48px;
    line-height: 48px;
}
.password.shown span:before {
    content: 'HIDE';
}
.password span:lang(ar):before {
    right: auto;
    left: 0;
}


/* BUTTONS */

.button {
    background-color: var(--color_base);
    color: var(--color_contrast_base);
    font-size: var(--font_button);
    border-radius: var(--base_unit);
    height: var(--button_large);
    line-height: var(--button_large);
    cursor: pointer;
    text-align: center;
    padding: var(--button_padding);
    white-space: nowrap;
}
.disabled {
    pointer-events: none;
    background-color: var(--color_disabled);
}
.reset {
    padding: 0;
    width: 48px;
    height: 48px;
    background-color: transparent;
}
.reset::before {
    content: url(/assets/svg/back.svg?1);
}
#logo {
    content: url(/assets/svg/poidb.svg?1);
    display: inline-block;
    height: 30px;
}
#input_field {
    position: relative
}
#input_field::before {
    content: url(/assets/svg/search.svg?1);
    pointer-events: none;
    left: 0;
    position: absolute;
    z-index: 300;
}

/* INPUTS */

input {
    background-color: var(--color_input);
    color: var(--color_base);
    font-size: var(--font_body);
    line-height: var(--input_height);
    font-family: var(--font_family);
    font-weight: var(--font_regular);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none !important;
    resize: none;
    display: block;
    height: var(--input_height);
    border-radius: 8px;
    padding: 0 16px;
    margin: 0;
    width: 100%;
    max-width: 700px;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    text-align: initial;
}


/* DOWNLOAD */

#download {
    position: fixed;
    z-index: 180;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color_contrast_base);
    padding: 24px;
    display: flex;
    transition: var(--transition);
    justify-content: center;
}
#download .block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


/* SEARCH */

#search {
    position: fixed;
    z-index: 200;
    display: flex;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    padding: 0 24px 30vh;
    background-color: var(--color_contrast_base);
    Xbackground: -o-linear-gradient(324.49deg, rgba(192, 166, 245, 0.1) 5.39%, rgba(192, 166, 245, 0.04) 100%), #0B0C13;
    Xbackground: linear-gradient(125.51deg, rgba(192, 166, 245, 0.1) 5.39%, rgba(192, 166, 245, 0.04) 100%), #0B0C13;
}
.block {
    width: 100%;
    max-width: 600px;
    text-align: center;
}
#search h1 {
    font-size: 64px;
    line-height: 92%;
    font-weight: 200;
    letter-spacing: -0.03em;
    margin:0 0 32px;
}
#Xsearch h1, #Xsearch h2, #Xsearch p {
    background: -o-linear-gradient(169.8deg, #FF9A9A 12.72%, #C296FF 58.73%, #AAEDFD 101.06%);
    background: linear-gradient(280.2deg, #FF9A9A 12.72%, #C296FF 58.73%, #AAEDFD 101.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#search h2 {
    font-weight: var(--font_regular);
    font-size: var(--font_header);
    margin: 16px 0 24px;
}

#search img {
    height: 60px;
    display: inline-block;
}
#input_wrapper {
    Xdisplay: flex;
    Xgap: 16px;
    Xflex-direction: column;
    Xalign-items: stretch;
    Xjustify-content: space-between;
    position: relative;
}
#brand_name {
    position: relative;
    z-index: 200;
    padding-left: 46px;
}
#button_search {
    position: absolute;
    z-index: 300;
    top: 4px;
    right: 4px;
    height: 40px;
    line-height: 40px;
}
.locked {
    pointer-events: none;
}

/* DIALOGS */
#dialog {
    position: fixed;
}


/* AUTOCOMPLETE */



#autocomplete {
    position: absolute;
    z-index: 100;
    top: 24px;
    left: 0;
    right: 0;
    padding: 24px 0 0;
    background-color: var(--color_input);
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top: none;
    overflow: hidden;
    text-align: left;
}
#autocomplete:after {
    content: '';
    height: 4px;
    background-color: red;
}
#autocomplete span {
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    display: flex;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
}
#autocomplete u {
    text-decoration: none;
}

#autocomplete span:hover, #autocomplete .hover {
    background-color: var(--color_input_hover);
}
.auto_on {
    background-color: var(--color_input_hover);
}


@media all and (min-width:700px) {
    #input_wrapper {
        Xflex-direction: row;
        Xalign-items: center;
    }

    #logo {
        height: 40px;
    }

    #search {
        padding: 0 24px 20vh;
    }

    .lightbox_modal {
        position: relative;
        width: 500px;
        border-radius: var(--base_unit);
        top: -10%;
        bottom: auto;
        left: auto;
        right: auto;
    }
    .lightbox_body {
        margin: 16px 0 8px;
        height: calc(100% - 104px);
    }
    .lightbox_one_button {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
    }
    .lightbox_two_buttons .secondary {
        bottom: auto;
        margin-right: 16px;
        margin-bottom: 0;
    }
    .lightbox_two_buttons .secondary:lang(ar) {
        margin-left: 16px;
        margin-right: auto;
    }
    .lightbox_two_buttons {
        justify-content: flex-end;
        flex-direction: row;
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
    }
    .lightbox_two_buttons .button {
        flex: none;
    }

    .button_close:hover {
        background-color: var(--color_input);
        border-radius: 32px;
        box-shadow: 0px 0px 0px 4px var(--color_input);
    }

}
