/* Ensure global box-sizing to prevent padding/border issues */
* {
    box-sizing: border-box;
}

@media (max-width: 600px) {
    #desktop-content {
        display: none;
    }

    html {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    body {
        padding: 0;
        margin: 0;
        font-family: "Open Sans", sans-serif;
        color: rgb(9, 0, 57);
        width: 100%;
        height: 100%;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    /* General Styles */
    html, body {
        margin: 0;
        padding: 0;
        background-color: #F8FAFC;
        color: rgb(9, 0, 57);
        width: 100%;
        height: 100%;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        /* Removed flex properties */
    }


    header {
        color: white;
        padding: 20px;
        text-align: center;
        background-color: #26537a;
    }

    .website-title {
        font-size: 20px;
        font-weight: bold;
        padding: 11px 0 25px;
        display: inline-block;
    }

    /* main { 
background-color: #ffffff;
margin: 0;
padding: 0 360px;  
border-left: 20px solid #F8F9FA;
border-right: 20px solid #F8F9FA;
display: flex;
flex-direction: column;
min-height: 100vh;  
height: auto;  
flex-grow: 1;  
} */

    main {
        background-color: #F8FAFC;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        height: auto;
        flex-grow: 1;
    }

    .message {
        padding: 20px 15px 10px 15px;
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        line-height: 1.5;
        color: rgb(9, 0, 57); /*#202122;*/
        background-color: #F8FAFC;
        width: 100%;
        word-wrap: break-word;
    }

        .message p .audio-button, .audio-note {
            font-size: 13px;
        }


    .commentary {
        font-size: smaller;
        color: #909098;
        margin-top: 5px;
    }


    section h2,
    section h3 {
        color: #006400; /* Dark green for section titles */
    }

    section p {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

        .image-gallery img {
            width: 80%;
            margin-bottom: 15px;
        }

    .image-gallery {
        display: flex;
        justify-content: space-around;
        margin-top: 20px;
    }

        .image-gallery img {
            width: 30%;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }




    .message-explanatory {
        display: inline-block;
        line-height: 1.1;
        color: gray;
    }

    .p-h2 {
        font-size: 14px;
        line-height: 21px;
        color: rgb(9, 0, 57);
        font-weight: bold;
        margin-top: 1em;
        margin-bottom: 1em;
        display: block;
    }




    .last-modified-below {
        color: gray;
        font-size: 12px;
    }

    .audio-container {
        display: inline; /* Keeps button inline with text */
    }

    .audio-button {
        background: none;
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        padding: 0;
        margin-left: 0px; /* Space between verse and button */
        vertical-align: middle; /* Keep it aligned with text */
        position: relative;
        box-sizing: border-box;
    }

        .audio-button:focus {
            outline: none;
        }

    .audio-note {
        vertical-align: middle; /* Align with text */
        color: blue; /*#0e3a26;*/
        position: relative;
    }

    .quran-player {
        margin: 0;
        padding: 0;
        text-align: center;
    }

    /*.quran-player, */
    .footer1 {
        background-color: #F8F9FA;
    }

    .footer1 {
        margin: 0;
        padding: 0;
        width: 100%;
        font-size: 9px;
        color: #346;
        position: relative;
        text-align: center;
    }

        .footer1 a {
            color: #346; /* Ensure the link color is the same as the text color */
        }

        .footer1 .underline {
            text-decoration: underline; /* Underline only the text inside the span */
        }

    /*BLOCKQUOTE*/
    blockquote {
        font-size: 15px;
        font-family: "Inter", sans-serif;
        color: rgb(31, 41, 55);
        line-height: 32.5px;
        border-radius: 5px;
        width: 100%;
        margin: 8px 0 20px 0;
        text-align: left;
        position: relative;
        border-bottom: 2.5px solid #d0f5e9;
        transition: transform 0.3s ease;
        background-color: transparent;
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

        blockquote span {
            margin: 0;
            width: 100%;
            line-height: 17px;
        }


    table {
        font-size: inherit;
        line-height: inherit;
    }

    table, td {
        word-wrap: break-word;
        line-height: inherit;
    }

    td {
        vertical-align: top;
    }

    .spacer1 {
        display: block;
        min-height: 2.5rem;
        line-height: 2.5rem;
    }

    .spacer2 {
        display: block;
        min-height: 1.5rem;
        line-height: 1.5rem;
    }

    .spacer3 {
        display: block;
        min-height: 0.9rem;
        line-height: 0.9rem;
    }

    .spacer4 {
        display: block;
        min-height: 0.6rem;
        line-height: 0.6rem;
    }

    .spacer5 {
        display: block;
        min-height: 4px;
        line-height: 4px;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

        nav ul li {
            display: block;
            margin: 2px 0; /* Space between items */
        }

            nav ul li a {
                color: white;
                text-decoration: none;
                font-size: 12px;
                font-weight: bold;
            }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

        .image-gallery img {
            margin-bottom: 15px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

    section h2, section h3 {
        color: #006400; /* Dark green for section titles */
    }

    section p {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 20px;
    }
}
/* MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM */




@media (max-width: 600px) {

    .last-post {
        height: auto;
        border-radius: 5px;
        padding: 0;
        display: flex;
        align-items: stretch; /* Sorgt dafür, dass alle Kinder die gleiche Höhe haben */
        margin-top: 2px;
        margin-bottom: 0px;
        background-color: #f0f4f7;
        width: 100%; /* Stellt sicher, dass die Breite immer 100% des Containers ist */
        box-sizing: border-box; /* Schließt Padding und Border in die Gesamtbreite ein */
        overflow: hidden; /* Verhindert das Überlaufen von Inhalt */
    }

        .last-post p {
            color: #444;
            margin: 0;
            font-size: 0.7rem;
            text-decoration: none;
            font-weight: normal;
        }

            .last-post p a {
                color: #1160b5;
                margin: 0;
                font-size: 0.7rem;
                text-decoration: none;
                font-weight: normal;
            }

    .sub-listing {
        margin-top: 0px;
        margin-bottom: 40px; /* Adds 10px space below the sub-listing block */
    }

    .sub-listing-board-id {
        display: block;
        font-size: 14px;
        font-weight: bold;
    }

    .sub-listing-board-description {
        display: block;
        font-size: 10px;
        color: #444;
    }

    .contdiv {
        font-size: 12px;
        height: auto;
        border-radius: 5px;
        display: flex;
        align-items: center; /* Vertically align the items */
        margin-top: 2px; /* Adds 10px space above the contdiv block */
        margin-bottom: 0px;
        background-color: #f0f4f7;
        width: 100%; /* Ensure the container takes up the full width */
        box-sizing: border-box;
        padding: 0px;
    }

    .artl-author {
        padding: 5px;
        color: #444;
    }

    .artl-article_date {
        padding: 5px;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 5px;
        justify-content: flex-start; /* Align the content to the left */
    }

    .artl-creation_date {
        color: #444;
    }

    .artl-article_name {
        color: #1160b5;
        text-decoration: none;
        padding-left: 20px; /* Adds padding to the left of the creation date */
    }

    .artl-link {
        color: #1160b5;
        text-decoration: none;
    }

    .back-link {
        margin-top: 10px;
        font-size: 13px;
        padding-top: 30px;
    }

        .back-link a {
            color: blue; /* Sets the color to blue */
            text-decoration: underline; /* Adds the underline */
        }

    .category-container {
        margin-bottom: 10px; /* Weniger Abstand zur nächsten Kategorie */
        padding: 0; /* Entfernt jeglichen inneren Abstand */
        background-color: #f0f0f0;
        border-radius: 10px;
    }

        .category-container h2 {
            font-size: 0.75rem; /* Kleinere Schriftgröße */
            background: linear-gradient(to bottom, #2b6bb5, #a6b8cc);
            color: white; /* Schriftfarbe für besseren Kontrast */
            padding: 5px;
            margin: 0; /* Entfernt jeglichen äußeren Abstand */
            border-radius: 5px;
        }

    .board {
        display: flex;
        align-items: stretch; /* Sorgt dafür, dass alle Kinder die gleiche Höhe haben */
        margin-top: 2px;
        margin-bottom: 0px;
        padding: 0; /* Entfernt inneren Abstand */
        border: none; /* Falls ein Rand den Eindruck von Abstand erweckt */
        background-color: #f0f4f7;
        width: 100%; /* Stellt sicher, dass die Breite immer 100% des Containers ist */
        box-sizing: border-box; /* Schließt Padding und Border in die Gesamtbreite ein */
        overflow: hidden; /* Verhindert das Überlaufen von Inhalt */
    }

        .board > div {
            flex-shrink: 0; /* Verhindert, dass die Divs kleiner als ihre angegebene Breite werden */
        }

    .board-image, .board-name, .article-count, .author-info {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .board-image {
        width: 31px;
        background-color: rgb(219, 226, 236);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .board-image img {
            width: 20px;
            height: 20px;
            padding-left: 2px;
            align-content: center;
        }

    .board-name {
        width: 43%;
        padding-left: 7px;
        background-color: #f0f4f7;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .board-id {
        margin: 0;
        padding: 0 0 0 0;
        color: #291e79;
        text-decoration: none;
        font-size: 10px;
        font-weight: normal;
    }

    .board-description {
        margin: 0;
        font-size: 7px;
        color: #444;
    }

    .article-count {
        width: 12%;
        color: #090039;
        background-color: rgb(219, 226, 236);
        font-size: 0.4rem;
        padding-left: 0px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .author-info {
        color: #444;
        background-color: #f0f4f7;
        padding-left: 7px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        flex: 1;
    }

        .author-info p {
            margin: 0;
            padding: 0;
        }

    .article-name {
        color: #2e3675;
        text-decoration: none;
    }

    .article-link {
        color: #2e3675;
        text-decoration: none;
    }

    .article-name:hover {
        text-decoration: none;
    }
}
