/* publicstyles.css */




/* Styles for signup.js dialog OLD!!!! */
.heading-spacer {
    margin-top:15px;
}
.signup-content {
    display: flex;
    flex-direction: column;
    align-items: start; /* Align items to the start of the container */
}
.form-wrapper {
    margin-left: 117px; /* Adjust as needed for the left margin */
    width: 60%; /* Use 100% if you want the wrapper to take the full width of its parent */
}
.form-label {
    display: block;
    margin-bottom: 2px; /* Closer to the input box */
    font-size: 16px;
    font-weight: 600;
}
.radio-label {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}
.password-instruction {
    font-size: 12px;
    max-width: 100%; /* Ensures text does not exceed input width */
    text-align: left;
    margin-bottom: 15px;
    margin-left: 0px;
}
.agree-instruction {
    font-size: 12px;
    max-width: 100%; /* Ensures text does not exceed input width */
    text-align: left;
    margin-top: 25px;
    margin-bottom: 15px;
    margin-left: 0px;
}
/*
.form-error-message, .signin-error-message {
    color: red;
    font-size: 16px;
    text-align: left;
}
*/
.signin-prompt {
    font-size: 13px; 
    margin-top: 50px;
    margin-bottom: 15px;
    margin-left: 13px;
    color: rgba(84, 84, 84, 0.65);
}
.register-prompt {
    font-size: 12px; 
    margin-top: 30px;
    margin-bottom: 5px;
}
.forgot-prompt {
    font-size: 12px; 
    margin-top: 5px; 
    margin-bottom: 15px;
}
.forgot-note {
    font-size: 12px; 
    margin-top: 0px; 
    margin-bottom: 35px;
}
.password-field {
    position: relative;
    display: inline-block;
}
#password, #repeat-password {
    padding-right: 30px; /* make space for the eye icon inside the input */
    margin: 0px 0px 2px 0px;
    width: 220px;
}

.toggle-password {
    /*top: 50%;
    transform: translateY(-50%);*/
    position: absolute;
    right: 3px;
    top: 6px;
    border: none;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}
#password-toggle-button, #repeat-password-toggle-button {
    font-size: 18px;
    color:#bec0c3;
    margin-top: 3px;
}

/* Main styles */
body {
    margin: 0;
    padding: 0;
}
#map, #staticMap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}
#statusContainer {
    position: absolute;
    bottom: 10px; /* move it to the bottom of the map */
    left: 50%;   /* center it horizontally */
    transform: translateX(-50%); /* shift it back by half its width to truly center it */
    display: flex; /* using flexbox to arrange the children side by side */
    z-index: 1000; /* ensure it's above the map */
}
#zoomDisplay, #gps, #mapCreateStyleDisplay, #mapPublishStyleDisplay  {
    font-family: 'Helvetica', 'Open Sans', 'Arial', sans-serif;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px; /* adding some space between the two boxes */
}
#mapControlsContainer {
    position: absolute;
    top: 10px; /* move it to the top of the map */
    left: 50%; /* center it horizontally */
    transform: translateX(-50%); /* shift it back by half its width to truly center it */
    display: flex; /* using flexbox to arrange the buttons side by side */
    z-index: 1001; /* ensure it's above the map and other elements */
}
.fileControlButton {
    font-family: 'Helvetica', 'Open Sans', 'Arial', sans-serif;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    width: auto;  /* Allows button to adjust width based on text content */
    text-align: center;  /* Center the text inside the button */
    white-space: nowrap;  /* Ensure text doesn't wrap to the next line */
    overflow: hidden;  /* Hide overflow in case of longer text */
    display: inline-block; /* Ensures that the button respects the width property */
    min-width: 80px; /* Minimum width for buttons to ensure better display */
}
/* Remove the default top border and add a left border to buttons except the first one */
.fileOpsControls.mapboxgl-ctrl-group button+button {
    border-top: none;
    border-left: 1px solid rgb(221,221,221);
}
/* Adjust border-radius for first and last buttons */
.fileOpsControls .mapboxgl-ctrl-group .fileControlButton:first-child {
    border-radius: 5px 0 0 5px;
}
.fileOpsControls .mapboxgl-ctrl-group .fileControlButton:last-child {
    border-radius: 0 5px 5px 0;
}
.close-button {
position: absolute;
top: 5px;
right: 5px;
background-color: transparent;
border: none;
cursor: pointer;
font-size: 14px;
line-height: 1;
}

