body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
  }
  
  /* NAVBAR Styles */
  .navbar {
    width: 100%;
    padding: 1.2rem;
    margin-left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #254d97;
    color: #fff;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  
  .hamburger {
    cursor: pointer;
    font-size: 2rem;
    margin-left: auto;
    padding-left: 5px;
  }
  
  .navbar h1 {
    font-size: 1.2rem;
    text-align: center;
    flex: 1;
  }
  
  /* MENU Styles */
  .menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    max-width: 360px;
    height: calc(100vh - 50px);
    background: #333;
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
  }
  
  .menu.active {
    left: 0;
  }
  
  .menu ul {
    list-style-type: none;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .menu ul li {
    margin: 5px 0;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .menu ul li a {
    text-decoration: none;
    color: #fff;
  }
  
  .menu ul li:hover,
  .menu ul li a:hover {
    background: #007BFF;
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .menu h2 {
    margin-top: 0;
  }
  
  /* ABOUT POPUP Styles */
  .about-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
    max-height: 80%;
    overflow-y: auto;
  }
  
  .about-popup.show {
    display: block;
  }
  
  .about-popup h2 {
    font-size: 1.5rem;
    color: #1B263B;
  }
  
  .about-popup ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 15px;
  }
  
  .about-popup ul ul {
    list-style-type: circle;
    padding-left: 20px;
  }
  
  .close-about {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.9rem;
    cursor: pointer;
    color: #007BFF;
    transition: color 0.3s ease;
  }
  
  .close-about:hover {
    color: #fff;
    background: #254d97;
  }

  .foam-rate-table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .foam-rate-table th,
  .foam-rate-table td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 0.9em;
  }

  .foam-rate-table thead {
    background: #1b263b;
    color: #fff;
  }
  
 /* ROUTE MODAL Styles */
.route-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    max-height: 95%;
    overflow: hidden;
  }
  
  .route-popup img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
  }
  
  .route-popup.show {
    display: block;
  }
  
  /* Close button styling */
  .close-route {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 5px;
    transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  }
  
  .close-route:hover {
    color: #fff;
    background: #254d97;
  }

  .route-popup button {
    text-align: right;
    margin-right: 10px;
    margin-top: 10px;
    color: #fff;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 600px) {
    .close-route {
      font-size: 1.3rem;
      padding: 4px;
      top: 5px;
      right: 5px;
    }
  
    .route-popup {
      padding: 10px;
      max-width: 95%;
      max-height: 85%;
    }
  
    .route-popup img {
      max-height: 70vh;
    }
  }  
    
  /* CONTAINER and RESULTS Styles */
  .container {
    background: #ffffff;
    padding: 15px;
    margin-top: 70px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
  }
  
  .results {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .results p {
    margin: 0;
    padding: 4px 0;
    font-size: 0.9rem;
  }
  
  .results.highlight-effect {
    background-color: #f1f8ff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    border: 2px solid #007bff;
    opacity: 0.25;
    transition: opacity 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
  }

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 10px 0;
}

.result-item strong {
  display: inline-block;
  width: 50%;
  line-height: 1.4;
  font-weight: bold;
  color: #333;
}

.result-item span {
  display: inline-block;
  width: 40%;
  text-align: right;
  font-weight: 700;
  font-family: 'Verdana', sans-serif;
  color: #0056b3;
  font-size: 1.1em;
}

.result-item:hover {
  box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.15);
  transform: translate(2px, 2px);
  background-color: #f9f9f9;
  cursor: pointer;
}

.result-item:active {
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  transform: translate(1px, 1px);
}
  
#loading-message {
    display: none;
    font-size: 1.2rem;
    color: #007BFF;
    text-align: center;
    margin-bottom: 10px;
}

#calculating-message {
  display: none; /* Hidden by default */
  font-size: 1.2rem;
  color: #007BFF; /* Bright blue for visibility */
  text-align: center;
  margin-bottom: 10px;
}

#calculating-message i {
  margin-right: 8px; /* Adds space between spinner and text */
}

  
.foam-columns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
  
.foam-columns div {
    width: 100%;
}
  
.foam-columns h3 {
    text-align: center;
    margin-bottom: 5px;
}



  
  /* BUTTON Styles */
button {
    width: 98%;
    padding: 20px 10px;
    background: #FFC107;
    color: #0f2247;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}
  
button:hover {
    background: #FFA000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
    transition: background 0.3s ease, transform 0.3s ease;
}

#tankNumber {
    padding: 12px;
    width: 98%;
    margin-bottom: 20px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

 /* LOCATION Links to images */
.location-weather {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 20px 0;
}

/* Location styles */
.location {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.3rem !important;
  color: #333;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.location i {
  color: #FF5722;
  font-size: 1.5rem;
}

.location:hover {
  transform: scale(1.1);
  background-color: #f1f8ff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Weather container styles */
.weather-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  margin-top: 5px;  
  border-radius: 8px;  
  font-style: italic;
}

.weather-container p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
}

.weather-container span {
  font-size: 1rem;
  font-weight: bold;
  color: #555;
}

.weather-container i {
  color: #007BFF;
}
  
  /* FOOTER Styles */
footer {
    background-color: #1B263B;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    width: 100%;
    margin-top: auto;
}

.hidden {
  display: none;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: #212529;
  color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0.8;
  z-index: 1;
}

footer .social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .social p {
  font-size: 0.8;
}

footer .social a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
  font-family: var(--alt-family);
}

footer a:hover {
  color: #d2bb8c;
}