body {
    font-family: Arial, sans-serif;
    background-color: #007bff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 1100px; /* Aumentei o tamanho máximo do container */
}

h1 {
    font-size: 26px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.upload-section {
    margin-bottom: 20px;
}

.upload-section input {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.image-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Permite que as imagens se ajustem */
    gap: 20px;
}

.image-preview {
    flex: 1;
    max-width: 30%; /* Para garantir que todas as três imagens caibam na linha */
    text-align: center;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-width: 100%; /* Garante que a imagem não exceda o tamanho do container */
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.image-preview img:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.download-button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.download-button:hover {
    background-color: #0056b3;
}

/* Modal para ampliar imagem */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%; /* Garante que a imagem ampliada não ultrapasse a tela */
    height: auto;
}

.modal-content, #caption {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0);}
    to {transform: scale(1);}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Media queries para ajustar em telas menores */
@media (max-width: 768px) {
    .image-row {
        flex-direction: column; /* Para telas menores, as imagens ficam em linha vertical */
    }

    .image-preview {
        max-width: 100%;
    }
}
