@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');

body {
    font-family: 'Roboto', sans-serif;
}

p {
    line-height: 1.5rem;
    letter-spacing: 0px;
}

.hidden {
    display: none;
}

/* Loader animation */
.loader {
    position: absolute;
    width: 100%;
    height: 100%;
    background: lightgray;
    z-index: 999;
}

.lds-grid {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.lds-grid div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    animation: lds-grid 1.2s linear infinite;
}
.lds-grid div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}
.lds-grid div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}
.lds-grid div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}
.lds-grid div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}
.lds-grid div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}
.lds-grid div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}
.lds-grid div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}
@keyframes lds-grid {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.main_wrapper {
    max-width: 740px;
    margin: 0 auto;
}

/** intro page section */
.main_wrapper.no-padding {
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 12.5rem;
    padding: 1rem 1.5rem 1rem;
    background-color: #F6F6F6;
    border-bottom: 1px solid rgba(112, 112, 112, .3);
}   

.header .logo {
    width: 170px;
    height: auto;
    transition: opacity .2s;
}

.header .lang_switch {
    display: flex;
    transition: opacity .2s;
}

.header .lang_switch div {
    padding: 0 .13rem;
    color: #707070;
}

.header .lang_switch .active {
    text-decoration: none;
    color: #996600;
}

.header.search_active .logo, .header.search_active .lang_switch {
    opacity: 0;
}

.search_section_holder {
    width: auto;
    margin: 0 1.5rem;
}
.search_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 535px;
    width: auto;
}

.search_section .search_bar {
    width: 100%;
    max-width: 400px;
}

#query {
    font-family: 'Roboto', sans-serif;
}

.search_section.active .search_bar {
    width: 80%;
}

form {
    background: #FFFFFF;
    width: auto;
    height: 36px;
    border-radius: 8px;
    display:flex;
    flex-direction:row;
    align-items:center;
    border: 1px solid #996600;
}

input {
    all: unset;
    font: 16px system-ui;
    color: black;
    height: 100%;
    width: 100%;
    padding: 6px 10px 6px 0px;
}

::placeholder {
    color: gray;
    opacity: 1;
}

svg {
    color: gray;
    fill: currentColor;
    width: 24px;
    height: 24px;
    padding: 10px;
}

.search_bar button {
    all: unset;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.cancel_search {
    display: none;
    opacity: 0;
    color: #996600;
    padding-left: .5rem;
} 

.search_section.active .cancel_search {
    display: inline-block;
    opacity: 1;
}

.search_results_holder {
    position: relative;
    top: -1.3rem;
    padding: 0 1.5rem;
    display: none;
    opacity: 0;
}

.search_results {
    padding: 1rem 0 0 0;
}

.search_results_instruction {
    position: relative;
    left: 50%;
    display: inline-block;
    transform: translateX(-50%);
    color: rgba(112, 112, 112, 1);
}

.search_results_holder .amount_holder {
    display: none;
    justify-content: center;
}

.search_results_amount, .search_results_amount_txt {
    position: relative;
    color: rgba(112, 112, 112, 1);
}

/*search result items*/
.name_item {
    display: block;
    padding: 10px 0 10px 2px;
    border-bottom: 1px solid rgba(112, 112, 112, .3);
}

.name_item .birthdate{
    display: inline-block;
    color: rgba(112, 112, 112, 1);
    padding-top: 7px;
}

.name_item .age{
    display: inline-block;
    color: rgba(112, 112, 112, 1);
    padding-top: 5px;
}

.name_item:hover, .name_item:active {
    background-color: rgba(153, 102, 0, 0.2);
}

/*intro title & text */
.intro_title_wrapper {
    position: absolute;
    top: 6rem;
    width: 100%;
    font-size: .75rem;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
}

.intro_text_wrapper {
    margin: 3.5rem 1.5rem 4rem;
}

/* map button */
.map_button {
    text-align: center;
    background: #F6F6F6;
    width: 87vw;
    max-width: 360px;
    height: 78px;
    border-radius: 7px;
    position: relative;
    left: 50%;
    margin-bottom: 3rem;
    transform: translateX(-50%);
    border: 1px solid #996600;
}

/** Wayfinding page section */
.main_wrapper.wayfinding_page {
    display: none;
    opacity: 0;
    width: 100%;
    height: auto;
    position: fixed;
    overflow: hidden;
}

@media only screen and (min-width: 740px) {
    .main_wrapper.wayfinding_page {
        position: relative;
    }
}

.wayfinding_page .header {
    position: relative;
    justify-content: center;
    height: 72px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.wayfinding_page .header .return_arrow {
    position: absolute;
    left: 0;
}

.wayfinding_page .header .return_arrow svg {
    width: 25px;
    height: 25px;
    padding: 0 1.5rem;
    vertical-align: middle;
}

.wayfinding_page .header .name_item_selected {
    text-align: center;
    line-height: 1.5rem;
}

.wayfinding_page .header .name_item_selected .details {
    display: inline-block;
    color: rgba(112, 112, 112, 1);
} 

.wayfinding_page .header .map_title {
    text-align: center;
    line-height: 1.5rem;
    display: none;
}

.wayfinding_page .wayfinder {
    width: 100%;
}

#map_canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.wayfinding_page .vignette {
    position: absolute;
    top: 73px;
    left: 0;
    width: 100%;
    height: auto;
    box-shadow: inset 0 0 130px #0000003b;
    background: radial-gradient(transparent 50%, #00000042);
}

.wayfinding_page .help.icon {
    position: absolute;
    right: .5rem;
    bottom: 5rem;
    width: auto;
    height: auto;
}

.wayfinding_page .help.icon svg {
    width: 44px;
    height: 44px;
    padding: 0;
}

.wayfinding_page .background_blur {
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.4;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
}

.wayfinding_page .background_blur.active {
    display: block;
}

.wayfinding_page .help.overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 1rem;
    border-radius: 7px;
    width: 70%;
}

.wayfinding_page .help.overlay.active {
    display: block;
    z-index: 15;
}

.wayfinding_page .help.overlay .close {
    width: auto;
    height: auto;
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
}

.wayfinding_page .help.overlay .close svg {
    width: 22px;
    height: 22px;
    fill: #996600;
    padding: 14px;
}

.wayfinding_page .help.overlay h3 {
    text-align: center;
    margin: 0 0 2rem;
    font-size: 24px;
    letter-spacing: 0;
}

.wayfinding_page .animation_control {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
    height: 72px;
    background-color: #F6F6F6;
    border-top: 1px solid rgba(112, 112, 112, .3);
    max-width: 740px;
}

.wayfinding_page .animation_control .map_info {
    display: none;
    width: auto;
    align-items: center;
}

.wayfinding_page .animation_control .map_info img {
    width: 28px;
    height: 28px;
    padding: 0 1rem 0 0;
}

.wayfinding_page .animation_control .play_pause img {
    padding: 0 1rem 0 0;
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.wayfinding_page .animation_control .play_pause img.hidden{
    display: none;
}

.wayfinding_page .animation_control input {
    padding: 0;
    margin: 15px 0;
    width: 100%;
    height: 4px;
    background: #bbbbbb;
    border-radius: 10px;
    /*overflow: hidden;*/
}

::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #000000;
    /*box-shadow: -100.5vw 0 0 100vw #707070;*/
    border-radius: 100%;
    border: 0;
}

::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #707070;
    /*box-shadow: -101vw 0 0 100vw #707070;*/
    border-radius: 100%;
    border: 0;
    box-sizing: border-box;
}

::-ms-fill-lower {
    background: #707070;
}
