body {
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      background: linear-gradient(135deg, #2e7d32, #81c784);
      color: #fff;
      text-align: center;
    }

    header {
      max-width: 600px;
      padding: 2rem;
      background: rgba(0, 0, 0, 0.4);
      border-radius: 1rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    p {
      font-size: 1.2rem;
      opacity: 0.9;
    }

    ul {
        list-style: none;
        padding: 0;
        margin-top: 1.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* always 2 per row */
        gap: 20px;
        justify-items: center;
    }

    li {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: 100%;        /* take full width of its grid cell */
        max-width: 350px;   /* keep cards from being too wide */
    }
    img {
        object-fit: cover;
        height: 120px;
    }
    header section {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .card {
        position: relative;
        width: 300px;
        height: 200px;
        border-radius: 15px;
        overflow: hidden;
        background-image: url("./assets/images/grandcanyon/Dawn_on_the_S_rim_of_the_Grand_Canyon_(8645178272).jpg");
        background-size: cover;
        background-position: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: flex-end;
    }

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    }

    .card .overlay {
        width: 100%;
        padding: 1rem;
        background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
        color: #fff;
        text-align: center;
    }

    .card h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.4rem;
        font-weight: 700;
    }

    .card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
        max-height: 3.5em;      /* trims very long text */
        overflow: scroll;
        text-overflow: ellipsis;
    }
    .card a {
        display: inline-block;
        margin-top: 0.8rem;
        padding: 0.5rem 1rem;
        background: linear-gradient(135deg, #2e7d32, #388e3c);
        color: #fff;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.25);
        transition: all 0.25s ease;
    }

    .card a:hover {
        background: linear-gradient(135deg, #43a047, #2e7d32);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }

    .card a:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .yellowstonebackgroundimage {
        background-image: url("../../assets/images/YellowStone/pexels-lkloeppel-2416600.jpg");



    .glacierNationalParkBackgroundImage {
        background-image: url("./assets/images/glacier/glacier.jpg");


    .yosemiteBackgroundImage {
        background-image: url("./assets/images/yosemite/pexels-pixabay-414199.jpg");

  


    }