/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;

body {
  padding-top: 60px; /* Espaço para a logo */
  position: relative; /* Necessário para o posicionamento absoluto da logo */
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  display:flex;
  text-align: center;
}

.upload-container,
.image-section,
.logo-container,
#download-container {
  margin-left: auto;
  margin-right: auto;
  display: center;
}

main {
  flex: 1;
}

.upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
  width: 100%;
  max-width: 800px;
}

.image-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.image-section img {
  max-width: 100%;
  max-height: 300px;
  border: 2px dashed #aaa;
  padding: 10px;
  background-color: transparent;
}

h1, h3 {
  margin: 10px 0;
}

#loader-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#loader-overlay img {
  width: 80px;
  height: 80px;
  display: block;
}

/*.logo-container {
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: right;
  margin-bottom: -10px;
}

.logo {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

*/


.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 150px; /* Ajuste conforme necessário */
  height: auto;
  z-index: 1000;
}

.logo {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}


#image-input {
  padding: 10px;
  border: 2px dashed #888;
  border-radius: 8px;
  background-color: #fafafa;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#image-input:hover {
  border-color: #444;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.form-inline {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* permite quebrar em telas menores */
}

.icon-box {
  width: 80px;
  height: 80px;
  background-color: #2c3e50;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 15px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.icon-box:hover {
  background-color: #34495e;
}

.icon-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #2980b9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #1f6391;
}

.site-footer {
  width: 100%;
  text-align: center;
  padding: 20px;
  background-color: #2c3e50;
  color: white;
  font-size: 14px;
  margin-top: 40px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #ffffff;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #1abc9c;
}

/* Novas regras para controle de visibilidade */
#image-preview,
#processed-image {
  display: none;
}
.warning-message {
  color: red;
  font-size: 14px;
  margin-top: 8px;
}

/* Efeito de sombra na logo */
.logo {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .logo-container {
    position: static;
    width: 120px;
    margin: 0 auto 20px;
  }

  body {
    padding-top: 0;
  }
}