/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo do body com background */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4; /* Cor de fallback */
  color: #333;
  background-image: url('images/background.jpg'); /* Caminho da imagem de fundo */
  background-size: cover; /* Cobrir toda a tela */
  background-position: center; /* Centralizar a imagem */
  background-attachment: fixed; /* Fixar o background */
  background-repeat: no-repeat; /* Evitar repetição */
}



header {
  /* background-color: rgba(51, 51, 51, 0.2);  Fundo semi-transparente */
  color: #fff;
  padding: 20px;
  text-align: center;
}

header img{max-width: 300px; padding: 20px;}
header h1 {
  font-size: 5rem;
  font-family: "Anton SC", sans-serif;
  text-transform: uppercase; /* Transforma o texto em maiúsculas */
  letter-spacing: 2px; /* Adiciona um espaçamento entre as letras para melhorar a legibilidade */
}
header h2 {
  margin-top: -30px;
  font-size: 4rem;
  font-family: "Anton SC", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 2px; /* Adiciona um espaçamento entre as letras para melhorar a legibilidade */
}

/* Contêiner principal para centralizar o conteúdo */
main {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza horizontalmente */
  padding: 20px;
  border-radius: 10px; /* Bordas arredondadas */
  max-width: 1200px; /* Largura máxima do conteúdo */
  margin: 0 auto; /* Centralizar na página */
}

/* Estilo das seções (ligas) */
.liga {
  margin-bottom: 30px;
  width: 100%; /* Ocupa 100% da largura do contêiner principal */
  max-width: 900px; /* Largura máxima de 900px */
}

.liga h2 {
  text-align: center;
  background-color: #fdaa02;
  border-radius: 30px;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #000; /* Cor do texto alterada para branco */
  padding: 3px; /* Adiciona espaçamento interno */
}

.times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

}

.times a{
  font-size: 0.85em;
  color: #fff;
  font-family: "Anton SC", sans-serif;
  text-transform: uppercase;
}

.times a:hover{
  font-size: 0.85em;
  color: #fdaa02;
  font-family: "Anton SC", sans-serif;
  text-transform: uppercase;
}


.time {
  flex: 1 1 calc(25% - 10px); /* 4 imagens por linha em mobile */
  max-width: calc(25% - 10px);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.time img {
  max-width: 94px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.time:hover {
  transform: scale(1.1);
}

/* Responsividade para telas maiores */
@media (min-width: 769px) {
  .time {
      flex: 1 1 calc(12.5% - 10px); /* 8 imagens por linha em telas maiores */
      max-width: calc(12.5% - 10px);
  }
}

/* Ajustes para telas menores (mobile) */
@media (max-width: 768px) {
  .time {
      flex: 1 1 calc(25% - 10px); /* 4 imagens por linha em mobile */
      max-width: calc(25% - 10px);
  }
  .liga h2{padding: 2px;}
}

footer {
  background-color: rgba(51, 51, 51, 0.8); /* Fundo semi-transparente */
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}

.footer-content {
  display: flex;
  align-items: center; /* Alinha o logo e o texto verticalmente */
  justify-content: center; /* Centraliza o conteúdo */
  gap: 10px; /* Espaçamento entre o logo e o texto */
}

.footer-content a{
  color:#fff;
}
.footer-content a:hover{
  color:#fff;
  font-size:1.1em;
}

.logo svg {
  width: 100px; /* Tamanho do logo */
  height: auto; /* Mantém a proporção */
  fill: #fff; /* Cor do logo (branco) */

}
/* Botão do WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25d366; /* Cor do WhatsApp */
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128c7e; /* Cor do WhatsApp ao passar o mouse */
}

/* Botão de subir para o topo */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #555; /* Cor ao passar o mouse */
}

/* Esconder o botão de subir inicialmente */
.scroll-to-top {
  display: none;
}

/* Mostrar o botão de subir quando a página for rolada */
.scroll-to-top.visible {
  display: flex;
}

/* Estilos para a barra de busca */
.search-container {
  max-width: 600px;
  margin: 20px auto 10px;
  padding: 0 20px;
  width: 100%;
  position: relative;
}

.search-container form {
  position: relative;
  display: flex;
  margin-bottom: 5px;
}

.search-container input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #000;
  border-radius: 30px;
  font-size: 16px;
  outline: none;
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-container input:focus {
  box-shadow: 0 0 0 3px rgba(253, 170, 2, 0.3);
  border-color: #000;
}

.search-container button {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 18px;
  padding: 0 8px;
}

.search-container .clear-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: #aaa;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 8px;
}

.search-container .clear-search:hover {
  color: #ff3333;
}

/* Resultados da busca */
.search-results {
  position: absolute;
  width: calc(100% - 40px);
  left: 20px;
  max-height: 400px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
  border: 1px solid #eee;
  border-top: none;
  margin-top: -5px;
}

.search-results .time {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
}

.search-results .time:last-child {
  border-bottom: none;
}

.search-results .time:hover {
  transform: translateX(3px);
}

.search-results .time img {
  width: 50px;

  margin-right: 15px;
  object-fit: contain;

}

.search-results .time span {
  font-size: 0.95em;
  font-weight: 500;
}

/* Mensagem sem resultados */
.search-results .no-results {
  padding: 20px;
  color: #666;
  text-align: center;
  font-size: 0.95em;
}

/* Responsividade */
@media (max-width: 768px) {
  .search-container {
    max-width: 90%;
    padding: 0 10px;
  }
  
  .search-results {
    width: calc(100% - 20px);
    left: 10px;
  }
  
  .search-container input {
    padding: 10px 45px 10px 15px;
    font-size: 15px;
  }
  
  .search-results .time {
    padding: 10px 12px;
  }
  
  .search-results .time img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
  }
}