:root {
    --click-color: rgb(77, 152, 218);
    --greyed: rgb(179, 179, 179);
    --dark-greyed: rgb(83, 83, 83);
    --very-light-grey: rgb(214, 214, 214);

    /*--dark-bg-color-light: rgb(70, 70, 70);*/
    --dark-background: rgb(54, 54, 54);
    --dark-surface: #2f2f2f;
    --dark-surface-dp1: #3d3d3d;
    --dark-bg-color-dark-dark: #232323;
    --dark-bg-color-dark-dark-m: #202020;
    --dark-bg-color-light: rgb(75, 75, 75);

    --dark-list-accent-color: rgb(49, 49, 49);
    --dark-blur-color: rgba(15, 15, 15, 0.582);

    --light-bg-color: rgb(223, 223, 223);
    --light-list-accent-color: rgb(214, 214, 214);
    --light-blur-color: rgba(104, 104, 104, 0.582);


    --priority-high-color: #0928c9;
    /*--priority-mid-color: #063d3d;*/
    /*--priority-low-color: #063606;*/

    --theme-color-dark: #083f72;
    --theme-color: #0479a6;
    --selected-color: #00a4ff;

    --dark-primary: #083f72;
}

*:focus {
    outline: none;
}

* {
    transition: background-color 0.3s ease-in-out;
}

.priority-high {
    background-color: var(--priority-high-color);
}

.priority-mid {
    background-color: var(--priority-mid-color);
}

.priority-low {
    background-color: var(--priority-low-color);
}

.text-definer {
    transition: color 0.3s ease-in-out;
}

@font-face {
    font-family: Karla;
    src: url(Karla.ttf);
}

html, body {
    position: relative;
    width: 100%;
    height: 100%;
}

body {
    color: white;
    margin: 0;
    background-color: var(--dark-background);
    box-sizing: border-box;
    font-family: Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

}

/*For disabling scroll-to-refresh on mobile*/
body,
.body-wrapper {
    /* Break the flow */
    position: absolute;
    top: 0;

    /* Give them all the available space */
    width: 100%;
    height: 100%;

    /* Remove the margins if any */
    margin: 0;

    /* Allow them to scroll down the document */
    overflow-y: hidden;
}

/*For disabling scroll-to-refresh on mobile*/
body {
    /* Sending body at the bottom of the stack */
    z-index: 1;
}

.body-wrapper {
    /* Making the wrapper stack above the body */
    z-index: 2;
}

a {
    color: rgb(0, 100, 200);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: rgb(0, 80, 160);
}

label {
    display: block;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    -webkit-padding: 0.4em 0;
    padding: 0.4em;
    margin: 0 0 0.5em 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 2px;
}

