* {
    box-sizing: border-box;
    font-family: monospace;
    background-position: center;
    background-repeat: no-repeat;
}

body,
html {
    height: 100%;
    width: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: 50% 50%;
}

.fail {
    background-color: tomato !important;
    font-weight: bold;
}

.active {
    background-color: gold !important;
}

.success {
    background-color: palegreen !important;
}

.neutral {
    background-color: gold !important;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.col {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.col:last-child {
    margin-bottom: auto;
}

.rm-right {
    margin-left: auto;
}

.rm-left {
    margin-right: auto;
}

.rm-lpad {
    margin-left: 0.5rem;
}

.rm-rpad {
    margin-right: 0.5rem;
}

/* Icons */

.rm-icon-filter {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-filter"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon></svg>')
}

.rm-icon-edit {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>')
}

.rm-icon-settings {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sliders"><line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line></svg>')
}

.rm-icon-save {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="green" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><polyline points="20 6 9 17 4 12"></polyline></svg>')
}

.rm-icon-discard {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="tomato" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>')
}

.rm-icon-delete {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="tomato" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-trash-2"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line></svg>')
}

.rm-icon-prev {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>')
}

.rm-icon-next {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>')
}

.rm-icon-clear {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="tomato" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-delete"><path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line></svg>')
}

.rm-icon-copy {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>')
}

.rm-icon-add-pitch {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>')
}
.rm-button {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 2rem;
    height: 2rem;
    background-color: #fff;
    display: block;
    border-radius: 3px;
}

.rm-text-button-link {
    height: 2rem;
    min-width: fit-content;
    padding: 0.3rem;
    font-size: 1.4em;
    /* color: #333 !important; */
    font-weight: bold;
    text-align: center;
    /* border: 1px solid #666; */
    /* cursor: default; */
    background-color: #fff;
}

.disabled {
    color: #666;
    opacity: 0.3;
}

.strike {
    text-decoration: line-through;
}

.rm-text-button {
    height: 30px;
    min-width: fit-content;
    padding: 0.3rem;
    font-size: 1.4em;
    color: #333 !important;
    font-weight: bold;
    text-align: center;
    border: 1px solid #666;
    cursor: default;
    background-color: #fff;

}

.rm-text-input {
    flex-grow: 1;
    font-size: 1.7em;
    border: none;
    outline: none;
}

.rm-text-container {
    position: relative;
    display: flex;
    flex-grow: 1;
}

.rm-text-clear {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    margin-right: 0.5em;
    ;
}

/* Control Panels */

.rm-dialog {
    height: 9.1rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.25em;
}

.rm-dialog>* {
    margin: 0.25em;
}

.row>.rm-text-button {
    flex-grow: 1;
}

.rm-grade-slider-container {
    font-size: 1rem;
    height: 30px;
    min-width: 99%;
    padding-top: 5.5px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 0.5rem;
}

.noUi-connect {
    background: gold !important;
}

/* Popups */

.leaflet-popup-content-wrapper {
    border-radius: 0.2rem !important;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.rm-icon-popup-container {
    display: flex;
    position: absolute;
    right: 0;
    left: 0;
    margin-top: 0.2rem;
}

.rm-popup-edit-controls {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    margin-top: 0.2rem;
}

.rm-edit-control {
    display: none;
}

.rm-edit-mode-on .rm-edit-control {
    display: flex;
}

.rm-pu-img, .rm-pu-img-placeholder {
    border-radius: 0.2rem 0.2rem 0 0;
    background: #e5e5e5;
    object-fit: cover;
    width: 88vh;
    height: 70vh;
    max-width: 50rem;
    max-height: 40rem;
}

@media (max-aspect-ratio: 2/3){
	.rm-pu-img, .rm-pu-img-placeholder {
		width: 95vw;
        height: 76vw;
        max-width: 50rem;
        max-height: 40rem;
	}
}

.rm-pu-name {
    font-weight: bold;
}

.rm-pu-grade {
    font-weight: bold;
    color: #333;
    max-width: fit-content;
}

.rm-pu-description {
    background-color: rgba(255, 255, 255, 0.95);
    min-width: 99%;
}

.rm-pu>.row>* {
    margin: auto 0.25em;
}

.rm-pu-ascender {
    margin-left: auto !important;
}

.hidden-input {
    display: none;
}

.rm-icon-editable-editing {
    position: relative;
    display: flex !important;
    flex-grow: 1;
    border: 1px solid blue;
    outline: none;
    min-height: 1.3rem;
}

.rm-icon-editable-editing:empty:before {
    content: attr(data-before);
    font-weight: normal;
    color: #666;
    position: absolute;
    right: 0;
}

/* Overlays */

.rm-invites {
    background-color: rgba(255, 255, 255, 0.5);
    max-width: 32rem;
    margin: auto;
}

.rm-invite-list {
    height: 60vh;
    overflow-y: scroll;
}

.rm-invite-list .row {
    border-top: 0.125rem #666 solid;
}

.rm-invite-list .row .left {
    flex-grow: 1;
    text-align: left;
    line-height: 1.8;
}

.rm-invite-list .row .right {
    text-align: left;
}

.bottom {
    margin-top: auto;
}

.hide-modals .child-modal {
    display: none;
}

.rm-overlay {
    position: absolute;
    z-index: 10000;
    cursor: default;
    width: fit-content;
}

.rm-overlay-top {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
}

.rm-overlay-middle {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 11rem;
    width: auto;
}


#rm-overlay-bottom-left {
    bottom: 12px;
    right: 12px;
    left: 5em;
    max-width: 32rem;
}

#rm-overlay-full {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Image carousel */

.rm-carousel {
    position: relative;
}

.rm-carousel .rm-icon-prev {
    position: absolute;
    left: 0;
    top: 50%;
}

.rm-carousel .rm-icon-next {
    position: absolute;
    right: 0;
    top: 50%;
}

.rm-carousel .rm-set-main-image {
    position: absolute;
    left: 0;
    top: 0;
}

.rm-carousel .rm-add-image {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

.rm-carousel .rm-remove-image {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
}

.rm-carousel .rm-text-button {
    height: 3.2em;
    min-width: fit-content;
    padding: 0.3rem;
    font-size: 1.4em;
    line-height: 2.4em;
    font-weight: bold;
    text-align: center;
    border: 1px solid #666;
    cursor: default;
    background-color: rgba(255, 255, 255, 0.7);
}


.rm-carousel-empty .rm-icon-next,
.rm-carousel-empty .rm-icon-prev {
    display: none;
}

.leaflet-control-attribution {
    line-height: 1.0 !important;
}

.rm-basemap-linz-tiles {
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: saturate(0.4) brightness(120%);
    mix-blend-mode: unset !important;
}

.spinner-container{
    position: absolute;
    z-index: 1000000000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.spinner {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-image: url("/feather/loader.svg");
	animation: leaflet-control-locate-spin 1s linear infinite;
}

@keyframes spinner {
	0% {
		transform: rotate(0deg)
	}

	100% {
		transform: rotate(360deg)
	}
}