html, body {
    height: 100%;
    margin: 0;
    font-family: "DM Sans", serif;
    font-optical-sizing: auto;
}

html {
    position: relative;
}

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(160deg, #ffffff 50%, var(--light-color-600) 50%);
    background-size: cover;
    background-attachment: fixed;
}

a {
    color: var(--primary-color-600);
    text-decoration: none;
    font-weight: 400;
    transition: 0.5s ease;
}

.isPrimary {
    color: var(--primary-color-600);
}

.isSecondary {
    color: var(--secondary-color-500);
}

.isTertiary {
    color: var(--tertiary-color-500);
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

emptyProperty {
    font-weight: 300;
    color: lightgray;
    font-size: 14px;
}

treasuHuntStatus {
    font-size: 0.7rem;
}

.card-date {
    font-size: .75rem;
    font-weight: 200;
    opacity: .8;
}

.preserve-line-breaks {
    white-space: pre-wrap;
}

.smart-button {
    color: white;
    border: none;
    background-color: transparent;
    outline: none;
    padding: 0;
}

.main-title {
    font-weight: 700;
    letter-spacing: -0.2rem;
}

.secondary-title {
    font-weight: 400;
    letter-spacing: -0.08rem;
}

.no-style-link {
    text-decoration: inherit;
}

section {
    padding: 1rem 0;
}


/* ------------ Validation errors ------------ */
.field-validation-error, label.error {
    color: red;
    font-weight: 600;
}

.input-validation-error, input.error, select.error, textarea.error {
    border: 2px solid red;
}

.validation-summary-errors ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
}

.validation-summary-errors li {
    color: red;
    border-left: 3px solid red;
    padding-left: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    background-color: rgba(255, 0, 0, 0.05);
    margin-bottom: 2px;
}

/* Solves UI bug when adding custom jquery validator in form */
#-error {
    display: none !important;
}
/* ------------ end Validation errors ------------ */


aside {
    background-color: rgba(0,0,0, 0.1);
    padding: 1em;
    height: 100%;
    border-radius: 0.7rem;
}

/* Image styiling in form for entity with image */
.preview-container {
    padding-top: 100%;
    position: relative;
}

    .preview-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

/* ---------- Leaflet custom ----------- */

.custom-marker .circlePoiMarker {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color-500); /* Customize the circle's appearance */
    border-radius: 50%; /* Make it circular */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-color-500);
}

.custom-marker .text {
    color: black; /* Customize text color */
    font-size: 1.5rem; /* Customize text size */
}

.existing-poi-marker .circlePoiMarker {
    width: 40px;
    height: 40px;
    background-color: var(--primary-colorAlpha-700); /* Customize the circle's appearance */
    border-radius: 50%; /* Make it circular */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color-500);
    transition: 0.1s ease;
    cursor: pointer;
}

    .existing-poi-marker .circlePoiMarker.active {
        background-color: var(--primary-colorAlpha-700);
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        border: 2px solid red;
    }

.new-poi-marker .circlePoiMarker {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-colorAlpha-700) !important; /* Customize the circle's appearance */
    border-radius: 50%; /* Make it circular */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color-500);
    transition: 0.5s ease;
}


/* Dark theme for leaflet-routing-alternatives-container */
.leaflet-routing-container {
    background-color: #333 !important; /* Set the background color to a dark color */
    color: #fff; /* Set the text color to a light color */
}

.info.legend.leaflet-control > h4,
.info.legend.leaflet-control span {
    color: var(--dark-color-500);
}


/* ---------- end Leaflet custom ----------- */


/* ---------- PROGRESS BAR FORM ----------- */

.steps {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    position: relative;
}

    .steps .circle-step {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        width: 50px;
        color: #999;
        font-size: 22px;
        font-weight: 500;
        background: #fff;
        border-radius: 50%;
        border: 4px solid #e0e0e0e0;
    }

        .steps .circle-step.active {
            border-color: var(--primary-color-500);
            color: var(--primary-color-500);
        }

    .steps .progress-line {
        position: absolute;
        height: 4px;
        width: 100%;
        background: #e0e0e0e0;
        z-index: -1;
    }

.progress-line .indicator {
    position: absolute;
    height: 100%;
    width: 0%;
    background: var(--primary-color-500);
}

/* -------------------------------------------------------------- */
.extent-center-image-preview-container {
    padding-top: 100%;
    position: relative;
}

    .extent-center-image-preview-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }


.square-center-image-preview-container {
    padding-top: 100%;
    position: relative;
}

    .square-center-image-preview-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.image-preview-container {
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid lightgray;
}

    .image-preview-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

/* --- Small box with thumbnail and text --- */

.candy-box {
    display: flex;
    height: 70px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255, 0.18);
}

.candy-box-body {
    flex: 1;
    padding: 20px;
    background-color: var(--primary-color-100);
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}

    .candy-box-body span {
        color: white;
    }

/* --- end Small box with thumbnail and text --- */


/* --- Summernote Additional CSS --- */
.note-editable {
    background: #212529;
    color: white;
    border-radius: 0.375rem !important;
    border: 1px solid #495057;
}

    .note-editable:focus {
        border: 1px solid var(--primary-color-500);
    }

/* --- End Summernote Additional CSS --- */

.small-business-image {
    max-height: 50px;
    border-radius: 12px;
    margin-right: 8px;
}

.icon-fixed-width {
    width: 26px; /* Adjust the width as needed */
    text-align: center; /* Center the icon within the fixed width */
}