body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-image: url('img/pacific-pattern.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(255, 255, 255, 0.6); /* Provides a white overlay with 60% opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

h1 {
    text-align: center;
    color: #005f73;
    margin-bottom: 20px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-column,
.chart-column {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
}

label {
    margin-top: 10px;
    display: block;
    color: #005f73;
    font-weight: bold;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #218838;
}

#map {
    height: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid #005f73;
}

.result {
    margin-top: 20px;
    padding: 10px;
    background-color: #edf6f9;
    border-left: 5px solid #28a745;
}

.result ul {
    list-style-type: none;
    padding-left: 0;
}

.result li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result li img {
    width: 64px; /* Ensures crop icons are sized correctly */
    height: 64px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Ensures the modal appears above all other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    z-index: 1001; /* Ensures the content is above the overlay */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#plantingChart {
    margin-top: 20px;
}

footer {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
}

footer p {
    font-size: 14px;
    margin: 0;
}

footer a {
    color: #0077b6;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Hyperlink for helper */
#helperLink {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: #0077b6;
    text-decoration: none;
    font-size: 16px;
}

#helperLink:hover {
    text-decoration: underline;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
}
