/* style the announcement banner */
.phpbb_announcement {
    font-size: 0.85rem;
    background-color: #ecd5d8; /* default color */
    border-radius: 7px;
    position: relative;
    margin: 10px 0;
    padding: 10px;
    display: flex;             /* make this element a flex container */
    align-items: center;       /* center children vertically */
    justify-content: center;   /* center children horizontally */
}

/* zero out any text margins and scroll any overflow */
.phpbb_announcement div {
    font-size: 0.75rem;
    line-height: 1.25rem;
    overflow: auto hidden;
    margin: 0;
}

/* make posted images responsive */
.phpbb_announcement .postimage {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    max-width: 100%;
}

/* style the close button */
.phpbb_announcement .close {
    opacity: 0.6;
    position: absolute;
    z-index: 999;
    top: 4px;
    right: 4px;
    left: auto;
}

/* reposition close button for right-to-left languages */
.rtl .phpbb_announcement .close {
    right: auto;
    left: 4px;
}

/* hide close button on desktops by default */
.notouch .phpbb_announcement .close {
    opacity: 0;
    transition: opacity 0.5s;
}

/* display the close button on mouse-over of the banner */
.notouch .phpbb_announcement:hover .close {
    opacity: 0.6;
}

/* fix for lists, force them to display inside containing div */
.phpbb_announcement ul,
.phpbb_announcement ol {
    margin-left: 20px;
}

.rtl .phpbb_announcement ul,
.rtl .phpbb_announcement ol {
    margin-right: 20px;
    margin-left: 0;
}