/* Extended map controls */
.rotate-icon {
    width: 20px;
    height: 20px;
}


/* Swal2 */
.swal2-box-heading {
    font-family: 'Helvetica','Open Sans','Arial', sans-serif;
    font-weight: bold;
    font-size: 18px;
    display: block;
    margin-block-start: 0.7em;
    margin-block-end: 1.1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
.swal2-title {
    font-family: 'Helvetica','Open Sans','Arial', sans-serif;
    font-size: 20px;
}
.custom_auth_title {
    font-size: 30px;
    color: #4763A8;
}
.swal2-label {
font-family: 'Helvetica','Open Sans','Arial', sans-serif;
font-weight: bold;
font-size: 14px;
}
.swal2-input, .swal2-select {
    font-family: 'Helvetica', 'Open Sans', 'Arial', sans-serif;
    font-size: 14px;
    color: #545454;
    border: 2px solid #bec0c3; /* Main border color */
    border-radius: 3px;
  }
.swal2-close {
font-size: 16px; /* Adjust the size of the 'X' in the close button */
width: 20px; /* Adjust the width of the close button */
height: 20px; /* Adjust the height of the close button */
line-height: 20px; /* Adjust line height for vertical alignment */
}





/* Markers */
#marker-dialog .swal2-input  { 
    height: 22px;
    padding: 0px;
}
/* Apply padding to input and textarea elements only, not select elements */
#marker-dialog .textarea-and-input-left-padding.swal2-input:not(select) {
    padding-left: 5px;
}
#min-zoom-level-input-column {
    height: 22px;
}  
/* Style for placeholder text in input fields */
.swal2-input::placeholder {
    color: #c0c0c0; /* Lighter font color */
}
/* Style for placeholder text in textarea fields */
#description-input::placeholder {
    color: #c0c0c0; /* Lighter font color, match the color with the input placeholder */
}
.swal2-html-container {
font-family: 'Helvetica','Open Sans','Arial', sans-serif;
}
.swal2-actions {
margin: 1em auto 0;
}
#iconPreview {
    width: 41px;
    height: 54px;
}
#latitude-input, #longitude-input {
    width: 100px;
    /* Add other styles as needed */
}
#marker-legend-description-input {
    width: 165px;
}
.marker {
    max-width: 500px;
    max-height: 95dvh;  /* Adjust to fit screen */
}
.marker-content {
font-size: 14px;
font-family: 'Helvetica','Open Sans','Arial', sans-serif;
}
.marker-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.marker-label-column, .marker-input-column {
flex: 1;
display: flex;
justify-content: flex-start;  /* Aligns left */
}
.marker-label-column {
font-weight: bold;
padding-left: 60px;
}
.marker-input-column textarea {
font-family: inherit;  /* Use the same font family as its parent */
}
/* CONFLICT WITH SWAL2-INPUT 22px ??? 1.625em */
.marker-input {
margin: 0;
height: 1.625em;
}

#startdisplay-container,
#enddisplay-container {
    display: flex !important; /* Force flex layout because Flatpickr changes the layout to block */
}
#startdisplay-input, #enddisplay-input {
    width: 75%;
}
.marker-row-hidden-for-timedisplay-inputs {
    margin-bottom: 0px !important; /* Override any other margin-bottom settings */
}
.flatpickr-calendar {
    font-family: 'Helvetica', 'Open Sans', 'Arial', sans-serif;
}
.swal2-validation-message {
    font-family: 'Helvetica', 'Open Sans', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 14px;
}

/* Different for color pickers */
#label-color-input.swal2-input,
#label-line-color-input.swal2-input,
#circle-color-input.swal2-input,
#circle-border-color-input.swal2-input {
    height: 22px;
    padding: 0 2px 0 2px;
}
#label-color-input, #label-line-color-input,
#circle-color-input, #circle-border-color-input {
    margin: 0px 0 0 0;
    width: 50px;
}

#en-container, #fr-container, #es-container, #de-container,
#it-container, #pt-container {
    display:none;
}
.languageField {
    font-weight: bold;
    color: #7066E0;
}


/* Lines */
.line-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.line-column-heading {
    margin-block-start: 0em;
    }
