
/* Overall app appearance */
body {
    background-color: #F5F1E8;
    color: #333D35;
    font-family: Georgia, serif;
    margin: 0;
    padding: 24px;
    text-align: center;
}

/* App title */
h1 {
    color: #345443;
    font-size: 32px;
    margin-bottom: 8px;
}

/* Month heading */
h2 {
    color: #B69B65;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Prayer title */
h3 {
    color: #345443;
    font-size: 26px;
    margin: 12px 0;
}

/* Paragraphs */
p {
    font-size: 16px;
    line-height: 1.6;
}

/* Buttons */
button {
    background-color: #345443;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #476B56;
}

/* Monthly prayer card */
.prayer-card {
    background-color: white;
    border: 1px solid #B69B65;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Individual app screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Prevent content from hiding behind navigation */
body {
    padding-bottom: 100px;
}

/* Bottom navigation bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: #FFFFFF;
    border-top: 1px solid #B69B65;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 100;
}

/* Navigation buttons */
.nav-button {
    background-color: transparent;
    color: #8A8A80;
    font-family: Georgia, serif;
    font-size: 13px;
    padding: 12px 4px;
    flex: 1;
    border-radius: 0;
}

/* Selected navigation button */
.nav-button.active {
    color: #345443;
    font-weight: bold;
}

/* Navigation hover */
.nav-button:hover {
    background-color: #F5F1E8;
}

/* Prayer library layout */
#prayer-list {
    display: grid;
    gap: 16px;
    max-width: 500px;
    margin: 30px auto;
}

/* Individual library cards */
.library-card {
    background-color: white;
    border: 1px solid #D8D3C6;
    border-left: 4px solid #B69B65;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.library-card h2 {
    margin: 0 0 8px;
    font-size: 12px;
}

.library-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.library-card p {
    margin: 4px 0;
}

/* Number of verses */
.verse-count {
    color: #77776B;
    font-size: 13px;
}

/* Clickable prayer cards */
.library-card {
    cursor: pointer;
    transition: background-color 0.2s;
}

.library-card:hover {
    background-color: #FAF8F2;
}

/* Prayer detail header */
.prayer-header {
    margin: 30px 0;
}

.prayer-header h1 {
    margin: 12px 0;
}

/* Back button */
.back-button {
    display: block;
    background-color: transparent;
    color: #345443;
    font-size: 14px;
    padding: 8px 0;
}

.back-button:hover {
    background-color: transparent;
    text-decoration: underline;
}

/* Prayer tab navigation */
.prayer-tabs {
    display: flex;
    max-width: 500px;
    margin: 24px auto;
    border-bottom: 1px solid #D8D3C6;
}

/* Individual tab buttons */
.tab-button {
    flex: 1;
    background-color: transparent;
    color: #77776B;
    font-family: Georgia, serif;
    font-size: 15px;
    border-radius: 0;
    padding: 14px 4px;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: #345443;
    border-bottom-color: #345443;
    font-weight: bold;
}

.tab-button:hover {
    background-color: #EDE8DD;
}

/* Prayer tab content */
.tab-content {
    display: none;
    max-width: 500px;
    margin: 24px auto;
}

.tab-content.active {
    display: block;
}

/* Journal containers */
.journal-card {
    background-color: white;
    border: 1px solid #D8D3C6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

/* Journal field headings */
.journal-card label {
    display: block;
    color: #345443;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Journal input fields */
.journal-card textarea,
.journal-card input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #FAF8F2;
    border: 1px solid #D8D3C6;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
    font-family: Georgia, serif;
    font-size: 16px;
    color: #333D35;
    line-height: 1.6;
}

/* Multiline journal fields */
.journal-card textarea {
    min-height: 110px;
    resize: vertical;
}

/* Selected input */
.journal-card textarea:focus,
.journal-card input:focus {
    outline: 2px solid #648B71;
    border-color: #648B71;
}

/* Placeholder text */
.journal-card ::placeholder {
    color: #969287;
}

/* Remove extra bottom spacing */
.journal-card textarea:last-child {
    margin-bottom: 0;
}

/* Word study heading */
.word-card h2 {
    margin-top: 0;
}

/* Automatic save message */
.save-status {
    color: #648B71;
    font-size: 12px;
    font-style: italic;
}

/* Scripture card */
.scripture-card {
    text-align: center;
}

.scripture-card a {
    display: inline-block;
    color: #345443;
    border: 1px solid #345443;
    border-radius: 8px;
    padding: 12px 20px;
    text-decoration: none;
    margin-top: 8px;
}

/* Progress bar background */
.progress-track {
    height: 10px;
    background-color: #EDE8DD;
    border-radius: 20px;
    overflow: hidden;
    margin: 16px 0 24px;
}

/* Progress bar fill */
.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #648B71;
    border-radius: 20px;
    transition: width 0.3s;
}

/* Verse tracker grid */
#verse-tracker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Individual verse boxes */
.verse-box {
    background-color: #FAF8F2;
    color: #345443;
    border: 1px solid #D8D3C6;
    border-radius: 8px;
    padding: 0;
    aspect-ratio: 1;
    font-family: Georgia, serif;
    font-size: 16px;
}

/* Completed verse */
.verse-box.completed {
    background-color: #345443;
    color: white;
    border-color: #345443;
}

.verse-box:hover {
    background-color: #EDE8DD;
}

.verse-box.completed:hover {
    background-color: #476B56;
}

/* Rewrite journal */
#prayer-rewrite {
    min-height: 220px;
}

