/* -------------------------------- */
/*        ESTILOS GLOBAIS           */
/* -------------------------------- */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

/* teste de espaçamento nas listas */
ul,
ol,
li {
  margin-left: 10px;
}
li p {
  margin-top: 3px;
}

body {
  margin: 0;
  padding: 0;
  /* background-color: #f6f6f6; */
  /* background-color: #262637; Azul escuro da paleta como fundo */
  /* color: #ebebf5; Branco gelo da paleta para o texto */
}

a {
  text-decoration: none;
  transition: color 0.3s;
  /* color: #73739c; Azul claro acinzentado para os links */
}

/* a:hover {
  color: #9494bf; Azul claro mais vibrante para o hover
} */

img {
  max-width: 100%;
  height: auto;
}

#home p {
  margin-top: 10px;
  margin-bottom: 10px;
}

#html code + p,
#css code + p,
#scratch code + p {
  margin-top: 5px;
  margin-bottom: 5px;
}

li {
  margin-top: 10px;
}

.container {
  max-width: 1100px;
  margin: 15px auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.container p {
  padding-left: 10px;
  padding-right: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-10 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}
/*Estilos das pags html, css e scratch*/
.text_content_strong {
  margin-top: 25px;
  margin-bottom: 5px;
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
  /* color: #e7e7ee; */
  font-size: 20px;
}

.text_content_medium {
  margin-bottom: 7px;
  /* color: #d9d9d9; */
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
}

.box_text {
  justify-content: flex-start;
  margin-left: 250px; /* Ajuste este valor se necessário */
  width: 1000px; /* Ajuste este valor se necessário */
}

#scratch main,
#html main,
#css main {
  display: flex;
  gap: 60px;
}

.topics_sidebar {
  display: flex;
  flex-direction: column;
  top: 160px;
  margin-left: 30px;
  position: sticky;
  width: 180px;
  /* color: #818cf8; */
  color: #3c1155;
}

.topics_sidebar a {
  margin-bottom: 10px;
  /* color: #73739c; Azul claro acinzentado para os links da sidebar */
  color: #3c1155;
}

.topics_sidebar details {
  display: flex;
  flex-direction: column;
}

.topics_sidebar details a,
.topics_sidebar summary {
  margin-bottom: 5px;
}

.topics_sidebar details a:nth-child(n + 2) {
  margin-left: 16px;
}

.topics_sidebar a:hover {
  text-decoration: underline;
}

#scratch .box_text,
#html .box_text,
#css .box_text {
  margin-left: 20px;
}

.conteudo_titulo {
  /* color: #ebebf5; Branco gelo para os títulos */
  color: #111111;
  font-family: "Rowdies", serif;
  font-weight: 700;
  font-size: 40px;
  font-style: normal;
  align-items: center;
  text-align: center;
  justify-content: center;
  margin: 20px 20px;
}

pre code {
  padding: 10px 30px !important;
}

code {
  font-family: "Courier New", monospace;
  font-size: 14px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  white-space: pre-wrap;
  background-color: #21213c !important; /* Azul escuro para o fundo do código */
  color: #ebebf5 !important; /* Branco gelo para o texto do código */
  margin-bottom: 5px;
}

.scratch-code {
  font-family: "Courier New", monospace;
  font-size: 14px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  white-space: pre-wrap;
  background-color: #21213c !important; /* Azul escuro para o fundo do código */
  color: #ebebf5 !important; /* Branco gelo para o texto do código */
  margin-bottom: 5px;
}

pre code .hljs-tag {
  color: #569cd6; /* Azul claro para tags */
}

pre code .hljs-name,
pre code .hljs-selector-id,
pre code .hljs-selector-class {
  color: #c586c0; /* Lilás para nomes, IDs e classes */
}

pre code .hljs-attribute {
  color: #9cdcfe; /* Azul ciano para atributos */
}

pre code .hljs-string,
pre code .hljs-title {
  color: #d69d85; /* Laranja claro para strings e títulos */
}

pre code .hljs-keyword,
pre code .hljs-literal,
pre code .hljs-symbol,
pre code .hljs-number {
  color: #4ec9b0; /* Verde água para palavras-chave, literais, símbolos e números */
}

