/* Dark Mode Styling */
body {
    background-color: #121212;
    color: #f1f1f1;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
*, *::before, *::after {
    box-sizing: border-box;
}
/* Container für das Header-Layout */
.header-container {
    display: flex;
    justify-content: center; /* Zentriert den gesamten Inhalt */
    align-items: center;
    padding: 20px;
    background-color: #2a2a2a; /* Hintergrundfarbe für den Header */
}

.header-content {
    display: flex;
    align-items: center; /* Zentriert die Icon-Text-Reihe vertikal */
}

.header-text {
    margin-left: 20px; /* Abstand zwischen Icon und Text */
    color: #fff; /* Weißer Text */
    text-align: left;
}

.header-text h1 {
    font-size: 36px; /* Große Schriftgröße für den Titel */
    margin: 0;
}

.header-text p {
    font-size: 18px; /* Kleinere Schriftgröße für den Untertitel */
    margin: 5px 0 0 0;
}

.header-icon {
    font-size: 80px; /* Größe des Icons */
    color: #ffc107; /* Gelbe Farbe für das Icon */
}

/* Allgemeine Link-Styling */
a {
    color: #ffc107; /* Goldgelb */
    text-decoration: none; /* Entfernt die Standard-Unterstreichung */
    font-weight: bold;
    position: relative; /* Für den Effekt erforderlich */
    transition: color 0.3s ease;
}

/* Hover-Effekt für den Link */
a::after {
    content: ''; /* Virtuelles Element für die Unterstreichung */
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #feca57); /* Farbverlauf */
    bottom: 0;
    left: 0;
    transform: scaleX(0); /* Unsichtbar */
    transition: transform 0.3s ease;
    transform-origin: right; /* Beginnt von rechts nach links */
}

/* Hover-Zustand: Farbe und animierte Unterstreichung */
a:hover {
    color: #ff6b6b; /* Ändert die Textfarbe beim Hover */
}

a:hover::after {
    transform: scaleX(1); /* Unterstreichung wird sichtbar */
    transform-origin: left; /* Animation von links nach rechts */
}


.icon-container {
    font-size: 60px;
    color: #121212;
    margin-bottom: 10px;
}


.file-info {
    font-size: 14px;
    color: #333;
}

/* Features Section */
.features-section {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
    background-color: #1e1e1e;
}

.feature-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 30%;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature-box i {
    font-size: 40px;
    color: #ffc107;
}

.feature-box h3 {
    margin-top: 10px;
    font-size: 22px;
    color: #fff;
}

.feature-box p {
    color: #ccc;
}

/* SEO Text Section */
.text-section {
    background-color: #2a2a2a;
    padding: 40px 20px;
    width: 100%;
}

.text-section h2,
.format-info-section h2,
.benefits-section h2,
.how-it-works-section h2 {
    font-size: 28px;
    color: #ffc107;
}

.text-section p,
.format-info-section p,
.benefits-section p,
.how-it-works-section p {
    color: #ccc;
    line-height: 1.6;
}

.text-section ul {
    list-style: none;
    padding: 0;
}

.text-section ul li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.text-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffc107;
}
/* Benefits Section */
.benefits-section {
    padding: 40px 20px;
    text-align: center;
}

.benefits-section h2 {
    font-size: 18px;
    color: #ffc107;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none; /* Entfernt Standard-Listensymbole */
    padding: 0;
    margin: 0;
    color: #f1f1f1;
    font-size: 18px;
}

.benefits-list li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-list li i {
    color: #fff; /* Weiße Favicons */
    margin-right: 10px; /* Abstand zwischen Icon und Text */
    font-size: 16px; /* Größe der Icons */
}

.benefits-list li strong {
    color: #ffc107; /* Gelbe Farbe für den starken Text */
}
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.step {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step i {
    font-size: 40px;
    color: #ffc107;
}

.step h4 {
    font-size: 20px;
    color: #fff;
    margin-top: 10px;
}

.step p {
    color: #ccc;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .features-section,
    .steps-container {
        flex-direction: column;
        gap: 20px;
    }

    .feature-box,
    .step {
        width: 90%;
    }

    #drop-area {
        width: 80%;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.star-rating .fa-star {
    font-size: 30px;
    cursor: pointer;
    color: #ccc; /* Default grey */
}

.star-rating .fa-star.selected, .star-rating .fa-star:hover {
    color: #ffc107; /* Highlighted yellow */
}

/* Drop Area Styling */
#drop-area {
    background-color: #2e2e2e; /* Dunklerer Hintergrund für Kontrast */
    border: 2px dashed #ffc107;
    border-radius: 15px; /* Abgerundete Ecken für einen modernen Look */
    padding: 60px 40px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
    margin: 0 auto; /* Zentrieren */
}

#drop-area:hover {
    border-color: #fff6da;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Stärkerer Schatten beim Hover */
}

.icon-container {
    margin-bottom: 15px;
}

.icon-container i {
    font-size: 48px; /* Größeres Icon */
    color: #ffc107;  /* Gelbe Farbe für das Icon */
    transition: transform 0.3s ease; /* Subtiler Hover-Effekt für das Icon */
}

#drop-area:hover .icon-container i {
    transform: scale(1.2); /* Icon wird leicht größer beim Hover */
}

#drop-area p {
    color: #ddd; /* Helleres Grau für bessere Lesbarkeit */
    margin: 10px 0;
    font-size: 16px;
}

