* {
  font-family: "Lato", sans-serif;
  margin: 0;
}
:root {
  --Purple: #824085;
  --gray: #8688a6;
  --white: #edf8f8;
  --black: #100421;
  --soft-pink: #f8f2f3;
}
body {
  background-color: var(--soft-pink);
}
#root {
  width: 100%;
}
header {
  font-size: 1.5rem;
  border: 0;
  width: 100%;
  padding: auto;
  margin: 1rem 0;
}

h1 {
  text-align: center;
  font-weight: 900;
  color: purple;
  margin-top: 4rem;
}
h2 {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1.5rem 0;
}

#mainGenre,
#sort,
#compute {
  font-size: 1rem;
  font-weight: 700;
  color: rgb(0, 0, 0);
  height: 2rem;
  width: 9.7rem;
  border: none;
  background-color: transparent;
  text-align: center;
  margin: 1rem 0;
  display:inline-block
}
.writing {
  color: blue;
  font-style: italic;
  margin-bottom: 1rem;
}

option {
  width: 250px;
  font-size: .7rem;
}

#mainGenre:hover,
#sort:hover,
#compute:hover {
  background-color: var(--gray);
  width: 250px;
}

#buttonClear,
#api-key,
#goToChatGrupalBtn {
  font-weight: 700;
  height: 3rem;
  width: 6rem;
  font-size: 0.8rem;
  box-shadow: 5px 0px rgba(124, 1, 118, 0.5), 0px 5px 0px rgba(87, 1, 104, 0.5);
  background-color: var(--soft-pink);
  border-color: purple;
  border-radius: 0.5rem;
  margin-top: 0.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

#buttonClear:hover,
#api-key:hover,
#goToChatGrupalBtn:hover {
  background-color: var(--gray);
}
.styleUl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  gap: 3rem;
}
.styleLi {
  width: 20rem;
  height: 35rem;
  margin-bottom: 1rem;
  padding: 2rem;
  text-align: center;
  background-color: var(--white);
  border-radius: 2rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
.styleLi img {
  width: 20rem;
  height: 21rem;
  border-radius: 2rem;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}
.styleLi .nameSinger {
  font-weight: 900;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: start;
}

.shortDescription {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.description {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.styleLi {
  text-align: justify;
}
span {
  font-weight: 900;
}
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--gray);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-weight: 700;
}
/* Chat individual */
#conteinerCompute {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  width: 90%;
}
.grid {
  display: grid;
  grid-template-rows: 30% 30%;
  background-color: white;
  padding: 1rem 0;
}
.contenedorCards {
  margin: 0 auto;
  max-width: 120rem;
  width: 90%;
}

.body {
  display: grid;
  height: 100vh;
  grid-template-rows: 20% 50% 30%;
  grid-template-columns: 100%;
}
.back-img {
  width: 60px;
  height: 60px;
  margin: 1rem 1rem;
}

.singer-img {
  width: 100px;
  height: 100px;
  border-radius: 4rem;
  margin-right: 1rem;
  margin-top: 1rem;
}

.singer-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.singer-desc {
  font-style: italic;
}
.conversation {
  height: 32rem;
}
.botones-chatIn {
  display: none;
}

.input-msj {
  width: 21rem;
  height: 3rem;
  border-radius: 3rem;
  padding-left: 1rem;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  margin-right: 2rem;
  font-size: 1rem;
  font-style: italic;
}
.button-send {
  width: 3rem;
  height: 3rem;
}
.first-chat {
  background-color: var(--soft-pink);
  width: 90%;
  height: 12rem;
  margin: 1rem;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
}


.flex-Input {
  display: grid;
  grid-template-columns: calc(100% - 100px) 100px;
  grid-template-rows: calc(100% - 100px);
  grid-column-start: 1;
  grid-row: 3;
}

.div-singer-img {
  text-align: center;
}
.singer-descL {
  display: none;
}
#conversationI {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  justify-self: center;
  overflow-y: auto; 
}


