.navbar-overlay {
  height: 0px;
}

.messages {
  padding: 0%;
  justify-items: center;
  margin-bottom: 0%;
}
.error-notification {
  font-size: 1.5rem;
  list-style-type: none;
  background-color: #fa7d5e;
  margin-bottom: 5px;
  padding: 4px;
  border: 3px solid #0c0b0b;
  border-radius: 10px;
  width: 98%
}


.main-container {
  display: flex;
  /*justify-content: space-between; */
  /* height: 800px;*/
  padding: 1rem;

  gap: 0.4rem;
}

.routing-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #000000;
  width: 30rem;
  padding: 1.2rem;
  border-radius: 8px;
  color: white;
  gap: 12rem;

}

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

.form-select {
  width: 90%;
  height: 40px;
  background-color: #1e1e28;
  color: white;
  border: 1px solid #ffa500;
  border-radius: 6px;
  padding-left: 10px;
  font-size: 16px;
  cursor: pointer;
}

.form-select:hover {
  border-color: white;
}

.button-container {
  display: flex;
  justify-content: space-between; /* Align items with space between them */
  gap: 10px;
}

.form-submit-button {
  width: 120px;
  height: 40px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #ffa500;
  color: black;
  cursor: pointer;
}

.form-reset-button {
  width: 120px;
  height: 40px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #ffa500;
  color: black;
  cursor: pointer;
  margin-top: 15px;
}

.form-submit-button:hover,
.form-reset-button:hover {
  background-color: grey;
  color: white;
}
.form-field {
  width: 90%;
  height: 35px;
  background-color: #1e1e28; /* Dark grey background */
  color: white; /* White text */
  border: 1px solid #ffa500; /* Orange border */
  border-radius: 4px; /* Rounded corners */
  padding-left: 10px; /* Padding for text alignment */
  font-size: 14px; /* Adjust font size for readability */
}

.form-field:focus {
  border-color: white; /* White border on focus */
  outline: none; /* Remove default outline */
}

.map-container {
  flex-grow: 1; /* Allow the map to grow and fill available space */
  flex-shrink: 1; /* Allow the map to shrink if necessary */

  min-height: 50rem;
  min-width: 550px;
  flex-basis: 0%;
  background-color: white;
  height: 100%;
  border: 4px solid #2a2938;
  border-radius: 8px;
}

.panel-border {
  border: 4px solid #000; /* Black border */
  height: 100%;
  overflow: auto;
}

/* Collapsible sections */
.collapsible-section {
  margin-bottom: 15px;
}

.collapsible {
  background-color: #1e1e28;
  color: white;
  border: none;
  text-align: left;
  font-size: 16px;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible:hover {
  background-color: #9f9d9b;
  color: black;
}

.collapsible.active {
  background-color: #ffa500;
  color: black;
}

.collapsible .arrow {
  font-size: 14px;
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.collapsible.active .arrow {
  transform: rotate(180deg); /* Flip arrow */
}

.content {
  max-height: 0;
  overflow: hidden;
  background-color: #000000;
  transition: max-height 0.3s ease-out;
  border-radius: 6px;
  padding: 0 10px;
}

.content p,
.content .form-area {
  margin: 10px 0;
}

.directions-container {
  width: 60%;
  background-color: white;
  height: 100%;
  border: 4px solid #2a2938;
  border-radius: 8px;
  margin-right: auto;
  
  flex-grow: 1;
}

.container {
  display: flex;
  justify-content: space-between;
  padding: 1rem;

  flex-wrap: wrap;
  
  gap: 1rem;
}

/* .route-info-container, .waypoint-container {
width: 48%;
background-color: #f1f1f1;
padding: 20px;
border-radius: 5px;
} */

.route-info-container,
.waypoint-container {

  padding: .8rem;
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  height: 30%;
  border: 4px solid #000000;
  gap: 20px;
  flex-grow: 1;
  }

.waypoint-container h1 {
  color: rgb(0, 0, 0);
}
.waypoint-container ul {
  list-style-type: none;
  padding: 0;
}

.waypoint-container li {
  background-color: white;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 4px;
  box-shadow: 0 1px 2px #ffa500;
  transition: transform 0.2s ease-in-out;
}
.waypoint-container li:hover {
  transform: translateX(5px);
  background-color: #ffa500;
}



@media (max-width: 1000px) {
    .main-container {
    padding: 0.3rem;
    flex-wrap: wrap;
  }

  .routing-container {
    padding: 0.8rem;
    max-width: 15rem;
  }

  .map-container {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .routing-container{
    max-width: none;
    width: auto;
  }
}

@media (max-width: 580px) {
  .routing-container {
    width: 100%;
    max-width: none;
  }

  .map-container {
    min-width: 290px; 
    
  }
}