.md-grid {
    max-width: initial;
}

/* adjust line height */
.md-typeset p {
    line-height: 1.2; /* adjust as needed */
}

.md-typeset li {
    line-height: 1.2; /* adjust as needed */
}

/* this resolve the code wrapping problem */
code {
    white-space: pre-wrap !important;
    font-weight: 500 !important;
    border-width: thick !important;
    line-height: 125% !important;
    border-radius: 10px !important;
    font-size: 0.7rem !important;
    font-family: "Inter", sans-serif !important;
}

.highlight {
    background: transparent !important;
}

/* Info */
div.bible.highlight,
div.bible.highlight code {
    background-color: #196af51a;
    border-radius: 10px !important;
}

/* Godswords */
div.godswords.highlight,
div.godswords.highlight code {
    background-color: #ffe6001a;
    border-radius: 10px !important;
}

/* Question & Answers*/
div.answer.highlight code,
div.question.highlight code {
    background-color: #64dd171a;
    border-radius: 10px !important;
}

div.question.highlight {
    display: inline-block;
    width: 68%;
    vertical-align: top;
}

div.answer.highlight {
    display: inline-block;
    width: 30%;
    min-height: 100%;
    vertical-align: top;
}

/* Note */
div.note.highlight,
div.note.highlight code {
    background-color: #448aff1a;
    border-radius: 10px !important;
}

/* Abstract */
div.abstract.highlight,
div.abstract.highlight code {
    background-color: #00b0ff1a;
    border-radius: 10px !important;
}

/* info */
div.info.highlight,
div.info.highlight code {
    background-color: #00b8d41a;
    border-radius: 10px !important;
}

/* tip */
div.tip.highlight,
div.tip.highlight code {
    background-color: #00bfa51a;
    border-radius: 10px !important;
}

/* success */
div.success.highlight,
div.success.highlight code {
    background-color: #00c8531a;
    border-radius: 10px !important;
}

/* question */
div.question.highlight,
div.question.highlight code {
    background-color: #64dd171a;
    border-radius: 10px !important;
}

/* warning */
div.warning.highlight,
div.warning.highlight code {
    background-color: #ff91001a;
    border-radius: 10px !important;
}

/* failure */
div.failure.highlight,
div.failure.highlight code {
    background-color: #ff52521a;
    border-radius: 10px !important;
}

/* danger */
div.danger.highlight,
div.danger.highlight code {
    background-color: #ff17441a;
    border-radius: 10px !important;
}

/* bug */
div.bug.highlight,
div.bug.highlight code {
    background-color: #f500571a;
    border-radius: 10px !important;
}

/* example */
div.example.highlight,
div.example.highlight code {
    background-color: #7c4dff1a;
    border-radius: 10px !important;
}

/* quote */
div.quote.highlight,
div.quote.highlight code {
    background-color: #9e9e9e1a;
    border-radius: 10px !important;
}

/* Toast message style for feedback */
#copy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
    font-family: sans-serif;
    font-size: 14px;
}

#copy-toast.show {
    opacity: 0.9;
    pointer-events: auto;
}

/* Wrapper around the image */
.copyable-wrapper {
    position: relative;
    display: inline-block;
    /* Ensures that the wrapper doesn’t break alignment for inline images */
}

/* Copy button that overlays the image */
.copyable-wrapper button.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none; /* Prevents button from blocking image interactions */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    user-select: none;
}

/* Show the button when hovering over the wrapper */
.copyable-wrapper:hover button.copy-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Ensure that images retain their alignment and size */
img.copyable {
    max-width: 100% !important; /* Prevents overflow */
    height: auto !important; /* Maintains aspect ratio */
    display: inline-block; /* Keeps the image inline for alignment */
    vertical-align: middle; /* Ensures proper vertical alignment */
}

/* VIDEO DIVS */

.video {
    width: 540px;
    height: 320px;
    border: none;
}

.video-outer-div {
    display: flex;
    height: 360px;
}

.video-left-div {
    max-width: 540px;
    height: 100%;
    display: flex;
    align-items: center;
}

.video-right-div {
    flex: 1;
    height: 100%;
    background: rgb(199, 227, 236);
    overflow-y: scroll;
    padding: 15px;
    border: 2px solid #7b86a3;
    border-radius: 20px;
    box-sizing: border-box;
    scroll-padding-top: 15px;
    scroll-padding-bottom: 15px;
}

/* GOOGLE DRIVE FOLDER */

.drive-folder {
    width: 100%;
    height: 700px;
}

/* IMAGE SIZE*/

.doc-image {
    width: 250px;
}
.img-gallery {
    width: 200px;
}
.img-medium {
    width: 250px;
}
.img-large {
    width: 300px;
}

/* VIDEO*/
.video-card {
    display: inline-block;
    vertical-align: top;
    margin: 2px;
    text-align: center;
}

.video-thumb-container img {
    display: block;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.video-thumb-container:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* click passes through */
    text-shadow: 0 0 5px black;
}

.video-thumb-container:hover .play-overlay {
    opacity: 1;
}
.video-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 6px 0 4px 0;
    text-align: center;
    width: 250px;
}

.video-figure {
    display: inline-block; /* keeps the whole unit inline like a figure */
    text-align: center; /* center caption */
    margin: 1em 0; /* optional spacing */
}

.video-caption {
    margin-top: 6px; /* space between video and caption */
    font-size: 0.9em;
    color: #555; /* caption style */
    font-style: italic; /* optional */
}
