* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Overlay styling */
#sitewide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.required-text {
    color: orange;
    margin-left: 4px;
}

#sitewide-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    background: linear-gradient(135deg, white 0%, #2c3e50 100%);
    max-width: 90%;
    width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.overlay-content h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    text-align: center;
    margin: 0px 0 15px; /* Reduced top margin */
    color: black;
    font-size: 1.0rem;
    font-style: normal;
}

.overlay-content p {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Countdown animation */
.countdown {
    height: 6px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    width: 100%;
    background-color: #fff;
    animation: countdown 10s linear forwards;
}

@keyframes countdown {
    0% { width: 100%; }
    100% { width: 0%; }
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }
    
    .overlay-content {
        padding: 25px;
    }
    
    .overlay-content h2 {
        font-size: 1.5rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
}
