.bordered {
    border-top: 2px solid #ccc;
}

.lastrow {
    border-bottom: 2px solid #ccc;
}

.ingredient-item {
   margin-top: 5px;
   margin-bottom: 0px;
}

.direction {
   margin-top: 5px;
   margin-bottom: 5px;
}

.photo {
    object-fit: contain;
    width: 400px;
    height: 400px;
}

.hidden-iframe {
    display: none;
    visibility: hidden;
}

.navbar {
    margin-bottom: 20px;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
   font-size: 14px;
}

 @media print
 {
    body {
        font-size: 12px;
    }
 }

/* Bootstrap 5 tweak: do not underline links unless hovered over */
a:not([class*="btn"]) {
    text-decoration: none;
}
a:not([class*="btn"]):hover {
    text-decoration: underline;
}

.recipe-metadata {
    margin-top: 2rem;
    padding: 1rem 0;
}

.recipe-metadata-section {
    margin-bottom: 1.5rem;
}

.recipe-metadata-section h3 {
    font-size: 1rem;
    font-weight: normal;
    font-style: italic;
    color: #333;
    margin-bottom: 0.5rem;
}

.recipe-metadata-section ul {
    list-style: none;
    padding-left: 0;
    margin-left: 1rem;
}

.recipe-photo {
    max-width: 600px;
    margin: 1rem 0;
}

.recipe-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.recipe-photo figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #666;
}

.hidden-form {
    display: none;
}

.carousel-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

.carousel-slide-container {
    position: relative;
    background-color: #f8f9fa;  /* Light gray background */
    min-height: 300px;  /* Minimum height to ensure controls are visible */
    padding: 0 50px;  /* Make room for controls outside the image */
}

.carousel-control-prev,
.carousel-control-next {
    background-color: transparent;
    width: 50px;  /* Fixed width */
    opacity: 1;
    position: absolute;
    top: 0;
    bottom: 0;
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.05);  /* Very subtle hover effect */
}

.recipe-metadata ul, .recipe-metadata-section ul {
    list-style-type: none;
}

.markdown-content p:has(img) {  /* Only style paragraphs containing images */
    text-align: center;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
}

.markdown-content p > em {  /* Style the caption */
    display: block;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
    color: #666;
}

.markdown-content blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1em;
    font-style: italic;
}

/* Quotes from others */
.markdown-content .quote-others {
    border-left: 4px solid #6c757d;  /* Gray */
    background-color: #f8f9fa;
    color: #495057;
}

/* My own quotes */
.markdown-content .quote-me {
    border-left: 4px solid #007bff;  /* Bootstrap primary blue */
    background-color: #f1f8ff;
    color: #004085;
}

/* Technical/documentation quotes */
.markdown-content .quote-docs {
    border-left: 4px solid #28a745;  /* Bootstrap success green */
    background-color: #f3fff5;
    color: #155724;
}

/* Accuracy badge styles */
.accuracy-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.accuracy-badge.checked {
    color: #28a745;
    background-color: #e6f4ea;
}

.accuracy-badge.double-checked {
    color: #1e7e34;
    background-color: #d4edda;
}

.accuracy-badge.triple-checked {
    color: #155724;
    background-color: #c3e6cb;
}

.accuracy-badge i {
    margin-right: 0.2em;
    font-size: 1em;
}

.accuracy-check-form {
    margin-left: 0.5rem;
}

.accuracy-check-form button {
    font-size: 0.875rem;
}

.recipe-accuracy {
    text-align: center;
}

/* Shopping list checkbox strikethrough */
.form-check-input:checked + .form-check-label {
    text-decoration: line-through;
    color: var(--bs-secondary);  /* Bootstrap 5 secondary color */
}

/* Collection scale selector */
.scale-select {
    width: auto;
    display: inline-block;
}
