/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:root {
    --dark: #000000;
    --dark-blue: #253745;
    --grey: #73777D;
    --light-grey: #E6E7E8;
    --white: #FFF;
    --gradient1: linear-gradient(89deg, #4094D1 0.59%, #7278DF 87.59%, #78BCE7 137.27%);
    --gradient-website: linear-gradient(100deg, #E6E7E8 4.97%, #8EACCA 94.16%);
    --light-blue: #EFF3F8;
    --standard-min-width: 370px; /* Nouvelle variable */
}

/* Applique le semibold spécifiquement */
body, p, h1, h2, h3, button, label, li {
    font-weight: 500;
}

p {
    font-size: 16px;
    color: var(--dark-blue);
}

body {
    background-color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--white);
}

.container p, .hero-main-content p {
    color: var(--light-grey);
}

/* Primary Button Style */
.btn-primary {
    background: var(--gradient1);
    color: var(--white);
    border: 1px solid var(--dark-blue);
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}


.btn-primary:hover {
    opacity: 0.8;
}

/* Pour les boutons qui doivent prendre toute la largeur */
.btn-primary.w-full {
    width: 100%;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.header-btn {
    min-width: auto;
    padding: 1rem 1.5rem;
}

/* Header Styles */
header {
    color: var(--white);
    width: 100%;
    max-width: 1000px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.site-name {
    font-size: 1.5rem;
}

#img-logo {
    width: 203px;
}

#language-form {
    display: flex;
    align-items: center;
    display: none;
}

#language-select {
    margin: 0;
}

#language {
    background-color: var(--white);
    color: #333;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
}

.text-light-grey {
    color: var(--light-grey);
}

.hero {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 65vh; /* 80% de la hauteur du viewport */
    display: flex;
    align-items: center;
    justify-content: center;
}


.centered-text {
    text-align: center; /* Centre le texte */
}

.medium-text {
    font-size: 1.5rem;
    line-height: 1.4;
}

.medium-text-thin {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 200;
}

.medium-title-text {
    font-size: 2rem;
    line-height: 1.2;
}

.spacer-48 {
    height: 72px;
}

.spacer-24 {
    height: 24px;
}

.spacer-16 {
    height: 16px;
}

.big-margin-bottom {
    margin-bottom: 72px;
}

.hero-main-content {
    text-align: center;
    width: 100%;
}

.header h1,
.header h3 {
    color: var(--light-grey); /* Change la couleur du texte en utilisant la variable --light-grey */
}



.hero-main-content h1 {
    background: var(--gradient-website);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    max-width: 1000px;
    font-size: 4.5rem;
    line-height: 1.1;
    padding-bottom: 24px;
}


.Ready p{
    max-width: 990px;
    margin: 0 auto;
    text-align: center;
    padding: 0 32px;
    margin-top: 7.5rem;
    color: var(--light-grey);
}

.dark-blue {
    color: var(--dark-blue);
}


#steps {
    text-align: center;
    margin-top: 0rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1.2rem;
}

#img-youtube-to-anki {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 450px;
    max-width: 100%;
}

#video-anki {
    display: block;
    width: 100%;
    max-width: 733px;
    margin: 0 auto;
    height: auto;
}

#img-youtube-to-anki-detailed {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 500px;
    max-width: 100%;
}

#img-down-arrow {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 32px;
}

#card-images-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#img-card-front, #img-card-back {
    width: 100px;
    height: auto;
}

#call-to-action {
    background-color: #4a90e2;
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-size: 1.2rem;
}

#converter {
    width: 100%;
    background-color: var(--light-blue);
    max-width: 990px;
    border-radius: 12px;
    margin: 3.75rem auto;
    padding: 3.75rem;
}

#centered-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}


#checkout-container {
    width: 100%;
    min-width: 1000px;
}

#export-form-container {
    max-width: 540px;
    width: 100%;
}

#export-form-container .form-group label[for="video-file"] {
    text-align: center; /* Centre le texte */
    display: block; /* Assure que le label prend toute la largeur disponible */
}

#import {
    display: block;
    width: 100%;

    margin: -1.5rem auto 0;
    height: auto;
}

#flashcard {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

::placeholder {
    color: var(--grey);
    opacity: 1;
}

:-ms-input-placeholder {
    color: var(--grey);
}

