@charset "UTF-8";

:root{
  --color-background: #e8d0b2;
  --color-backroundmain: #fae4c7;

  --color-textblue: #1c3c5a;

  --color-bloco:#fce9d3;
}

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


body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  background-color: var(--color-background);
  height: 100dvh;
}

/* Loader */
#loader-container{
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader {
    --r1: 154%;
  --r2: 68.5%;
  width: 60px;
  aspect-ratio: 1;
  border-radius: 50%; 
  background:
    radial-gradient(var(--r1) var(--r2) at top   ,#0000 79.5%,#269af2 80%),
    radial-gradient(var(--r1) var(--r2) at bottom,#269af2 79.5%,#0000 80%),
    radial-gradient(var(--r1) var(--r2) at top   ,#0000 79.5%,#269af2 80%),
    #ccc;
  background-size: 50.5% 220%;
  background-position: -100% 0%,0% 0%,100% 0%;
  background-repeat:no-repeat;
  animation: l9 2s infinite linear;
}

@keyframes l9 {
    33%  {background-position:    0% 33% ,100% 33% ,200% 33% }
    66%  {background-position: -100%  66%,0%   66% ,100% 66% }
    100% {background-position:    0% 100%,100% 100%,200% 100%}
}
/* Fim do loader */

/* inicio popup de aviso */
#popupAviso {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Caixa do pop-up */
#popupAviso-content {
  background: white;
  width: 300px;
  padding: 20px;
  margin: 15% auto;
  margin-top: 1%;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Botão de fechar popup*/
#popupAvisoFechar {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#popupAvisoFechar:hover {
  background-color: #0056b3;
}

#popupAviso img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* fim do popup de aviso */

header {
  align-items: center;
  padding: 20px 40px;
  background-color: var(--color-background);
}

.header-container{
  display: flex;
  justify-content: space-between;
}

header h1 {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  color: var(--color-textblue);
  font-size: 30px;
  width: 100%;
}

.head-separator-mobile {
  width: 100%;
  border: none;
  border-top: 2px solid #1c3c5a;
  margin: 10px 0;
  display: block;
}

.head-separator-desktop {
  width: 100%;
  border: none;
  border-top: 2px solid #1c3c5a;
  margin: 10px 0;
  display: none;
}

header nav, header a, header ul, li{
  font-size: 16px;
  color: var(--color-textblue);
  list-style: none;
  padding: 0;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 10px;
}

/* Navegação para desktop desabiliada */
.nav-desktop{
  display: none;
}

header img{
  height: 130px;
}

main{
  text-align: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--color-textblue);
  background-color: var(--color-backroundmain);
}

main h1{
  font-size: 2.5rem;
}

main button{
  background-color: var(--color-textblue);
  border: none;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

button a{
  color: white;
  text-decoration: none;
}

/* abre a imagem pix ao clicar no botão */
#pix:target {
  display: flex;
}

/* Imagem centralizada do aviso */
.popup img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
  animation: fadeInAnimation ease 2s;
}



article{
  background-color: var(--color-backroundmain);
  text-align: center;
  color: var(--color-textblue);
}

#palavra-profetica{
  display: flex;
  flex-direction: row;
  overflow-y: scroll;
}

#palavra-profetica::-webkit-scrollbar {
  width: 8px;
}

#palavra-profetica::-webkit-scrollbar-thumb {
  background-color: #1c3c5a;
  border-radius: 4px;
}

#palavra-profetica::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.palavra {
  flex: 1;
  padding: 20px;
  border-right: 1px solid #ccc;
  width: 100%;
}

.palavra h2:after{
  content: "";
  display: block;
  width: 90%;
  height: 2px;
  background-color: var(--color-textblue);
  margin: 10px auto;
}

/* Carrossel de noticias */

#carouselExampleCaptions{
  width:90%;
  margin: auto;
  box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.438);
}

#carouselExampleCaptions {
  touch-action: pan-y;
}

/* Mostrar quando alvo */
#imagem1:target {
  display: flex;
}

#imagem2:target {
  display: flex;
}

#imagem3:target {
  display: flex;
}

#imagem4:target {
  display: flex;
}

/* Popup quando clica no carrossel */

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: flex-start;
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}

.container-popup {
  background-color: #e8d0b2;
  border-radius: 10px;
  width: 100%;
  padding: 30px;
}

.container-popup img{
  height:auto;
  width: 100%;
}

.container-popup h1 {
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin-top: 20px;
}

.container-popup h2 {
  text-align: center;
  justify-content: center;
  align-items: center;
  color: #1c3c5a;
  font-size: 20px;
  margin-top: 20px;
}

/* Botão de fechar */
.fechar {
  position: absolute;
  top: 5px;
  right: 30px;
  font-size: 30px;
  color: rgb(216, 41, 41);
  text-decoration: none;
  z-index: 9999;
}

/* Grid da noticia Reforma da igreja*/
.col img{
  margin-bottom: 10px;
}

.img-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border-radius: 5%;
}

.img-grid img {
  width: 100%;
  height: auto;
  border-radius: 5%;
  box-shadow: #000000 0px 14px 18px;
  object-fit: cover;
}

.col video {
  width: 100%;
  height: 100%;
  border-radius: 5%;
  box-shadow: #000000 0px 14px 18px;
  object-fit: cover;
  margin-top: 5%;
}
/* fim do carrossel de noticias */

aside{
  background-color: var(--color-backroundmain);
  padding-top: 40px;
  text-align: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

aside img{
  height:50px;
  margin-right: 15px;
}

aside > article{
  justify-content: center;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
}

#cifra-download{
  margin-right: 1px;
  text-decoration: none;
  margin: auto;
  font-weight: bold;
}

