*{ 
    margin: 0;
    padding: 0;
    box-sizing:border-box; 
}

body { 
    font-family: Arial; 
    background:#eee; 
    display:flex; 
    justify-content: space-between;
    align-items: center; 
    min-height: 100vh;
    max-height: 100vh;
    flex-direction: column;
}

.container { 
    max-width:900px;
    width: 100%; 
    background:white; 
    padding:20px; 
    overflow: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100vh;
}

h1 { text-align:center; color:#0066cc; margin-bottom:20px; display: none; }

.area-imagem {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 20px;
    background-color: #0066cc;
    height: 150px;
    border-radius: 8px;
}


img { 
    display: block; 
    margin: 0 auto 20px; 
    max-width: 250px; 
    height: auto;
}

#dropArea {
    border:2px dashed #0066cc;
    background:#f0f8ff;
    text-align:center;
    padding:40px;
    cursor:pointer;
    margin-bottom:20px;
    border-radius:8px;
}

.controls { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; justify-content:center; }

.button { 
    background:#0066cc; 
    color:white; 
    border:none; 
    padding:10px 20px; 
    border-radius:5px; 
    cursor:pointer; 
    width: 100%;
}

.button:hover { background:#004999; }

#preview-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-bottom:20px; }
.thumb-container { position:relative; border:1px solid #ccc; border-radius:5px; overflow:hidden; padding:5px; background:white; display:flex; flex-direction:column; align-items:center; }
.thumb-container.selected { border:2px solid #0066cc; }
.thumb-container img, .thumb-container canvas { max-width:140px; max-height:140px; margin-bottom:5px; }

.checkbox-overlay { position:absolute; top:5px; left:5px; z-index:2; }

#downloadLinks{ display:flex; flex-direction:column; gap:5px; }
progress { width:100%; margin-top:5px; }

#fileList { 
    display:flex; 
    flex-wrap:wrap; 
    gap:10px;
}

#fileList div { 
    display:flex; 
    gap:10px;
    margin:5px 0; 
    display:flex; 
    justify-content:space-between;
    align-items:center;
    background:#00000020;
    padding:8px;
    border-radius:5px;
    color:black;
}

#preview { 
    display:flex; 
    flex-wrap:wrap;
    align-items:center; 
    gap:10px; 
}

.top-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.top-menu button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #0066cc;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
.top-menu button.active {
    background: #004999;
}
.top-menu button:hover {
    background: #0055aa;
}

#fileList button.remove-btn { 
    border:none;
    background:none;
    cursor:pointer;
    padding:5px;
    border-radius:50px;
}
#fileList button.remove-btn:hover {
    background:#fff;
}

.download-links a {
    display:flex;
    background:#0066cc;
    color:white;
    padding:10px 20px;
    border-radius:5px;
    text-decoration:none;
    align-self: flex-start;    
}

.area-pre-visualizacao {
    display: flex;
    flex-direction: column;
    gap: 5px;    
    background: #f0f8ff;
    padding: 10px;
    border-radius: 8px;
}


/* Rodapé discreto */
.footer-ad-container {
    text-align: center;
    padding: 15px 10px;
    background-color: #f4f4f4;  /* Fundo neutro */
    border-top: 1px solid #ddd;  /* Linha separadora sutil */
    border-radius: 6px 6px 0 0; /* Bordas arredondadas no topo */
    font-size: 12px;
    color: #666;
    max-height: 50px;
    width: 100%;
}

.footer-ad-container .ad-wrapper {
    margin-bottom: 8px; /* Espaço entre anúncio e texto */
    max-width: 970px;
    margin-left: auto;
    margin-right: auto;
}

.footer-ad-container .footer-text {
    margin: 0;
    font-size: 12px;
    color: #888;
    text-align: right;
}

/* Responsividade */
@media (max-width: 600px) {
    .container{
        min-height: 100vh;
    }

    .footer-ad {
        padding: 5px;
    }

    .footer-text{
        font-size: 8px;
    }

}

