/* Base layout;*/
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;

    /* Layered backgrounds: top is the pattern, bottom is the illustration */
    background-image:
        url('https://www.transparenttextures.com/patterns/rice-paper-3.png'),
        url('/static/images/Ilustracion.png');

    /* Each background's size */
    background-size:
        auto,
        cover;

    /* Each background's position */
    background-position:
        top left,
        center 40%;  /* illustration slightly higher than center */

    /* Repeat settings */
    background-repeat:
        repeat,   /* pattern repeats */
        no-repeat; /* illustration does not repeat */

    color: #2a1f2f;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.6;
    min-height: 100%;
    padding: 20px 0;
    position: relative;
}


body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.15;

}

.container {
    position: relative;
    z-index: 1;  /* Keep content on top */
    width: 90%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

/* Container for all content */
.container {
    width: 90%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

/* div overlay*/

.overlay {
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    position: relative;
    text-align: center;
    border: 1px solid black;
    padding: 10px 20px
}

/* Title */
#title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 900 !important;
}



.title_overlay h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2a1f2f;
}


/* Paragraphs */
.paragraphs_main_page {
    font-size: 1rem;
   font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 10px 0;
    display: inline;
    margin-left: 4px;
}

h3 a {
    display: inline;
    text-align: center;
    margin-bottom: 30px;
    margin-left: 4px;
    font-weight: 600;
    color: #6d5585;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
    text-decoration: none;
}


/* Steps layout */
.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Optional: paragraph inside step */
.step p {
    margin: 0;
    display: inline-block;
}

/* Arrows */
.arrow {
    font-size: 26px;
    color: #5a3d5c;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}


/* Form spacing */
form {
    margin-top: 20px;
}

/* Hide default file input */
.file-button input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;}

/* Custom file button */
.file-button {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px dashed #8b6fa8;
    color: #5a3d5c;
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.file-button:hover {
    background-color:  #8b6fa8;
    color: white;
    border: 2px solid black;
}

.file-button:focus-within {
    outline: 2px solid #7b5c3d;
    outline-offset: 3px;
}

/* Buttons */
button {
    background-color: #8b6fa8;
    color: white;
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #6d5585;
    transform: translateY(-1px);
}


/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        padding: 15px 0;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    #title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .paragraphs_main_page {
        font-size: 0.95rem;
    }

    .arrow {
        font-size: 22px;
    }

    .file-button,
    button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .step {
        gap: 10px;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        padding: 15px 0;

        }

    .container {
        width: 95%;
        padding: 15px;
    }

    #title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .paragraphs_main_page {
        font-size: 0.95rem;
    }

    .arrow {
        display: none !important;
    }

    .file-button,
    button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .step {
        gap: 10px;
    }
}

@media (max-width: 480px) {


    #title {
        font-size: 1.5rem;
    }

    .paragraphs_main_page {
        font-size: 0.9rem;
    }

    .arrow {
        display: none !important;
    }

    .file-button,
    button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .highlight{
    color: white

    }
}