body {
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(to right, lightblue, violet);
}

#login-container {
    position: relative;  /* Or use 'display: block;' */
    margin: 30px;
    z-index: 100;
	text-align: center;
}

blockquote {
  font-style: italic;
  margin-top: 20px;
  padding: 20px;
  border-left: 5px solid #333;
  color: #777; /* Slightly grey text */
  font-size: 36px; /* Large font size */
  font-family: 'Georgia', serif; /* Special font (serif) */
  line-height: 1.4;
  text-align: center; /* Center the quote */
}
.container {
  display: flex;
  flex-grow: 1;
}

/* Map Container */
#map-container {
  position: relative;
}

#map {
  height: 100%;
  width: 100%;
}

/* List Container */
#list-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
	min-height: 50%;
}

/* Media Query for Portrait Mode */
@media (orientation: portrait) {
  .container {
    flex-direction: column; /* Stack items vertically */
  }

  /* Ensure each section takes full width */
  #map-container {
	flex: none; /* Prevent resizing */
    height: 60vh;
  }
}

/* Media Query for Landscape Mode */
@media (orientation: landscape) {
  .container {
    flex-direction: row; /* Display side by side in landscape */
  }

  /* Ensure each section takes half the space on landscape */
  #map-container {
    flex: 1;
  }
}

#list-container h3 {
  margin-top: 0;
}

#location-list {
  list-style: none;
  padding: 0;
}

#location-list li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

#location-list button {
  margin-left: 5px;
}

/* Sticky Bottom Bar */
#bottom-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  z-index: 1000; /* Higher value to ensure it's above other content */
  padding: 10px;
}

/* Style buttons inside the bottom bar */
#bottom-bar button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: black; /* Filled black background */
  color: white; /* White font color */
  font-weight: bold; /* Optional: make text bold */
  flex-grow: 1; /* Make each button fill available space */
  margin: 0 5px; /* Add some space between buttons */
}

#bottom-bar button:hover {
  background-color: #333; /* Slightly lighter black for hover effect */
  opacity: 0.8;
}

#bottom-bar input {
  display: none;
}

.form-container {
  width: 90%; /* Occupies most of the page width */
  max-width: 1200px; /* Adds a sensible limit to large screens */
  padding: 20pt;
}

.form-container h2 {
  text-align: center;
}

.form-container form {
  display: flex;
  flex-direction: column;
}

.form-container label {
  margin-bottom: 5px;
  font-weight: bold;
}

.form-container input,
.form-container textarea {
  margin-bottom: 15px;
  padding: 10px 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: calc(100% - 40px);
}

.form-container textarea {
  resize: vertical;
}

/* Custom marker icon style */
.leaflet-marker-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}

/* General styling for all input fields (text inputs, selects, etc.) */
.category-options input, .category-options select {
  padding: 10px; /* Apply consistent padding */
  font-size: 16px; /* Consistent font size */
  border: 1px solid #ccc; /* Consistent border */
  border-radius: 5px; /* Rounded corners */
  width: 100%; /* Make them take the full width */
  margin-top: 5px; /* Adds space between the label and the input/select */
}

/* Label Styling */
.category-options label {
  display: inline-block;
  width: 90%; /* Take up most of the available width */
  margin-bottom: 5px; /* Adds a bit of space below the label */
}

/* Dropdown (Select) specific styles */
.category-options select {
  background-color: #fff; /* Background color */
}

/* Styling for selected options inside the dropdown */
.category-options select:focus {
  outline: none; /* Remove the default outline */
  border-color: #6c7dff; /* Add a highlight border when focused */
  box-shadow: 0 0 5px rgba(108, 125, 255, 0.5); /* Add a shadow on focus */
}

/* Optional: Style the option elements */
.category-options select option {
  padding: 10px; /* Adjust padding inside the dropdown */
}



.edit-btn, .delete-btn, .navigate-btn {
  width: 30px;
  height: 30px;
  background-size: contain;
  background-position: center;
  border: 1px none; 
  display: inline-block;
  text-align: center;
  font-size: 16px;
  line-height: 40px; /* Centers the text vertically */
}

.edit-btn {
  background: url('graphics/icons/edit.svg') no-repeat center center;
  background-size: contain; /* Ensures the image fits inside the button */
}

.delete-btn {
  background: url('graphics/icons/delete.svg') no-repeat center center;
  background-size: contain; /* Ensures the image fits inside the button */
}

.navigate-btn {
  background: url('graphics/icons/navigateTo.svg') no-repeat center center;
  background-size: contain; /* Ensures the image fits inside the button */
}

/* Style the list items */
.location-list li {
  list-style-type: none;
  margin-bottom: 20px; /* Space between pins */
}

/* Create the two-column layout */
.pin-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

/* Container for the pin content */
.pin-container {
  display: flex; /* Use flexbox for side-by-side layout */
  justify-content: space-between; /* Space out the details and actions */
  width: 100%;
}

/* Column for pin details (text) */
.pin-details {
  width: 90%; /* Pin details take 70% of the width */
}

/* Column for pin actions (buttons) */
.pin-actions {
  display: flex;
  flex-direction: column;  /* Stack buttons vertically */
  align-items: flex-start; /* Align buttons to the top (start) */
  gap: 10px; /* Space between buttons */
  width: 10%; /* Buttons take 10% of the width */
}

/* Apply left margin to all text content */
#textonly {
  margin-left: 20px;
  margin-right: 20px;
  padding: 20px;
  text-align: left;
}


#back-home-btn {
  display: inline-block;
  background-color: black;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

#back-home-btn:hover {
  background-color: gray;
}

.language-selector {
  position: fixed;  /* Stays in place, even when scrolling */
  bottom: 20px;  /* Adjusts its position at the bottom */
  left: 20px;  /* Adjusts horizontal positioning */
  z-index: 2000; /* Ensures it stays above everything else */
}

#language-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid white;
  background-size: cover;     /* Ensures the background image covers the entire circle */
  background-position: center; /* Centers the image inside the circle */
  background-repeat: no-repeat; /* Prevents the image from repeating */
}

#language-icon.fr {
  background-image: url('language/fr-flag.svg'); /* French Flag */
}

#language-icon.de {
  background-image: url('language/de-flag.svg'); /* German Flag */
}

#language-icon.en {
  background-image: url('language/en-flag.svg'); /* English Flag */
}

#language-icon.it {
  background-image: url('language/it-flag.svg'); /* Italian Flag */
}


#language-dropdown {
  position: absolute;
  bottom: 30px; /* Moves the dropdown below the button */
  left: 0;
  background: lightgrey;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  flex-direction: column;
  padding: 5px 0;
}

/* Show the dropdown when the 'show' class is added */
#language-dropdown.show {
    display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.dropdown-item img {
  width: 20px; 
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-item:hover {
  background: #f0f0f0;
}
