paddy-disease / p.css
teja944's picture
Upload 2 files
b61520a verified
/* --- General Body and Font Styles --- */
body {
/* Switched to a more modern, cleaner font */
font-family: 'Poppins', sans-serif;
background-color: #1a1a1a; /* Slightly lighter dark background */
color: #f0f0f0; /* Off-white for better readability */
margin: 0;
padding: 40px 20px; /* Added more padding for better spacing on smaller screens */
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
box-sizing: border-box;
}
/* --- Main Container Styling --- */
.container {
max-width: 850px;
width: 100%;
background-color: #2b2b2b; /* A lighter shade for the container to stand out */
border-radius: 15px; /* Softer, more modern border radius */
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
overflow: hidden;
/* Added a subtle transition for a modern feel */
transition: transform 0.3s ease;
}
.container:hover {
transform: scale(1.01); /* Slight zoom effect on hover */
}
/* --- Header Section --- */
header {
background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://i.imgur.com/kS9Yg9A.jpg') no-repeat center center;
background-size: cover;
padding: 60px 30px; /* Increased padding */
text-align: center;
border-bottom: 4px solid #00c853; /* A more vibrant green */
}
header h1 {
margin: 0;
font-size: 2.8em;
color: #ffffff;
font-weight: 700;
text-shadow: 1px 1px 5px rgba(0,0,0,0.5); /* Added text shadow for better readability */
}
header p {
margin: 10px 0 0;
font-size: 1.2em;
color: #e0e0e0;
}
/* --- Main Content Area --- */
.content {
padding: 40px;
}
/* --- Section Headers (h2) --- */
.upload-section h2, .result-section h2 {
font-size: 2em;
color: #00c853; /* Using the vibrant green */
border-bottom: 2px solid #444;
padding-bottom: 15px;
margin-bottom: 25px;
}
.upload-section p {
font-size: 1.1em;
line-height: 1.7;
margin-bottom: 30px;
}
/* --- Form and Input Styling --- */
form {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px; /* Increased gap */
}
.inputfile {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
.inputfile + label {
font-size: 1.1em;
font-weight: 500;
color: #ffffff;
background-color: transparent; /* Transparent background */
border: 2px dashed #00c853; /* Dashed border style */
padding: 15px 35px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: inline-block;
}
.inputfile:focus + label, .inputfile + label:hover {
background-color: rgba(0, 200, 83, 0.1); /* Green tint on hover */
color: #00c853;
border-style: solid; /* Solid border on hover */
}
/* Style for the filename text */
#file-chosen {
color: #ccc;
font-style: italic;
}
button {
font-family: 'Poppins', sans-serif; /* Ensure button uses the same font */
font-size: 1.2em;
font-weight: 700;
color: white;
/* Added a gradient for the button */
background: linear-gradient(45deg, #00c853, #00e676);
border: none;
padding: 15px 40px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}
button:hover {
transform: translateY(-3px); /* Button lifts up on hover */
box-shadow: 0 6px 20px rgba(0, 200, 83, 0.6);
}
/* --- Results Section --- */
.result-section {
margin-top: 40px;
padding-top: 30px;
border-top: 2px solid #444;
animation: fadeIn 1s ease-in-out; /* Add a fade-in animation */
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.result-content {
display: flex;
gap: 30px; /* Increased gap */
align-items: center;
flex-wrap: wrap; /* Allows wrapping on smaller screens */
justify-content: center;
}
.result-image img {
max-width: 300px; /* Slightly larger image */
width: 100%;
border-radius: 12px;
border: 3px solid #00c853;
box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.result-details {
font-size: 1.2em;
flex: 1; /* Allows this section to grow */
min-width: 280px;
}
.result-details p {
margin: 15px 0;
}
.prediction, .confidence {
font-weight: bold;
color: #00e676; /* A lighter shade of green for the results */
font-size: 1.3em;
}
.disclaimer {
font-size: 0.9em;
color: #aaa;
margin-top: 25px;
font-style: italic;
border-left: 3px solid #555; /* Adds a nice visual touch */
padding-left: 15px;
}