.kp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.kp-popup-overlay.show {
    opacity: 1;
}

.kp-popup-box {
    background: var(--secbackground-color);
	box-shadow: 2px 2px 5px var(--shadowcolor);
    padding: 30px;
    width: 95%; 
    max-width: 600px; 
    box-sizing: border-box;
    position: relative;
    margin: 15vh auto;
}

@media (max-width: 768px) {
    .kp-popup-box {
        margin: 1vh auto;
        padding: 10px;
    }
	.kp-popup-box p {
		font-size:1.1em;
	}
}

.kp-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #444;
    transition: color 0.2s;
}

.kp-popup-close:hover {
    color: var(--btncolor);
}