body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    margin: 0;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-btn {
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lang-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.lang-btn .fa-globe {
    font-size: 16px;
}

.lang-btn .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lang-btn:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: bold;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-menu::-webkit-scrollbar {
    width: 6px;
}

.lang-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.lang-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.lang-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: #e3f2fd;
    color: #3498db;
    font-weight: 600;
}

.lang-option .flag {
    font-size: 20px;
}
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.usps {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.usps-table {
    border-collapse: collapse;
    margin: 0 auto;
}

.usps-table tr {
    height: 40px;
}

.usps-table td {
    font-size: 16px;
    color: #555;
    padding: 5px;
    vertical-align: middle;
}

.usps-table td.usp-icon {
    font-size: 20px;
    width: 40px;
    text-align: center;
    padding-right: 15px;
}

/* How it works table */
.how-it-works-table {
    border-collapse: collapse;
    margin: 20px auto;
    width: auto;
    max-width: 800px;
}

.how-it-works-table tr {
    height: 40px;
}

.how-it-works-table td {
    font-size: 16px;
    color: #555;
    padding: 8px;
    vertical-align: top;
    text-align: left;
}

.how-it-works-table td.step-number {
    font-weight: bold;
    color: #555;
    width: 40px;
    text-align: right;
    padding-right: 15px;
}

/* Why use this tool table */
.why-use-table {
    border-collapse: collapse;
    margin: 20px auto;
    width: auto;
    max-width: 800px;
}

.why-use-table tr {
    height: 40px;
}

.why-use-table td {
    font-size: 16px;
    color: #555;
    padding: 8px;
    vertical-align: middle;
    text-align: left;
}

.why-use-table td.checkmark {
    font-size: 20px;
    color: #2ecc71;
    font-weight: bold;
    width: 40px;
    text-align: center;
    padding-right: 15px;
}

/* Section spacing */
section {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

section h2, section h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Collapsible headers */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.collapsible-header:hover {
    color: #3498db;
}

.collapse-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.collapsible-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* License section */
.license-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.license-section h3 {
    margin: 0;
    color: white;
}

.license-section .license-name {
    margin: 5px 0;
    font-size: 0.85em;
    opacity: 0.9;
}

.license-section .logout-link {
    margin: 5px 0;
}

.license-section .logout-link a {
    color: #ffd700;
    text-decoration: none;
}

/* Hidden elements */
#videoInput {
    display: none;
}

#fileInfo {
    display: none;
}

#videoContainer {
    display: none;
}

#frameContainer {
    display: none;
}

#downloadContainer {
    display: none;
}

#adBottomContainer {
    display: none;
}

.hidden {
    display: none;
}

/* Buttons with specific styles */
#extractButton {
    margin-top: 25px;
    background-color: #28a745;
    font-size: 18px;
    padding: 15px 40px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

#extractButton:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.4);
}

#extractButton:disabled {
    background-color: #bdc3c7;
    box-shadow: none;
    transform: none;
}

#downloadButton {
    background-color: #28a745;
    font-size: 16px;
    padding: 15px 35px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

#downloadButton:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.4);
}

#downloadAllButton {
    background-color: #28a745;
    font-size: 16px;
    padding: 15px 35px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    margin-left: 10px;
}

#downloadAllButton:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.4);
}

.btn.btn-premium {
    background-color: #28a745 !important;
    color: white;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    padding: 15px 50px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    line-height: normal;
}

.btn.btn-premium:hover {
    background-color: #218838 !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(40, 167, 69, 0.5);
}

/* Redeem code link section */
.redeem-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.redeem-section a {
    font-size: 0.9em;
}

/* More Tools Section - Simple Style */
.more-tools-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.more-tools-section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: normal;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 30px;
}

.tools-list a {
    color: #666;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.tools-list a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Drag & Drop Styles */
.drop-zone {
    position: relative;
    border: 3px dashed rgba(0, 123, 255, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(0, 123, 255, 0.02);
    transition: all 0.3s ease;
    margin: 20px 0;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.drop-zone.drag-over {
    border-color: #28a745;
    background-color: #f0fff0;
    transform: scale(1.02);
}

.drop-zone-content h3 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 1.4rem;
}

.drop-zone-content p {
    margin: 10px 0;
    color: #666;
    font-size: 1rem;
}

.drop-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 10px;
}

.supported-formats {
    font-size: 0.85rem;
    color: #888;
    margin-top: 25px !important;
    padding-top: 5px;
}

.drop-zone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.9);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

.drop-zone.drag-over .drop-zone-overlay {
    display: flex;
}

