#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.82);
    z-index: 10000;
    display: none;
}

.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 400px;
    height: 300px;
    z-index: 10001;
    display: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    position: relative;
}

.popup-message {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #ff0000;
    text-align: center;
}

.register-button {
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-size: 16px;
    padding: 10px 20px;
}

.register-button:hover {
    background-color: #cc0000;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border: 0.1px solid #fff;
    cursor: pointer;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

@keyframes slideIn {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translate(-50%, -50%); opacity: 1; }
    to { transform: translate(-50%, -60%); opacity: 0; }
}