::-ms-input-placeholder {
    color: var(--grey);
}

.container {
    max-width: 650px;
    margin: 0rem auto;
}

h1 {
    font-size: 3rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group select + .info-message {
    margin-top: 8px;
}

p, li {
    font-size: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="url"],
input[type="email"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark-blue);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: var(--dark-blue);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('/static/img/ic-dropdown.svg');
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 24px;
    padding-right: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: var(--dark-blue);
}

select::-ms-expand {
    display: none;
}


#download-link {
    color: gray;
    text-align: center;
    margin-top: 1rem;
}

a {
    color: #4a90e2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.anki-logo {
    width: 100px;
    height: auto;
    display: block;
}

.video-title {
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 32px; /* Ajusté à 32px pour l'espace entre le titre et le bouton Download */
}

.deck-title {
    flex: 1;
    font-size: 16px;
    color: var(--dark-blue);
    line-height: 134%;
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 0;
}

.email-notice {
    color: var(--grey);
    text-align: center;
    margin-bottom: 1rem;
}

/* Ajustement des marges pour le bouton de téléchargement */
#download-deck-button {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
    display: block;
}

/* Le reste du bouton Convert another reste avec sa marge de 1rem */
#convert-another-button {
    width: 100%;
    min-width: var(--standard-min-width);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    display: block;
}

/* Ajustement du conteneur des boutons pour le centrage */
#converted-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 540px;
    margin-bottom: 40px;
}


.mobile-text {
    display: none;
}

.desktop-text {
    display: inline;
}

.converter-title {
    color: var(--dark-blue);
    font-style: normal;
    margin-bottom: 40px;
    margin-top: 0;
    background: none;
    -webkit-text-fill-color: initial;
    line-height: 134%;
}

.converter-separator {
    color: var(--dark-blue);
    font-style: normal;
    margin-bottom: 12px;
    margin-top: 60px;
    background: none;
    -webkit-text-fill-color: initial;
}

.converter-subtitle {
    color: var(--dark-blue);
    font-style: normal;
    margin-bottom: 40px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:not(:has(+ .info-message)) {
    margin-bottom: 1.5rem;
}

.info-message {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.info-message .info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-message p {
    color: var(--grey);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
    flex: 1;
    line-height: 134%;
}

.video-list {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.video-title {
    flex: 1;
    font-size: 16px;
    color: var(--dark-blue);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 134%;
    word-wrap: break-word; /* Pour gérer les longs mots */
}

.btn-secondary {
    background: var(--light-blue);
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    background: var(--light-grey);
}

#convert-another-button {
    padding-top: 16px;
    padding-bottom: 16px;
}

.download-icon {
    width: 24px;
    height: 24px;
}

#no-italic {
    font-style: normal;
    line-height: 1.2;
}

.spacer80px {
    height: 80px;
}

.spacer200px {
    height: 200px;
}

.signature {
    border-top: 1px solid var(--light-grey);
    text-align: center;
    padding: 16px; /* Changement ici : padding vertical uniquement */
    color: var(--light-grey);
}

.signature .link {
    color: var(--light-grey);
    text-decoration: underline;
}

.medium-text .link {
    color: var(--light-grey);
    text-decoration: underline;
}

/* POUR LA MODALE */

/* POUR LA MODALE */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    padding: 48px;
    border-radius: 12px;
    max-width: calc(100% - 48px);
    position: relative;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-height: 90vh;
}

.scrollable-container {
    overflow-y: auto;
    width: 100%;
}


.close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-image: url('/static/img/ic-close.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.close:hover {
    opacity: 0.8;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
    width: 100%;
    align-items: center;
}

#email-form .btn-primary {
    min-width: var(--standard-min-width);
    width: 100%;
}

#user-email {
    padding: 12px;
    border: 1px solid var(--dark-blue);
    border-radius: 4px;
    font-size: 16px;
    color: var(--dark-blue);
    background-color: var(--white);
    min-width: var(--standard-min-width);
    width: 100%;
}

.tick-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;
}


.modal-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 134%;
    color: var(--dark-blue);
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--grey);
}

.modal-content li {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--grey);
}

.modal-content .gray {
    color: var(--grey);
    font-size: 0.9rem;
}

#download-started-ok-button {
    margin-top: 1.5rem;
    width: 100%;
}


