/* :: CORES GLOBAIS :: */
:root {
  --cor-primaria: #9e59d3;
  --cor-secundaria: #78a8e6;
  --cor-terciaria: #f5f5f5;
  --cor-fundo: #ffffff;
  --cor-texto: #333;
  --cor-borda: #e0e0e0;
  --cor-hover: #78a8e6;
}

/* :: BÁSICO :: */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: var(--cor-fundo);
  color: var(--cor-texto);
}

.layout {
  display: flex;
  min-height: calc(100vh - 100px);
}

/* :: HEADER :: */
header {
  height: 93px;
  background-color: black;
  border-bottom: 5px solid var(--cor-primaria);
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: white;
  text-align: center;
  position: relative; 
  z-index: 110;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.logo-header {
  height: 85px;
  width: auto;
  flex-shrink: 0;
  margin-left: 80px;
  margin-right: auto;
  
}

.titulo-header {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.titulo-header img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* :: SIDEBAR :: */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background-color: black;
  z-index: 90;
}

.sidebar {
  position: fixed;
  top: 93px;
  left: 0;
  height: calc(100vh - 93px);
  width: 280px;
  background-color: transparent;
  overflow-y: auto;
  z-index: 100;
}

.sidebar nav ul {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.sidebar nav ul li {
  margin-bottom: 10px;
}

.sidebar nav ul li a {
  display: block;
  padding: 10px;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  background-color: var(--cor-primaria);
  transition: all 0.3s ease;
}

.sidebar nav ul li a:hover {
  background-color: var(--cor-hover);
  color: white;
  transform: scale(1.03);
}

.sidebar nav ul li.current a {
  background-color: var(--cor-secundaria);
  color: white;
  font-weight: bold;
}

.logo-2 {
  display: block;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: -15px;
}

.imagem-logo-2 {
  max-width: 280px;
  max-height: 280px;
  height: auto;
}

/* :: CONTEÚDO PRINCIPAL :: */
.main-content {
   
  margin-left: 280px;
  flex: 1;
  padding: 30px;
  height: 100%;
  overflow-y: auto;
}

.main-content section {
  border: 2px solid var(--cor-borda);
  border-radius: 10px;
  padding: 20px;
  background-color: #fffffd;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.main-content h1,
.main-content h2 {
  color: var(--cor-primaria);
}

.main-content h3 {
  color: var(--cor-primaria);
  font-size: 20px;
}

/* :: BOTÕES :: */
.botao-iniciar {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background-color: black;
  color: var(--cor-primaria);
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.3s;
}

.botao-iniciar:hover {
  background-color: black;
  transform: translateY(-2px);
  color: var(--cor-secundaria);
}

.botao-ver-codigo {
  margin-top: 15px;
  padding: 8px 15px;
  background-color: var(--cor-secundaria);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.botao-ver-codigo:hover {
  background-color: #568acf;
}

.botao-exercicio {
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #be3939;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.botao-exercicio:hover {
  background-color: #8f3535;
}

/* :: COMPONENTES :: */
.highlight {
  color: var(--cor-secundaria);
}

.conteudo-interativo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.card-conceito {
  background-color: white;
  border: 2px solid var(--cor-borda);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-conceito:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-conceito h2 {
  color: var(--cor-primaria);
  margin-top: 0;
}

.card-content {
  margin-top: 15px;
}

.codigo-fluxo-container {
  display: flex;
  flex-direction: row;
  width: fit-content;
  justify-content: flex-start;
  gap: 40px;
  margin-top: 20px;
  align-items: flex-start;
}

.codigo-fluxo-container pre,
.imagem-fluxograma {
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f5f5f5;
  padding: 15px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.codigo-fluxo-container pre {
  flex: 1;
  min-width: 300px;
  max-width: 1000px;
  overflow-x: auto;
}

.imagem-fluxograma {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-left: 100px;
}

.exercicio-fluxograma {
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f5f5f5;
  padding: 15px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.exercicio-fluxograma {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-left: 0px;
  
}

/* :: TEXTOS :: */
a {
  color: var(--cor-primaria);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cor-primaria);
  text-decoration: none;
}

pre {
  margin: 0;
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

.footer-container p {
  margin: 0;
}

/* :: FOOTER :: */
footer {
  text-align: center;
  background-color: var(--cor-secundaria);
  color: white;
  padding: 15px 0;
  position: relative;
  z-index: 110;
}

/* :: ESPECÍFICOS DA PÁGINA SOBRE :: */
.sobre-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  gap: 30px;
  background-color: black;
  border: 4px solid black;
  border-radius: 12px;
  padding-right: 0px;
  box-sizing: border-box;
}

.sobre-container h2 {
  color: var(--cor-primaria);
  font-size: 2rem;
  margin-bottom: 10px;
}

.sobre-container p {
  color: white;
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

.creditos {
  background-color: var(--cor-secundaria);
  border: 2px solid var(--cor-secundaria);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}

.creditos h3 {
  color: white;
  margin-bottom: 15px;
}

.creditos ul {
  list-style: none;
  padding-left: 0;
}

.creditos li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: white;
}

.creditos li::before {
  content: "\2022";
  color: var(--cor-primaria);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.imagem-drago-topo {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 460px;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.imagem-logo-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: -350px;
}

.imagem-logoazul {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin-top: 30px;
}

/* :: RESPONSIVO :: */
@media screen and (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--cor-borda);
  }
}