﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background: black;
    overflow: hidden;
}

input[placeholder] {
    text-overflow: ellipsis;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

#map {
    min-height: 100vh;
    width: 100%;
}

.company-marker {
    border-radius: 1000px;
    border: 1px solid black;
    overflow: hidden;
    background-color: white;
}

#current-marker {
    position: absolute;

    width: 4000px;
    height: 4000px;
    margin-top: -2000px;
    margin-left: -2000px;
    border-radius: 2000px;
    background: rgba(0, 0, 0, 0);
}

.animated-marker {
    animation-name: slidein;
    animation-duration: 500ms;
}

@keyframes slidein {
    from {
        width: 20px;
        height: 20px;
        margin-top: -10px;
        margin-left: -10px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0);
    }

    60% {
        width: 800px;
        height: 800px;
        margin-top: -400px;
        margin-left: -400px;
        border-radius: 400px;
        background: rgba(0, 0, 0, 0.6);
    }

    to {
        width: 4000px;
        height: 4000px;
        margin-top: -2000px;
        margin-left: -2000px;
        border-radius: 2000px;
        background: rgba(0, 0, 0, 0);
    }
}

.loader {
    background-color: black;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    opacity: 0.4;
    transition: opacity 0.5s;
}

.loaded {
    opacity: 0;
}

.pallaroid, .pallaroid div {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
}

.pallaroid-animated div {
    animation-name: photo;
    animation-duration: 500ms;
}

@keyframes photo {
    from {
        border: 0px;
        opacity: 1;
    }
    50% {
        border: 50px solid black;
        border-color: rgba(0,0,0,0.9);
        opacity: .8;
        background-color: white;
    }
    to {
        border: 0px;
        margin: 0px;
        opacity: 0;
    }
}

.active-red input.form-control[type=text] {
    border-bottom: 1px solid red;
    box-shadow: 0 1px 0 0 red;
}

.active-red-no-focus input.form-control[type=text]:focus:not([readonly]) {
    border-bottom: 1px solid red;
    box-shadow: 0 1px 0 0 red;
}

/* To avoid changing of input background when using browser autofill: */
@-webkit-keyframes autofill {
    to {
        color: #666;
        background: transparent;
    }
}

@keyframes autofill {
    to {
        color: #666;
        background: transparent;
    }
}

input:-webkit-autofill {
    -webkit-animation-name: autofill;
    animation-name: autofill;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

/* ^^^ To avoid changing of input background when using browser autofill ^^^ */

.sidebar {
    max-width: 490px;
    min-width: 490px;
    left: -490px;
    top: 0;
    height: 100vh;
    height: -webkit-fill-available;
    position: fixed;
    z-index: 5;
    background-color: white;
    transition: all 0.3s;
}

.sidebar.active {
    left: 0;
}

#toolbar-container {
    max-width: 450px;
    z-index: 1;
    width: -webkit-fill-available;
    width: -moz-available;
    left: 0;
    transition: all 0.3s;
}

#toolbar-container.shifted {
    left: 490px;   
}

#search-button {
    height:41px;
    width: 43px;
}

#clear-search-button {
    box-shadow: none;
    z-index: 3;
}

.sidebar-content {
    position: relative;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    padding-bottom: 4rem !important;
}

.close-sidebar-btn-container {
    bottom: 1rem !important;
}

.close-sidebar {
    transition: all 0.3s !important;
    border-radius: 10em !important;
    padding: 2px 50px !important;
    font-size: 24px !important;
}

/* from z-depth-2 class */
.close-sidebar:hover {
    -webkit-box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !important;
    box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !important;
}

mark {
    color: black !important;
    padding: 0 !important;
    background-color: #ffd600a3 !important;
}

.toolbar-button {
    height: 40px;
    width: 41px;
}

#info-icon {
    font-size: large;
}

#filters-icon {
    font-size: initial;
}