.info-message.text-center {
    justify-content: center;
}

.info-message.text-center p {
    flex: initial; /* Annule le flex: 1 du style de base */
    text-align: center;
}

#email-form .form-group {
    text-align: left; /* Force l'alignement à gauche */
    width: 100%; /* S'assure que le groupe prend toute la largeur */
    margin-bottom: 0; /* Supprime la marge par défaut */
}


.language-fields {
    flex-direction: row;
    display: flex;
    gap: 16px;
    margin-bottom: 1rem;
}

.half-width {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Ensure select boxes have the same appearance */
.half-width select {
    width: 100%;
}

.language-fields .half-width .info-message {
    margin-bottom: 0;
}

/* Supprime toutes les marges précédentes */
.language-fields {
    margin-bottom: 0;
 }
 
 .language-fields .info-message {
    margin-bottom: 0;
 }
 
 /* Ajoute l'espace de 32px uniquement avant le bouton */
 #generate-deck {
    margin-top: 32px;
 }

 /* Image container styles */
.image-container {
    display: flex;
    justify-content: center;
    margin: -90px auto -40px auto;
    max-width: 1200px;
}


@media (max-width: 600px) {

    .hero-main-content h1 {
        font-size: 48px;
    }

    .medium-text {
        font-size: 20px;
    }

    /* Image container styles */
    .image-container {
    display: flex;
    justify-content: center;
    margin: -40px auto -10px auto;
    max-width: 1200px;
    }


    .modal {
        background-color: var(--light-blue);
        padding: 0;
    }

    #subscription-modal .modal-content {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        height: 100%;
        border-radius: 0;
        margin-top: -48px;
        padding: 80px 24px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        height: 100%;
        border-radius: 0;
        margin-top: -48px;
        padding: 80px 24px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #checkout-container {
        width: 100%;
        min-width: 100%;
    }

    .video-title {
        -webkit-line-clamp: 3;
    }

    .btn-secondary {
        padding: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    h3, #steps {
        font-size: 1rem;
    }

    .mobile-text {
        display: inline;
    }

    .desktop-text {
        display: none;
    }

    .hero {
        padding: 0 32px;
    }

    .Ready {
        padding: 0 32px;
    }

    #img-youtube-to-anki {
        width: 100%;
        max-width: calc(100vw - 64px);
    }

    #img-logo {
        width: 153px;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .site-name, #convert-videos {
        margin-bottom: 0;
    }

    .site-name, #language-form, #convert-videos {
        margin-bottom: 0.5rem;
    }

    .container {
        padding: 1rem;
        margin: 1rem;
    }

    #converter {
        padding: 32px;
        border-radius: 0px;
    }

    .close {
        position: fixed;
        z-index: 1001;
        right: 24px;
        top: 24px;
        width: 32px;
        height: 32px;
    }

    .btn-primary,
    #user-email,
    #email-form .btn-primary,
    #download-deck-button,
    #convert-another-button {
        min-width: 100%;
    }

    .language-fields {
        flex-direction: column;
        display: flex;
        gap: 16px;
        margin-bottom: 1rem;
    }

}
/* ############################# */

.upload-area {
    border: 1px dashed var(--dark-blue);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    position: relative;
    background-color: var(--white);
}

.upload-area:hover {
    border-color: var(--dark-blue);
    background-color: var(--light-blue);
}

.upload-area.drag-over {
    background-color: #f0f7ff;
}

.upload-area.error {
    border-color: #e74c3c;
    background-color: #fef5f5;
}

