/* devotional.css */
.navbar-logo { height: 24px; width: auto; margin-right: 0.4rem; display: block; }
.navbar-home-icon { font-size: 1.25rem; }

.devotional-container { max-width: 800px; margin: auto; padding-top: 1rem; }
.devotional-author { font-style: italic; font-size: 1rem; color: #6c757d; }
.devotional-card { border-radius: 12px; padding: 1.5rem; }
.devotional-title { font-size: 1.8rem; line-height: 1.25; }
.devotional-subtitle { font-size: 18px; font-style: italic; line-height: 1.5; margin-top: 10px; margin-bottom: 24px; opacity: 0.9; }
.devotional-content { font-size: 16.5px; line-height: 1.6; } */
.devotional-date { font-style: italic; color: #6c757d; font-size: 1.05rem; margin-bottom: 1.4rem; }


.devotional-libary-container {
    height: 200px;             /* fixed container height */
    display: flex;
    justify-content: center;   /* horizontal centering */
    align-items: center;       /* vertical centering */
    overflow: hidden;          /* prevents overflow if image is taller */
    padding: 0 5px;          /* prevents overflow if image is taller */    
}

.devotional-libary-container a {
    display: block;          /* garante que o link seja um bloco */
    height: 100%;            /* ocupa toda altura do container */
}

.devotional-library-icon {
    height: 100%;          /* image fits container height */
    width: auto;           /* preserve aspect ratio */
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.devotional-library-title {
    text-align: center;         /* centraliza horizontalmente */
    white-space: wrap;        /* impede quebra de linha */
    overflow: hidden;           /* esconde excesso de texto */
    text-overflow: ellipsis;    /* mostra "..." se o texto for grande */
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-buttons { display:flex; justify-content: space-between; margin-bottom:1rem; }
.nav-buttons a.btn { min-width: 120px; text-align: center; }
.form-select { max-width:150px; display:inline-block; }
.date-selector-form { display:flex; justify-content:center; gap:0.5rem; margin-bottom:1rem; }
.round-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    object-fit: cover;   /* makes the PNG fill the square without stretching */
    display: block;      /* prevents inline spacing issues */
}

.devotional-footer {
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6; /* subtle top border */
}

.title-image {
    width: 50px;   /* adjust size as needed */
    height: 50px;  /* keep square for perfect circle */
    object-fit: cover; /* crops nicely */
    border: 2px solid #ddd; /* optional border */
}

/* Book-style title image */
.book-cover {
    width: 70px;   /* match your old title-image width */
    height: 98px;  /* taller for book aspect ratio */
    flex-shrink: 0;
    border-radius: 6px;       /* slightly rounded corners */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: #fff;         /* fallback color if image fails */
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* maintain cover aspect */
}

.title-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.title-text .devotional-author {
    font-size: 1rem;
    color: #6c757d;
}

.legal-card { border-radius: 12px; padding: 1.5rem; }
.legal-link { color: #0d6efd; text-decoration: none; }
.legal-link:hover { text-decoration: underline; }

@media (max-width:576px){
    .devotional-title{font-size:1.5rem;}
    .devotional-subtitle { font-size: 18px; font-style: italic; line-height: 1.5; margin-top: 10px; margin-bottom: 24px; opacity: 0.9; }    
    .devotional-content { font-size: 16.5px; line-height: 1.6; } */
    .devotional-card{padding:1.2rem;}
    .devotional-date{font-size:0.95rem;}
    .nav-buttons a.btn{min-width:100px;}

    .book-cover {
        width: 60px;
        height: 84px;
    }
    .title-text h1 {
        font-size: 1.5rem;
    }
    .title-text .devotional-author {
        font-size: 0.95rem;
    }    
}

p{margin-bottom:1.2rem;}

.sabbathschool-library-icon {
    height: 200px;          /* image fits container height */
    width: auto;           /* preserve aspect ratio */
    object-fit: contain; /* contain; */
    display: block;
    border-radius: 6px;
}

/* Shared styles for all floating buttons */
/* Shared floating button styles */
.floatingButton {
    position: fixed;       /* this makes it float */
    bottom: 20px;          /* distance from bottom */
    background-color: #555;/* rgba(200,200,200,0.3);  #000;*/
    color: #fff; /* #333; */
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
.floatingButton:hover {
    background-color: #444; /* rgba(200,200,200,0.6); #222;*/  
    transform: translateY(-2px);
}

/* Positioning */
.floatingButton.right {
    right: 20px;
}

.floatingButton.left {
    left: 20px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #floatingButton {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* TV */

.tv-card {
    text-decoration: none;
    color: inherit;
}

.tv-card img {
    max-height: 120px;
    object-fit: contain;
}

.tv-mini-card img {
    transition: transform 0.2s;
}
.tv-mini-card img:hover {
    transform: scale(1.2);
}
.tv-mini-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.tv-mini-title {
    font-size: 0.7rem; /* smaller than default <small> */
    line-height: 1.1;
}

/* Page Title */
.page-title { font-size: 1.8rem; line-height: 1.25; }
.page-title-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.page-title-text .page-title-subtitle {
    font-size: 1rem;
    color: #6c757d;
}

@media (max-width:576px){
    .page-title{font-size:1.5rem;}
    .page-title-text h1 {
        font-size: 1.5rem;
    }
    .page-title-text .page-title-subtitle {
        font-size: 0.95rem;
    }    
}

/* Iframe */
.iframe-wrapper {
    width: 100%;
    max-width: 100%;
    height: 80vh; /* container height */
    position: relative;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Hymn */
.hymn-text {
  white-space: pre-line;
}

.chord {
    font-size: 16px;    
}

.chordimg {
    width: 90px;
    height: 90px;        
}

.lyrics-line {
  display: flex;
  flex-wrap: wrap; /* wrap on small screens */
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.syllable {
  display: inline-flex;
  flex-direction: column; /* chord on top, lyric below */
  align-items: center;
  margin-right: 0.3rem; /* spacing between syllables */
}

.chord {
  font-weight: bold;
  color: red;
  font-family: monospace;
  font-size: 0.9rem;
}

.lyric {
  font-family: sans-serif;
  font-size: 1rem;
}

.lyrics-line.chorus {
  background-color: #f8f9fa;
  border-left: 3px solid #dc3545;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
}

/* Bible */
.bible-study {
    max-width: 720px;
    margin: 0 auto;
}


/* Masonry */
.masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry > * {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
}

/* iPad / tablets */
@media (max-width: 991.98px) {
  .masonry {
    column-count: 2;
  }
}

/* phones */
@media (max-width: 575.98px) {
  .masonry {
    column-count: 1;
  }
}
