/* =========================================
   Islamic Light - Announcement Bar
   ========================================= */


/* -----------------------------------------
   Main Announcement Bar
   ----------------------------------------- */

.announcement-bar {
    width: 100%;
    height: 42px;

    display: flex;
    align-items: center;

    background: #004d40;
    color: #ffffff;

    overflow: hidden;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    box-sizing: border-box;
}


/* -----------------------------------------
   Announcement Icon
   ----------------------------------------- */

.announcement-icon {
    flex: 0 0 auto;

    width: 48px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.15);

    font-size: 18px;

    z-index: 2;

    box-sizing: border-box;
}


/* -----------------------------------------
   Scrolling Area
   ----------------------------------------- */

.announcement-wrapper {
    flex: 1;

    height: 100%;

    overflow: hidden;

    display: flex;
    align-items: center;

    white-space: nowrap;

    box-sizing: border-box;
}


/* -----------------------------------------
   Scrolling Track
   ----------------------------------------- */

.announcement-track {
    display: inline-flex;
    align-items: center;

    width: max-content;

    padding-left: 100%;

    animation: announcement-scroll 28s linear infinite;

    will-change: transform;
}


/* -----------------------------------------
   Clickable Announcement Links
   ----------------------------------------- */

.announcement-item {
    display: inline-flex;
    align-items: center;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    line-height: 42px;

    padding: 0 14px;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        text-decoration 0.2s ease;

    box-sizing: border-box;
}


/* -----------------------------------------
   Link Hover
   ----------------------------------------- */

.announcement-item:hover {
    color: #ffffff;

    opacity: 0.8;

    text-decoration: underline;
}


/* -----------------------------------------
   Separator
   ----------------------------------------- */

.announcement-separator {
    display: inline-flex;
    align-items: center;

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;

    user-select: none;
}


/* -----------------------------------------
   Right → Left Animation
   ----------------------------------------- */

@keyframes announcement-scroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }

}


/* -----------------------------------------
   Pause Animation on Hover
   ----------------------------------------- */

.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}


/* -----------------------------------------
   Mobile Devices
   ----------------------------------------- */

@media (max-width: 600px) {

    .announcement-bar {
        height: 40px;
    }


    .announcement-icon {
        width: 42px;

        font-size: 16px;
    }


    .announcement-item {
        font-size: 13px;

        line-height: 40px;

        padding: 0 10px;
    }


    .announcement-separator {
        font-size: 12px;
    }


    .announcement-track {
        animation-duration: 28s;
    }

}


/* -----------------------------------------
   Very Small Screens
   ----------------------------------------- */

@media (max-width: 380px) {

    .announcement-bar {
        height: 38px;
    }


    .announcement-icon {
        width: 38px;

        font-size: 15px;
    }


    .announcement-item {
        font-size: 12px;

        line-height: 38px;

        padding: 0 8px;
    }


    .announcement-separator {
        font-size: 11px;
    }


    .announcement-track {
        animation-duration: 26s;
    }

}
