body {
  font-family: Arial;
   background:
    radial-gradient(circle at top, rgba(255, 0, 0, 0.35), transparent 60%),
    radial-gradient(circle at top, #8b0000 0%, #3b0000 40%, #0d0000 100%);

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}


.chat-container {
  max-width: 500px;
  width: 95%;
  margin: auto;
  background: #333;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0px 0px 15px #000;
  display: flex;
  flex-direction: column;
}

#chat {
  height: 350px;
  display: flex;
  flex-direction: column;
  overflow-y: auto; 
  padding-right: 5px;
}

#chat::-webkit-scrollbar {
  width: 6px;
}

#chat::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
}

.usuario {
  background: #353e43;
  color: white;
  align-self: flex-end;
}

.bot {
  background: #ff2c2c;
  color: #fff;
  align-self: flex-start;
}

.usuario, .bot {
  display: inline-block;
  width: fit-content;
  max-width: 70%;
  padding: 10px;
  border-radius: 10px;
  margin: 5px;
  word-wrap: break-word;
}

.bot img {
  width: 100px;
  border-radius: 8px;
  display: block;
  margin-bottom: 5px;
}

.bot div {
  margin-bottom: 10px;
  cursor: pointer;
}

.bot p {
  color: white;
  font-weight: bold;
  margin: 0;
}

.entrada i {
  color: #fff;
  cursor: pointer;
  border-radius: 20%;
}

input:focus-visible {
  outline: none;
}

.entrada input {
  width: 90%;
  height: 30px;
  border-radius: 50px;
  background-color: #333;
  color: #fff;
  border: none;
}

input::placeholder {
  color: #898989;
  font-style: italic;
}

.input-wrapper {
  border: 1px solid #fff;
  border-radius: 50px;
  padding: 6px;
}

h2 {
  color: #fff;
  text-align: center;
  font-size: 26px;
}

.card-filme {
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.card-filme:hover {
  transform: scale(1.02);
}

.card-filme img {
  width: 80px;
  border-radius: 8px;
}

.info-filme {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-filme h4 {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.info-filme p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #ddd;
}

.digitando span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  margin: 0 2px;
  animation: piscar 1.4s infinite;
}

.digitando span:nth-child(2) {
  animation-delay: 0.2s;
}

.digitando span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes piscar {
  0%, 80%, 100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

@media (max-width: 480px) {

  .chat-container {
    max-width: 100%;
    width: 90%;
    padding: 10px;
    border-radius: 10px;
  }

  #chat {
    height: 300px;
  }

  .usuario, .bot {
    max-width: 85%;
    font-size: 12px;
  }

  .card-filme {
    flex-direction: row; 
    align-items: center;
    text-align: left;
    gap: 8px;
    padding: 8px;
  }

  .card-filme img {
    width: 60px;
  }

  .info-filme h4 {
    font-size: 12px;
  }

  .info-filme p {
    font-size: 11px;
    line-height: 1.2;
  }

  .input-wrapper {
    position: relative;
    padding: 5px 40px 5px 10px;
  }

  .entrada input {
    width: 100%;
  }

  .entrada i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  h2 {
    font-size: 15px;
  }
}