body{
margin:0;
font-family:Arial,sans-serif;
background:#f3f2f1;
color:#0b0c0c;
}

header{
background:#0b0c0c;
color:white;
padding:20px;
}

.container{
width:92%;
max-width:1000px;
margin:auto;
}

.card{
background:white;
padding:20px;
margin:15px 0;
border-radius:12px;
box-shadow:0 1px 3px rgba(0,0,0,0.08);
}

.input{
width:100%;
padding:14px;
font-size:16px;
border:1px solid #b1b4b6;
border-radius:8px;
box-sizing:border-box;
}

.button{
display:inline-block;
padding:14px 20px;
background:#00703c;
color:white;
text-decoration:none;
border:none;
border-radius:8px;
font-size:16px;
margin-top:10px;
cursor:pointer;
}

.blue{
background:#1d70b8;
}

.upload-zone{
display:flex;
justify-content:center;
align-items:center;
background:white;
border:3px dashed #b1b4b6;
border-radius:14px;
padding:50px 20px;
text-align:center;
margin-top:20px;
cursor:pointer;
}

.upload-zone input{
display:none;
}

.upload-icon{
font-size:60px;
margin-bottom:10px;
}

.grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
margin:20px 0;
}

.grid img{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
}

.counter{
font-size:18px;
font-weight:bold;
margin-top:15px;
}

#loadingOverlay{
display:none;
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
background:rgba(255,255,255,0.95);
z-index:9999;
justify-content:center;
align-items:center;
flex-direction:column;
font-size:20px;
}

.spinner{
width:60px;
height:60px;
border:6px solid #ddd;
border-top:6px solid #00703c;
border-radius:50%;
animation:spin 1s linear infinite;
margin-bottom:20px;
}

@keyframes spin{
100%{
transform:rotate(360deg);
}
}

.final-image{
width:100%;
border-radius:12px;
}

.share-row{
display:flex;
gap:10px;
align-items:center;
}

.copy-button{
white-space:nowrap;
margin-top:0;
padding:14px 16px;
}

@media(max-width:768px){

.share-row{
flex-direction:column;
}

.copy-button{
width:100%;
}

.grid{
grid-template-columns:repeat(2,1fr);
}

.grid img{
height:180px;
}

}