#vacancy-city {
    width: 120px;
    min-width: 120px;
}

.text-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.vacancies-button .vacancies-arrow-icon {
    transition: all 0.3s;
}

.vacancies-button.collapsed .vacancies-arrow-icon {
    transition: all 0.3s;
    transform: rotate(180deg);
}

.offices-button .offices-arrow-icon {
    transition: all 0.3s;
}

.offices-button.collapsed .offices-arrow-icon {
    transition: all 0.3s;
    transform: rotate(180deg);
}

.legend-image-container {
    width: 53px;
    height: 52px;
}

@media only screen and (max-width: 490px) {
    .sidebar {
        max-width: 100vw;
        min-width: 100vw;
    }
}

@media only screen and (max-width: 986px) {
    #toolbar-container.shifted {
        left: 0;
        display: none;
    }
}

@-moz-document url-prefix() {
    #cards-list {
        padding-bottom: 4rem !important;
    }

    footer.close-sidebar-btn-container {
        position: absolute !important;
    }
}

/* hides <datalist>'s triangle in webkit-based browsers */
input::-webkit-calendar-picker-indicator {
    display: none;
}

.navigate-to-next-office {
    position: absolute;
    right: 18px;
    cursor: pointer;
    color: darkgray;
}

.navigate-to-next-office:hover {
    color: black;
}

[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    pointer-events: none;
    opacity: 0
}

