body {
  font-family: "Montserrat", Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #FFFFFF;
}

h1 {
  text-align: center;
  font-family: "Montserrat Black", Arial, sans-serif;
  color: #000000;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px; /* Aggiunto padding per evitare il contatto con i bordi */
}

.input-container {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.textarea {
  width: calc(100% - 20px); /* Sottrai il doppio del padding per centrare rispetto ai pulsanti */
  height: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  resize: none;
}

.button {
  display: block;
  margin-top: 10px;
  padding: 10px;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: bold;
}

.button:nth-child(2),
.button:nth-child(3) {
  width: 100%;
}

.button:nth-child(2) {
  background-color: #7EA2FF;
}

.button:nth-child(3) {
  background-color: #efefef;
}

.button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#result {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Aggiunto flex-wrap per adattarsi meglio ai dispositivi mobili */
}

.box {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.box-icon {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}

.box-text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  color: #000000;
  flex: 1;
}

.betabox {
  display: inline-block;
  background-color: #7EA2FF;
  color: #000;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  vertical-align: middle;
  margin-left: 10px;
  font-family: "Montserrat", Arial, sans-serif;
}

.download-button {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  padding: 10px;
  width: 100%;
  background-color: #efefef;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: bold;
}

.disclaimer {
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  font-family: "Montserrat", Arial, sans-serif;
}

.loading-message {
  text-align: center;
  margin-top: 10px;
  display: none;
}

@media only screen and (max-width: 1000px) {
  .container {
    max-width: 100%;
    padding: 0 10px; /* Aggiunto padding per evitare il contatto con i bordi */
  }

  .input-container input,
  .input-container button,
  .textarea,
  .download-button {
    width: 100%;
  }

  /* Nuove regole per le immagini */
  img {
    max-width: 100%;
    height: auto;
  }
}

.button:nth-child(2),
.button:nth-child(3),
.download-button {
  transition: transform 0.3s ease-in-out;
}

.button:nth-child(2):hover:enabled,
.button:nth-child(3):hover,
.download-button:hover {
  transform: scale(1.01);
}

.button:disabled:hover {
  transform: none;
  cursor: not-allowed;
}