.musica-contain{
  display: flex;
  width: 100%;
  margin: auto;
}

.musica-contain a{
  margin-right: 1px;
  text-decoration: none;
  margin: auto;
  font-weight: bold;
}

article a{
  text-decoration: none;
  color: var(--color-textblue);
}

footer{
  background-color: var(--color-backroundmain);
  padding-top: 40px;
  text-align: center;
  margin: auto;
  margin-bottom: 10%;
  border-radius: 8px;
}

footer a{
  text-decoration: none;
  color: var(--color-textblue);
  font-weight: bold;
}

/* PAGINA QUEM SOMOS, ATIVIDADES & EVENTOS */
.quem-somos-article{
  background-color: var(--color-bloco);
  text-align: center;
  box-shadow: #000000 0px 14px 18px;
  width: 90%;
  color: var(--color-textblue);
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 800px;
}

.quem-somos-article h1:after {
  content: "";
  display: block;
  width: 90%;
  height: 2px;
  background-color: var(--color-textblue);
  margin: 10px auto;  
}

.quem-somos-article p{
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-textblue);
  font-size: 18px;
  text-align: justify;
}

.quem-somos-article img{
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: #000000 0px 14px 18px;
}

.quem-somos-article video{
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: #000000 0px 14px 18px;
  margin-top: 5%;
}

#voltar-link{
  text-decoration: none;
  color: var(--color-textblue);
  font-weight: bold;
  display: block;
  margin: 20px auto;
}

.links-evento {
  display: flex;
  justify-content: space-between;
  margin-top: 3%;
}

.links-evento a {
  color: #007bff;
  text-decoration: none;
  color: #4A7BAE;
  font-weight: bold;
}

/* Grid  de fotos */
.grid-fotos {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 1%;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.fotos {
  margin-left: 5%;
  flex: 1 1 100px; /* Cada item ocupa até 300px */
  animation: fadeInAnimation ease 2s;
}

.fotos img{
  border-radius: 5%;
  border: solid 2px #000;
}

/* Miniatura */
.miniatura {
  width: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.miniatura:hover {
  transform: scale(1.05);
}

/* Overlay em tela cheia */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay img {
  position: relative;
  width: 90%;
  height: 90%;
  border-radius: 5px;
  border: 2px solid #000000;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  cursor: pointer;
}

/* Estilos para tablet */
@media (min-width: 768px) {
  body{
    background-image: url("../assets/images/bakground.png");
    background-size: cover;
    background-attachment: fixed;
  }

  /* Cabeçalho */
  .head-separator-mobile {
    display: none;
  }
  .head-separator-desktop {
    display: block;
  }
  
  header{
    background-color: transparent;
  }
  
  header h1{
    text-align: start;
    font-size: 40px;
  }
  
  header nav {
    display: none;
  }
  
  .nav-desktop {
    display: block;
  }
  
  .nav-desktop ul {
    display: flex;
    gap: 20px;
  }

  .nav-desktop li {
    list-style: none;
  }

  .nav-desktop a {
    text-decoration: none;
    color: var(--color-textblue);
    font-weight: bold;
  }
  /* Fim do cabeçalho */
  
  /* Tituloprincipal */
  /* Img da logo */
  header img {
    position: absolute;
    top:24%;
    left: 70%;
    height: 200px;
  }
  
  /* Titulo, sub-titulo e botões */
  main{
    background-color: transparent;
  }
  #titulo-principal{
    font-size: 3.5rem;
    text-align: start;
    margin-left: 5%;
    margin-bottom: 10%;
  }

  main h2{
    font-size: 2rem;
    margin-bottom: 20px;
  }
  /* FIm do Tituloprincipal */

  #article-noticias-contain{
  box-shadow: #000000 0px 14px 18px;
  }

  article{
    width: 90%;
    margin: auto;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  #carouselExampleCaptions {
    width: 80%;
  }

  aside{
    width: 90%;
    margin: auto;   
    box-shadow: #000000 0px 14px 18px;
  }

  footer{
    width: 90%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;  
    margin-bottom: 10%;
    box-shadow: #000000 0px 14px 18px;
    
  }
  /* Correção logo nas outras paginas */
  #logo-header-mobile{
    display: none;
  } 

}

@media (min-width: 1024px){
  header{
    display: flex;
  }

  header h1{
    width: auto;
  }
  
  .nav-desktop {
    display:flex;
    margin-left:auto;
  }
  
  header img {
    top: 25%;
    left: 70%;
    height: 300px;
  }

  #titulo-principal{
    font-size: 5rem;
  }

  /* titulo do carrossel de noticias */
  #title-noticias{
    background-image: linear-gradient(to right, #1c3c5a, #1c3c5a, #fae4c7 ); 
    margin-bottom: 20px; 
    padding: 10px; 
    color: white; 
    text-align: start; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }


  /* Img dentro do container noticias */
  .container-popup img {
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: #000000 0px 14px 18px;
    margin: auto;
  }

  .container-popup video {
    max-width: 40%;
    border-radius: 8px;
    box-shadow: #000000 0px 14px 18px;
    margin: auto;
  }


  main h3{
    font-size: 3rem;
  }

  #carouselExampleCaptions {
    width: 100%; 
    box-shadow:none;
  }

  /* corrijindo tamanho de imagens */
  .carousel-item img{
    width: 100%;
  }

  #youtube-icon{
    width: 50px;
    height: auto;
  }

  article img{
    max-width: 40%;
    height: auto;
    margin: auto;
  }
}
  
