/* 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;
background: #ffffff;
min-height: 100vh;
display: flex;
flex-direction: column;
transition: all 0.3s ease;
scrollbar-width: none;
-ms-overflow-style: none;
}
body::-webkit-scrollbar {
display: none;
}
header {
text-align: center;
padding: 2rem 1rem;
background: #ffffff;
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;
color: #000;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
color: #000;
margin-bottom: 0.5rem;
}
header p {
font-size: 1.1rem;
color: #333;
}
main {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 1rem;
max-width: 1200px;
margin: 0 auto;
width: 100%;
gap: 2rem;
}
#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;
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;
transform: scale(1.02);
}
.drop-area i {
font-size: 3rem;
color: #4a90e2;
margin-bottom: 1rem;
}
.drop-area p {
color: #333;
font-size: 1.1rem;
font-weight: bold;
}
#file-input {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
/* Editor area */
#editor-section {
display: none;
flex-direction: column;
align-items: center;
gap: 1rem;
animation: slideUp 0.5s ease-out;
}
.editor-wrapper {
border-radius: 10px;
box-shadow: 0 4px 18px rgba(0,0,0,0.12);
background: #000;
padding: 0;
}
.image-stage {
position: relative;
overflow: hidden;
max-width: 800px;
max-height: 600px;
background: #111;
}
#edit-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
z-index: 1;
}
/* Crop box */
.crop-box {
position: absolute;
border: 2px solid #4a90e2;
box-shadow: 0 0 0 1px #ffffff40;
cursor: move;
pointer-events: auto;
z-index: 20;
}
/* Masks for outside crop area */
.mask {
position: absolute;
background: rgba(0,0,0,0.5);
pointer-events: none;
z-index: 10;
}
.mask.top {
left: 0;
right: 0;
top: 0;
}
.mask.left {
top: 0;
bottom: 0;
left: 0;
}
.mask.right {
top: 0;
bottom: 0;
right: 0;
}
.mask.bottom {
left: 0;
right: 0;
bottom: 0;
}
/* handles */
.handle {
position: absolute;
width: 12px;
height: 12px;
background: #4a90e2;
border-radius: 2px;
border: 1px solid #fff;
box-sizing: border-box;
z-index: 30;
}
.handle.n { top: -7px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.handle.s { bottom: -7px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.handle.e { right: -7px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.handle.w { left: -7px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.handle.nw { left: -7px; top: -7px; cursor: nwse-resize; }
.handle.ne { right: -7px; top: -7px; cursor: nesw-resize; }
.handle.sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.handle.se { right: -7px; bottom: -7px; cursor: nwse-resize; }
#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 section */
.seo-section {
background: #ffffff;
padding: 2rem 1rem;
color: #000;
text-align: justify;
}
.seo-section h2 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
color: #000;
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;
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;
}
@media (min-width: 769px) {
.seo-section {
max-width: 60%;
margin: 0 auto;
padding: 2rem 1rem;
}
}
@media (max-width: 768px) {
.seo-section {
width: 100%;
padding: 1.5rem 1rem;
}
}
footer {
background: #ffffff;
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;
text-decoration: none;
font-weight: 500;
transition: color 0.2s ease;
white-space: nowrap;
}
.footer-links a:hover {
color: #357abd;
}
.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;
text-decoration: none;
transition: color 0.2s ease;
white-space: nowrap;
}
.footer-strip a:hover {
color: #4a90e2;
}
.copyright {
color: #666;
font-size: 0.9rem;
display: flex;
justify-content: center;
align-items: center;
}
@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); }
}
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
main {
flex-direction: column;
align-items: center;
}
#upload-section {
max-width: 100%;
}
}
@media (max-width: 768px) {
h1 { font-size: 2rem; }
.drop-area { padding: 3rem 1rem; }
.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;
}
}
@media (max-width: 480px) {
main { padding: 1rem; }
.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;
}
}