div.caixaTexto {
  padding: 0;
}

div.caixaTexto h1.amatic-sc-regular {
  font-size: 40px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.projetos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: Inter, sans-serif;
  width: 60%;
  overflow-y: auto;
  padding: 1em;
}

.projetos::-webkit-scrollbar {
  width: 20px; 
}

.projetos::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px gray;
  border-radius: 10px;
}

.projetos::-webkit-scrollbar-thumb {
  background: #e69138; 
  border-radius: 10px;
  transition: 0.3s ease;
}

.projeto {
  width: 100%;
  text-align: left;
  border-radius: 0.5em;
  background-color: #00000033;
  padding: 2%;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

div.caixaTexto h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #ffffff;
  font-family: Inter, sans-serif;
  margin-top: 1em;
  margin-bottom: 1em;
}

.titulo {
  font-size: 20px;
  margin: 10px;
  color: #e69138;
  font-family: Inter, sans-serif;
  white-space: normal;
  word-wrap: normal;
}

.botoes {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.botoes a {
  margin: 10px;
  padding: 1em;
  background-color: #e69138;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 25px;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  text-align: center;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.botoes a:hover {
  transform: scale(1.03);
  background-color: #c47e33;
  color: #e2e1e1;
  cursor: pointer;
}

.sem-projetos {
  font-size: 1.5em;
  color: #ffffff;
  font-family: Inter, sans-serif;
  margin-top: 1em;
  margin-bottom: 1em;
}

.modal {
  background-color: #ffffff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: Inter, sans-serif;
  width: 500px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000066;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.topico {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 1em;
  color: #ffffff;
  font-family: Inter, sans-serif;
  text-align: center;
  width: 100%;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal span {
  color: #343a40;
  font-size: 1.5em;
}

.modal .cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
  font-weight: bold;
}

.modal i {
  color: #e69138;
  font-size: 2em;
  width: 2em;
  height: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: 0.2s;
  cursor: pointer;
}

.modal i:hover {
  transform: scale(1.5);
  color: #c47e33;
}

.botoes-modal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.btn-projeto {
  background-color: #e69138;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  text-align: center;
  transition: transform 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-projeto:hover {
  transform: scale(1.03);
  background-color: #c47e33;
  color: #e2e1e1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media Screen and (max-width: 500px) {
  div.caixaTexto h2 {
    margin-top: 1em;
    font-size: 20px;
  }

  .projetos {
    width: 90%;
    padding: 0.5em;
  }

  .projeto {
    padding: 2%;
  }

  .projeto .titulo {
    margin-bottom: 0;
    font-size: 15px;
  }

  .projetos::-webkit-scrollbar {
    width: 7px;
  }

  .modal {
    width: 90%;
  }

  .modal span {
    font-size: 2em;
  }

  .modal i {
    font-size: 1.5em;
  }

  .botoes {
    flex-direction: column;
  }

  .modal .cabecalho {
    margin-bottom: 1em;
    font-size: 12px;
  }

  .botoes-modal a {
    font-size: 15px;
  }

  .botoes a {
    font-size: 15px;
    min-height: 50px;
  }

  .sem-projetos {
    font-size: 1em;
  }

  div.caixaTexto h1.amatic-sc-regular {
    font-size: 24px;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
  }
}

@media Screen and (min-width: 501px) and (max-width: 1024px) {
  div.caixaTexto h2 {
    margin-top: 1em;
    font-size: 28px;
  }

  .projetos {
    width: 80%;
    padding: 1em;
  }

  .projeto {
    padding: 3%;
  }

  .projeto .titulo {
    margin-bottom: 0;
    font-size: 18px;
  }

  .projetos::-webkit-scrollbar {
    width: 10px;
  }

  .modal {
    width: 70%;
  }

  .modal span {
    font-size: 1.5em;
  }

  .modal i {
    font-size: 1.8em;
  }

  .botoes {
    flex-direction: row;
  }

  .modal .cabecalho {
    margin-bottom: 1em;
    font-size: 14px;
  }

  .botoes-modal a {
    font-size: 18px;
  }

  .botoes a {
    font-size: 18px;
  }

  .sem-projetos {
    font-size: 1.2em;
  }

  div.caixaTexto h1.amatic-sc-regular {
    font-size: 32px;
    margin-top: 0.3em;
    margin-bottom: 0.5em;
  }
}
