/* Estilo geral */
body {
  display: flex;
  height: 100vh;
  margin: 0;
  justify-content: center;
  align-items: center;
  font-family: Consolas, SFMono-Regular, Liberation Mono, Menlo, monospace;
  background: linear-gradient(180deg, #1f524f, #00ae9d) no-repeat;
  padding: 20px;
  overflow: hidden;
  flex-direction: column; /* Para colocar a imagem acima dos quadros */
}

#main_container {
  display: flex;
  flex-direction: row; /* Garante que os quadros fiquem lado a lado */
  justify-content: center; /* Centraliza os quadros horizontalmente */
  align-items: flex-start; /* Garante que os itens fiquem alinhados ao topo */
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  gap: 20px; /* Adiciona espaçamento entre os quadros */
}

/* Estilo da imagem */
.imagem {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.imagem img {
  max-width: 100%;
  height: auto;
}

/* Estilo dos quadros */
.central-box {
  text-align: center;
  background-color: #fff;
  padding: 40px;
  border-radius: 20px;
  width: 48%; /* Define a largura dos quadros */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin: 10px 0; /* Espaço entre os quadros */
}

/* Estilo do botão e outros elementos */
button {
  border-radius: 15px;
  font-family: Consolas, SFMono-Regular, Liberation Mono, Menlo, monospace;
  border: 1px solid rgba(25, 155, 143);
  background: rgba(205, 207, 9, 1);
  padding: 5px;
  outline: none;
  animation: none;
}

button:hover {
  box-shadow: 0px 1px 7px 1px rgba(255, 99, 71, 0.25);
  transform: translateY(-0.75px);
}

button:disabled {
  color: black;
}

/* Estilo do input de arquivo */
#pdf_input_container, #pdf_input_container_extract {
  height: max-content;
  margin: 10px;
  align-self: center;
}

#pdf_input, #pdf_input_extract {
  outline: none;
  font-family: Consolas, SFMono-Regular, Liberation Mono, Menlo, monospace;
}

#pdf_input::-webkit-file-upload-button, #pdf_input_extract::-webkit-file-upload-button {
  border-radius: 10px;
  border: 1px solid rgba(25, 155, 143);
  background: rgba(205, 207, 9, 1);
  outline: none;
  font-family: Consolas, SFMono-Regular, Liberation Mono, Menlo, monospace;
}

#pdf_input::-webkit-file-upload-button:hover, #pdf_input_extract::-webkit-file-upload-button:hover {
  transform: translateY(-0.75px);
}

/* Estilo do range input */
#range_container {
  display: inline-block;
  height: max-content;
  align-self: center;
  margin: 10px;
}

#compress_input_output {
  display: inline-block;
  width: 25px;
  max-width: 25px;
  margin-left: 5px;
  margin-right: 5px;
}

/* Estilo do container de PDF selecionado */
#selected_pdf_container {
  height: max-content;
  margin: 10px;
  align-self: center;
}

/* Estilo do handle para arrastar */
.handle {
  cursor: grab;
  content: url("../res/ic_fluent_drag_24_regular.svg");
  vertical-align: middle;
}

/* Estilo da lista de PDFs selecionados */
.list {
  list-style: none;
  width: max-content;
  text-align: center;
  align-content: center;
}

.ghost-class {
  background-color: rgba(255, 99, 71, 0.5);
  border-radius: 5px;
  width: max-content;
}

/* Animação de loading */
@keyframes loading {
  0% {
    border: 2px solid #4285f4;
    color: #4285f4;
    box-shadow: 0px 1px 10px 1px rgba(66, 133, 244, 0.5);
  }

  33% {
    border: 2px solid #db4437;
    color: #db4437;
    box-shadow: 0px 1px 10px 1px rgba(219, 68, 55, 0.5);
  }

  66% {
    border: 2px solid #f4b400;
    color: #f4b400;
    box-shadow: 0px 1px 10px 1px rgba(244, 160, 0, 0.5);
  }

  100% {
    border: 2px solid #0f9d58;
    color: #0f9d58;
    box-shadow: 0px 1px 10px 1px rgba(15, 157, 88, 0.5);
  }
}
