/* Global Variables */
:root {
    --background-color: #242126;
    --primary-font: 'Sen', 'Arial', sans-serif;
    --text-color: #fff6e4;
    --secondary-font: 'Source Serif 4', Garamond, serif;
    --accent-color: #d4a860;
    --bg-accent-color: rgba(46, 55, 49, 0.85);
}

/* Apply box-sizing globally */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Default styles */
body {
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--primary-font);
    margin: 0;
}

.content {
    width: 90%;
    padding: 5%;
    text-align: left;
}

h1,
h2,
h3,
h4 {
    color: var(--accent-color);
    font-family: var(--secondary-font);
}

h1 {
    font-size: 2rem;
    background-color: var(--bg-accent-color);
    padding: 0.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

hr {
    background-color: var(--bg-accent-color);
    height: 3px;
    border: none;
}

p,
.info,
.dropdown,
.input-field,
.speaker,
.people {
    font-size: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: underline;
}

a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: flex-end;
    font-weight: 550;
    text-transform: uppercase;
    font-size: 0.65rem;
}

/* Date & Reference Classes */
.date,
.ref,
.dateTitle {
    font-family: var(--primary-font);
    text-transform: uppercase;
}

.date {
    font-size: 0.875rem;
}

.dateTitle {
    font-weight: 700;
    font-size: 1rem;
}

/* Container Layout */
.container {
    display: flex;
    align-items: center;
}

.image-block {
    flex: 0 0 auto;
    margin-right: 5px;
}

.image-block img {
    max-width: 85%;
    max-height: 75px;
    object-fit: cover;
}

.text-block {
    flex: 1 1 auto;
    max-width: calc(100% - 120px);
}

/* Information and Explanations */
.info {
    color: #d4c59c;
    font-family: var(--secondary-font);
}

/* Instructional and Response Classes */
.instruct {
    font-style: italic;
    color: #d4c59c;
}

.doAction {
    color: #ffd700;
    text-shadow: #ffcf7dd9 0px 0px 21px;
    font-size: 1.1rem;
}

.people {
    font-weight: 700;
}

/* Dropdown Styling */
.dropdown,
.dropdownOption {
    color: var(--accent-color);
    background-color: var(--bg-accent-color);
    font-family: var(--primary-font);
    font-style: italic;
    font-size: 1rem;
    padding: 12px;
    width: 100%;
    border: 1px solid #222;
    border-radius: 4px;
}

/* Reply Styling for responsorial psalm, prayer of the faithful */
.reply {
    font-weight: 750;
    display: block;
    margin-left: 1.5em;
}

.replyR {
    font-weight: 500;
    color: gold;
    text-shadow: rgba(255, 207, 125, 0.85) 0px 0px 21px;
}

.appropriatePreface {
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-top: 3em;
}

/* Navigation Arrows */
.arrowUp,
.arrowHome,
.arrowDown {
    position: fixed;
    right: 20px;
    padding: 10px 15px;
    font-size: 0.85rem;
    background-color: transparent;
    color: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.arrowUp {
    bottom: 70px;
}

.arrowHome {
    bottom: 120px;
}

.arrowDown {
    bottom: 20px;
}

/* Comment Form */
.comment-form {
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.comment-form h3 {
    font-family: var(--secondary-font);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-family: var(--primary-font);
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 1rem;
}

.input-field {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #2e3731;
    color: var(--text-color);
    border: 1px solid #444;
    border-radius: 4px;
    margin-top: 5px;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.submit-button {
    width: 100%;
    padding: 12px;
    margin-top: 1.5rem;
    background-color: var(--accent-color);
    color: var(--background-color);
    font-size: 1.125rem;
    font-family: var(--primary-font);
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

.submit-button:hover {
    background-color: #c99a55;
}

.tipjar {
    text-align: center;
    font-family: var(--primary-font);
    font-size: 0.85rem;
    font-weight: 550;
    text-transform: uppercase;
}

/* Mobile First Media Queries */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p,
    .info {
        font-size: 0.875rem;
    }
}