/* Ensuring responsiveness */
html, body {
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

b {
  font-weight: bold;
}

/* main app styles */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #414242;
  font-family: "Source Sans Pro", sans-serif;
  color: #111;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 700px; /* Ensure container doesn't exceed 700px */
  padding: 15px;
  background-color: #ffffff;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin: 1% 0 3%;
}

textarea {
  width: 100%;
  height: 90px;
  padding: 10px;
  border: 1px solid #d9d9d9;
  outline: none;
  font-size: 1rem;
  resize: none;
  line-height: 1.5rem;
  margin-bottom: 15px;
}

textarea:hover {
  border-color: #c0c0c0;
}

textarea:focus {
  border-color: #4d90fe;
}

.output.row {
  width: 100%;
  border: 1px solid #ddd;
  font-size: 1.4rem;
  margin: 1% 0;
  background-color: #f9f9f9;
}

.output.row div {
  display: inline-block;
  width: 44%;
  padding: 1px 15px;
  font-size: 1.2rem;
}

.output.row span {
  font-weight: bold;
  font-size: 1.2rem;
}

#readability {
  width: 52%;
  font-weight: bold;
}

#readability:hover {
  background-color: #4d90fe;
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}

#readability:active {
  background-color: #307af3;
}

.keywords {
  display: block;
  margin: 4% auto 0;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 900;
}

.keywords ul {
  font-weight: 400;
  font-size: 0.8rem;
  text-align: left;
  border: 1px solid #4d90fe;
  outline: none;
}

.keywords li {
  display: block;
  width: 100%;
  padding: 5px;
  margin: auto;
  line-height: 1.2rem;
}

#topKeywords {
  max-height: 120px;
  min-height: 120px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 10px 5px 10px 10px;
}

#title {
  font-weight: normal;
  font-size: 26px;
  white-space: nowrap;
  margin-left: 20px;
}

.circle-shadow {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.nombre {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 20px;
}

img {
  background-color: #f8f8f8;
  height: 40px;
  margin-top: 5px;
  width: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
}

.icon-image {
  width: 40px; /* Establece el ancho de la imagen */
  height: 40px; /* Establece la altura de la imagen igual al ancho para hacerlo redondo */
  border-radius: 50%; /* Hace que la imagen sea redonda */
  margin-right: 10px; /* Espacio entre la imagen y el texto */
  filter: brightness(1.5);
  box-shadow: 4px 4px 8px rgb(163, 177, 198, 0.7),
  -4px -4px 8px rgba(255, 255, 255, 0.6);
}

button {
  padding: 6px;
  border: none;
  border-radius: 4px;
  background-color: #3d3d3d;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #676768;
}

.keywords .keyTitle {
  margin-bottom: 10px;
  font-weight: bold;
}

.keywords button {
  margin-bottom: 10px;
  margin-left: 10px;
}

/* Responsive styles */
@media (max-width: 750px) {
  .output.row {
    font-size: 1.2rem;
  }

  .output.row span {
    font-size: 1.3rem;
  }

  .keywords ul {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  body {
    width: 100%;
    padding: 0;
    transform: none;
  }

  .container {
    width: 95%;
    padding: 10px;
  }

  .output.row {
    border: none;
    background-color: #fff;
  }

  .output.row div {
    display: block;
    width: 100%;
    padding: 2px 15px;
    margin: 1% auto;
    font-size: 1rem;
    background-color: #f9f9f9;
  }

  .output.row span {
    font-size: 1rem;
  }

  #readability {
    width: 100%;
    font-size: 1.3rem;
    font-weight: 400;
  }

  .keywords {
    margin: 10% auto;
  }

  .keywords ul {
    font-weight: 400;
    border: none;
    font-size: 0.8rem;
  }

  #title {
    font-weight: normal;
    font-size: 20px;
  }

  .keywords li {
    display: block;
    width: 100%;
    padding: 1px;
    margin: auto;
  }

  h1 {
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    margin: 1% 0 3%;
  }

  .keyTitle {
    font-size: 0.9rem;
  }

  textarea {
    width: 100%;
    height: 128px;
  }
}
