:root {
    --primary-color: #FF4500;
    --secondary-color: #FFD700;
    --background-color: #FFF8E7;
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --border-radius: 12px;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.hero {
    position: relative; /* Permite usar camadas */
    text-align: center;
    color: white;
    padding: 50px 20px;
    border-bottom: 5px solid var(--secondary-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden; /* Garante que o fundo não ultrapasse os limites */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('h.gif'); /* GIF inicial */
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    animation: trocaImagem 8s forwards; /* Troca para o estado estático após 5s */
}

@keyframes trocaImagem {
    100% {
        background-image: url('bg3.jpg'); /* Imagem estática */
    }
}

.hero-content {
    position: relative; /* Mantém o conteúdo acima do fundo */
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.8); /* Fundo semitransparente atrás do texto */
    padding: 20px;
    border-radius: var(--border-radius);
    z-index: 2; /* Garante que o texto fique acima do fundo */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto; /* Centraliza horizontalmente */
    max-height: 150px; /* Ajuste este valor conforme necessário */
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-style: italic;
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.info-card .emoji {
    font-size: 1.5rem;
}

.cta {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 20px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow-color);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 20px;
}

.map {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: var(--border-radius);
    margin-top: 10px;
}

.card img.map-image {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: var(--border-radius);
    margin-top: 10px;
}


.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
}

.btn[disabled] {
    background-color: #d3d3d3; /* Cor de fundo para o botão desabilitado */
    color: #a1a1a1; /* Cor do texto do botão desabilitado */
    cursor: not-allowed; /* Cursor que indica que o botão não pode ser clicado */
    pointer-events: none; /* Desativa qualquer interação do usuário com o botão */
}


.hostel-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px;
    max-width: 600px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.hostel-card .hostel-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.hostel-card .hostel-amenities {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.hostel-card .amenity {
    font-size: 1.5rem;
    cursor: default;
}

.hostel-card .hostel-address,
.hostel-card .hostel-price,
.hostel-card .hostel-distance,
.hostel-card  {
    margin-bottom: 10px;
}

.hostel-description {
    max-height: 100px; /* Ajuste conforme o número de linhas que deseja exibir */
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.3s ease;
}

.hostel-description-more {
    display: none;
}

#extraDescription.visible {
    display: block;
}


.hostel-card .map {
    margin: 15px 0;
    text-align: center;
}

.hostel-card .buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.hostel-card .btn {
    background-color: var(--primary-color, #007bff);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.hostel-card .btn:hover {
    background-color: var(--secondary-color, #0056b3);
}

.hostel-description-more {
    display: none;
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

/* Estilo para o título da página */
.page-title {
    display: flex;               /* Usando Flexbox */
    justify-content: center;     /* Centraliza o título horizontalmente */
    align-items: center;         /* Centraliza verticalmente */
    width: 100%;                 /* Faz com que ocupe toda a largura */
    margin: 20px 0;              /* Margem em cima e embaixo */
    color: white;
}

.page-title h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color); /* Cor do título */
}

/* Legenda ajustada */
.legend {
    display: flex;
    flex-wrap: wrap;             /* Permite que os itens quebrem para a linha seguinte se necessário */
    justify-content: space-between; /* Espaçamento entre os itens */
    background: rgba(236, 236, 236, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px auto;
    font-size: 0.9rem;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Título dentro da legenda */
.legend-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 10px;
    color: #FF4500; /* Título em laranja */
    width: 100%;    /* Faz com que o título ocupe toda a linha */
    text-align: center; /* Centraliza o texto da legenda */
}

.legend .info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    width: 30%;            /* Define a largura dos cards para que fiquem distribuídos */
    margin-bottom: 10px;   /* Espaçamento entre os cards */
}

.legend .info-card .emoji {
    font-size: 1.5rem;
}

.legend .info-card span {
    color: #FF4500; /* Cor laranja para o texto */
    font-weight: bold;
}

.curation {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.curation-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #007BFF;
}



footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;


}

#language-switcher {
    position: fixed; /* Fixa o botão no canto */
    top: 20px; /* Distância do topo */
    right: 20px; /* Distância da direita */
    z-index: 1000; /* Garante que fique acima de todas as camadas */
}

#language-switcher .btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

#language-switcher .btn:hover {
    background: var(--secondary-color);
}

#back-button {
    position: fixed; /* Fixa o botão na posição */
    top: 20px; /* Distância do fundo */
    left: 20px; /* Distância da esquerda */
    z-index: 1000; /* Garante que fique acima de outras camadas */
}

#back-button .btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

#back-button .btn:hover {
    background: var(--secondary-color);
}


#latest-news-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#bluets-container {
    max-height: 250px; /* Ajuste a altura conforme necessário */
    overflow-y: auto;  /* Exibe a barra de rolagem vertical quando necessário */
    padding: 10px; /* Espaçamento interno para o conteúdo */
}

.bluets-card {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.bluets-card h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.bluets-card p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.bluets-card small {
    font-size: 0.8em;
    color: #999;
}

.parceiros {
    background-color: rgba(0, 0, 0, 0.5); /* Fundo leve */
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.parceiros h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
}

.realizacao, .apoio {
    margin-bottom: 30px; /* Espaço entre as divisões */
}

.realizacao.destaque {
    background-color: rgba(255, 255, 255, 0.1); /* Fundo mais claro */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.apoio.menos-destaque {
    opacity: 0.8; /* Menos destaque */
}

.realizacao h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.apoio h3 {
    font-size: 22px;
    color: #ddd;
    margin-bottom: 15px;
    font-weight: bold;
}

.logos-container {
    display: flex;
    justify-content: center; /* Centraliza os logos */
    gap: 30px; /* Espaçamento entre os logos */
    flex-wrap: wrap; /* Quebra linha se necessário */
    align-items: center; /* Alinha verticalmente no centro */
}

.logo-realizacao img {
    width: 225px; /* Logos um pouco maiores */
    height: auto;
}

.logo-apoio img {
    width: 140px; /* Logos um pouco menores */
    height: auto;
}


/* Estilos para o Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro mais suave */
    display: none; /* Inicialmente escondido */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: #fff3cd; /* Fundo amarelo suave */
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    border: 2px solid #ffeeba; /* Borda amarela suave */
    position: relative; /* Necessário para o posicionamento do botão de fechar */
}

.popup-close {
    position: absolute; /* Botão dentro do popup */
    top: 10px;
    right: 10px;
    font-size: 22px;
    cursor: pointer;
    color: #856404; /* Cor mais discreta para o X */
    z-index: 1; /* Garante que o botão fique acima do conteúdo */
}

.popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #856404; /* Cor do ícone mais suave */
    margin-bottom: 15px;
}

.alert-icon {
    font-size: 36px; /* Aumentar o ícone de alerta, mas sem exageros */
    margin-right: 10px;
}

.alert-text {
    font-size: 18px;
    font-weight: bold;
    color: #856404; /* Cor do texto suave */
}

.popup-link {
    display: inline-block;
    margin-top: 20px;
    background-color: #ffc107; /* Cor de fundo amarela mais suave */
    color: #856404;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.popup-link:hover {
    background-color: #e0a800; /* Cor mais forte ao passar o mouse */
}

.countdown {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #856404; /* Cor do texto do contador */
}

.back-button {
    margin: 20px;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF4500;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.back-link:hover {
    background-color: #e04a00;
}
