/* CSS cho popup overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Màu đen làm mờ (opacity 0.7) */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

/* CSS cho container popup */
.popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

/* CSS cho nội dung popup */
.popup-content {
    position: relative;
    background: none;
    text-align: center;
    padding: 10px;
}

.popup-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* CSS cho chữ "CHẠM ĐỂ TẮT" */
.touch {
    color: #ffffff; /* Màu trắng */
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Hiệu ứng chuyển màu và sáng */
}

.touch:hover {
    color: #ffffff; /* Giữ màu trắng */
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff; /* Hiệu ứng glow khi hover */
}

/* Responsive design */
@media (max-width: 600px) {
    .popup-container {
        max-width: 95%;
    }
    .touch {
        font-size: 14px;
    }
}