#drop-area .main-instruction {
    font-size: 18px; /* Größere Schrift für die Hauptanweisung */
    color: #fff;
    font-weight: bold;
}

#drop-area .upload-instruction {
    font-size: 16px;
    color: #ffc107; /* Gelbe Schrift für die Upload-Instruktion */
    margin-top: 5px;
}

#drop-area .file-info {
    font-size: 14px;
    color: #aaa; /* Dezenteres Grau für Zusatzinfos */
}

.warning {
    color: #ff5e5e;
    background-color: #1e1e1e;
    padding: 10px;
    margin-top: 20px;
    border-radius: 10px;
    display: none; /* Hidden by default */
}

/* Responsive */
@media (max-width: 768px) {
    #drop-area {
        padding: 40px 20px;
        width: 90%;
    }

    .icon-container i {
        font-size: 40px;
    }
}


/* Preview Container Styling */
#preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.image-preview {
    background-color: #1e1e1e;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    width: 200px;
    min-height: 300px; /* Mindesthöhe festlegen, damit genug Platz für den Status am unteren Rand bleibt */
    display: flex;
    flex-direction: column; /* Elemente in einer Spalte anordnen */
    justify-content: space-between; /* Abstand zwischen den Elementen */
    text-align: center;
    position: relative;
    color: #fff;
}

.image-preview img {
    height: 150px;
    width: auto;
    max-width: 100%; /* Bildbreite passt sich an, wenn sie breiter als das Div ist */
    object-fit: contain; /* Verhindert Verzerrung und behält das Seitenverhältnis bei */
    border-radius: 5px;
}

.details {
    color: #fff;
    margin-top: 5px;
    font-size: 12px;
    flex-grow: 1; /* Lässt die Details in der Mitte expandieren */
}

.details p {
    margin: 5px 0;
    font-size: 14px;
    background-color: #555;
    border-radius: 5px;
    padding: 5px;
    color: #ffc107; /* Gelb für die Dateigröße und Dimensionen */
}

/* Status Bereich anpassen für vertikale Anordnung */
.status {
    margin-top: auto; /* Schiebt den Status-Bereich nach unten */
    display: flex;
    flex-direction: column; /* Ändere die Anordnung zu vertikal */
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #444; /* Trennlinie zum Status */
    gap: 5px; /* Abstand zwischen "Done" und dem Download-Button */
}

.status span {
    color: #28a745; /* Grün für "Done" Status */
    font-size: 14px;
}

.download-link {
    background-color: #ffc107;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.download-link:hover {
    background-color: #e0a800;
    transform: translateY(-2px); /* Kleiner Hover-Effekt */
}


.remove-button {
    background-color: #ff5e5e;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.remove-button:hover {
    background-color: #e04e4e; /* Dunkleres Rot beim Hover */
}

/* Animation und zusätzliche Stile */
.status-icon {
    font-size: 20px;
    color: #ffc107;
}

.status-failed {
    color: #ff5e5e;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.remove-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff5e5e;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    padding: 2px 5px;
}

/* Controls Styling */
#controls {
    margin-top: 20px;
}



/* Error Message Styling */
#error-message {
    color: #ff5e5e;
    background-color: #1e1e1e;
    padding: 10px;
    margin-top: 20px;
    border-radius: 10px;
}

/* Footer Styling */
footer {
    background-color: #1e1e1e;
    color: #ffc107;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}
/* Progress Bar */
.progress-bar-container {
    background-color: #333;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
}

/* Standard Progress Bar */
.progress-bar {
    width: 0;
    height: 8px;
    background-color: #ffc107;  /* Default yellow color */
    transition: width 0.4s ease;
}

/* Green for Completed */
.progress-bar.completed {
    background-color: #28a745; /* Green for complete */
}
/* Button styling for "Done Download" */
.styled-download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #ffc107;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.styled-download-btn i {
    margin-right: 5px;
}

.styled-download-btn:hover {
    background-color: #eee2bd;
    transform: translateY(-2px); /* Subtle lift effect on hover */
}

/* Status text when processing is done */
.status span {
    font-size: 14px;
    font-weight: bold;
    color: #ffc107; /* Green to indicate "Done" */
    margin-right: 10px;
}
/* Restart Button */
.restart-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffc107;
    color: #181818;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px; 
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.restart-button:hover {
    background-color: #eee2bd;
    transform: translateY(-2px);
}

/* ZIP Download Button */
#zip-download-button {
    display: none; /* Initially hidden, will be shown after conversion */
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #a01919;
    color: #f1f1f1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#zip-download-button:hover {
    background-color: #6e0d0d;
}
/* Compression Toggle Button Styling */
.toggle-compression-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #d1c8ad;
    color: #121212;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Styling for when compression is enabled */
.compression-enabled {
    background-color: #16670f; /* Green background for enabled */
    color: white;
}

.compression-disabled {
    background-color: #82131e; /* Red background for disabled */
    color: white;
}

/* Icon size adjustment */
.toggle-compression-button i {
    font-size: 16px;
}

/* Hover effect */
.toggle-compression-button:hover {
    transform: translateY(-2px);
}

/* Active state */
.toggle-compression-button:active {
    transform: translateY(0);
}
.info-section {
    display: block;
}

.info-section.hidden {
    display: none;
}
.features-section, .steps-container {
    max-width: 100%;
}
