/* ===== Global Styles ===== */
body {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    text-align: center;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
  }
  
  h1 {
    margin-bottom: 30px;
    font-size: 1.8rem;
  }
  
  footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #555;
  }
  
  /* ===== Plant Card ===== */
  #plant-card {
    margin-bottom: 20px;
  }
  
  .card-wrapper {
    display: flex;
    flex-wrap: wrap;         /* allows stacking on small screens */
    justify-content: center;
    gap: 15px;
    border: 6px solid transparent;
    padding: 10px;
    cursor: pointer;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: border-color 0.3s;
  }
  
  .card-wrapper.native.revealed {
    border-color: green;
  }
  
  .card-wrapper.nonnative.revealed {
    border-color: red;
  }
  
  /* Status Badge */
  .status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: bold;
    padding: 5px 10px;
    color: white;
    display: none;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  .card-wrapper.native .status-badge {
    background-color: green;
  }
  
  .card-wrapper.nonnative .status-badge {
    background-color: red;
  }
  
  /* ===== Image Wrapper ===== */
  .image-wrapper {
    position: relative;
  }
  
  .image-wrapper img {
    width: 320px;       /* default width for tablet/desktop */
    max-width: 90vw;    /* responsive for small screens */
    height: auto;
    display: block;
    border-radius: 4px;
  }
  
  /* Growth Form Label */
  .growth-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 3px;
  }
  
  /* ===== Metadata Info ===== */
  #plant-info {
    max-width: 700px;
    margin: 20px auto;
    padding: 10px;
    line-height: 1.6;
    word-wrap: break-word;
    text-align: left; /* better for multiple lines */
  }
  
  .common-name {
    font-size: 1.6rem;
    margin-top: 15px;
  }
  
  .latin-name {
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 5px;
  }
  
  .family-name {
    font-size: 1rem;
    margin-top: 5px;
  }
  
  .rarity {
    font-size: 1rem;
    color: darkred;
    font-weight: bold;
    margin-top: 5px;
  }
  
  #plant-info div {
    margin-bottom: 3px; /* space between lines */
  }
  
  /* ===== Responsive Styles ===== */
  @media (max-width: 480px) {
    .image-wrapper img {
      width: 90vw;  /* almost full screen width */
    }
  
    .common-name {
      font-size: 1.4rem;
    }
  
    .latin-name {
      font-size: 1.1rem;
    }
  
    .family-name,
    .rarity {
      font-size: 0.95rem;
    }
  
    h1 {
      font-size: 1.5rem;
    }
  
    .status-badge {
      font-size: 0.8rem;
      padding: 4px 8px;
    }
  }
  
  @media (min-width: 481px) and (max-width: 800px) {
    .image-wrapper img {
      width: 45vw;  /* side-by-side on tablet, max 320px */
      max-width: 320px;
    }
  }

  