.line-labels-column {
display: flex;
flex-direction: column;
flex-basis: 40%;
align-items: flex-start;
text-align: left;
}
.line-inputs-column {
display: flex;
flex-direction: column;
flex-basis: 30%;
align-items: flex-start;
}
.line-spacer-column {
flex-direction: column;
flex-basis: 2%;
}
.bottom-line-inputs {
    display: none;
    padding-top: 0px; /* To partly address misalignment with first line input column */
}
.show-bottom-line .bottom-line-inputs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#line-dialog .swal2-input { 
    height: 22px;
    padding: 0;
}
/* Different for color picker */
#line-dialog #line-color.swal2-input,
#line-dialog #bottom-line-color.swal2-input {
    height: 22px;
    padding: 0 2px 0 2px;
}
/* Apply padding to input and textarea elements only, not select elements */
#line-dialog .textarea-and-input-left-padding.swal2-input:not(select) {
    padding-left: 5px;
}
#line-type-label {
    margin: 42px 0 0 0;
}
#displaytime-line-label {
    margin: 16px 0 0 0;
}
#startdisplay-line-label, #enddisplay-line-label {
    margin: 16px 0 0 0;
}
#line-width-label, #line-arrows-label, #line-snap-label,
 #line-curvy-label, #min-zoom-level-select-label, #in-legend-select-label,
 #line-legend-description-label, #line-legend-description-label-en,
  #line-legend-description-label-fr, #line-legend-description-label-es,
   #line-legend-description-label-de, #line-legend-description-label-it,
    #line-legend-description-label-pt, #line-additional-language-label,
    .language-field-label {
    margin: 16px 0 0 0;
}
#line-color-label {
    margin: 16px 0 0 0;
}
#line-pattern-label {
    margin: 16px 0 0 0;
}
#line-opacity-label {
    margin: 16px 0 0 0;
}
#line-inputs-top {
    margin-block-end: 19px;
}
#bottom-line-inputs-top {
    margin-block-end: 19px;
}
#line-type {
    margin: 0px 0 0 0;
    width: 165px;
}
#line-pattern {
    margin: 10px 0 0 0;
    width: 110px;
}
#line-color, #bottom-line-color {
    margin: 10px 0 0 0;
    width: 50px;
}
#line-opacity, #line-width, #line-arrows, #line-snap, #line-curvy,
 #bottom-line-opacity, 
#bottom-line-width, #line-additional-language-select {
    margin: 10px 0 0 0;
}
.line-language-field-input {
    margin: 12px 0 0 0;
    font-size: 14px;
}
#displaytime-line-select {
    margin: 10px 0 0 0;
}
#startdisplay-line-input, #enddisplay-line-input {
    margin: 10px 0 0 0;
    width: 160px;
}
#line-in-legend-select {
    margin: 14px 0 0 0;
}
#line-min-zoom-level-select {
    margin: 10px 0 0 0;
}
#line-legend-description-input {
    margin: 10px 0 0 0;
    width: 165px;
}
.line-legend-description-input-languages {
    margin: 14px 0 0 0;
    width: 165px;
}
#bottom-line-pattern {
    width: 110px;
}
.language-en, .language-fr, .language-es, .language-de,
.language-it, .language-pt {
    display:none;
}



/* Custom rotate controls */
.rotate-left, .rotate-right {
    background-color: #fff;
    width: 30px;
    height: 30px;
    display: inline-block;
    cursor: pointer;
    border: none;
    padding: 0;
  }
  .rotate-left:hover, .rotate-right:hover {
    background-color: #eef;
  }

/* Settings for new map */
.new-map-settings-top-row {
    margin-top: 10px;
}


