 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, #74b9ff, #4a90e2);
      color: #fff;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      color: #ffffff;
      font-family: 'Segoe UI', sans-serif;
    }

    .weather-container {
      text-align: center;
      width: 100%;
      max-width: 500px;
    }

    .search-bar {
     
      display: flex;
      justify-content: center;
      text-align: center;
      gap: 10px;
    }

    .search-bar input {
      flex: 1;
      padding: 12px 20px;
      border: none;
      border-radius: 50px;
      background: rgba(255, 255, 255, 0.25);
      color: #1f1c1cb3;
      font-size: 16px;
      transition: background 0.3s ease;
      font-weight: bold;
    }

    .search-bar input::placeholder {
      color: rgba(255, 255, 255, 0.7);
    }

    .search-bar input:focus {
      background: rgba(255, 255, 255, 0.35);
      outline: none;
    }

    .search-bar button {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.35);
      border: none;
      border-radius: 50%;
      width: 45px;
      height: 45px;
      font-size: 20px;
      cursor: pointer;
      color: #fff;
      transition: background 0.3s ease, transform 0.2s ease;
    }

    .search-bar button:hover {
      background: rgba(255, 255, 255, 0.55);
      transform: scale(1.05);
    }

    .weather {
       margin-top: 4rem;
    }
    
    .weather-icon {
      font-size: 80px;
      margin-bottom: 10px;
    }

    .temp {
      font-size: 60px;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .city {
      font-size: 32px;
      margin-bottom: 25px;
    }

    .details {
      display: flex;
      justify-content: space-around;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 30px;
    }

    .col {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.2);
      padding: 10px 15px;
      border-radius: 15px;
      min-width: 45%;
      flex: 1;
    }

    .col .icon {
      font-size: 30px;
    }

    .col .humidity,
    .col .wind {
      font-size: 22px;
      font-weight: bold;
      line-height: 1.2;
    }

    .col p:last-child {
      font-size: 14px;
      margin-top: 2px;
    }

    .hide-weather {
      visibility: hidden;
    }

    .hide-details {
      visibility: hidden;
    }

    @media (max-width: 480px) {
      .search-bar {
        /* padding: 0 10px; Add small padding for edge phones */
        position: fixed;
        top: 2rem;
        right: 15px;
    }
      .temp {
        font-size: 44px;
      }

      .city {
        font-size: 24px;
      }

      .col {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 100%;
      }
    }

    @media (max-width: 320px) {
    .search-bar {
        padding: 0 10px; /* Add small padding for edge phones */
        position: fixed;
        top: 2rem;
        right: 5px;
    }

    .search-bar button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .search-bar input {
        font-size: 14px;
        padding: 10px 16px;
    }
}