.drop-zone-message {
    text-align: center;
}

.drop-zone-message i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.drop-zone-message h3 {
    margin: 0;
    font-size: 1.5rem;
}

.file-selected {
    display: flex;
    align-items: center;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.file-selected i {
    color: #28a745;
    font-size: 1.5rem;
    margin-right: 10px;
}

.file-selected span {
    flex: 1;
    font-weight: bold;
    color: #333;
}

.clear-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.clear-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Hide drop zone when file is selected */
.file-selected-state .drop-zone {
    display: none;
}
#videoContainer, #frameContainer, #downloadContainer {
    margin-top: 20px;
}

#videoContainer {
    display: none;
    flex-direction: column;
    align-items: center;
}

#frameContainer {
    text-align: center;
}

#frameContainer h2,
#frameContainer p {
    text-align: center;
}

#downloadContainer {
    text-align: center;
    margin-top: 30px;
}

#videoPlayer {
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
}
.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #2980b9;
}
.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}
.slider-for, .slider-nav {
    margin-top: 20px;
}

.slider-for .slick-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.slider-for .frame-wrapper {
    position: relative;
    display: inline-block;
}

.slider-for img{
    max-height: 550px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 5px;
}

.slider-nav img {
    max-height: 200px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.slider-nav .slick-current {
    opacity: 1;
}
.slick-prev, .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    z-index: 1;
}

/* Style for slider-for (main image) arrows only */
.slider-for .slick-prev,
.slider-for .slick-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-for .slick-prev:hover,
.slider-for .slick-next:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translate(0, -50%) scale(1.1);
}

.slider-for .slick-prev {
    left: 30px;
}

.slider-for .slick-next {
    right: 30px;
}

.slider-for .slick-prev:before,
.slider-for .slick-next:before {
    color: #2c3e50;
    font-size: 24px;
}
.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    opacity: .75;
    color: #2c3e50;
    -webkit-font-smoothing: antialiased;
}
.slick-prev:before {
    content: '\f104';
}
.slick-next:before {
    content: '\f105';
}
.frame-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 28px;
    height: 28px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.9);
    border: 3px solid #2ecc71;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.frame-checkbox:hover {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: #27ae60;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.frame-checkbox:checked {
    background-color: #2ecc71;
    border-color: #27ae60;
}

.frame-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.slider-nav .slick-slide {
    position: relative;
    margin: 0 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #2ecc71;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Ensure it doesn't interfere with clicks */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-nav .slick-slide.frame-selected .thumbnail-checkmark {
    opacity: 1;
}

.thumbnail-checkmark.visible {
    opacity: 1;
}
#loadingSpinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.feedback-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 10px;
    color: #6c757d;
    font-size: 0.9em;
}

.feedback-description {
    margin-bottom: 10px;
}

.feedback-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feedback-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 10px;
        padding-top: 60px; /* Make room for language selector */
    }
    
    /* Language selector mobile styles */
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .lang-menu {
        max-height: 300px;
        min-width: 160px;
    }
    
    .lang-option {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Download buttons responsive */
    .btn.btn-premium {
        font-size: 14px;
        padding: 15px 0px;
        white-space: normal;
        line-height: 1.4;
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    #downloadButton,
    #downloadAllButton {
        font-size: 14px;
        padding: 15px 10px;
        margin-left: 0;
    }
    
    .slider-nav .slick-slide {
        margin: 0 2px;
    }
    .slick-prev {
        left: -15px;
    }
    .slick-next {
        right: -15px;
    }
    
    /* More tools responsive */
    .tools-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Drop zone responsive */
    .drop-zone {
        padding: 30px 15px;
    }
    
    .drop-zone-content h3 {
        font-size: 1.2rem;
    }
    
    .drop-icon {
        font-size: 2.5rem;
    }
}

/* Top ads - 2 columns */
.ad-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.ad-column {
    flex: 1;
    min-width: 300px;
}

/* Bottom ads - full width */
.bottom-ad {
    display: block;
    margin: 20px 0;
}

.ad-column-full {
    width: 100%;
    margin-bottom:20px;
}

/* Shared styles */
.ad-banner-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    overflow: hidden;
    /*aspect-ratio: 16/9;*/
}

.ad-banner {
    width: 100%;
    height: 100%;
}

.affiliate-link {
    display: block;
    width: 100%;
    height: 100%;
}

.affiliate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ad-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .ad-column, .ad-column-full {
        width: 100%;
    }
    
    .bottom-ad {
        margin: 10px 0;
    }
}