/* Reset de Estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

.menu-icon span {
  display: block;
  width: 30px;
  height: 4px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s ease;
}

/* Overlay para o menu lateral (mobile) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

.mobile-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 10px;
}

.mobile-menu a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #007BFF;
}

/* Menu Lateral */
.sidebar {
  width: 250px;
  background-color: #fff;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.logo img {
  width: 100%;
  max-width: 200px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.sidebar ul li a:hover {
  background-color: #f0f0f0;
}

/* Conteúdo Principal */
.content {
  margin-left: 250px; /* Espaço para o menu lateral */
  padding: 20px;
  min-height: 100vh;
}

/* Cabeçalho */
header {
  position: relative;
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: auto;
}

.header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-content h1 {
  margin-bottom: 10px;
  color: #4886E1;
  font-size: 2rem; /* Tamanho responsivo */
}

.header-content p {
  color: #777;
  font-size: 1rem; /* Tamanho responsivo */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 1.5rem;
  }

  .header-content p {
    font-size: 0.9rem;
  }

  .header-content {
    padding: 10px;
  }
}


/* Botões Coloridos */
.buttons-section {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap; /* Permite que os botões quebrem para a próxima linha no mobile */
}

.btn {
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1 1 calc(20% - 10px); /* Ajusta o tamanho dos botões no mobile */
}

.yellow { background-color: #FFCC00; }
.orange { background-color: #FFA500; }
.red { background-color: #EF525B; }
.green { background-color: #BCD86A; }
.purple { background-color: #574B9C; }

/* Responsividade */
@media (max-width: 768px) {
  /* Adaptação do menu lateral para mobile */
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    transform: translateY(-20px); /* Faz o menu subir um pouco */
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* opcional: sombra leve */
  }

  /* Mostra o ícone do menu hamburguer */
  .menu-icon {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    cursor: pointer;
  }

  /* Remove o espaçamento do conteúdo principal */
  .content {
    margin-left: 0;
    padding-top: 20px; /* dá espaço caso o menu tenha subido */
  }

  /* Mostra o menu lateral quando overlay estiver ativo */
  .overlay.active ~ .sidebar {
    transform: translateX(0);
  }
}