* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
}
.hero {
    height: 100vh;
    background-image: url('src/assets/Images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero h1 {
    font-size: 3.5rem;
    color: #f0f0f0;
    margin-bottom: 20px;
}
.hero form {
    display: flex;
    justify-content: center;
    margin: 10px 25px;
}
#locationInput {
    padding: 10px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px 0 0 8px;
    width: 600px;
}
#searchBtn {
    padding: 10px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: #fa5748;
    color: white;
    cursor: pointer;
}

/* Results grid */
#results {
    display: grid;
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
}

/* Individual forest card */
.forestCard {
    display: flex; /* needed to control flow */
    flex-direction: column; /* vertically align elements */
    align-items: start; /* aligns items to the left, default would fill width */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden; 
}

/* Forest image */
.forestImage {
    width: 100%;
    height: 30%;
    object-fit: cover; /* makes image fill space without distortion */
}

/* Content inside card (below image) */
.forestName {
    font-size: 1.5rem;
    margin: 5px;
}

.dispersed-badge {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px;
}

.forestDistance {
    font-size: 1rem;
    color: #555;
    margin: 5px;
}

.forestDescription {
    font-size: 1rem;
    color: #333;
    margin: 5px;
    display: block;
}

.forestLink {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
    margin-top: auto; /* pushes to the bottom */
}

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
}

/* Tablets and Larger Mobiles */
@media screen and (min-width: 481px) and (max-width: 768px) {
    #results {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptops, Larger Tablets in landscape and small desktops */
@media screen and (min-width: 769px) and (max-width: 1279px) {
    #results {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktops and larger screens */
@media screen and (min-width: 1280px) {
    #results {
        grid-template-columns: repeat(4, 1fr);
    }
}