
@font-face {
  font-family: 'ethnocentric';
  src: url('../fonts/ethnocentric\ rg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Ensure the body takes full height and uses flex layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  font-family: 'Inter', sans-serif;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* .footer {
  width: 100%;
  min-height: 60px;
  background: #6C1F6D;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 0;
} */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px; /* keep your existing padding */
  font-family: "Georgia", serif;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0ff 100%);
  background-image: url('https://wallpapercave.com/wp/wp15517433.jpg');
  background-repeat: no-repeat;

  
}






.header-banner {
  width: 100%;
  min-height: 140px;      /* Use min-height instead of height */
  flex-wrap: wrap;
  background: #6C1F6D; 
  display: flex;
  position: relative;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 100;           /* Add a high z-index */
}

h1 {
  font-size: 2em;
  font-family: 'Inter', sans-serif;
  /* position: center; */
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #050405;
  margin: 0;
  padding: 0 20px;
}
.Welcome-section {
  width: 100%;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  gap : 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.Welcome-section h1 {
  font-family: "ethnocentric";
  color: #723461;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.Welcome-section p {
  color: #222;
  font-size: 1.08em;
  margin: 10px 0;
  line-height: 1.7;
  max-width: 650px;
}



.features-section {
  flex: 1;
  margin: 20px 0;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 50px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: 	#774d77;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(244, 209, 209, 0.1);
}

.feature-button {
  width: 260px;
  height: 64px;
  /* background: #4d6d5c; */
  background: #5a5a5a;
  color: #eaf6f0;
  border: none;
  border-radius: 12px;
  font-size: 1.35em;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(76, 31, 109, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-button-disabled {
  width: 260px;
  height: 64px;
  background: #808080;
  color: #eaf6f0;
  border: none;
  border-radius: 12px;
  font-size: 1.35em;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(76, 31, 109, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* .feature-button:hover {
  background-color: #15566e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s, transform 0.2s;
} */


.feature-button:hover {
  box-shadow: 0 0 0 3px #0091ff;
}

/* .feature-button-disabled:hover {
  background-color: #15566e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s, transform 0.2s;
} */

.feature-button-disabled:hover {
  box-shadow: 0 0 0 3px #0091ff
}

.feature-btn-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;   
  align-items: center;
}

#capacity-btn.active {
  background: #15566e;
}
#route-btn.active {
  background: #15566e;
}
#multi-objective-btn.active {
  background: #15566e;
}
#advanced-btn.active {
  background: #15566e;
}

.feature-caption {
  display: none; 
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #e5e5e8;
  color: #222;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1em;
  white-space: normal; 
  z-index: 10;
  min-width: 220px;
  max-width: 320px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Pointer (triangle) */
.feature-caption::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 32px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #e5e5e8;
}

.feature-btn-wrapper:hover .feature-caption {
  display: block;
}


.footer {
  width: 100%;
  margin-top: 10px;
  min-height: 60px;
  background: #6C1F6D;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 0;
}


.footer-text {
  font-family: 'Inter', sans-serif;
  /* font-weight: 600; */
  font-size: 1em;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 20px;
}



.logo-container {
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 24px;
  background: transparent;
  /* Optional: set a max width or flex-basis if needed */
  /* max-width: 200px; */
}

.logo-container img {
  max-height: 100%;   /* Let the image fill the container height */
  max-width: 100%;    /* Prevent it from overflowing horizontally */
  object-fit: contain; /* Maintain aspect ratio */
  display: block;     /* remove inline gap below images */
}

.banner-text {
	font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 2.5em;
  color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  margin-left: 30px;
  padding: 0 20px;
}



/* form css */

/* Make the form container scrollable if content is too large */
.form-container {
  overflow-y: auto;
  max-height: 70vh; /* Adjust as needed */
}


.container {
  padding: 30px;
}

.buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}

.btn {
  background-color: #165a23;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn.active {
  position: relative;
}

.btn.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background-color: #165a23;
  border-radius: 50%;
}

.table-container {
  /* background-color: #15566e; */
  background-color: #774d77;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
}

table {
  /* width: 100%;
  border-collapse: collapse;
  color: white; */

  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  color: white;
  font-size: 15px;
}

th, td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #297e9a;
}
th {
  /* background-color: #297e9a; */
  color: white;
  font-size: 1.2em;
  font-weight: bold;
}

input[type="text"], select {
  padding: 5px;
  border-radius: 5px;
  border: none;
  width: 90%;
}

input[type="radio"] {
  margin-right: 5px;
}

.review-btn {
  margin-top: 20px;

  text-align: center;
}

.review-btn button {
  background-color: #2e7fa3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
}

#json-modal , #op-json-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure modal is on top */
}

#json-modal-content , #op-json-modal-content {
  background: white;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  max-width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

#json-modal[style*="display: flex"] {
  display: flex !important; /* Override any conflicting styles */
}

#loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  text-align: center;
}

.loader {
  border: 8px solid #f3f3f3; /* Light gray */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin-bottom: 10px; /* Space between spinner and text */
}

.loading-text {
  font-size: 16px;
  color: #1a58df;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

@media only screen and (max-width: 1000px) {
  .header-banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    min-height: 60px;
  }

  .banner-text {
    font-size: 1em;
    margin: 0;
    padding: 10px;
    position: static;
    transform: none;
  }

  .logo-container {
    justify-content: center;
    padding: 0;
    margin-bottom: 10px;
  }

  .logo-container img {
    max-width: 70px;
    max-height: 80px;
    margin-left: 0px;
  }
  .Welcome-section h1 {
    font-size: 0.8em;
  }

  .Welcome-section p {
    font-size: 0.8em;
  }
}
