/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: #000; /* Black text */
background: #ffffff; /* Pure white background */
min-height: 100vh;
display: flex;
flex-direction: column;
transition: all 0.3s ease;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
body::-webkit-scrollbar {
display: none; /* Chrome/Safari */
}
header {
text-align: center;
padding: 2rem 1rem;
background: #ffffff; /* White */
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: relative;
}
.lang-switcher {
position: absolute;
top: 1rem;
right: 1rem;
z-index: 100;
}
.lang-switcher select {
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
background: #ffffff; /* White */
color: #000;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
color: #000; /* Black */
margin-bottom: 0.5rem;
}
header p {
font-size: 1.1rem;
color: #333; /* Dark gray for subtitle */
}
main {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 1rem;
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
/* Upload Section */
#upload-section {
width: 100%;
max-width: 500px;
text-align: center;
animation: fadeIn 0.5s ease-out;
}
.drop-area {
border: 3px dashed #ddd;
border-radius: 12px;
padding: 4rem 2rem;
background: #ffffff; /* White */
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.drop-area:hover, .drop-area.dragover {
border-color: #4a90e2;
background: #f8f9ff; /* Very light blue tint */
transform: scale(1.02);
}
.drop-area i {
font-size: 3rem;
color: #4a90e2;
margin-bottom: 1rem;
}
.drop-area p {
color: #333; /* Dark gray */
font-size: 1.1rem;
font-weight: bold;
}
#file-input {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
/* Editor Section */
#editor-section {
width: 100%;
max-width: 800px;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
animation: slideUp 0.5s ease-out;
}
@media (max-width: 768px) {
#editor-section {
gap: 1rem;
}
}
.image-container {
position: relative;
background: #ffffff; /* White */
border-radius: 12px;
padding: 1rem;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
width: 400px;
height: 400px;
overflow: auto;
display: flex;
justify-content: center;
align-items: center;
cursor: grab;
will-change: transform;
transition: transform 0.1s ease;
touch-action: none;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
.image-container::-webkit-scrollbar {
display: none; /* Chrome/Safari */
}
.image-container:active {
cursor: grabbing;
}
#original-img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: block;
transform-origin: center;
will-change: transform;
}
.crop-square {
position: absolute;
border: 2px solid #4a90e2;
background: rgba(74, 144, 226, 0.1);
transition: all 0.2s ease;
user-select: none;
pointer-events: none;
z-index: 5;
}
.crop-square:hover {
border-color: #357abd;
background: rgba(74, 144, 226, 0.2);
}
/* Zoom slider */
.zoom-slider-wrapper {
width: 100%;
max-width: 400px;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0.25rem;
margin-top: 0.5rem;
}
.zoom-label {
font-size: 0.9rem;
color: #333; /* Dark gray */
text-align: left;
}
.zoom-slider {
width: 100%;
-accent-color: #4a90e2;
}
/* Download button */
#download-btn {
background: linear-gradient(135deg, #4a90e2, #357abd);
color: white;
border: none;
padding: 1rem 2rem;
border-radius: 8px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(74,144,226,0.3);
}
#download-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(74,144,226,0.4);
}
#download-btn:active {
transform: translateY(0);
}
/* SEO Article Section - Updated */
.seo-section {
background: #ffffff; /* White */
padding: 2rem 1rem;
color: #000; /* Black */
text-align: justify;
}
.seo-section h2 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
color: #000; /* Black */
text-align: center;
}
.seo-section h3 {
font-size: 1.4rem;
font-weight: 600;
color: #000;
margin: 1.5rem 0 0.8rem 0;
}
.seo-section p {
font-size: 1.1rem;
margin-bottom: 1rem;
color: #000; /* Black */
line-height: 1.8;
}
.seo-section ul {
margin: 1rem 0 1.5rem 1.5rem;
}
.seo-section li {
font-size: 1.1rem;
color: #000;
line-height: 1.7;
margin-bottom: 0.5rem;
}
/* Desktop: 60% width centered with 20% margins on both sides */
@media (min-width: 769px) {
.seo-section {
max-width: 60%;
margin: 0 auto;
padding: 2rem 1rem;
}
}
/* Mobile/Tablet: Full width justified text */
@media (max-width: 768px) {
.seo-section {
width: 100%;
padding: 1.5rem 1rem;
}
}
/* Footer Styles */
footer {
background: #ffffff; /* White */
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
padding: 2rem 1rem;
text-align: center;
margin-top: auto;
}
.footer-links {
margin-bottom: 1rem;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
gap: 1rem;
}
.footer-links a {
color: #4a90e2; /* Blue links */
text-decoration: none;
font-weight: 500;
transition: color 0.2s ease;
white-space: nowrap;
}
.footer-links a:hover {
color: #357abd; /* Darker blue on hover */
}
.footer-strip {
margin-bottom: 1rem;
padding: 1rem 0;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
gap: 0.5rem;
}
.footer-strip a {
color: #666; /* Gray */
text-decoration: none;
transition: color 0.2s ease;
white-space: nowrap;
}
.footer-strip a:hover {
color: #4a90e2; /* Blue on hover */
}
.copyright {
color: #666; /* Gray */
font-size: 0.9rem;
display: flex;
justify-content: center;
align-items: center;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition: none !important; }
}
/* Responsive */
@media (max-width: 768px) {
h1 { font-size: 2rem; }
.drop-area { padding: 3rem 1rem; }
.image-container { width: 300px; height: 300px; padding: 0.5rem; }
.footer-links {
gap: 0.5rem;
}
.footer-links a {
font-size: 0.9rem;
}
.footer-strip {
gap: 0.25rem;
flex-direction: row;
}
.footer-strip a {
font-size: 0.8rem;
}
.zoom-slider-wrapper {
max-width: 300px;
}
}
@media (max-width: 480px) {
main { padding: 1rem; }
#editor-section { gap: 0.5rem; }
.lang-switcher { position: static; margin-bottom: 1rem; }
footer { padding: 1rem; }
.seo-section { padding: 1rem; }
.footer-links {
gap: 0.25rem;
}
.footer-links a {
font-size: 0.8rem;
}
.footer-strip {
gap: 0.125rem;
padding: 0.5rem 0;
}
.footer-strip a {
font-size: 0.75rem;
}
.zoom-slider-wrapper {
max-width: 280px;
}
}