body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    padding: 0;
}
* {
    box-sizing: border-box
}
#error-box {
    color: red;
    font-family: inherit;
}

/* Container for the page content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header styles */
header {
    background-color: #814586;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    border-bottom: 4px solid #673562;
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;
    align-items: center;
}
header h1 {
    margin: 0;
    font-size: 1.5em;
}
header a {
    margin-left: 30px;
    border-radius: 8px;
    padding: 4px 10px;
    background-color: #3a0062;
    border:solid 1px #3a0062;
    color:#fff;
    text-decoration: none;
}
header a:hover {
    border:solid 1px #fff;
}

/* FilePond container */
.file-upload {
    margin: 20px 0;
}

/* Error message box */
#error-box {
    display: none;
    color: red;
    margin-top: 10px;
    font-size: 14px;
    border: 1px solid red;
    padding: 10px;
    background-color: #ffe5e5;
    border-radius: 5px;
}

/* Footer styles */
footer {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    text-align:center;
}

footer a {
    color: #814586;
    text-decoration: none;
}
footer img {
    max-width:90%;
}
.number {
    border-radius: 50%;
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #814586;
    font-weight: bold;
    color: #fff;
    line-height: 50px;
    font-size: 30px;
}
.filepond--root {
    border-radius:10px;
    box-shadow: 0 4px 8px #814586;
}
#progress-container, #processing-container {
    text-align: center;
    font-size: 18px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #814586;
    border-radius: 5px;
    margin: 10px 0;
}

#progress-message, #processing-message {
    font-weight: bold;
    color: #fff;
}

.pre_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    padding: 0;
    max-width: 100%
    margin: auto;
}
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
}
.card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: auto;
}
.card p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}
.card a {
    display: inline-block;
    margin-top: 5px;
    padding: 8px 15px;
    font-size: 14px;
    color: #fff;
    background-color: #814586;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.card a:hover {
    background-color: #673562;
}