Spaces:
Sleeping
Sleeping
File size: 4,095 Bytes
dda93ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
.predictions-container {
max-width: 1000px;
margin: 0 auto;
padding: 2rem;
}
.prediction-card {
background: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
margin-bottom: 2rem;
padding: 1.5rem;
display: grid;
grid-template-columns: 250px 1fr;
gap: 1.5rem;
}
.prediction-image {
position: relative;
overflow: hidden;
border-radius: 8px;
}
.satellite-img {
width: 100%;
height: 200px;
object-fit: cover;
border: 2px solid #e0e0e0;
}
.result-card {
display: flex;
align-items: center;
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
}
.solar-detected {
background: #e8f5e9;
border: 1px solid #81c784;
}
.no-solar {
background: #ffebee;
border: 1px solid #ef9a9a;
}
.result-icon {
font-size: 2rem;
margin-right: 1rem;
}
.result-label {
font-weight: 600;
margin-bottom: 0.5rem;
}
.confidence-display {
margin-top: 1rem;
}
.confidence-bar {
height: 8px;
background: #eeeeee;
border-radius: 4px;
overflow: hidden;
}
.confidence-fill {
height: 100%;
background: linear-gradient(90deg, #4caf50, #81c784);
transition: width 0.5s ease;
}
.confidence-value {
font-size: 0.9rem;
color: #666;
display: block;
margin-bottom: 0.5rem;
}
/* .back-btn {
display: inline-flex;
align-items: center;
padding: 0.8rem 1.5rem;
background: #2196f3;
color: white;
text-decoration: none;
border-radius: 25px;
transition: transform 0.2s;
}
.back-btn:hover {
transform: translateY(-2px);
} */
.no-predictions {
text-align: center;
padding: 2rem;
color: #757575;
}
.no-predictions i {
font-size: 3rem;
margin-bottom: 1rem;
}
/* Ensure the predictions-container is positioned relatively to act as a reference for absolute positioning */
.predictions-container {
position: relative;
padding: 20px; /* Adjust as needed */
}
/* Style the top-left Back to Map button */
.back-btn.top-left {
position: absolute;
top: 15px; /* Balanced spacing from top */
left: 15px; /* Balanced spacing from left */
z-index: 1000; /* Ensure it appears above other elements */
display: flex;
align-items: center;
justify-content: center; /* Center the icon */
width: 40px; /* Fixed width for a compact, circular button */
height: 40px; /* Fixed height for a circular button */
background-color: #007bff; /* Primary blue for consistency */
color: #ffffff; /* White icon */
text-decoration: none;
border-radius: 50%; /* Circular shape */
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Smooth transitions */
}
/* Hover effect */
.back-btn.top-left:hover {
background-color: #0056b3; /* Darker blue on hover */
transform: translateY(-2px); /* Slight lift effect */
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}
/* Active (click) effect */
.back-btn.top-left:active {
transform: translateY(0); /* Remove lift on click */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduced shadow on click */
}
/* Style the icon */
.back-btn.top-left .fa-solid {
font-size: 18px; /* Slightly larger icon for visibility */
}
/* Responsive Design */
@media (max-width: 768px) {
.predictions-container {
padding: 1rem;
}
.prediction-card {
grid-template-columns: 1fr;
padding: 1rem;
}
.prediction-image {
width: 100%;
}
.satellite-img {
height: 150px;
}
.result-card {
flex-direction: column;
align-items: flex-start;
}
.result-icon {
margin-bottom: 0.5rem;
margin-right: 0;
}
.back-btn {
width: 100%;
justify-content: center;
}
} |