
/* Reset & Base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #e6f0ff, #fff5f9);
  background-attachment: fixed;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #333;
}


body.offline {
  background: #5a3e8a;
}

.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 30px 20px 10px;
}
.hero h1 {
  font-size: 2.8rem;
  margin: 20px 0 8px;
  color: var(--marian-blue);
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.tagline {
  font-size: 1.25rem;
  color: #666;
  font-style: italic;
  margin: 0 0 20px;
}

/* Buttons */
.btn-lang, .btn-share, .btn-install {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}
.btn-lang {
  background: var(--marian-blue);
  color: white;
}
.btn-lang:hover { background: #e68a44; }

.btn-share {
  background: var(--gold);
  color: #333;
}
.btn-share:hover { background: #d4b050; }

.btn-install {
  background: #287b71;
  color: white;
  margin: 20px auto;
  display: block;
}

/* Cards */
.prayer-card, .activity-card {
  background: rgba(255,255,255,0.92);
  margin: 25px 0;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}
.prayer-text {
  font-size: 1.35rem;
  line-height: 1.8;
  color: #222;
}
.activity-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}
.progress { 
  color: #777; 
  font-size: 0.95rem;
  margin-top: 15px;
}

/* Bottom Nav & Footer */
.bottom-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.bottom-nav a {
  color: var(--marian-blue);
  text-decoration: none;
  font-weight: 600;
}
.bottom-nav a:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
}
footer a { color: var(--marian-blue); }

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.3rem; }
  .prayer-text { font-size: 1.25rem; }
}
/* Clickable tessera */
.tessera-wrapper {
  display: inline-block;
  cursor: zoom-in;
}
.clickable-tessera {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clickable-tessera:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Full-screen Modal */
.tessera-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(62, 76, 125, 0.96); /* Marian blue with opacity */
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s ease-out;
}
.tessera-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  text-align: center;
  max-width: 90%;
  animation: zoomIn 0.5s ease-out;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  border: 8px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-caption {
  margin-top: 15px;
  color: #fdfdfd;
  font-size: 1.2rem;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: -15px;
  right: -10px;
  font-size: 3rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  line-height: 45px;
  text-align: center;
  transition: all 0.3s;
}
.modal-close:hover {
  background: var(--gold);
  color: #333;
  transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* video container */
.vid-container {
  max-width: 514px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.vid-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
} 
.vid-container iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

  #ytFrame::-webkit-scrollbar {
    display: none;
  }



