/* ==========================================
   POPUP STYLES - Gaya Popup & Modal
   ========================================== */

/* Base Popup Container */
.popup-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

/* Popup Body */
.popup-body {
    background-color: #2a2a2a;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #444;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Popup Container Demo */
.popup-container-demo {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.container-demo {
    width: 95%;
    height: 90%;
    background-color: #1a1a1a;
    margin: 5% auto;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header & Footer Demo */
.header-demo,
.footer-demo {
    background-color: #2a2a2a;
    padding: 15px;
    border-bottom: 1px solid #444;
}

.footer-demo {
    border-bottom: none;
    border-top: 1px solid #444;
}

/* IFrame Demo */
.iframe-demo {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

/* Popup Close Button */
.popup-close {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    color: #999;
    font-size: 24px;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #fff;
}

/* Popup Header */
.popup-header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup Content */
.popup-content {
    padding: 15px;
    color: #ddd;
    line-height: 1.6;
}

/* Popup Buttons */
.popip-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.bg-black-button {
    background-color: #333;
    color: #fff;
}

.bg-black-button:hover {
    background-color: #444;
}

.bg-blue-button {
    background-color: #0066cc;
    color: #fff;
}

.bg-blue-button:hover {
    background-color: #0052a3;
}

/* Popup ADS */
.popup-body-ads-yt {
    width: 95%;
    max-width: 400px;
    height: 300px;
    background-color: #1a1a1a;
    overflow: hidden;
}

/* Button Primary in Popup */
.btn-popup-demoplay {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-popup-demoplay:hover {
    background-color: #0052a3;
}

/* Left & Right Column Helper */
.left {
    text-align: left;
}

.right {
    text-align: right;
}

/* Slider Text Inside Popup */
.slideshow-containerText {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.mySlidesText {
    display: none;
    padding: 20px;
    text-align: center;
    color: #ddd;
}

.mySlidesText.active {
    display: block;
}

.sliderTextTitle {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.prevText,
.nextText {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
}

.prevText:hover,
.nextText:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prevText {
    left: 0;
}

.nextText {
    right: 0;
}