/* Help dialog */
.custom-help-swal2-popup {
    margin-top: 60px; /* Adjust this value to ensure it doesn't overlap with your top bar */
    margin-bottom: 60px;
}
.help-dialog-heading {
    font-size: 1.1em; /* Adjust size as needed */
    color: #7066E0;
    font-weight: bold; /* Adjust font weight as needed */
}
.quick-start.help-dialog-heading {
    margin-top: 15px; /* Adjust the top margin */
    margin-bottom: 10px; /* Adjust the bottom margin */
}
.button-overview.help-dialog-heading {
    margin-top: 35px; /* Adjust the top margin */
    margin-bottom: 10px; /* Adjust the bottom margin */
}
#creative-tools.swal2-box-heading {
    margin-block-end: 0.7em; /* Adjust this value as needed */
}
#map-controls.swal2-box-heading {
    margin-block-end: 0.7em; /* Adjust this value as needed */
}
.creative-tools.help-dialog-heading {
    margin-top: 35px; /* Adjust the top margin */
    margin-bottom: 0px; /* Adjust the bottom margin */
}
.help-dialog-subheading {
    font-size: 1.2em; /* Adjust size as needed */
    margin-top: 8px; /* Adjust the top margin */
    margin-bottom: 8px; /* Adjust the bottom margin */
} 
.buttonoverview-wrapper {
    display: flex;
    justify-content: center;
    align-items: start; /* Aligns items to the top */
}
.buttonoverview-icon-wrapper {
    display: flex;
    justify-content: center;
}
.buttonoverview-icon-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keep items left-aligned with each other */
}
.buttonoverview-icon-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Spacing between rows */
}
.buttonoverview-icon {
    border: 2px solid lightgray;
    border-radius: 2px; /* Curved corners */
    margin-right: 10px; /* Spacing between icon and text */
    width: 29px; /* Fixed width for icon containers */
    height: auto; /* Adjust height automatically */
    display: flex;
    justify-content: center;
    align-items: center;
}
.buttonoverview-icon img {
    max-width: 100%; /* Ensure the image does not exceed the container */
    max-height: 100%;
}
.buttonoverview-spacer {
    width: 100px; /* Width of the spacer column, adjustable */
    /* Additional styling if needed */
}
.instructions-container {
    width: 100%;
}
.instruction-row {
    display: flex;
    margin-bottom: 10px; /* Space between rows */
}
.row-top {
    margin-top: 20px;
}
.row-bottom {
    margin-bottom: 25px;
}
.instruction-left-column {
    flex: 1;
    font-weight: bold; 
    text-align: left;
    font-size: 0.9em;
}
.instruction-right-column {
    flex: 3; /* Takes more space */
    text-align: justify;
    font-size: 0.8em;
}
.instruction-centering {
    display: block;
    font-weight: bold; 
    text-align: center;
    font-size: 0.9em;
}
#quick-start-container {
    padding-left: 100px;
    padding-right: 40px;
}



/* Other */
#icon-image-select {
    align-self: center; /* Replaces the column's stretch property*/
    margin-right: 10px;
    text-transform: capitalize; /* Capitalises the first letter of the icon name */
    }
#custom-file-button {
    padding: 7px 19px;
    font-size: 1em;
    color: #fff;
    background-color: #3085d6;
    border: 0;
    border-radius: 0.25em;
    cursor: pointer;
}
#custom-file-button:hover {
    background-color: #3071a9;
}
#icon-input {
    display: none;
}





div.swal2-container input.swal2-input.save-file {
    margin-right: 0.1em; /* Overriding the right margin */
    font-size: 18px  /* Increasing the font size */
}
#savefilename-input {
    font-size: 18px;
    /*max-width: 100%;*/
    width: 80%;
}
.save-file .json-extension {
    position: relative;
    left: -35px; /* Adjust based on your layout */
    top: 5px; /* Align with input field */
    color: #555; /* Style as needed */
}
.save-dialog-note {
    font-size: x-small; /* Smaller font size for the note */
    margin-top: 10px; /* Space between the input box and the note */
    color: #545454; /* You can change the color if needed */
}
.custom-save-dialog-margins .swal2-input {
    margin: 1em 0.1em 3px; /* Adjust these values as needed */
}
#save-styles .swal2-input  { 
    height: 22px;
    padding: 0px;
}
.save-marker-label-column {
flex: 1;
/*flex-basis: 55%;*/
display: flex;
justify-content: flex-start;  /* Aligns left */
padding-left: 52px;
}
.save-marker-input-column {
flex: 1;
/*flex-basis: 45%;*/
display: flex;
justify-content: flex-start;  /* Aligns left */
}
.save-marker-label-column {
font-weight: bold;
}
.save-marker-input-column textarea {
font-family: inherit;  /* Use the same font family as its parent */
}
.save-marker-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.save-marker-row-top {
margin-top: 15px;
}


.select-file-counter {
    font-family: 'Helvetica','Open Sans','Arial', sans-serif;
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: small;
}
#select-file-input {
    font-size: 18px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
#prevPage, #nextPage {
    background-color:#A0A8B0;
    font-size: 12px;
}
.select-file-positioning {
    text-align: center;
    margin-top: 10px;
}
#select-domain-input {
    font-size: 18px;
    width: 70%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
