
body{
    background-color: rgb(224, 143, 44);
    color: #ffffff;
}

*{
    margin: 0;
    padding: 0;
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    font-style: normal;
    font-weight: 400;
    font-style: normal;
}

.container{
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header{
    border: 5px solid #be483b;
    background-color: #e35342;
    color: lavender;
    padding: 15px 15px 15px 15px;
    width: 100%;
    top: 0;
    position: fixed;
    z-index: 1000;
}

header img{
    width: 40%;
}

nav ul{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li{
    margin-left: 20px;
}

nav ul li a{
    color: #ffff;
    text-decoration: none;
    cursor: pointer;
}

nav ul li a:hover{
    transition: 0.5s;
    padding: 6px;
    border: 4px solid #e08f2c;
    border-radius: 10px;
    color: #e35342;
    background-color: #ffff;
}

header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo{
    font-size: 2em;
    font-weight: bold;
}


.banner{
    background: url(../img/banner\ lty2.jpg) no-repeat center/cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    margin-top: 90px;
    align-items: flex-start;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    color: #ffff;
    font-size: 1rem;
    text-align: left;
    text-shadow: 2px 2px 5px #000000;
    
}

#história{
    padding: 35px;
    background-color: rgb(224, 143, 44);
    color: #ffff;
}

.sobre-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: auto;
}

.sobre-texto{
    flex: 1;
    padding: 20px;
}

.sobre-texto h1{
    font-size: 1.5;
    margin-bottom: 20px;
}

.sobre-texto p{
    font-size: 1;
    line-height: 1.5;
    text-align: justify;
    margin-top: 10px;
}

.sobre-texto a{
    color: #ffff;
    text-decoration: none;
    font-size: 0.8em;
}

.fonte{
    font-size: 0.8em;
}

.hex-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    flex: 1;
}

.hex{
    width: 140px;
    height: 120px;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    overflow: hidden;
    background: #e35342;
    position: relative;
}

.hex img{
    width: 95%;
    height: 95%;
    object-position: center top;
    object-position: center 16%;
    object-fit: cover;
    align-items: center;


}

@media (max-width:675px){
    header .container{
        flex-direction: column;
        text-align: center;
    }

    nav ul{
        margin-top: 10px;
        flex-direction: column;
    }

    .banner{
        margin-top: 160px;
    }

    
}

#personagens .container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    padding: 50px 0;
}

#personagens .item{
    background-color: #ffff;
    border: 1px solid #7c7979;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgb(rgb(221, 119, 119));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

#personagens .item:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 16px #554e4e;
}

#personagens .item:active{
    transform: scale(0.98);
    box-shadow: 0 4px 6px #cfcccc;
}

#personagens .item p{
    margin-top: 15px;
    font-size: 0.95em;
    color: rgb(0, 0, 0);
}

#personagens .imagem img{
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

#personagens .pcard p{
    padding: 50px;
    margin-left: 10px;
    text-align: justify;

}

.modal {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px #000000;
    margin: auto;
    text-align: center;
}

.card h3{
    margin-top: 0;
}

.btn{
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    padding: 10px 20px;
    background: #e35342;
    color: #ffff
}

.modal{
    position: fixed;
    margin-top: 50px;
    top: 0;
    left: 0;
    right: 0%;
    width: 100vw;
    height: 100vh;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 1);
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgb(41, 39, 39)
}

.modal:target{
    display: flex;
}

.modal-content{
    color: #000000;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    height: 500px;
    text-align: center;
    box-shadow: 0px 5px 20px #554e4e;
    max-height: 90vh;
    overflow-y: auto;
}

.close-bnt{
    margin-top: 20px;
    display: inline-block;
    padding: 8px 16px;
    background:#e35342;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

h1{
    margin-top: 35px;
    margin-top: 35px;
    padding: 20px;
    display: flex
;
    justify-content: center;
}

.formulario-contato {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: auto;
    margin-top: 40px;
    color: #000080;
}

.grupo-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.grupo-form input,
.grupo-form select,
.grupo-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    margin-top: 8px;
}

.grupo-form input[type="checkbox"],
.grupo-form input[type="radio"] {
    margin-right: 8px;
    margin-top: 0;
}

.grupo-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

@media (max-width: 450px) {
    .banner {
        font-size: 0.8rem;
        padding-left: 10px;
        padding-right: 10px;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .banner h1 {
        font-size: 1.2rem;
    }

    .banner p {
        font-size: 0.9rem;
    }

    .sobre-container {
        flex-direction: column;
        align-items: center;
    }

    .hex-grid {
        justify-content: center;
        margin-top: 20px;
    }

    .sobre-texto {
        padding: 10px;
    }

    .modal-content{
        margin-top: 150px;
        max-width: 300px;
        height: 400px;
        font-size: 1em;
    }
}

@media (max-width: 210px) {
    .banner {
        font-size: 0.6rem;
    }

    .banner h1 {
        font-size: 1rem;
    }
}

.galeria-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;     /* centraliza os itens dentro das colunas */
    justify-content: center;   /* centraliza o grid inteiro */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.galeria-img img {
    max-width: 100%;      /* imagem nunca maior que a célula */
    width: 300px;         /* tamanho fixo amigável */
    height: auto;
    border-radius: 10px;
    border: 4px solid #e35342;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;

}

.galeria-img img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .galeria-container {
        grid-template-columns: 1fr;
    }

    .galeria-img img {
        width: 80%; /* ocupa 80% da largura da tela */
    }
}

