/* Limpar margens padrão do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ocupar todo o ecrã e esconder inicialmente */
body, html {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #111; /* A dark background color while loading */
}

/* Start the body as invisible */
body {
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; /* This creates the smooth 1.5-second fade */
}

/* This class will be added by JavaScript once everything is loaded */
body.loaded {
    opacity: 1; 
}

/* Configuração do fundo e do alinhamento */
.background-container {
    height: 100vh;
    width: 100%;
    
    /* Adiciona uma camada escura transparente sobre a foto para o texto sobressair, 
       seguida da tua imagem de fundo */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('background.jpg') no-repeat center center/cover;
    
    /* Centrar o conteúdo usando Flexbox */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Estilo do conteúdo (texto) */
.content {
    color: #ffffff; /* Texto branco */
    padding: 20px;
    /* Efeito suave de sombra no texto para maior legibilidade */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); 
}

/* Estilo do Título (Nomes) */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* Estilo do Subtítulo */
p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Design responsivo para telemóveis */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    p {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}