/*                                                           Main Page Styles */

/*                                                                       Main */

.main {
    position: fixed;
    height: 100%;
    width: 100%;
    padding: 10px 100px 50px 10px;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.main .searchBar {
    flex: 0 0 40px;
    border: 2px solid var(--lightgray);
    border-radius: 4px;
    padding: 0 5px 0 5px;
    max-width: 350px;
    min-width: 180px;
    pointer-events: auto;
    display: flex;
    flex-wrap: nowrap;
    background-color: var(--back-light);
}

.main .searchBar input {
    font: inherit;
    flex: 1;
    border: none;
    margin: 3px 0 3px 7px;
    overflow: hidden;
    white-space: nowrap;
    border-left: 2px solid #ddd;
}

#searchResults {
    max-width: 350px;
    min-width: 180px;
    overflow: auto;
    pointer-events: all;
    display: block;
}

#searchResults a {
    opacity: 0;
    font-size: 0;
    display: block;
    pointer-events: all;
    transform: scale(.5) translateY(-100%);
    text-decoration: none;
    padding: 6px 0 6px 12px;
    border-bottom: 1px solid #ddd;
    background-color: var(--back-light);
    cursor: pointer;
    transition: opacity .2s, transform .2s, font-size .2s;
    transition-delay: calc(var(--anim-order) * 40ms);
}

#searchResults .searchresultvisible {
    font-size: 1rem;
    opacity: 1;
    transform: scale(1);
}

#searchResults .searchresultvisible i {
    font-size: .9rem;
}

#searchResults a:last-of-type {
    border: none;
}

#searchResults:empty {
    display: none;
}

#searchResults a:focus {
    border: .5px solid var(--accent);
}

.sidebar {
    position: absolute;
    width: 300px;
    min-width: 190px;
    transform: translateX(-315px);
    top: 60px;
    border-radius: 4px;
    max-height: calc(100% - 120px);
    background-color: var(--back-light);
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.6);
    pointer-events: all;
    font-size: 12px;
    overflow: auto;
    transition: transform .4s;
}

.sidebar h3 {
    text-align: center;
}

#resNames p:first-of-type {
    text-align: center;
    margin: 0 0 2px 0;
}

#resNames hr {
    width: auto;
    border-top: 0.5px solid #ccc;
    margin: 4px 20px;
}

.nameEntry {
    text-align: center;
    border-bottom: .5px solid #ccc;
}

.nameEntry span {
    font-size: .9rem;
}

#closeres {
    padding: 2px 8px;
    cursor: pointer;
    position: absolute;
    font-size: 1.1rem;
    right: 0;
    top: 0;
}

@media screen and (max-width: 400px) {
    .sidebar {
        width: calc(100vw - 100px);
    }
}

/*                                                              nav dropdowns */

nav ul li:hover .dropdown-container,
nav ul li:active .dropdown-container,
nav ul li:focus .dropdown-container {
    color: var(--txt-light);
}

.dropdown-container {
    margin: 0 15px;
    max-height: 0;
    overflow: auto;
    background-color: var(--accent);
    transition: max-height .3s ease-out;
}

.dropdown-container a {
    width: 100%;
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-container a i {
    margin-right: 10px;
}

.dropdown-container > a, .dropdown-container > div {
    display: flex;
    border-top: 1px solid #000A0F;
    font-size: 1.125rem;
    padding: 7px 8px 6px 16px;
    display: flex;
    flex-direction: row;
}

.dropdown-container > a:hover,
.dropdown-container > div:hover,
.dropdown-container > a:active,
.dropdown-container > div:active,
.dropdown-container > a:focus,
.dropdown-container > div:focus {
    color: var(--txt-light-focus);
}

#dropbutton1:hover > svg,
#dropbutton1:active > svg,
#dropbutton1:focus > svg,
.dropdown-container > a:hover svg,
.dropdown-container > a:active svg,
.dropdown-container > a:focus svg {
    stroke: var(--txt-light-focus);
}

.dropdown-container {
    overflow: hidden;
    cursor: default;
}

#myDropdown1 > div:not(.dropdown-container) {
    display: flex;
}

#myDropdown1 a {
    flex: 1;
}

#dropbutton1 {
    width: 44px;
    padding: 0 0 0 7px;
    display: flex;
    border-left: dashed 1px var(--accent);
}

#dropbutton1:hover > svg,
#dropbutton1:active > svg,
#dropbutton1:focus > svg,

.dropdown-container label {
    cursor: pointer;;
}

.dropbutton {
    width: 100%;
    display: flex;
    padding: 0 15px;
}

.dropbutton a {
    flex: 1;
}

.dropbutton svg {
    margin: 10px 0;
    padding: 0;
}

.icon-cm-d-caret {
    transition: .3s transform;
}

.settings .slider {
    background-color: var(--back-light);
}

.settings .slider:before {
    background-color: var(--lightgray);
}

.settings input:checked + .slider {
    background-color: var(--back-light);
}

.settings input:checked + .slider::before {
    background-color: var(--accent);
}

