|
|
body { |
|
|
font-family: Arial, sans-serif; |
|
|
margin: 0; |
|
|
min-height: 100vh; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
background-color: #f0f0f0; |
|
|
background-image: url('https://images.nationalgeographic.org/image/upload/v1638892233/EducationHub/photos/crops-growing-in-thailand.jpg'); |
|
|
background-size: cover; |
|
|
background-position: center; |
|
|
transition: background-image 0.5s ease-in-out; |
|
|
} |
|
|
|
|
|
header { |
|
|
background-color: #2e7d32; |
|
|
color: white; |
|
|
text-align: center; |
|
|
padding: 1rem; |
|
|
position: sticky; |
|
|
top: 0; |
|
|
z-index: 1000; |
|
|
} |
|
|
|
|
|
header h1 { |
|
|
margin: 0; |
|
|
font-size: 1.8em; |
|
|
} |
|
|
|
|
|
header p { |
|
|
margin: 0.5rem 0; |
|
|
font-size: 1em; |
|
|
} |
|
|
|
|
|
.home-button { |
|
|
display: inline-block; |
|
|
background-color: #4caf50; |
|
|
color: white; |
|
|
padding: 8px 16px; |
|
|
border: none; |
|
|
border-radius: 5px; |
|
|
text-decoration: none; |
|
|
margin-top: 0.5rem; |
|
|
font-size: 0.9em; |
|
|
cursor: pointer; |
|
|
} |
|
|
|
|
|
.home-button:hover { |
|
|
background-color: #45a049; |
|
|
} |
|
|
|
|
|
main { |
|
|
flex: 1; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
padding: 2rem 1rem; |
|
|
} |
|
|
|
|
|
.container { |
|
|
background-color: rgba(255, 255, 255, 0.8); |
|
|
padding: 20px; |
|
|
border-radius: 10px; |
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
|
|
text-align: center; |
|
|
max-width: 400px; |
|
|
width: 100%; |
|
|
} |
|
|
|
|
|
.container h2 { |
|
|
color: #2e7d32; |
|
|
margin-top: 0; |
|
|
} |
|
|
|
|
|
input[type="number"] { |
|
|
width: 100%; |
|
|
padding: 10px; |
|
|
margin: 10px 0; |
|
|
border: 1px solid #ccc; |
|
|
border-radius: 5px; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
|
|
|
input[type="submit"] { |
|
|
background-color: #4caf50; |
|
|
color: white; |
|
|
padding: 10px 20px; |
|
|
border: none; |
|
|
border-radius: 5px; |
|
|
cursor: pointer; |
|
|
} |
|
|
|
|
|
input[type="submit"]:hover { |
|
|
background-color: #45a049; |
|
|
} |
|
|
|
|
|
.prediction { |
|
|
margin-top: 20px; |
|
|
font-size: 1.2em; |
|
|
color: #d32f2f; |
|
|
} |
|
|
|
|
|
.crop-image { |
|
|
margin-top: 20px; |
|
|
max-width: 100%; |
|
|
height: auto; |
|
|
border-radius: 5px; |
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); |
|
|
} |
|
|
|
|
|
footer { |
|
|
background-color: #2e7d32; |
|
|
color: white; |
|
|
text-align: center; |
|
|
padding: 1rem; |
|
|
width: 100%; |
|
|
} |
|
|
|
|
|
footer p { |
|
|
margin: 0; |
|
|
font-size: 0.9em; |
|
|
} |
|
|
|
|
|
|
|
|
@media (max-width: 600px) { |
|
|
header h1 { |
|
|
font-size: 1.4em; |
|
|
} |
|
|
|
|
|
header p { |
|
|
font-size: 0.9em; |
|
|
} |
|
|
|
|
|
.home-button { |
|
|
padding: 6px 12px; |
|
|
font-size: 0.8em; |
|
|
} |
|
|
|
|
|
.container { |
|
|
padding: 15px; |
|
|
max-width: 90%; |
|
|
} |
|
|
|
|
|
.container h2 { |
|
|
font-size: 1.2em; |
|
|
} |
|
|
|
|
|
input[type="number"], |
|
|
input[type="submit"] { |
|
|
font-size: 0.9em; |
|
|
padding: 8px; |
|
|
} |
|
|
|
|
|
.prediction { |
|
|
font-size: 1em; |
|
|
} |
|
|
|
|
|
footer p { |
|
|
font-size: 0.8em; |
|
|
} |
|
|
} |