.file-error {
    color: #e74c3c;
    background-color: #fef5f5;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
    border-radius: 4px;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-prompt {
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.drag-text {
    color: var(--dark-blue);
}

.drag-text-small {
    color: var(--grey);
    font-size: 0.75rem; 
}

.browse-text {
    color: var(--grey);
    text-decoration: underline;
}

.file-info {
    margin-top: 0.5rem;
    color: var(--grey);
}

.conversion-progress {
    max-width: 720px;
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.progress-title {
    color: var(--dark-blue);
    text-align: center;
}

.progress-container {
    display: flex;
    flex-direction: column; 
    gap: 12px;
}

.progress-bar {
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
}

.progress-fill {
    background: var(--gradient1);
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.conversion-info {
    color: var(--grey);
    text-align: center;
    font-size: 0.75rem;
    margin: 0;
}

.signup-notice p {
    color: var(--dark-blue);
    text-align: center;
    margin: 0;
}

.signup-notice p:first-of-type {
    color: var(--dark-blue);
}

.signup-notice p:last-of-type {
    color: var(--dark-blue);
    font-size: 0.75rem;
}

.signup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    width: 340px; 
    font-size: 1rem;
}

.login-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#login-modal #google-login-button {
    width: 100%; /* Prend toute la largeur disponible */
    max-width: none; /* Supprime toute limitation de largeur maximale */
}

.login-prompt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.login-prompt-text {
    color: var(--grey);
    margin: 0;
}

.login-button {
    color: var(--grey);
    text-decoration: underline;
}

.login-button:hover {
    opacity: 0.8;
}

.success-block-title {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.success-block-message {
    color: var(--grey);
    font-size: 1rem;
    text-align: center;
    margin: 0 auto;
    max-width: 300px;
    line-height: 1.5;
}


.signup-prompt {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
}

.prompt-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* Espace de 16px entre les éléments, y compris les boutons */
}

.regulargap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.prompt-content h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.benefits-list li {
    color: var(--dark-blue);
    font-size: 1rem;
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('/static/img/ic-check.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.login-prompt {
    color: var(--grey);
    font-size: 0.875rem;
    margin: 0;
}

.login-prompt a {
    color: var(--dark-blue);
    text-decoration: underline;
    font-weight: 500;
}

.login-divider-or {
    color: var(--dark-blue);
}

.success-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.success-title {
    color: var(--dark-blue);
}

.deck-info {
    max-width: 340px;
}

.anki-logo {
    width: 84px;
    height: 84px;
}

.video-title {
    color: var(--dark-blue);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}

.download-instructions {
    text-align: left;
    margin-top: 1.5rem;
}

.download-instructions p {
    color: var(--dark-blue);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.download-instructions ol {
    color: var(--grey);
    padding-left: 1.5rem;
    margin: 0;
}

.download-instructions li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.download-instructions li:last-child {
    margin-bottom: 0;
}

.additional-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-text {
    color: var(--dark-blue);
    text-decoration: underline;
    font-size: 1rem;
    font-weight: 500;
}

.btn-text:hover {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .success-container {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .success-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .success-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .deck-info {
        margin-bottom: 1.5rem;
    }

    .download-instructions {
        margin-top: 1rem;
    }

    .additional-actions {
        gap: 0.75rem;
    }
}

/* AllAuth Additional Styles */
.allauth-page {
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.allauth-container {
    max-width: 540px;
    width: 100%;
    background-color: var(--light-blue);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem auto;
}

.allauth-title {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.allauth-form {
    color: var(--dark-blue);
}

.allauth-form input[type="email"],
.allauth-form input[type="password"],
.allauth-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark-blue);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--dark-blue);
    background-color: var(--white);
    margin-bottom: 0.5rem;
}

.allauth-form label {
    color: var(--dark-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.allauth-form .errorlist {
    color: #dc3545;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
}

.allauth-button {
    display: inline-block;
    background: var(--gradient1);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 1rem;
}

.allauth-button:hover {
    opacity: 0.9;
    text-decoration: none;
}

.allauth-message {
    background-color: var(--white);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.allauth-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.allauth-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.allauth-secondary-link {
    color: var(--dark-blue);
    display: inline-block;
    margin-top: 1rem;
    text-decoration: underline;
    text-align: center;
    width: 100%;
}

.allauth-secondary-link:hover {
    opacity: 0.8;
}

.login-prompt {
    margin-top: 1rem;
    text-align: center;
}

/* Modal styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.auth-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.auth-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--grey);
}

.auth-modal-close:hover {
    color: var(--dark-blue);
}

/* Auth form styles */
.auth-container {
    background-color: var(--light-blue);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 370px;
    width: 100%;
    margin: 2rem auto;
}

.auth-content {
    text-align: center;
}

.auth-title {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    color: var(--dark-blue);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark-blue);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--dark-blue);
    background-color: var(--white);
}

.auth-form input::placeholder {
    color: var(--grey);
}

.auth-error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.auth-links {
    margin-top: 1.5rem;
    color: var(--grey);
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--dark-blue);
    text-decoration: underline;
    font-weight: 500;
}

@media (max-width: 600px) {
    .auth-container {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }

    .video-length-warning {
        max-width: 100%;
    }
}
.auth-modal-close:hover {
    color: var(--dark-blue);
}
.auth-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.auth-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark-blue);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--dark-blue);
    background-color: var(--white);
    margin-bottom: 8px;
}

.auth-form-input:focus {
    outline: none;
    border-color: #4094D1;
    box-shadow: 0 0 0 2px rgba(64, 148, 209, 0.2);
}

.auth-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    color: var(--dark-blue);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .btn-primary {
    margin-top: 1rem;
}

.forgot-password-link {
    text-align: center;
    font-size: 0.75rem;
}

.forgot-password-link a {
    color: var(--grey);
    text-decoration: underline;
}

.forgot-password-link a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.login-prompt {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-blue);
}