/* Artwork card */
.artwork-card {
    text-align: center;
}

/* SVG artwork */
#artwork-container {
    max-width: 350px;
    margin: 0 auto 24px;
}

#artwork-container svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Clickable glass pieces */
#artwork-container [id^="piece-"] {
    cursor: pointer;
    transition: fill 0.15s;
}

/* Color palette */
#color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 20px 0;
}

/* Color swatches */
.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #D8D3C6;
}

/* Selected color */
.color-swatch.selected {
    outline: 2px solid #345443;
    outline-offset: 3px;
}


/* Secondary buttons */
.secondary-button {
    background-color: transparent;
    color: #345443;
    border: 1px solid #345443;
}

.secondary-button:hover {
    background-color: #EDE8DD;
}
/* Numbered color swatches */
.color-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
}

/* Prevent swatch colors from fading on hover */
.color-swatch:hover {
    opacity: 0.85;
}
/* Locked color swatches */
.color-swatch.locked {
    opacity: 0.35;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.color-swatch.locked:hover {
    opacity: 0.35;
}
#home-date {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: 3px;
}

#home h1 {
    margin-top: 12px;
}

#home-progress-count {
    font-size: 14px;
    color: #648B71;
    margin-bottom: 24px;
}

#home-prayer-button {
    width: 100%;
}
.practice-card {
    max-width: 500px;
    margin: 24px auto;
}

.practice-card {
    text-align: center;
}

.practice-card h3 {
    font-size: 20px;
}

#practice-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

#practice-verse-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

#practice-difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.practice-option {
    background-color: #F5F1E8;
    color: #345443;
    border: 1px solid #D8D3C6;
    border-radius: 8px;
    padding: 14px 4px;
    font-family: Georgia, serif;
    font-size: 14px;
    min-width: 0;
}

.practice-option:hover {
    background-color: #EDE8DD;
}

.practice-option.selected {
    background-color: #345443;
    color: #FFFFFF;
    border-color: #345443;
}

.practice-verse {
    aspect-ratio: 1;
    padding: 0;
    font-size: 16px;
}

#start-practice:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#practice-passage-title {
    margin-top: 8px;
}

#start-practice {
    width: 100%;
}

#practice-exercise {
    max-width: 500px;
    margin: 24px auto;
    text-align: center;
}

#practice-reference {
    font-size: 20px;
}

#practice-text {
    font-size: 20px;
    line-height: 2;
    color: #345443;
}
#practice-text .practice-blank {
    display: inline-block;
    max-width: 100%;
    padding: 4px;
    margin: 4px 2px;
    background-color: #F5F1E8;
    border: none;
    border-bottom: 2px solid #B69B65;
    border-radius: 4px 4px 0 0;
    color: #345443;
    font-family: Georgia, serif;
    font-size: 18px;
    text-align: center;
    box-sizing: content-box;
}

#practice-text .practice-blank:focus {
    outline: none;
    border-bottom-color: #345443;
    background-color: #EDE8DD;
}

#practice-full-answer {
    width: 100%;
    min-height: 180px;
    font-size: 18px;
    line-height: 1.8;
    box-sizing: border-box;
}
#practice-actions:not([hidden]) {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#practice-actions button {
    width: 100%;
    margin: 0;
    padding: 12px 4px;
    font-size: 12px;
    min-width: 0;
}

#practice-feedback {
    grid-column: 1 / -1;
    margin: 0 0 8px;
}

#practice-feedback:empty {
    display: none;
}

#practice-feedback {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 16px;
}

#practice-text .answer-correct {
    background-color: #E2EDDF;
    border-color: #648B71;
    color: #345443;
}

#practice-text .answer-incorrect {
    background-color: #F5E1DE;
    border-color: #A34D4D;
    color: #A34D4D;
}

#practice-revealed {
    margin-top: 24px;
    padding: 20px;
    background-color: #F5F1E8;
    border-left: 3px solid #B69B65;
    border-radius: 8px;
    color: #345443;
    font-size: 18px;
    line-height: 1.8;
}

.discover-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.discover-option {
    background-color: #F5F1E8;
    color: #345443;
    border: 1px solid #D8D3C6;
    border-radius: 8px;
    padding: 12px;
    font-family: Georgia, serif;
    font-size: 14px;
}

.discover-option.selected {
    background-color: #345443;
    color: #FFFFFF;
    border-color: #345443;
}
.artwork-instruction {
    font-size: 13px;
    text-align: center;
    margin: 0 0 12px;
    color: #345443;
}

.palette-heading {
    margin: 12px 0 8px;
}

#artwork-container {
    margin-bottom: 0;
}

#color-palette {
    margin-top: 8px;
}
#practice-reference {
    display: none;
}

#practice-selected-verse {
    margin: 12px 0;
    font-size: 22px;
}

#practice .practice-card {
    margin: 12px auto;
}

#practice-exercise {
    margin: 12px auto;
}

#practice-difficulty-grid {
    margin-bottom: 12px;
}

#practice h1 {
    font-size: 26px;
    margin-bottom: 16px;
}