/* === Artikel_data.css - Focused on Article Styling Only === */


/* Specific types of card-blocks could be customized if you want later */
.card-block[data-type="article-title"] {
    font-size: 1.8em;
    font-weight: bold;
    background-color: #f8f8f8;
}

.card-block[data-type="summary"] {
    font-style: italic;
    background-color: #fefefe;
}

.card-block[data-type="text"] {
    background-color: #ffffff;
}

.card-block[data-type="source"] {
    font-size: 0.9em;
    color: gray;
}

.card-block[data-type="comment"] {
    background-color: #fcfcfc;
}




/* Main Article Layout */
.artMain {
    width: 80%;
    padding: 10px;
}

#artTitle {
    width: 100%;
    background-color: var(--color-bg-accent);
    padding: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}


/* Image with Text */
.image-with-text {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.image-with-text img {
    max-height: 200px;
    width: 40%;
    cursor: pointer;
}

.image-with-text p {
    flex: 1;
    word-wrap: break-word;
}

/* Full-width image variant */
.image-with-text.full-width {
    flex-direction: column;
}

.image-with-text.full-width img {
    width: 100%;
    max-height: none;
}

/* Special Tags */
person {
    font-style: italic;
    color: green;
}

.ana::after {
    content: " [ana]";
}


/* Subtitle Element */
subtitle {
    font-size: 1rem;
    font-weight: bold;
}


.image-with-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.image-with-text img {
    flex: 0 0 40%;
    max-height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.image-with-text p {
    flex: 1 1 auto;
    word-wrap: break-word;
}

@media (max-width: 700px) {
    .image-with-text {
        flex-direction: column;
    }

    .image-with-text img {
        width: 100%;
        max-height: none;
    }
}



/* The outer wrapper for an article */
.article-card {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* The div holding all card-blocks */
.articleMainDiv {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



