/* Estilos Gerais */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    text-align: center;
    background: linear-gradient(to bottom, rgba(135, 206, 235, 0.7), rgba(176, 224, 230, 0.7)), url(./igreja.jpg); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Cores */
:root {
    --azul-agua: #87CEEB; /* Azul Água */
    --laranja: #FFA500; /* Laranja */
    --cinza-claro: #f4f4f4;
    --cinza-escuro: #555;
}

.logo {
    padding: 15px 0;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin: 15px;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0; /* Initial state for animation */
    animation: fadeIn 1s ease-out forwards;
}

#logo{
    max-width: 250px;
}

/* Mobile First - Padrão para telas pequenas (celulares e tablets) */
.mobile-header {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav .social-links {
     display: flex;
    flex-direction: column;
    align-items: center;
}

.social-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 12px 20px;
    margin: 8px 0;
    width: 280px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px); /* Initial state for slide-up */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Added transition */
}

.social-button.animated {
    animation: fadeInSlideUp 0.5s ease-out forwards;
}

.social-button.hide-animation {
    opacity: 0;
    transform: scale(0.5);
}

.social-button a {
    color: #2C3E50;
    font-size: 1.6em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.social-button a i {
    margin-right: 12px;
    font-size: 1em;
}

.social-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-info {
    padding: 20px 0;
    flex-shrink: 0;
    color: white;
}

.page-info p {
    margin: 5px 0;
    font-size: 1.1em;
}

.desktop-main {
    display: none; /* Esconde o conteúdo desktop por padrão */
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease; /* Added transition */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    color: #2C3E50; /* Text color for modal content */
    font-size: 0.9em; /* Reduced font size for general modal content */
    opacity: 0; /* Initial state for animation */
    transform: scale(0.1); /* Initial state for animation */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Added transition */
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    color: #2C3E50;
    font-size: 1.5em; /* Slightly reduced heading size */
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.modal-content th, .modal-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.9em; /* Reduced font size for table cells */
}

.modal-content th {
    background-color: #f2f2f2;
    color: #2C3E50;
}

.modal-content .address {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1em; /* Keep address slightly larger for readability */
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}