#domain-verification-row {
    margin-top: 10px;
    font-size: 15px;
}
#domainverification-select {
    height: 1.9em;
    font-size:15px;
}

/* auth_signup.js with Clerk */
.signup_popup {
  /* 1️⃣ Neutralise SweetAlert’s own focus shadow */
  --swal2-input-focus-box-shadow: none !important;
}
.signup_popup .clerk-style-input {
    width: 100%;
    padding: 6px 12px;
    display: block;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 400;
    height: 2.25rem;
    border: 0 !important; /* Override SweetAlerts's default light-blue (#b4dbed) ring when clicking into input field */
    /* 1 px, light grey “faux-border” + faint inner shadow (Clerk’s default) */
    box-shadow: rgba(0, 0, 0, 0.07) 0px 0px 0px 1px, rgba(0, 0, 0, 0.07) 0px 0px 1px 0px;
}
/* --- hover state – darken the faux-border a touch --- */
.signup_popup .clerk-style-input:hover {
    box-shadow:
      rgba(0,0,0,.31) 0 0 0 1px,
      rgba(0,0,0,.27) 0 0 1px 0;
 }
 /* --- focus state – keep darker border AND add the outline --- */
.signup_popup .clerk-style-input:focus,
.signup_popup .clerk-style-input:focus-visible,
.signup_popup .clerk-style-input:active {
  box-shadow:
      rgba(0,0,0,.31) 0 0 0 1px,
      rgba(0,0,0,.27) 0 0 1px 0;
  outline: 3px solid #e5e5e5;
  outline-offset: 1px;                        
}
#signup-email {
    margin: 0px 0px 25px 0px;
}
#signup-customer-name {
    margin: 0px 0px 3px 0px;
}
#signup-content {
    padding: 0.1rem 0.9rem;
    text-align: left;
    margin-top: 20px;
    font-size: 13px;
}
.signup-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #545454;
}
.custom_confirm_button {
    font-size: 13px !important;
    border-radius: 6px !important;
}
.custom_cancel_button {
    font-size: 13px !important;
    border-radius: 6px !important;
}

/* ---------- SweetAlert2 “Clerk look” overrides ---------- */


/* 1️⃣  No opening/closing animation */
.signup_popup .swal2-popup.swal2-show,
.signup_popup .swal2-popup.swal2-hide {
  animation: none !important;      /* kills the scale/fade keyframes */
  transform: none !important;      /* no zoom-in */
  opacity: 1 !important;
}

/* 2️⃣  White veil instead of grey */
.signup_popup .swal2-backdrop-show {
  background: rgba(255, 255, 255, 0.95) !important; /* nearly solid white */
}

/* 3️⃣  Card shadow + border like Clerk’s */
.swal2-popup.signup_popup {
  box-shadow:
    0  6px 24px rgba(0, 0, 0, .16),
    0  2px  4px rgba(0, 0, 0, .08),
    0  0px  1px rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;               
}

/* viewer-js shell */
/* ===== viewer toolbar buttons (OUTSIDE SweetAlert popups) ===== */
.viewer-btn-ok,
.viewer-btn-cancel {
  padding: 0.625em 1.1em;
  border: 0;
  border-radius: 0.25em;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.3125em;
  transition: background-color .2s ease;
}

/* OK / confirm colour — your brand purple */
.viewer-btn-ok {
  background: #7066E0;          /* normal */
  color: #fff;
}
.viewer-btn-ok:hover,
.viewer-btn-ok:focus { background:#5c52c1; box-shadow: 0 0 0 3px rgba(112, 102, 224, 0.5) }   /* hover / focus */
.viewer-btn-ok:active        { background:#483fa4; box-shadow: 0 0 0 3px rgba(112, 102, 224, 0.5) }

/* Cancel / neutral grey (matches SweetAlert cancel) */
.viewer-btn-cancel {
  background: #6e7881;          /* normal */
  color: #fff;
}
.viewer-btn-cancel:hover,
.viewer-btn-cancel:focus { background-image: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2));
     box-shadow: 0 0 0 3px rgba(110, 120, 129, .5); }
.viewer-btn-cancel:active        { background-image: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2));
     box-shadow: 0 0 0 3px rgba(110, 120, 129, .5); }

.viewer-btn-ok:disabled,
.viewer-btn-cancel:disabled {
  background:#e3e5e9; color:#9aa0a6; cursor:default;
}

