a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
  /* Layout Wrapper */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the content spans the entire viewport height */
  
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color:#2c3e50;
    color: white;
    font-weight: bolder;
    font-size: large;
    position: relative;
    border:3px solid;
    border-color: white;
    z-index: 1001;
  }












 






  
  
  .navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
  }
  
  .menu-btn {
    font-size: 1.5em;
    background: none;
    border: 3px solid black;
    padding: 10px;
    border-radius: 10px;
    background-color: red;
    color:white;
    cursor: pointer;
  }
  
  /* Side Menu */
  .side-menu {
    position: fixed;
    top: 0px;
    right: -100%; /* Completely off-screen */
    width: 250px;
    height: 100%;
    background-color: #790947; /* Dark background */
    color: white;
    padding: 20px;
    transition: right 0.3s ease; /* Smooth sliding effect */
    z-index: 1002;
    transition: 2s;
  }
  .side-menu a:hover {
  text-decoration: underline;
  }
  
  /* Close Button */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.8em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: 2s;
  }
  
  .close-btn:hover {
    color: #0078d4; /* Highlight color */
  }
  
  /* Active Menu */
  .side-menu.active {
    right: 0; /* Slides in */
  }
  
  /* Side Menu Links */
  .side-menu ul li {
    margin: 15px 0;
    text-align: center;
  }
  
  .side-menu ul li a {
    font-size: 1.2em;
    color: white;
    transition: color 0.2s ease;
  }
  
  .side-menu ul li a:hover {
    color: yellow;
  }
  
  
  
  
      body { margin: 0; padding: 0; font-family: sans-serif; }
      #map { position: absolute; top: 0; bottom: 0; width: 100%; }
      #time-info{ position: fixed; width: 60vw; bottom: 0; z-index: 1; margin: 10px; text-shadow: 0px 0px 5px black; color: white; font-size: 18px; font-weight: 500; text-align: center; left: 0; right: 0; margin: auto; padding: 20px;  background: rgba(0, 0, 0, 0.5); /* Slight background for better visibility */
      }
      #time-slider {
        width: 100%;
        margin-top: 10px;
        -webkit-appearance: none;
        height: 8px;
        filter: drop-shadow(0 0 7px #fff);
        border-radius: 5px;
        outline: none;
        opacity: 0.9;
        transition: opacity 0.2s;
      }
      
      #time-slider:hover {
        opacity: 1;
      }
      
      #time-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 15px;
        height: 15px;
        background: #3174ff;
        border-radius: 50%;
        cursor: pointer;
      }
      
      #time-slider::-moz-range-thumb {
        width: 15px;
        height: 15px;
        background: #3174ff;
        border-radius: 50%;
        cursor: pointer;
      }
      
      
      #time-text{ font-size: 20px; font-weight: 600;}
      #pointer-data{ z-index: 1; position: fixed; font-size: 20px; font-weight: 900; margin: 27px 0px 0px 10px; color: #fff; text-shadow: 0px 0px 10px #0007; margin-top: 620px;background-color: #790947;}
      #variable-name{ z-index: 1; position: fixed; font-size: 20px; font-weight: bolder; margin: 5px 0px 0px 10px;margin-top: 590px; color: #fff; text-shadow: 0px 0px 10px #0007;}
      .button{ cursor: pointer; width: auto; padding: 8px; border-radius: 3px; font-size: 10px; text-align: center; color: #fff; background: #3174ff; font-family: sans-serif; font-weight: bold;}
  
      #search-container {
          position: absolute;
          top: 15px;
          left: 50%;
          transform: translateX(-50%);
          z-index: 1002;
          background: white;
          padding: 5px;
          border-radius: 8px;
          display: flex;
          gap: 5px;
          align-items: center;
          box-shadow: 0px 2px 10px rgba(0,0,0,0.2);
          width: 320px;
          max-width: 90%;
          
      }
  
      #search-input {
          flex: 1;
          padding: 6px;
          border: 1px solid #ccc;
          border-radius: 5px;
          font-size: 16px;
          width: 100%;
      }
  
      #search-btn {
          padding: 6px 12px;
          border: none;
          background: #3174ff;
          color: white;
          border-radius: 5px;
          cursor: pointer;
          font-size: 16px;
          white-space: nowrap; /* Prevents text from wrapping */
      }
  
      #search-btn:hover {
          background: #2556c2;
      }
      @media screen and (max-width: 600px) {
          #search-container {
              width: 250px;
              padding: 4px;
  
          }
  
          #search-input {
              font-size: 14px;
              padding: 5px;
          }
  
          #search-btn {
              font-size: 14px;
              padding: 5px 10px;
          }
          
      }
      
      
    
      #forecast-box {
        position: absolute;
        max-width: 90%; 
        top: 80px;
        left: 0px;
        width: 280px;
        background-color: #2c3e50;
        display: none;
        color: white;
        padding: 20px;
        border-radius: 10px;
        font-family: Arial, sans-serif;
        display: flex; /* Changed to flex for better alignment */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
        text-align: center;
        z-index: 9999 !important;
    }
    
    /* City name stays at the top */
    .city-name {
        font-size: 22px;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    /* Temperature should appear below city name */
    .temperature {
        font-size: 30px;
        font-weight: 800;
        color: whitesmoke;
        margin-bottom: 10px;
        background: none; /* Removes unwanted background */
    }
    
    /* Weather icon centered below temperature */
    .weather-icon img {
        width: 100px;
        display: block;
        margin: 0 auto;
    }
    
    /* Forecast details should be below the image */
    .forecast-details {
        background-color: white;
        color: #790947;
        padding: 10px;
        border-radius: 5px;
        font-size: 14px;
        text-align: center;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        #forecast-box {
            width: 250px;
            font-size: 14px;
            padding: 10px;
            margin-top: 30px;
        }
      }
    
    @media screen and (max-width: 480px) {
          #forecast-box {
              width: 200px;
              font-size: 12px;
              padding: 8px;
          }
      }
    
   
  
  
    
    



  
      @media screen and (max-width: 985px) {
      #search-container {
          width: 100px; /* Even smaller for very small screens */
          padding: 3px;
          margin-left: 200px;
      }
  
      #search-input {
          font-size: 12px; /* Smaller text */
          padding: 4px;
      }
  
      #search-btn {
          font-size: 12px;
          padding: 4px 8px;
      }
      @media screen  and (min-width:100px) {
        #search-container {
          position: sticky;
        }
      }
  }


  

 