.installapp {
    cursor: initial;
}

.installapp div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.installapp svg {
   margin: 0 15px;
}

.installapp span {
    font-size: 1rem;
    flex: 1;
    text-align: center;
}

.installapp button {
    margin: 10px 15px;
}

.installapp:hover, .installapp:active, .installapp:focus {
    color: var(--txt-light);;
}

#donatebutton {
    padding: 5px;
}

/*                                                                        map */
#mapid {
    position:absolute;
    top:0;
    bottom:0;
    width: 100%;
    min-width: 290px;
    z-index: 0;
}

.leaflet-tooltip.my-labels {
    background-color: transparent;
    border: transparent;
    box-shadow: none;
    font-size: 12px;
    color: #FEFF01;
}

.leaflet-tooltip.my-labels2 {
    background-color: transparent;
    border: transparent;
    box-shadow: none;
    font-size: 12px;
    color: red;
}

.leaflet-tooltip.dark {
    background-color: transparent;
    border: transparent;
    box-shadow: none;
    font-size: 12px;
    color: #0163FF;
    text-shadow: -1px -1px 0 #555, 1px -1px 0 #555, -1px 1px 0 #555, 1px 1px 0 #555;
}

.leaflet-tooltip.light {
    background-color: transparent;
    border: transparent;
    box-shadow: none;
    font-size: 12px;
    color: #0163FF;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.leaflet-tooltip.trans {
    background-color: transparent;
    border: transparent;
    box-shadow: none;
    font-size: 12px;
    color: #0163FF;
    text-shadow: none;
}

.locbut {
    font-size: 24px;
    padding: 5px;
    width: 34px;
    height: 34px;
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

.locbut:hover {
    background-color: #ddd;
}

.gpbut {
    top: -42px;
    font-size: 24px;
    padding: 5px;
    width: 34px;
    height: 34px;
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

.gpbut:hover {
    background-color: #ddd;
}

.tt2 {
    visibility: hidden;
    right: -70px;
    height: 30px;
    font-size: 16px;
    transform: scaleX(0);
    background-color: #fff;
    padding: 2px 6px;
    transition: .5s;
}

.index {
    top: -42px;
    font-size: 12px;
    padding: 5px;
    background-color: #ffffffd9;
}

.leaflet-touch .locbut,
.leaflet-touch .gpbut,
.leaflet-touch .index{
    padding: 3px;
}

.popinfo:empty {
    display: none;
}

 table.popinfo {
    border-collapse: initial;
}

.nameEntry table.popinfo td:first-of-type {
    width: 100px;
}

.leaflet-popup-content h3 {
    margin: 10px 0;
}

.popinfo tr {
    background-color: #fff;
}

.popinfo td {
    border: initial;
    text-align: left;
    min-width: initial;
    height: initial;
    padding: 1px;
    font-size: 1em;
}

/*                                                                     Banner */

.banner {
    padding: 10px;
    position: fixed;
    background: var(--back-light);
    z-index: 45;
    display: flex;
    flex-direction: column;
    width: 100vw;
    min-width: 300px;
    box-shadow: 0 3px 6px rgba(0,0,0,.6);
    top: 100%;
    transform: translateY(0);
    transition: transform .5s;
}

.banner > h2 {
    font-size: 1.1rem;
    text-align: center;
}

.banner .flex_parent > div{
    max-width: 260px;
    border: solid 1px var(--accent);
    border-radius: 4px;
    margin: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.6);
}

.banner .flex_parent div.flex{
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.banner .flex_parent div input {
    display: inline;
}

.banner .btn_round {
    padding: 4px;
}

.picker {
    position: fixed;
    text-align: center;
    z-index: 100;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 10px 10px 0 0;
    transition: .5s;
}

.picker div {
    font-size: 1.7rem;
    border-top: .5px solid var(--lightgray);
    padding: 14px 0;
    color: #555;
}

.picker div:first-of-type {
    border-radius: 10px 10px 0 0;
    font-size: 1rem;
    color: #000;
}

/*                                                                  Hamburger */
.bt-menu-trigger {
    flex: 0 0 1.4em;
    font-size: 1.125em;
    position: relative;
	cursor: pointer;
	transition: transform .3s;
}

.bt-menu-trigger span {
	position: absolute;
	top: 50%;
	width: 100%;
	height: .125em;
	margin-top: -1px;
	background-color: #000;
}

.bt-menu-trigger span:after, .bt-menu-trigger span:before {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	content: '';
	transition: transform .3s;
}

.bt-menu-trigger span:before {
	transform: translateY(-8px);
}

.bt-menu-trigger span:after {
	transform: translateY(8px);
}

.bt-menu-trigger.bt-menu-open  {
    transform: rotate(180deg);
}

.bt-menu-trigger.bt-menu-open  span:before {
	transform: translateY(-5px) translateX(7px) rotate(45deg) scaleX(0.6);
}

.bt-menu-trigger.bt-menu-open  span:after {
	transform: translateY(5px) translateX(7px) rotate(-45deg) scaleX(0.6);
}

