
.video-container {
    position: relative;
    width: 1280px;  /* Chiều rộng gốc */
    height: 850px; /* Chiều cao gốc */
    overflow: hidden;
}
.image-container {
    max-width: 100%;
    white-space: nowrap; /* Giữ các phần tử trên cùng một hàng */
    display: flex;
    overflow-x: auto; /* Bật thanh cuộn ngang khi cần */
    gap: 10px;
    padding: 10px;
    scrollbar-width: thin; /* Hiển thị thanh cuộn nhỏ trên Firefox */
    scrollbar-color: #666 #222; /* Màu thanh cuộn trên Firefox */
}

.image-container::-webkit-scrollbar {
    height: 8px; /* Chiều cao thanh cuộn */
}

.image-container::-webkit-scrollbar-thumb {
    background-color: #666; /* Màu thanh trượt */
    border-radius: 4px;
}

.image-container::-webkit-scrollbar-track {
    background: #222; /* Màu nền thanh cuộn */
}

.image-container img {
    height: 150px;
    flex-shrink: 0; /* Ngăn ảnh bị thu nhỏ */
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.image-container img:hover {
    transform: scale(1.1);
}
.image-container.selected {
    border: 3px solid #00ff62; /* Màu viền nổi bật */
    box-shadow: 0 0 10px rgba(0, 255, 76, 0.6); /* Hiệu ứng phát sáng */
}
.selected {
    border: 3px solid #ff8000; /* Màu viền nổi bật */
    box-shadow: 0 0 10px rgba(255, 123, 0, 0.6); /* Hiệu ứng phát sáng */
}
.selected-container {
    text-align: center;
    margin-bottom: 20px;
}
.selected-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    border: 4px solid white;
}
.button-container button:hover {
    transform: scale(1.1);
}
@keyframes glow {
    0% { box-shadow: 0 0 10px #ffffff; }
    50% { box-shadow: 0 0 20px #ffffff; }
    100% { box-shadow: 0 0 10px #ffffff; }
}
.hover\:shadow-glow:hover {
    animation: glow 1s infinite alternate;
}

.folders-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    white-space: nowrap;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid #444;
}

.folder-item {
    flex-shrink: 0;
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.folder-item.selected {
    border: 3px solid #00ffcc; /* Màu viền nổi bật */
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.6); /* Hiệu ứng phát sáng */
}
.folder-item:hover {
    transform: scale(1.05);
}

.folder-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.folder-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33%; /* Chiếm 1/3 chiều cao của item */
    background: rgba(0, 0, 0, 0.6); /* Nền mờ */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.folders-container::-webkit-scrollbar {
    height: 8px; /* Đặt chiều cao thanh cuộn */
}

.folders-container::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 4px;
}

.folders-container::-webkit-scrollbar-track {
    background: #222;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(45deg, #111, #222);
    display: flex;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
}

.marquee-content {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #00ffcc, 0 0 30px #00ffcc;
    animation: marquee 10s linear infinite;
    padding-right: 50px;
}

@keyframes marquee {
    0% { transform: translateX(300%); }
    100% { transform: translateX(-100%); }
}

.title-page {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #66ffcc, 0 0 15px #66e3ff;
    animation: glow 2s ease-in-out infinite alternate, slideIn 1.5s ease-in;
}

/* Hiệu ứng Neon Glow */
@keyframes glow {
    0% { text-shadow: 0 0 10px #ffffff, 0 0 20px #00ffcc, 0 0 30px #00ffcc; }
    100% { text-shadow: 0 0 20px #ffffff, 0 0 30px #00ffff, 0 0 40px #00ffff; }
}

@keyframes glowPink {
    0% { text-shadow: 0 0 10px #ffffff, 0 0 20px #ff66ff, 0 0 30px #ff66ff; }
    100% { text-shadow: 0 0 20px #ffffff, 0 0 30px #ff33ff, 0 0 40px #ff33ff; }
}

/* Hiệu ứng xuất hiện dần */
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hiệu ứng chữ trượt từ dưới lên */
@keyframes slideIn {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Nền gradient chạy */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

/* Hiệu ứng chính cho tiêu đề lớn */
.title-main {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #00d0ff, 0 0 30px #00ddff;
    animation: glow 2s ease-in-out infinite alternate, fadeIn 2s ease-in;
}

/* Hiệu ứng cho tiêu đề phụ */
.title-sub {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ff66ff, 0 0 15px #ff66ff;
    animation: glowPink 2s ease-in-out infinite alternate, slideIn 1.5s ease-in;
}

.title-sub-small {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ff66ff, 0 0 15px #ff66ff;
    animation: glowPink 2s ease-in-out infinite alternate, slideIn 1.5s ease-in;
}

/* Hiệu ứng Neon Glow */
@keyframes glow {
    0% { text-shadow: 0 0 10px #ffffff, 0 0 20px #00ffcc, 0 0 30px #00ffcc; }
    100% { text-shadow: 0 0 20px #ffffff, 0 0 30px #00ffff, 0 0 40px #00ffff; }
}

@keyframes glowPink {
    0% { text-shadow: 0 0 10px #ffffff, 0 0 20px #ff66ff, 0 0 30px #ff66ff; }
    100% { text-shadow: 0 0 20px #ffffff, 0 0 30px #ff33ff, 0 0 40px #ff33ff; }
}

/* Hiệu ứng xuất hiện dần */
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hiệu ứng chữ trượt từ dưới lên */
@keyframes slideIn {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

textPath {
    animation: moveText 5s linear infinite;
}

@keyframes moveText {
    from { startOffset: 100%; }
    to { startOffset: 0%; }
}

.design-by {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: transparent; /* Xóa nền */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

canvas {
    user-select: auto;
    pointer-events: auto !important;
}

.slider-Canvas {
    position: relative;
    border: 2px solid #ccc;
    cursor: ew-resize;
}

/* CSS cho overlay loading screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Spinner animation */
.spinner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 6px solid #ffffff;
    border-top-color: #3498db;
    animation: spinner 3s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Text dưới spinner */
.loading-text {
    position: absolute;
    color: white;
    margin-top: 100px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Chặn scroll trên body khi đang loading */
body.loading-active {
    overflow: hidden;
}
.modern-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #12ad6f, #09656c);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(171, 237, 247, 0.4);
    outline: none;
    position: relative;  /* Giữ lại chỉ một position */
    overflow: hidden;
}

.modern-button:hover {
    will-change: transform;
    background: linear-gradient(45deg, #61a277, #40a85f);
    box-shadow: 0 6px 20px rgba(247, 248, 247, 0.6);
    outline: 2px solid #fce301;
    animation: pulse-click 1.5s infinite;
}

.modern-button:active {
    animation: pulse-click 2s infinite;
}
.button-active {
    animation: pulse 2s infinite;
}

.modern-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0;
}
.container {
    padding: 20px; /* Tăng padding tránh giãn */
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.88);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes pulse-click {
    0% {
        box-shadow: 0 0 0 0 rgb(255, 228, 20);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.drag-highlight {
    border: 3px dashed #60a5fa !important;
    background-color: rgba(37, 99, 235, 0.1) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5) !important;
    transition: all 0.3s ease;
}

.drag-over-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background-color: rgba(37, 99, 235, 0.6);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    z-index: 10;
    pointer-events: none;
}

/* Pulse animation for drop indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* File upload icons */
.upload-icon {
    transition: all 0.3s ease;
}

.drag-active .upload-icon {
    transform: scale(1.2);
    color: #60a5fa;
}