.login-prompt a {
    color: #4094D1;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.message-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
}

.message-container.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message-container.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

#export-form-container .file-info {
    margin-top: 1rem;
}

#export-form-container .file-added {
    color: var(--dark-blue);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

#export-form-container .file-name {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

#export-form-container .replace-file {
    color: var(--grey);
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}

/* Subscription needed container */
.subscription-needed {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border-radius: 8px;
}

.subscription-message {
    display: flex;
    flex-direction: column;
    max-width: 540px;
    width: 100%;
    margin: 16px auto;
    padding: 32px;
    background-color: var(--white);
    border: 1px solid var(--light-grey);
}

.subscription-message p {
    text-align: left;
    font-size: 16px;
    color: var(--dark-blue);
}


@media (max-width: 600px) {
    .subscription-needed {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
    }
    .subscription-message {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
}

#purchase-subscription-button {
    margin: 40px 0px;
    max-width: 252px;
    align-self: center;
}

.video-length-warning {
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    padding: 16px;
    width: 360px;
    margin: 40px 0px;
}

.warning-content {
    display: flex;
    align-items: flex-start;
}

.warning-icon {
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.warning-text {
    margin: 0;
    padding-left: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .video-length-warning {
        width: 100%;
    }
}

#error-modal .modal-content {
    text-align: left;
    max-width: 600px;
}

#error-modal p {
    text-align: left;
    padding-left: 0px;
}


#error-modal ul {
    margin: 16px 0;
    padding-left: 24px; /* Proper indentation for list items */
}

#error-modal ul li {
    margin-bottom: 8px;
    padding-left: 8px;
    line-height: 1.4;
}

#error-modal .btn-primary {
    width: 100%;
}

.error-details-container {
    margin: 16px 0;
    padding: 12px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.error-details-container p {
    margin: 0;
    font-size: 14px;
    text-align: left;
}

#error-details-text {
    font-family: monospace;
    word-break: break-word;
}

.loading-overlay {
    justify-content: center;
    align-items: center;
}

.loading-content {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--light-grey);
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.spinner-svg {
    animation: rotate 2s linear infinite;
    transform-origin: center center;
}

.spinner-path {
    stroke: var(--dark-blue);
    stroke-dasharray: 150, 200;
    stroke-dashoffset: -10;
    animation: dash 1.5s ease-in-out infinite;
}

.loading-text {
    color: var(--dark-blue);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

@media (max-width: 600px) {
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
}

#signup-modal .modal-content {
    width: 420px;
}

#login-modal .modal-content {
    width: 420px;
}

#download-started-modal .modal-content {
    width: 600px;
}

.subscription-pre-message {
    margin: 32px 0px;
}

/* Hero section styles */


/* Section styles */
.section-title {
    font-size: 2rem;
    margin: 0rem 0 1.5rem;
    color: var(--primary);
    text-align: left;
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}



.feature-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Steps list styles */
.steps-list {
    padding-left: 2rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.steps-list li {
    margin-bottom: 0.8rem;
}

/* Testimonials styles */
.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.testimonial-item {
    background-color: #f9f9f9;
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 0;
    font-style: italic;
}

.testimonial-item p {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.testimonial-item cite {
    font-style: normal;
    font-weight: 500;
    display: block;
    text-align: right;
    color: #555;
}

/* About us section styling */
#about-us p {
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.7rem;
    }
    
    .testimonials-list {
        grid-template-columns: 1fr;
    }
}

