﻿#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none; /* Initially hidden */
    opacity: 0; /* Initially fully transparent */
    transition: opacity 0.5s ease; /* Transition effect for opacity */
}

    #overlay.show {
        display: block;
        opacity: 1; /* Fully opaque */
    }

.overlay-content {
    position: relative;
    z-index: 9999;
    border: 4px solid deepskyblue !important;
}

.message-div-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: fixed;
    font-size: large;
    border: 1px solid #001020ef;
    background: linear-gradient(45deg, #00A0E0, #007FBE);
    border-radius: 5px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 90%; /* Ensure it doesn't exceed the viewport width */
    color: white;
    text-shadow: 0.5px 0.5px #0000008f;
    text-align: center;
    padding: 10px;
    z-index: 10000; /* Ensure it is above other content */
    animation: slideInFromTop 0.9s ease-out; /* Apply the animation */
}

.message-div-center {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: fixed;
    font-size: large;
    border: 1px solid #001020ef;
    background: linear-gradient(45deg, #00A0E0, #007FBE);
    border-radius: 5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90%; /* Ensure it doesn't exceed the viewport width */
    color: white;
    text-shadow: 0.5px 0.5px #0000008f;
    text-align: center;
    padding: 10px; /* Add some padding to ensure content is not clipped */
    z-index: 10000; /* Ensure it is above other content */
    animation: zoomInFadeIn 0.9s ease-out; /* Apply the animation */
}


.message-div-bottom {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: fixed;
    font-size: large;
    border: 1px solid #001020ef;
    background: linear-gradient(45deg, #00A0E0, #007FBE);
    border-radius: 5px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 90%; /* Ensure it doesn't exceed the viewport width */
    color: white;
    text-shadow: 0.5px 0.5px #0000008f;
    text-align: center;
    padding: 10px;
    z-index: 10000; /* Ensure it is above other content */
    animation: slideInFromBottom 0.9s ease-out; /* Apply the animation */
}

@keyframes slideInFromTop {
    from {
        transform: translate(-50%, -100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translate(-50%, 100%);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

@keyframes zoomInFadeIn {
    0% {
        /*transform: scale(0.5) translate(-50%, -50%);*/
        opacity: 0;
    }

    100% {
        /*transform: scale(1) translate(-50%, -50%);*/
        opacity: 1;
    }
}


.message-text {
    flex: 1;
    padding-right: 10px;
}

.countdown {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: conic-gradient(#108FCE 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

    .countdown::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 25px;
        height: 25px;
        transform: translate(-50%, -50%);
        background: #209FDE;
        border-radius: 50%;
    }

.countdown-number {
    position: absolute;
    font-size:small;
}