@media (min-width: 769px) and (max-width: 999px) {
    .galeria-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria-img img {
        width: 80%; /* fica centralizada nas colunas */
        max-width: 280px;
    }
}

footer{
    text-align: center;
    background-color: #e35342;
    padding: 20px;
    margin-top: 30px;
}

.footer1{
    text-align: center;
    background-color: #e35342;
    padding: 20px;
    margin-top: 30px;
    margin-top: 300px;
}

.banner2{
    background: url(../img/banner\ llty.jpg) no-repeat center/cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    margin-top: 90px;
    align-items: flex-start;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    color: #ffff;
    font-size: 1rem;
    text-align: left;
    text-shadow: 2px 2px 5px #000000;
    
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    background-color: #ff000056;
    margin-top: 30px;
  }
  
  td, th {
    border: 1px solid #ffffff;
    text-align: center;
    padding: 8px;
  }
  
  tr:nth-child(even) {
    background-color: #ffa600;
  }


#memory-game {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #333;
    padding: 20px;
    z-index: 1000;
    text-align: center;
    font-family: 'Luckiest Guy', cursive; /* Fonte do restante do site */
    color: black; /* Cor da escrita */
}

#stats {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: black; /* Garantir que o texto fique visível */
}

#memory-game {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #333;
    padding: 20px;
    z-index: 1000;
    max-width: 90%;
    width: 600px;
    box-sizing: border-box;
    border-radius: 10px;
  }
  
  /* Cartas */
  #memory-game .card {
    width: 80px;
    height: 80px;
    display: inline-block;
    margin: 5px;
    background: lightgray;
    vertical-align: top;
    cursor: pointer;
    line-height: 80px;
    text-align: center;
    font-size: 24px;
    border-radius: 5px;
  }
  
  #memory-game .matched {
    visibility: hidden;
  }
  
  /* Contador de tempo e jogadas */
  #memory-game .status {
    font-family: 'Luckiest Guy', cursive;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
  }
  
  /* Botões */
  #memory-game button {
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background-color: #f39c12;
    color: white;
    font-weight: bold;
  }
  
  #memory-game button:hover {
    background-color: #e67e22;
  }
  
  /* Tornar cartas menores em telas pequenas */
  @media (max-width: 500px) {
    #memory-game .card {
      width: 50px;
      height: 50px;
      line-height: 50px;
      font-size: 16px;
      margin: 3px;
    }
  
    #memory-game {
      width: 95%;
      padding: 15px;
    }
  
    #memory-game .status {
      font-size: 16px;
    }
  
    #memory-game button {
      font-size: 14px;
      padding: 8px 15px;
    }
  }

  #auge table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block; /* Permite scroll horizontal */
  }
  
  /* Cabeçalho e células */
  #auge th, #auge td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
  }
  
  /* Cabeçalho com fundo diferente */
  #auge th {
    background-color: #f39c12;
    color: white;
  }
  
  /* Tornar a tabela legível em telas muito pequenas (menos de 300px) */
  @media (max-width: 300px) {
    #auge th, #auge td {
      padding: 5px;       /* Menos espaçamento */
      font-size: 12px;    /* Fonte menor */
    }
    
    #auge table {
      font-size: 12px;
    }
  }

  #memory-game {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #333;
    padding: 20px;
    z-index: 1000;
    max-height: 90%;  /* Limita altura para telas pequenas */
    overflow-y: auto;  /* Adiciona scroll vertical se precisar */
  }
  
  /* Cards do jogo */
  #memory-game .card {
    width: 80px;
    height: 80px;
    display: inline-block;
    margin: 5px;
    background: lightgray;
    vertical-align: top;
    cursor: pointer;
    line-height: 80px;
    text-align: center;
    font-size: 24px;
  }
  
  /* Cards que já foram combinados */
  #memory-game .matched {
    visibility: hidden;
  }
  
  /* Botões (Jogar novamente / Fechar) */
  #memory-game button {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #f39c12;
    color: white;
  }
  
  /* Responsividade para telas menores que 500px */
  @media (max-width: 500px) {
    #memory-game {
      width: 90%;        /* Ajusta largura para caber na tela */
      padding: 15px;
    }
  
    #memory-game .card {
      width: 60px;
      height: 60px;
      font-size: 18px;
    }
  
    #memory-game button {
      font-size: 14px;
      padding: 6px 12px;
    }
  }

  #auge .table-container {
    max-width: 95%;       /* Ocupa quase toda a tela, mas não totalmente */
    margin: 20px auto;    /* Centraliza horizontalmente e dá uma margem vertical */
    padding: 10px;        /* Espaço interno, afasta o conteúdo das bordas */
    overflow-x: auto;     /* Scroll horizontal se necessário em telas pequenas */
  }
  
  /* A tabela dentro do container */
  #auge table {
    width: 100%;
    border-collapse: collapse;
  }
  
  /* Células */
  #auge th, #auge td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
  }
  
  /* Cabeçalho */
  #auge th {
    background-color: #f39c12;
    color: white;
  }
  
  /* Ajustes para telas pequenas */
  @media (max-width: 300px) {
    #auge th, #auge td {
      padding: 5px;
      font-size: 12px;
    }
  }

  #influência, #auge {
    text-align: center;   /* Centraliza o texto horizontalmente */
  }

  