@media (min-width: 500px) {
  .singer-descL {
    display: block;
    margin: 1rem 1.5rem;
    text-align: justify;
  }
  .conversationI {
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row: 1;

  }

  .flex-Input {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row: 2;
  }
  .first-chat {
    background-color: #ffffff;
    width: calc(100% - 60px);
    height: 100vh;
    grid-column: 1;
    grid-row-start: 1;
    grid-row-end: 3;
    padding-left: 20px;
    display: block;
    margin: 0;
  }
  h1 {
    margin-top: 1rem;
  }
  header {
    font-size: 3.5rem;
    margin: 3rem auto;
  }
  h2 {
    font-size: 2.5rem;
    margin-top: 0;
  }

  #buttonClear,
  #api-key,
  #goToChatGrupalBtn {
    font-weight: 900;
    height: 3rem;
    width: 10rem;
    font-size: 1rem;
    margin-top: 0.2rem;
    padding: 0;
    margin: 0 0.5rem;
  }

  #buttonClear:hover,
  #api-key:hover,
  #goToChatGrupalBtn:hover {
    background-color: var(--gray);
  }
  #mainGenre,
  #sort,
  #compute {
    font-size: 1.5rem;
    font-weight: 900;
    height: 2rem;
    width: 14rem;
    background-color: transparent;
  }
  option {
    width: auto;
    font-size: 1rem;
  }
  #conteinerCompute {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .grid {
    box-shadow: 0px 5px 10px rgba(128, 128, 128, 0.5);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 10rem;
    background-color: white;
    padding: 2rem;
    margin-bottom: 3rem;
  }

  .body {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
  }

  .first-group-chat {
    background-color: #ffffff;
    width: calc(100% - 60px);
    height: 100vh;
    grid-column: 1;
    grid-row-start: 1;
    grid-row-end: 3;
    padding-left: 30px;
  }

  .botones-chatIn {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    justify-content: end;
    align-items: start;
  }

  #api-key-chat,
  #goToChatGrupalBtn-chat {
    font-weight: 700;
    height: 2rem;
    width: 6rem;
    font-size: 0.8rem;
    box-shadow: 5px 0px rgba(124, 1, 118, 0.5),
      0px 5px 0px rgba(87, 1, 104, 0.5);
    background-color: var(--soft-pink);
    border-color: purple;
    border-radius: 0.5rem;
    margin-top: 40px;
    margin-right: 40px;
    font-weight: 700;
  }

  #api-key-chat:hover,
  #goToChatGrupalBtn-chat:hover {
    background-color: var(--gray);
  }

  .input-msj {
    width: 40rem;
    max-width: 90rem;
    margin-left: 1rem;
  }
  .singer-name {
    font-size: 2rem;
    margin-top: 1rem;
    margin-left: 3rem;
  }

  .singer-desc {
    margin-left: 1.5rem;
    margin-right: 1.5em;
  }

  .div-singer-img {
    display: flex;
    justify-content: center;
  }
  .singer-img {
    width: 150px;
    height: 150px;
    margin-right: 1rem;
    text-align: center;
    border-radius: 50%;
    margin: 0;
  }

  .conversation {
    height: 39.5rem;
  }
}
.flex-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:center;
  height: 15rem;
  width: 250px;
}
.segundo-grupo {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 15rem;
  padding: 2rem;
}

.titleError {
  font-size: 3rem;
  font-weight: 800;
  color: purple;
  text-align: center;
  margin: 6rem 0rem;
}

.taylor {
  display: flex;
  justify-content: center;
}

.taylor img {
  max-width: 600px;
  height: auto;
}

/* Chat grupal */
.container {
  display: grid;
  grid-template-columns: 100px calc(100% - 100px);
  grid-template-rows: auto auto;
}
.information-container {
  background-color: var(--soft-pink);
  width: 100%;
  height: calc(100vh - 80px);
}

.chat-container {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  background-color: var(--soft-pink);
  width: 100%;
  height: calc(100vh - 80px);
}
.input-Container {
  display: grid;
  grid-template-columns: calc(100% - 100px) 100px;
  grid-template-rows: 20px 60px;
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row: 2;
  height: calc(80px);
}
.imagesandtext-container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 30px;
  height: calc(100% - 5rem);
  overflow: scroll;
}
.imagesandtext-container img {
  border-radius: 50%; 
  width: 80px;
  height: 80px;
}
.imagesandtext-container::-webkit-scrollbar {
  width: 0; 
}
.imagesandtext-container p {
  display: none;
}
.back-button {
  width: 5rem;
  height: 5rem;
  border: none;
  background-color: transparent;
}
.back-button img {
  width: 3rem;
  height: 3rem;
}

.form-Container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}
.title-apikey {
  color: var(--black);
}
.apiKey-button {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  background-color: var(--Purple);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  height: 2rem;
  width: 6rem;
  font-size: 0.8rem;
  border-radius: 2rem;
  justify-self: end;
  margin-top: 1rem;
  margin-right: 1rem;
}
.apiKey-button:hover {
  background-color: #8688a6;
}
.apiKey-save-button {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  background-color: var(--Purple);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  height: 2rem;
  width: 6rem;
  font-size: 0.8rem;
  border-radius: 2rem;
  justify-self: end;
  margin-top: 1rem;
  margin-right: 1rem;
}
.apiKey-save-button:hover {
  background-color: #8688a6;
}
.message-input {
  place-self: end;
  border-radius: 3rem;
  align-self: center;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  grid-column: 1;
  grid-row: 2;
  height: 40px;
  width: calc(100% - 80px);
  padding-left: 1rem;
}

.message-api-key-input {
  place-self: end;
  border-radius: 3rem;
  align-self: center;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  grid-column: 1;
  grid-row: 2;
  height: 40px;
  width: calc(100% - 80px);
  padding-left: 1rem;
}

