/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
  
  body {
    height: 100vh;
    background-image: url("7280763.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  /* Weather Card */
  .card {
    width: 90%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 20px 25px;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Search Box */
  .search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .search input {
    flex: 1;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
  }
  
  .search button {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #ebfffc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }
  
  .search button:hover {
    transform: scale(1.1);
  }
  
  /* Weather Info */
  .weather-icon {
    width: 90px;
    margin: 15px auto;
  }
  
  .weather h1 {
    font-size: 42px;
    font-weight: 600;
  }
  
  .weather h2 {
    font-size: 20px;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
  }
  
  /* Weather Details */
  .details {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
  }
  
  .col {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }
  
  .col img {
    width: 30px;
  }
  
  .humidity,
  .wind {
    font-size: 16px;
    font-weight: 500;
  }
  
  /* Hidden by default */
  .weather {
    display: none;
  }
  
  /* Responsive tweaks */
  @media (max-height: 600px) {
    .card {
      padding: 15px 20px;
    }
  
    .weather h1 {
      font-size: 32px;
    }
  
    .weather h2 {
      font-size: 18px;
    }
  
    .weather-icon {
      width: 70px;
    }
  
    .search input {
      font-size: 12px;
    }
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.3); /* slight dark tint */
    z-index: 0;
  }
  
  .card {
    position: relative;
    z-index: 1; /* place it above overlay */
  }
    