body {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    font-size: large;
    background-color: white;
    font-family: ui-sans-serif, Segoe UI, Helvetica Neue, Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #151515;
        color: whitesmoke;
    }

    .static-anchor {
        color: whitesmoke !important;
    }

    #drop-area:hover {
        background-color: #252525 !important;
    }
}

h1 p {
    display: inline-block;
    font-weight: 100;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    width: auto;
    margin-top: 5%;
}

html, body {
    height: 90%;
}

.fade-in {
    animation: fade-in 0.75s forwards;
    height: 80%;
}

.static-anchor {
    text-decoration: none;
    color: black;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@media only screen and (max-width: 799px) {
    .fade-in {
        margin-left: 2%;
        margin-right: 2%;
    }

    header {
        margin-left: 2%;
        margin-right: 2%;
    }
}

@media only screen and (min-width: 800px) and (max-width: 999px) {
    .fade-in {
        margin-left: 10%;
        margin-right: 10%;
    }

    header {
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media only screen and (min-width: 1000px) {
    .fade-in {
        margin-left: 27%;
        margin-right: 27%;
    }

    header {
        margin-left: 27%;
        margin-right: 27%;
    }
}

#drop-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    padding: 50px;
    cursor: pointer;
    box-sizing: border-box;
    transition: 0.3s ease-in-out;
}

#drop-area:hover {
    background-color: #f5f5f5;
    border: 1px dashed #bbb;
}

main, form, #drop-area {
    height: 80%;
}

#file-list {
    list-style-type: none;
    padding: 0;
    font-size: 0.75rem;
}

#conversion-options {
    margin-top: 20px;
}

.no-script {
    text-align: center;
    padding: 20px; 
    background-color: #f44336; 
    color: white;
    border-radius: 5px;
    margin-bottom: 10px;
}

#progress-container {
    width: 100%;
    margin: 10px 0;
    overflow: hidden;
    display: none;
}

#progress-bar {
    height: 30px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

#progress-bar.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#progress-status {
    text-align: center;
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.loader {
    display: none;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #4F4F4F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1.25s linear infinite;
    margin-left: auto;
    margin-right: auto;
    margin-top: -10%;
    margin-bottom: auto;
    z-index: 1000;
}

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