input:disabled {
    color: #ccc;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

select.clean {

    -moz-appearance: none; /* Firefox */
    -webkit-appearance: none; /* Safari and Chrome */
    appearance: none;

}

button {
    color: #333;
    background-color: #f4f4f4;
    outline: none;
    cursor: pointer;
}

button, button:focus, button:active, button:target {
    -webkit-tap-highlight-color: transparent;
}

button span {
    user-select: none;
}

button:disabled {
    color: #999;
}


button:focus {
    border-color: #666;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}

::-webkit-scrollbar-thumb {
    /*background: darkgray;*/
    /*border-radius: 100px;*/
    width: 0;
    height: 0;
}

::-webkit-scrollbar-corner {
    height: 0;
    background: transparent;
}

* {
    scrollbar-width: none; /* Firefox */
}

.hidden {
    display: none;
    width: 0 !important;
    height: 0 !important;
    position: fixed;
    top: -100vh;
    z-index: -1;
}

.box-shadow {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.noscroll {
    overflow: hidden;
    overflow-x: hidden !important;
}

.blur-background {
    z-index: 1;
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: var(--dark-blur-color);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
}

main.light .blur-background {
    background-color: var(--light-blur-color);
}

.dialog-wrapper {
    position: relative;
    padding: 0;
    background-color: var(--dark-background);
    width: 90%;
    height: 90%;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    display: flex;
    flex-flow: column;

    /*justify-items: center;*/
    /*justify-content: center;*/
    align-items: center;
    /*align-content: center;*/
}

.dialog-wrapper.responsive {
    height: auto;


}

.dialog-wrapper h3 {

    font-size: 22px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0;

}

main.light .dialog-wrapper {
    background-color: var(--light-bg-color);
}

.dialog-wrapper .content {
    margin-top: 15px;
    width: 90%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-bottom: 15px;
    position: relative;
}

.dialog-wrapper .content.centered {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.dialog-wrapper .close-btn-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 10px;
    margin-left: 15px;
    float: right;
}

.dark-select {
    margin: 0;
    color: white;
    background-color: var(--dark-greyed);
    width: 100%;
}

.scroll-select-item {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--greyed);
    background-color: var(--dark-bg-color-dark-dark);
    border: 1px solid var(--dark-background);
    padding: 8px 15px;
    border-radius: 9px;
    white-space: nowrap;
    margin: 0 3px;
}

.clear {
    margin: 0;
    background-color: transparent;
    border: none;
}

button.clear-btn {
    margin: 0;
    background-color: transparent;
    border: none;

}

button.clear-btn:active {
    background-color: rgba(200, 200, 200, 0.1);
}

/* Unified date input */
input[type="date"]::-webkit-calendar-picker-indicator {
    color: transparent;
    background: none;
    z-index: 1;
}

input[type="date"]:after {
    content: "";

    background-image: url("./imgs/calendar.png");
    background-position: center center;
    background-color: transparent;
    background-size: 18px;
    background-repeat: no-repeat;
    display: block;

    /* This is the calendar icon in FontAwesome */
    width: 18px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 6px;
    filter: invert(1);
    pointer-events: none;
}

input[type=date]::-webkit-inner-spin-button,
input[type=date]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}


.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

button.material {
    padding: 5px;
    height: fit-content;
    width: fit-content;
    border-radius: 1000px;
    border: none;
    background-color: transparent;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


button.material:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    background-color: var(--dark-greyed);
    border-radius: 1000px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*padding: 5px;*/
    opacity: 1;
    transition: all 0.2s;
}
button.material:not(.no-effect):not(:disabled):active:before,
button.material:not(.no-effect):not(:disabled):hover:before {
    opacity: 1;
    width: 110%;
    height: 110%;
}
button.material > *{
    position: relative;
}
button.material:disabled{
    opacity: 0.5;
    cursor: default;
}


/*Material icons*/
.material-icons, .material-icons-outlined {
    color: rgb(211, 211, 211);
    background-color: transparent;
    padding: 2px;
    border-radius: 50%;
}

/*.material-icons.md-inactive { color: rgba(141, 141, 141, 0.26); }*/

.md-18 {
    font-size: 18px;
}

.md-24 {
    font-size: 24px;
}

.md-28 {
    font-size: 28px;
}

.md-36 {
    font-size: 36px;
}

.md-48 {
    font-size: 48px;
}
.md-56 {
    font-size: 56px;
}

span.material-icons:active, span.material-icons-outlined:active {

}

img {
    width: 24px;
    height: 24px;
}

.no-transition *{
    transition: none !important;
}

/*Google MAPS*/
/*Marker*/
.gm-style-iw.gm-style-iw-c {
    background-color: var(--dark-background) !important;
    border-radius: 10px;
    padding: 0;
    color: white !important;

    /*position: relative;*/
}

.gm-style .gm-style-iw-t::after {
    background: none;
    background-color: var(--dark-background) !important;
}

.gm-style-iw.gm-style-iw-c * {
    color: white !important;
}

.gm-style-iw.gm-style-iw-c div {

    background-color: var(--dark-background);
}

.gm-style-iw.gm-style-iw-c > button {
    position: absolute;
    right: 5px !important;
    top: 5px !important;
    height: 20px !important;
    width: 20px !important;
    border-color: transparent !important;
}

.gm-style-iw.gm-style-iw-c > button img {
    filter: invert(1);
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background-color: transparent !important;
}

.gm-todo-marker-dialog {
    padding: 10px;
    margin-top: 0;
    display: flex;
    flex-flow: column;
}

.gm-todo-marker-dialog h2 {
    margin-bottom: 1px;
}

.gm-todo-marker-dialog code {
    background: var(--dark-bg-color-dark-dark) !important;
    border-radius: 7px;
    width: fit-content;
    padding: 3px 6px;
    border: 1px solid var(--dark-greyed);
}

.gm-todo-marker-dialog .note {
    margin: 10px 5px;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines to show */
    -webkit-box-orient: vertical;

    word-break: normal;
    overflow-wrap: break-word;
    font-size: 14px;
    max-width: 400px !important;
}

.gm-todo-marker-dialog .edit-wrapper {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
}

.gm-todo-marker-dialog .edit-wrapper button {
    background: none;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 3px;
    flex: 0 1 auto;
    width: 100%;
    font-size: 15px;
    /*border-width: 1px !important;*/

    display: flex;
    align-items: center;
    justify-content: center;

}

.gm-todo-marker-dialog .edit-wrapper button img {
    width: 18px;
    height: 18px;
    margin-left: 5px;

}

.gm-todo-marker-dialog .edit-wrapper button.todo {
    color: var(--theme-color) !important;
    font-weight: 600;
}

.gm-todo-marker-dialog .edit-wrapper button.pos {
    background-color: var(--theme-color-dark);
    color: white;
}

/*POS by GM*/
.gm-style-iw.gm-style-iw-c .poi-info-window.gm-style {
    padding: 10px;
}

.gm-style-iw.gm-style-iw-c a, .gm-style-iw.gm-style-iw-c a * {
    color: var(--click-color) !important;
    background-color: transparent;
}
