/* announce.css */
#announceOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    z-index: 99998;
    cursor: default;
}

.announce-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 540px;
    max-width: calc(100% - 40px);
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    padding: 28px 28px;
    border-radius: 12px;
    text-align: center;
    display: none;
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 99999;
    box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.announce-box.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* colour accents via a top border */
.announce-box.info { border-top: 10px solid #2196F3; }
.announce-box.warning { border-top: 10px solid #FFC107; }
.announce-box.error { border-top: 10px solid #F44336; }

#announceTitle {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #222;
}

#announceMessage {
    font-size: 18px;
    color: #111;
    line-height: 1.4;
    margin-bottom: 18px;
}

/* Hide button */
#announceHideBtn {
    padding: 10px 18px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
#announceHideBtn:hover { opacity: 0.95; }

/* ensure button doesn't wrap weirdly on small screens */
@media (max-width: 600px) {
    .announce-box { padding: 18px; }
    #announceTitle { font-size: 18px; }
    #announceMessage { font-size: 16px; }
}
