/* ====== Demonstrações Flexbox ====== */
.demo-container {
  margin: 20px 0;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
}

.flex-demo {
  display: flex;
  background: rgba(0, 216, 255, 0.1);
  border: 2px solid #00d8ff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  min-height: 80px;
}

.item {
  background: #00d8ff;
  color: #000;
  padding: 15px;
  margin: 5px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  min-width: 50px;
}

/* ====== Direções ====== */
.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
  height: 200px;
}

/* ====== Justify Content ====== */
.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

/* ====== Align Items ====== */
.align-center {
  align-items: center;
  height: 100px;
}

.align-start {
  align-items: flex-start;
  height: 100px;
}

.align-end {
  align-items: flex-end;
  height: 100px;
}

/* ====== Propriedades dos Itens ====== */
.tall {
  height: 60px;
}

.flex-grow-2 {
  flex-grow: 2;
}

.flex-shrink-0 {
  flex-shrink: 0;
  min-width: 120px;
}

.wide {
  min-width: 150px;
}

.flex-basis-200 {
  flex-basis: 200px;
}

/* ====== Exemplo Navbar ====== */
.navbar-demo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.1);
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.logo {
  font-weight: bold;
  color: #00d8ff;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: 0.3s;
}

.nav-links a:hover {
  background: rgba(0, 216, 255, 0.2);
}

.nav-actions button {
  background: #00d8ff;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.nav-actions button:hover {
  background: #00b8e0;
}

/* ====== Explicações ====== */
.explanation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.explanation div {
  flex: 1 1 280px;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 10px;
}

/* ====== Área de Testes ====== */
.teste-css {
  background: rgba(255,255,255,0.05);
  margin-top: 40px;
  padding: 25px;
  border-radius: 12px;
}

.teste-container {
  margin-top: 20px;
}

.teste-flex {
  display: flex;
  background: rgba(0, 216, 255, 0.1);
  border: 2px solid #00d8ff;
  border-radius: 8px;
  padding: 20px;
  min-height: 120px;
  
  /* Altere essas propriedades para testar */
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 10px;
}

.teste-item {
  background: #00d8ff;
  color: #000;
  padding: 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  
  /* Altere essas propriedades nos itens individuais */
}

.item1 {
  /* Experimente descomentando as propriedades abaixo */
  /* flex-grow: 1; */
  /* flex-shrink: 1; */
  /* flex-basis: auto; */
  background: lightcoral;
}

.item2 {
  /* Experimente descomentando as propriedades abaixo */
  /* flex-grow: 2; */
  /* align-self: center; */
  background: lightblue;
}

.item3 {
  /* Experimente descomentando as propriedades abaixo */
  /* flex-grow: 1; */
  /* order: -1; */
  background: lightgreen;
}