pre code .hljs-comment,
pre code .hljs-quote {
  color: #6a9955; /* Verde escuro para comentários */
}

pre code .hljs-tag {
  color: #24f209; /* Cor mais clara para as tags principais */
}
.pre code .hljs-name,
.pre code .hljs-selector-id,
.pre code .hljs-selector-class,
.pre code .hljs-attribute,
.pre code .hljs-string,
.pre code .hljs-title,
.pre code .hljs-keyword,
.pre code .hljs-literal,
.pre code .hljs-symbol,
.pre code .hljs-number,
.pre code .hljs-comment,
.pre code .hljs-quote,
.pre code .hljs-meta,
.pre code .hljs-template-tag,
.pre code .hljs-template-variable,
.pre code .hljs-addition,
.pre code .hljs-deletion,
.pre code .hljs-selector-pseudo {
  color: #690ceb !important;
}

#videosHtml,
#videosCss,
#videosScratch {
  margin-top: 50px;
  margin-bottom: 15px;
  text-align: center;
}
.videos-container {
  display: flex;
  background-color: #efeaea;
  padding: 15px;
  gap: 10px;
  border-radius: 5px;
  width: 560px;
  height: 315px;
}

.videos {
  max-width: 700px;
}

.videos-carrossel {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.videos-carrossel img {
  max-width: 200px;
}

/* -------------------------------- */
/*            HEADER                */
/* -------------------------------- */

header {
  padding: 20px 50px;
  /* background-color: #3f3f5a; Azul acinzentado escuro para o navbar */
  /* background-color: #111111; */
  background-color: #21213c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  position: sticky;
  width: 100%;
}

.header-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header-nav h1 {
  font-size: 30px;
  /* color: #ebebf5; Branco gelo para o título do header */
  color: #ffffff;
}

.header-nav a {
  font-size: 18px;
  color: #f3eded;
}

header a:hover {
  color: rgb(187, 214, 255);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: white;
  padding: 8px 10px 8px 15px;
  border-radius: 20px;
  border: solid rgba(0, 0, 0, 0.7) 1px;
}

.header-search input {
  border: none;
  width: 300px;
}

input:focus-visible {
  outline: none;
}

/*Chat do bot*/

.chaticon {
  background-color: gray;
  height: 35px;
  width: 35px;
  border-radius: 50%;

  position: fixed;
  right: 1.5%;
  bottom: 3%;

  cursor: pointer;

  transition: border-radius 0.5s, right 0.5s;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.chaticon.expanded {
  border-radius: 2px 50% 50% 50%;
  right: 4%;
}

.chat {
  border-radius: 15px 15px 2px 15px;
  background-color: gray;
  width: 350px;
  height: 450px;

  position: fixed;
  right: 4%;
  bottom: 7.8%;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;

  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  align-items: stretch;     
  padding: 15px;
}

.chat input {
  margin-bottom: 10px;
  width: 100%;
  height: 25px;
  padding: 5px;
  border-radius: 10px;
  border: none;
}

.chat button {  
  width: 100%;  
  padding: 5px;
  border-radius: 10px;
  border: none; 
}

.chat.visible {
  transition: opacity 0.5s, visibility 0.5s;
  opacity: 1;
  visibility: visible;
}


#chat-messages {
  overflow-y: auto; /* Para habilitar a rolagem */
  max-height: 350px; /* Define uma altura máxima para o chat */
  padding: 10px;
}

.user-message, .bot-message, .error-message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
}

.user-message {
  background-color: #000000; 
  align-self: flex-end; /* Alinha à direita */
  color: #dedee9;
}

.bot-message {
  background-color: #131318; 
  color: #cccce0;
}
.error-message {
  background-color: #fdd5d2; /* Vermelho claro */
  color: #a80000; /* Vermelho escuro */
}


/* -------------------------------- */
/*            FOOTER                */
/* -------------------------------- */

footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  /* background-color: #282928; */
  /* background-color: #111111; */
  background-color: #21213c;

  color: white;
  padding: 40px 10px;
}

footer h3 {
  margin-bottom: 5px;
}

footer a {
  display: block;
  margin-bottom: 2px;
  color: white;
}

footer a:hover {
  color: rgb(187, 214, 255);
}

#html footer,
#css footer,
#scratch footer {
  margin-top: 50px;
}
