body {
  text-align: center;
  font-family: Verdana;
}

h1 {
  font-size: 1.5rem;
}

#MyMenu1 {
  width: 100%
  margin-left: auto;
}

#last_div {
    margin-bottom: 200px; /* Extra space so content isn't covered */
}
#topIMG {
  height: 10vh;          /* Set your desired fixed height */
  width: auto;            /* Width adjusts automatically */
  max-width: 100%;        /* Prevents overflow */
  display: block;         /* Allows margin auto to center the image */
  margin: 0 auto;         /* Centers the image horizontally */
}

#map-container {
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
}

.dynamic-button {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 100%; /* Prevent overflow on smaller screens */
  box-sizing: border-box; /* Includes padding and borders in the width/height */
}

.dynamic-button:hover {
  transform: scale(1.05); /* Slightly enlarge the image */
}

.info-container, .dimensions-container, .delivery-container, .origin-container, .rate-container, .accessorial-container, .shipmentInfo-container {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 1rem; /* space between elements */
  justify-content: center; /* center them horizontally within the container */
}

.accessorial-container {
  color: #808080;
  font-size: 0.7rem;
}


@keyframes rotateAnimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotating {
  animation: rotateAnimation 3s linear infinite;
}

#textInput {
  width: 90%; /* Full width of container */
  height: 25vh; /* 25% of viewport height */
  padding: 10px;
  font-size: 1rem; /* Readable font size */
  resize: none; /* Prevent manual resizing */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box; /* Includes padding in width/height */
  overflow-y: auto; /* Enables scrolling when text exceeds height */
  line-height: 1.5; /* Makes multiple lines easier to read */
}

#sendButton {
  width: 100%;
  padding: 5px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.sidebar {
  height: 100%;
  width: 24rem; /* Default width */
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #bfbfbf;
  overflow-x: hidden;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  /* transition: width 0.3s ease; */
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
  /* transition: width 0.3s ease, padding 0.3s ease; */
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
}

/* Add this so the chat container stays at the bottom */
.sidebar > *:last-child {
  margin-top: auto; /* Pushes the last element (chat container) to the bottom */
}


#chat-container {
  width: 100%; /* Dynamically fill the sidebar */
  max-width: calc(100% - 20px); /* Ensure equal gaps on both sides */
  padding: 10px;
  background-color: #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px; /* Keep some spacing from the bottom */
  margin-left: auto; /* Ensures left gap */
  margin-right: auto; /* Ensures right gap */
}

#controlBar {
  position: fixed;
  width: 200%;
  bottom: 0px;
  height:  100px;
  background-color: #ddd;
}

#AIText {
  width: 100%; /* Make it take the full width of the sidebar */
  text-align: center; /* Center the text horizontally */
  font-size: 1.2rem; /* Adjust font size as needed */
  margin-top: 10px; /* Add some spacing from the top */
  font-family: Verdana;
  line-height: 1.8;
}

#map-container {
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
}

.main {
  margin-left: 24rem; /* Same as the width of the sidebar */
  padding: 0px 0px;
  position: relative;
  /* transition: margin-left 0.3s ease; */
  flex-grow: 1;
}

.main.expanded {
    margin-left: 0;
}

#toggleMute {
  position: fixed; /* Fixed to the viewport instead of inside .main */
  bottom: 5px; /* Adjust the spacing from the bottom of the viewport */
  left: calc(24rem + 10px); 
  width: 70px;
  z-index: 10;
}
#toggleSound {
  position: fixed; /* Fixed to the viewport instead of inside .main */
  bottom: 5px; /* Adjust the spacing from the bottom of the viewport */
  left: calc(24rem + 100px); 
  width: 70px;
  z-index: 10;
}

#resizer {
    width: 5px;
    background: #555;
    cursor: ew-resize;
    position: fixed;
    left: 24rem;
    top: 0;
    bottom: 0;
    z-index: 10;
    touch-action: none; /* Prevents scrolling while resizing */
}

#resizer::before {
    content: "";
    position: absolute;
    left: -10px; /* Expands clickable area without affecting layout */
    right: -10px;
    top: 0;
    bottom: 0;
}

.info {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 1rem; /* space between elements */
  justify-content: center; /* center them horizontally within the container */
}

.info p {
  margin-top: 0px;
}

.BoldInfo {
  font-weight: bold;
  text-decoration: underline;
}