/* CSS FOR MATERIAL INPUT */
.form-check-input[type="checkbox"] + label,
label.btn input[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    height: 1.5625rem;
    padding-left: 35px;
    line-height: 1.5625rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

    .form-check-input[type="checkbox"] + label.form-check-label-left,
    label.btn input[type="checkbox"] + label.form-check-label-left {
        padding: 0 35px 0 0 !important
    }

        .form-check-input[type="checkbox"] + label.form-check-label-left:before,
        label.btn input[type="checkbox"] + label.form-check-label-left:before {
            right: 0;
            left: 100% !important;
            -webkit-transform: translateX(-100%);
            transform: translateX(-100%)
        }

    .form-check-input[type="checkbox"] + label:before,
    .form-check-input[type="checkbox"]:not(.filled-in) + label:after,
    label.btn input[type="checkbox"] + label:before,
    label.btn input[type="checkbox"]:not(.filled-in) + label:after {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        width: 18px;
        height: 18px;
        margin-top: 3px;
        content: "";
        border: 2px solid #8a8a8a;
        border-radius: 1px;
        -webkit-transition: .2s;
        transition: .2s
    }

.form-check-input[type="checkbox"]:not(.filled-in) + label:after,
label.btn input[type="checkbox"]:not(.filled-in) + label:after {
    border: 0;
    -webkit-transform: scale(0);
    transform: scale(0)
}

.form-check-input[type="checkbox"]:not(:checked):disabled + label:before,
label.btn input[type="checkbox"]:not(:checked):disabled + label:before {
    background-color: #bdbdbd;
    border: 0
}

.form-check-input[type="checkbox"]:checked + label:before,
label.btn input[type="checkbox"]:checked + label:before {
    top: -4px;
    left: -5px;
    width: 12px;
    height: 1.375rem;
    border-top: 2px solid transparent;
    border-right: 2px solid #4285f4;
    border-bottom: 2px solid #4285f4;
    border-left: 2px solid transparent;
    -webkit-transform: rotate(40deg);
    transform: rotate(40deg);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.form-check-input[type="checkbox"]:checked + label.form-check-label-left:before,
label.btn input[type="checkbox"]:checked + label.form-check-label-left:before {
    -webkit-transform: translateX(0) rotateZ(40deg);
    transform: translateX(0) rotateZ(40deg);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0
}

.form-check-input[type="checkbox"]:checked:disabled + label:before,
label.btn input[type="checkbox"]:checked:disabled + label:before {
    border-right: 2px solid #bdbdbd;
    border-bottom: 2px solid #bdbdbd
}

.form-check-input[type="checkbox"]:indeterminate + label:before,
label.btn input[type="checkbox"]:indeterminate + label:before {
    top: -11px;
    left: -12px;
    width: 10px;
    height: 1.375rem;
    border-top: 0;
    border-right: 2px solid #4285f4;
    border-bottom: 0;
    border-left: 0;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.form-check-input[type="checkbox"]:indeterminate + label.form-check-label-left:before,
label.btn input[type="checkbox"]:indeterminate + label.form-check-label-left:before {
    top: 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0
}

.form-check-input[type="checkbox"]:indeterminate:disabled + label:before,
label.btn input[type="checkbox"]:indeterminate:disabled + label:before {
    background-color: transparent;
    border-right: 2px solid rgba(0,0,0,0.46)
}

.form-check-input[type="checkbox"].filled-in + label:after,
label.btn input[type="checkbox"].filled-in + label:after {
    border-radius: .125rem
}

.form-check-input[type="checkbox"].filled-in + label:before,
.form-check-input[type="checkbox"].filled-in + label:after,
label.btn input[type="checkbox"].filled-in + label:before,
label.btn input[type="checkbox"].filled-in + label:after {
    position: absolute;
    left: 0;
    z-index: 1;
    content: "";
    -webkit-transition: border .25s,background-color .25s,width .2s .1s,height .2s .1s,top .2s .1s,left .2s .1s;
    transition: border .25s,background-color .25s,width .2s .1s,height .2s .1s,top .2s .1s,left .2s .1s
}

.form-check-input[type="checkbox"].filled-in:not(:checked) + label:before,
label.btn input[type="checkbox"].filled-in:not(:checked) + label:before {
    top: 10px;
    left: 6px;
    width: 0;
    height: 0;
    border: 3px solid transparent;
    -webkit-transform: rotateZ(37deg);
    transform: rotateZ(37deg);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%
}

.form-check-input[type="checkbox"].filled-in:not(:checked) + label:after,
label.btn input[type="checkbox"].filled-in:not(:checked) + label:after {
    top: 0;
    z-index: 0;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 2px solid #5a5a5a
}

.form-check-input[type="checkbox"].filled-in:checked + label:before,
label.btn input[type="checkbox"].filled-in:checked + label:before {
    top: 0;
    left: 1px;
    width: 8px;
    height: 13px;
    border-top: 2px solid transparent;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-left: 2px solid transparent;
    -webkit-transform: rotateZ(37deg);
    transform: rotateZ(37deg);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%
}

.form-check-input[type="checkbox"].filled-in:checked + label:after,
label.btn input[type="checkbox"].filled-in:checked + label:after {
    top: 0;
    z-index: 0;
    width: 20px;
    height: 20px;
    background-color: #a6c;
    border: 2px solid #a6c
}

.form-check-input[type="checkbox"].filled-in.filled-in-danger:checked + label:after,
label.btn input[type="checkbox"].filled-in.filled-in-danger:checked + label:after {
    background-color: #f44336;
    border-color: #f44336
}

.form-check-input[type="checkbox"]:disabled:not(:checked) + label:before,
label.btn input[type="checkbox"]:disabled:not(:checked) + label:before {
    background-color: #bdbdbd;
    border-color: #bdbdbd
}

.form-check-input[type="checkbox"]:disabled:not(:checked) + label:after,
label.btn input[type="checkbox"]:disabled:not(:checked) + label:after {
    background-color: #bdbdbd;
    border-color: #bdbdbd
}

.form-check-input[type="checkbox"]:disabled:checked + label:before,
label.btn input[type="checkbox"]:disabled:checked + label:before {
    background-color: transparent
}

.form-check-input[type="checkbox"]:disabled:checked + label:after,
label.btn input[type="checkbox"]:disabled:checked + label:after {
    background-color: #bdbdbd;
    border-color: #bdbdbd
}