.button-Send {
  grid-column-start: 2;
  grid-column-end: 2;
  grid-row: 2;
  border: none;
  place-self: center;
  height: 40px;
  width: 30px;
}
.button-Send img {
  height: 100%;
}
@media (min-width: 800px) {
  .container {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto;
  }
 
  .information-container {
    background-color: #ffffff;
    width: calc(100% - 60px);
    height: 100vh;
    grid-column: 1;
    grid-row-start: 1;
    grid-row-end: 3;
    padding-left: 30px;
  }
  .chat-container {
    background-color: var(--soft-pink);
    width: 100%;
    height: calc(100vh - 80px);
    grid-column: 2;
    grid-row: 1;
  }
  .back-button {
    background-color: transparent;
  }
  .imagesandtextsingle-container {
    display: grid;
    grid-template-columns: 80px calc(100% - 80px);
    grid-template-rows: auto;
    width: 100%;
    height: 100px;
    gap: 30px;
  }
  .imagesandtextsingle-container img {
    grid-column: 1;
    width: 80px;
    height: 80px;
  }
  .nameandshort-description {
    justify-self: start;
    align-self: start;
    padding-right: 25px;
    padding-left: 25px;
  }
  .nameandshort-description p {
    display: block;
    grid-column-start: 2;
    grid-column-end: 3;
  }
  .name-class {
    font-weight: 900;
  }
  .input-Container {
    background-color: var(--soft-pink);
    grid-column-start: 2;
    grid-column-end: 3;
    height: calc(80px);
  }
  .button-Send img {
    width: 2rem;
    height: 2rem;
  }
  .name-Container {
    margin-right: 6rem;
  }
  .apiKey-button {
    box-shadow: 5px 0px rgba(124, 1, 118, 0.5),
      0px 5px 0px rgba(87, 1, 104, 0.5);
    background-color: var(--soft-pink);
    border-color: purple;
    color: var(--black);
    border-radius: 0.5rem;
  }
  .apiKey-button:hover {
    background-color: var(--gray);
  }
  .message-input{
    width: 100%;
  }
  .message-input:hover {
    background-color: #bebec5;
  }
  .send-button {
    grid-column: 3;
    grid-row: 3;
    margin-right: 2rem;
  }
  .send-button:hover {
    background-color: #895cc7;
    border-radius: 50px;
  }
  .message-api-key-input {
    width: 800px;
  }
}

.menuOpen {
  left: 0px;
  position: fixed;
  top: 0;
  width: 250px;
  height: 100%;
  background-color: #f4f4f4;
  transition: left 0.3s ease;
  z-index: 1;
  overflow-y: auto;
}
.menu-toogle {
  display: block;
  position: fixed;
  top: 10px;
  left: 10px;
  cursor: pointer;
  font-size: 20px;
  z-index: 2;
  background: none;
  border: none;
}
.menu-toogle img{
  width: 30px;
  height: 30px;
 
}

.menuStart {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #f4f4f4;
  transition: left 0.3s ease;
  z-index: 1;
  overflow-y: auto;
}


#close-menu {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  background: none;
  border: none;
}


@media only screen and (min-width: 500px) {
  .menu-toogle {
    display: none;
  }
  .hidden{
    display: none;
  }
  #close-menu {
    display: none;
  }
  .flex-container {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: auto;
    width: auto;
  }
  .segundo-grupo {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: auto;
    padding: 0;
  }


  #menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    transition: none;
  }
}


.user-message {
  text-align: right;
  margin-bottom: 10px;
}

.ia-message {
  text-align: left;
  margin-bottom: 10px;
}

.user-message .message-bubble {
  background-color: #DCDCE5;
  color: rgb(0, 0, 0);
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
}

.ia-message .message-bubble {
  background-color: #DCBADE;
  color: rgb(0, 0, 0);
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
}
.user-message {
  text-align: right;
  margin-bottom: 10px;
}
.user-message p{
  background-color: #DCDCE5;
  color: rgb(0, 0, 0);
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 20px;
}

.response-message {
  text-align: left;
  margin-bottom: 10px;
}
.response-message p {
  background-color: #DCBADE;
  color: rgb(0, 0, 0);
  border-radius: 5px;
  padding: 5px 10px;
  margin-bottom: 10px;
  display: inline-block;
}
.error-message div{
  background-color: rgb(218, 138, 138);
  color: rgb(0, 0, 0);
  padding: 30px;
  border-radius: 10px;
  display: inline-block;
  margin: 0 0.5rem;
  
}
@media (min-width: 500px) {
  .error-message {
    margin-right: 1rem;
  }
}
.error-message{
  display: grid;
  height: 10%;
  width: auto;

}
.error-message p{
  background-color: rgb(218, 138, 138);
  color: rgb(0, 0, 0);
  border-radius: 10px;
  padding: 30px;
  display: inline-block;
  align-content: center;
}
