/* Import font-awesome icon library */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css");

body {
  height: 100vh;
  margin: 0;
}

body {
  /*background-image: url('frontend/images/topography_1.png');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.d-grid {
  margin-bottom: 50px; /* Adjust this value as needed to create more space */
}

/* Center content vertically and horizontally */
.content {
  align-items: center;
  justify-content: center;
  z-index: 0;
}

/* Header style */
.header {
  z-index: 300;
  background-color: white;
}

/* Fixed header style */
.myHeader {
  position: fixed;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
  width: 100vw;
  padding: 1rem !important;
  background-color: white;
  z-index: 300;
}

/* Logo style */
.logo {
  height: 10px;
  width: 10px;
}

/* Main container style */
.main-container {
  height: inherit;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background: white;
  z-index: 0;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 100px;
}

.datasourceLoad {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card container style */
#card-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 20px;
  overflow-y: auto;
}

/* Card style */
.card {
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 300px !important;
  margin: 15px;
  max-width: 35% !important;
  border: 1px solid #ccc;
}
a.card.p-5 {
  padding: 1rem !important;
}
/* Card icon style */
.card .fas {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
  font-size: 70px !important;
  color: white;
  background: #005a9e;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card hover style */
.card:hover .fas {
  color: #005a9e;
  background-color: white;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  background: #005a9e;
}

.card:hover h3 {
  color: white;
}

.choice-card {
  text-align: center;
  border: 1px solid #000;
  border-radius: 5px;
  margin-left: 10rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-color: lightgray;
  width: 100%;
}

/* Map style */
#map {
  position: relative;
  border-radius: 0.375rem;
  height: 65vh;
  z-index: 0 !important;
}

/* Drop container style */
.drop-container {
  position: relative;
  display: flex;
  gap: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  padding: 20px;
  border-radius: 10px;
  border: 2px dashed #009dd3;
  color: #444;
  cursor: pointer;
  transition: background 0.2s ease-in-out, border 0.2s ease-in-out;
  width: 100%;
}

/* Drop container hover style */
.drop-container:hover {
  background: #009dd30a;
  border-color: #009dd3;
}

/* Drop container title style */
.drop-container:hover .drop-title {
  color: #222;
}

.drop-title {
  color: #444;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: color 0.2s ease-in-out;
}

/* Form label and input style */
label,
input {
  margin-bottom: 10px;
}

/* Remove Bootstrap grid gutter */
.container {
  --bs-gutter-x: 0 !important;
}

/* Form group margin */
.form-group {
  margin-top: 3rem;
}

/* Button container style */
.btn-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-direction: row;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Button style */
.btn {
  background: #005a9e !important;
  border: 0px !important;
}

/* Button hover style */
.btn:hover {
  background: #002244 !important;
}

/* Loading text style */
.loading {
  color: white;
  font-size: 30px;
  font-weight: bold;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
}

/* Modal dialog style */
.modal-dialog {
  display: flex;
  justify-content: center;
  width: 100%;
  display: block;
}

/* Font-awesome icon style */
.fa {
  font-size: 80px;
  color: #009dd3;
}

/* Spinner container style */
.spinner-container {
  text-align: center;
  margin: 0 auto;
  justify-content: center;
}

/* List group item background color */
.list-group-item {
  background-color: #f8f9fa;
}

/* Error message style */
.alert {
  padding: 0.3rem;
  font-size: 0.9rem;
  padding-top: 0.5rem !important;
  justify-content: center;
  padding-bottom: 0.5rem !important;
  margin-top: 0.5rem;
  display: flex;
}

/* */
.choices-container {
  display: flex;
  align-items: center;
  margin-right: 100px;
}

/* */
.choices {
  display: flex;
  flex-direction: column;
  margin-left: 30px;
}

.btn:disabled {
  background-color: #009ed389 !important;
}

.radio-group {
  display: inline-block;
  margin-right: 40px;
}

.question-mark {
  cursor: pointer;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  background-color: #007bff; /* Bootstrap primary color */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  margin-left: 5px;
  position: relative;
  vertical-align: middle;
  cursor: pointer; /*indicates clickable area */
}

.tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: whitesmoke;
  color: black;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  font-size: medium;
  font-weight: 400;
  position: absolute;
  z-index: 400;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid darkblue;
  opacity: 0;
  transition: opacity 0.3s;
}

.question-mark:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Add margin to the label for spacing */
label {
  margin-right: 20px; /* Increase this value to add more space */
}

/* Footer */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #fffafa;
  color: #000000;
}

.footer-logos img {
  margin-right: 15px; /* Space between logos */
}

.cookie-policy-popup {
  display: none;
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 300px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(14, 12, 12, 0.1);
  padding: 15px;
  z-index: 1000;
}

.privacy-policy-popup {
  display: none;
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 300px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(14, 12, 12, 0.1);
  padding: 15px;
  z-index: 1000;
}

/* cancel button colour*/
#cancelButton {
  background-color: #b40000;
  border-color: #b40000;
}

#cancelButton:hover {
  background-color: #8b0000;
  border-color: #8b0000;
}

/* Ensure this class is unique to avoid conflicts with other styles */
.btn-container .btn {
  width: 150px; /* Ensuring consistent button width */
}

#customCancelBtn {
  background-color: #b40000 !important; /* Red color */
  color: white !important; /* White text color */
}

#customCancelBtn:hover {
  background-color: #8b0000 !important; /* Darker red on hover */
}

.footerimg {
  height: 100%;
  width: 8rem;
}

/* Styling for policy pop-up in the footer */
#cookiePolicyPopup {
  display: none; /* Initially hidden until triggered */
  position: fixed; /* Or 'absolute' if you want it to scroll with the page */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%; /* You can adjust this as needed */
  max-width: 800px; /* You can adjust this as needed */
  height: auto; /* Adjust the height to fit the content */
  max-height: 90vh; /* You can adjust this as needed */
  overflow-y: auto; /* Allows scrolling inside the popup if the content is too long */
  padding: 20px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 1050; /* Make sure it's above other items on the page */
}

#privacyPolicyPopup {
  display: none; /* Initially hidden until triggered */
  position: fixed; /* Or 'absolute' if you want it to scroll with the page */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%; /* You can adjust this as needed */
  max-width: 800px; /* You can adjust this as needed */
  height: auto; /* Adjust the height to fit the content */
  max-height: 90vh; /* You can adjust this as needed */
  overflow-y: auto; /* Allows scrolling inside the popup if the content is too long */
  padding: 20px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 1050; /* Make sure it's above other items on the page */
}

.policy-container {
  display: flex;
  justify-content: space-between;
}

.privacy-policy-container,
.cookie-policy-container {
  position: relative;
  padding-right: 20px;
}

.privacy-policy-popup,
.cookie-policy-popup {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  max-width: 90%;
  height: auto;
  max-height: 80%;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  overflow-y: auto;
  border-radius: 8px;
}

.popup-close-btn {
  padding: 8px 16px;
  background-color: #005a9e; /* Blue background */
  border: none;
  border-radius: 20px; /* Increased border-radius for rounded corners */
  color: white;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  display: block;
  width: auto;
  margin: 20px auto 10px; /* Center button horizontally */
  text-align: center; /* Ensure text is centered */
}

/* Background modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

/* Ensures a font that supports all character and that it is black */
h4 {
  font-family: Arial, sans-serif;
  color: black;
}

.req{
  color: red;
}
