body {
    margin: 0;
    padding: 0;
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-size: 1.1em;
}

.results {
    background: url('../img/background_bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 30%, rgba(255,255,255,1) 70%, rgba(0,0,0,0) 100%); */
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0;
}

h2 {
    margin: 0;
    margin-bottom: 20px;
    font-size: 2em;
    color: #006400;
}

h3 {
    margin-top: 0px;
    text-align: justify;
    color: #006400;
}

.logoDiv {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.logo {
    width: 140px;
    height: auto;
    border-radius: 10px;
}

.header {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: top;
    margin-bottom: 40px;
}

.headerContent {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: auto;
    height: 100%;
    justify-content: flex-start;
    margin-top: 30px;
}

.headerContent h1 {
    font-size: 100px;
    margin-top: -25px; /* Ensures no default margins force the text onto separate lines */
}

.headerCaption {
    align-self: flex-end;
    font-weight: 600;
    font-size: 25px;
    margin-top: -25px;
    text-transform: lowercase;
    color: white;
}

.invisible {
    display: none;
}

.green {
    color: #9fe417;
}

.brown {
    color: #e6a952;
}

.container {
    max-width: 80vw;
    text-align: left;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
}

.request {
    margin: 10px;
}

.form {
    margin-bottom: 40px;
}

.plantName {
    font-size: 1.6em;
    font-weight: 600;
    color: #006400;
}

fieldset {
    padding: 10px;
}

@keyframes clickAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(0.95);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.buttonDiv {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.button {
    height: 40px;
    width: 200px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background-image: linear-gradient(to right, #006400 0%, #9fe417 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: inline-block; /* To allow transformation */
    outline: none; /* Removes the outline to keep the design clean */
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button:active {
    animation: clickAnimation 0.4s ease forwards;
}

fieldset {
    border: 2px solid #9fe417; /* Change '#4facfe' to your desired border color */
    border-radius: 10px;
    margin-bottom: 20px;
}

.resultsTable {
}

.keyColumn {
    vertical-align: top;
    width: 300px;
    color: #006400;
    width: 40%;
}

.valueColumn {
    max-width: 400px;
    width: 60%;
}

.plantDiv {
    margin-bottom: 80px;
}

.plantDetailsDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.plantImgDiv {
    width: 100%; /* Take the width of its container */
    height: 300px; /* Fixed height */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the background image */
    background-size: cover; /* Cover the div area, might crop the image */
    display: flex;
    justify-content: center;
    align-items: start;
}

.noImageText {
    font-size: 2.0em;
    color: white;
    text-transform: uppercase;
    margin: 10px;
    text-align: center;
}

.tableDiv {
    margin-top: 10px;
    width: 100%; /* Ensure the table div takes the full width */
}

.resultsTable {
    width: 100%; /* Ensure the table takes the full width of its container */
}

.unselectable {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Non-prefixed version, currently supported by Chrome, Opera, and Edge */
}

.nonPoisonousPlantsMsg {
    color: red;
    display: flex;
}

.nonPoisonousPlantsMsg a {
    margin-left: 5px;
    text-align: center;
}

#consent-banner {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    min-height: 200px;
    background-color: #00b106;
    color: white;
    padding: 30px;
    margin: 20px;
    text-align: center;
    z-index: 999;
    border: 3px solid #006400;
    border-radius: 30px;
}

#consent-banner button {
    margin: 20px 20px 0px;
    padding: 10px 20px;
    background-color: #a8d3a965;
    border: 1px solid;
    font-size: 1em;
    border-radius: 20px;
}

#consent-banner a {
    color: white;
    text-decoration: underline;
}

#accept:hover {
    background-color: #00d20765;
}

#decline:hover {
    background-color: #00d20765;
}

#privacy-policy {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 80vh;
    background-color: white;
    border: 3px solid #006400;
    border-radius: 30px;
    z-index: 1000;
    overflow-y: scroll;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
}

#consent-banner-text {
    font-size: 0.95em;
    margin-bottom: 20px;
}

#privacy-policy-content {
    padding: 3%;
}

#privacy-policy a {
    color: black;
}

#privacy-policy button {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #a8d3a965;
    border: 1px solid;
    font-size: 1em;
    justify-self: center;
    border-radius: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    body {
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .logoDiv {
        padding: 20px;
    }

    /* Adjust logo size for smaller screens */
    .logo {
        width: 80px; /* Smaller logo on small screens */
    }

    .header {
        margin-bottom: 20px;
    }

    .headerContent {
        margin-top: 10px;
        margin-left: -10px;
    }

    .headerContent h1 {
        font-size: 65px;
        margin-top: 0px;
    }    
    
    .headerCaption {
        font-size: 16px;
        margin-top: -16px;
    }

    #privacy-policy {
        width: 80%;
        height: 80%;
    }

}

/* Additional media query for very small screens */
@media (max-width: 480px) {

    h2 {
        font-size: 1.4em;
    }

    .header {
        margin-bottom: 10px;
    }

    .headerContent {
        margin-left: -5px;
    }

    .headerContent h1 {
        font-size: 45px; /* Even smaller font size for very small screens */
        margin-top: -3px;
    }

    .headerCaption {
        font-size: 11px;
        margin-top: -12px;
    }
    
    .logoDiv {
        padding: 10px;
    }
    
    .logo {
        width: 60px; /* Further reduce logo size for very small screens */
    }

    #consent-banner {
        width: 80%;
        margin: 0;
        padding: 20px;
        left: 20px;
    }

    #privacy-policy {
        width: 90vw;
    }
    
}


@media (max-width: 364px) {
    h2 {
        font-size: 1.3em;
    }

    .headerContent {
        margin-left: -2px;
    }

    .headerContent h1 {
        font-size: 40px; /* Even smaller font size for very small screens */
        margin-top: 0px;
    }

    .headerCaption {
        font-size: 10px;
        margin-top: -10px;
    }

    .container {
        font-size: 0.85em;
        padding: 20px;
    }

}

@media (max-width: 299px) {
    .headerContent {
        margin-left: -2px;
    }

    .headerContent h1 {
        font-size: 35px; /* Even smaller font size for very small screens */
        margin-top: 5px;
    }

    .headerCaption {
        font-size: 9px;
        margin-top: -9px;
    }

    .container {
        font-size: 0.8em;
        padding: 15px;
    }
    
    .form {
        font-size: 0.9em;
    }
}

.footer {
    width: 100%;
    padding: 20px;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
}

.facebook-content-bottom {
    display: flex;
    margin-bottom: 1vh;
    margin-right: min(5vw, 40px);
    margin-left: min(5vw, 40px);
    font-size: min(5vw, 24px);
    background-color: #3b5998;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
    width: min(5vw, 40px);
    height: min(5vw, 40px);
    align-items: center;
    justify-content: center;
}

.facebook-content-bottom:hover {
    background-color: #333;
}
