/* home page */

#home_page_content{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--website-width);
}

.home_page_section_title{
    width: min(250px, 80vw);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid var(--light-border-color);
    border-radius: .5rem;
    background-color: var(--light-background-color-white);
    text-align: center;
}

#component_boxes{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.component_box{
    flex: 1;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.component_box_main_part{
    padding: 1rem;
    border-top: 1px solid var(--light-border-color);
    border-left: 1px solid var(--light-border-color);
    border-right: 1px solid var(--light-border-color);
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    background-color: var(--light-background-color-white);
}

.component_box_main_part:hover{
    background-color: var(--light-background-color-grey);
}

.component_box_title{
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

.component_box_description{
    margin-top: 0.5rem;
    text-align: center;
    text-wrap: balance;
}

.component_box_languages{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem;
    border-top: 1px solid var(--light-border-color);
    border-bottom: 1px solid var(--light-border-color);
    border-left: 1px solid var(--light-border-color);
    border-right: 1px solid var(--light-border-color);
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    font-size: 0.95rem;
    background-color: var(--light-background-color-white);
}

.component_box_language{
    margin-left: .3rem;
    margin-right: .3rem;
    white-space: nowrap;
}

@media screen and (max-width: 900px){
    #component_boxes{
        flex-direction: column;
        align-items: stretch;
    }
    
    .component_box{
        margin-left: 0;
        margin-right: 0;
    }

    .component_box:not(:last-child){
        margin-bottom: 1rem;
    }
}

#news_box{
    display: flex;
    flex-direction: column;
    max-width: 900px;
    border: 1px solid var(--light-border-color);
    border-radius: .5rem;
    background-color: var(--light-background-color-white);
}

.news_box_title{
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

#news_box_newsletter{
    max-width: 900px;
    padding: 1rem;
    border-top: 1px solid var(--light-border-color);
}

#news_box_newsletter_content{
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.news_box_newsletter_line{
    text-wrap: balance;
}

.news_box_newsletter_line:not(:first-child){
    margin-top: 0.25rem;
}

#news_box_newsletter_email{
    text-align: center;
}

#news_box_blog_and_changelog{
    display: flex;
    flex-direction: row;
}

#news_box_blog, #news_box_changelog{
    padding: 1rem;
}

#news_box_blog{
    flex: 0.5;
    border-right: 1px solid var(--light-border-color);
}

#news_box_changelog{
    flex: 1;
}

.news_box_bottom_link{
    margin-top: 1rem;
    text-align: end;
}

/* visuals content */

#visuals_content h2{
    text-align: center;
}

#visuals_content .visuals_sticker_line{
    display: flex;
    flex-direction: row;
}

#visuals_content .visuals_sticker_line_sticker{
    flex: 1;
}

#visuals_content .visuals_sticker_line_sticker:first-child{
    margin-right: 2rem;
}

#visuals_content .visuals_sticker_line_sticker_image{
    max-height: min(60vh, 600px);
}

#visuals_content .visuals_sticker_line_sticker_caption{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#visuals_content .visuals_sticker_line_sticker_language{
    margin-left: .3rem;
    margin-right: .3rem;
    white-space: nowrap;
}

#visuals_content .visuals_logo{
    max-height: min(30vh, 200px);
}

/* blog */

.blog_translation_header{
    display: flex;
    flex-direction: column;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-bottom: var(--default-paragraph-spacing);
    border: 1px solid var(--light-border-color);
    border-radius: .5rem;
    line-height: var(--small-line-height);
    font-size: 0.95rem;
}

.blog_translation_header_categories{
    padding: .75rem;
}

.blog_translation_header_category{
    display: flex;
    flex-direction: row;
    margin-top: 0.2rem;
}

.blog_translation_header_history{
    padding: .75rem;
    border-top: 1px solid var(--light-border-color);
}

.blog_read_more_link{
    margin-top: 0.5rem;
    line-height: var(--small-line-height);
    font-size: 0.95rem;
    text-align: end;
}

/* surveillance archive page */

#surveillance_archive_address{
    text-align: center;
}
