teja141290's picture
Initial commit for Hugging Face Space deployment
f01c86d
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
body {
font-family: 'Roboto', Arial, sans-serif;
background: #f4f6fa;
margin: 0;
padding: 0;
}
.header {
background: linear-gradient(90deg, #003366 60%, #e30613 100%);
color: #fff;
padding: 24px 0 12px 0;
text-align: center;
box-shadow: 0 2px 8px #00336622;
}
.logo {
max-width: 180px;
margin-bottom: 10px;
}
@media (max-width: 600px) {
.logo {
max-width: 90px !important;
right: 10px !important;
top: 10px !important;
}
.header h2 { font-size: 1.1em; }
}
.container {
max-width: 950px;
margin: 40px auto 0 auto;
background: #fff;
padding: 32px 32px 24px 32px;
border-radius: 12px;
box-shadow: 0 4px 24px #00336622;
}
h2, h3, h4 {
color: #003366;
margin-top: 0;
}
form {
margin-bottom: 24px;
display: flex;
flex-direction: column;
align-items: center;
}
input[type="file"] {
margin-bottom: 16px;
font-size: 16px;
}
button {
background: #e30613;
color: #fff;
border: none;
padding: 12px 32px;
border-radius: 6px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s;
margin-bottom: 10px;
}
button:hover {
background: #003366;
}
.error {
color: #e30613;
margin-bottom: 16px;
font-weight: 700;
}
.images-row {
display: flex;
gap: 32px;
margin-bottom: 24px;
justify-content: center;
flex-wrap: wrap;
}
.result-img {
max-width: 260px;
border: 2px solid #e30613;
border-radius: 8px;
box-shadow: 0 2px 8px #00336622;
margin-bottom: 8px;
}
.result-label {
text-align: center;
font-weight: 700;
color: #003366;
margin-bottom: 8px;
}
.download-btn {
display: inline-block;
background: #003366;
color: #fff;
padding: 8px 18px;
border-radius: 5px;
text-decoration: none;
font-weight: 700;
margin-right: 10px;
margin-bottom: 10px;
transition: background 0.2s;
}
.download-btn:hover {
background: #e30613;
}
pre.json-output {
background: #f0f0f0;
padding: 16px;
border-radius: 6px;
font-size: 15px;
overflow-x: auto;
color: #222;
margin-bottom: 12px;
box-shadow: 0 1px 4px #00336611;
}
.copy-btn {
background: #e30613;
color: #fff;
border: none;
border-radius: 4px;
padding: 6px 14px;
font-size: 14px;
font-weight: 700;
cursor: pointer;
margin-bottom: 10px;
float: right;
}
.copy-btn:hover {
background: #003366;
}
.footer {
text-align: center;
color: #888;
font-size: 15px;
margin: 40px 0 10px 0;
}
@media (max-width: 900px) {
.container { padding: 16px; }
.images-row { gap: 12px; }
.result-img { max-width: 98vw; }
}