body, html {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 1;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background-color: #262626; 
    border-radius: 10px;
    box-shadow: 0 10px 64px 0 rgba(33, 17, 65, 0.37);
    padding: 60px;
    text-align: center;
    width: 480px; /* Set a fixed width to enforce a wider container */
    margin-bottom: 90px; 
}

h1 {
    color: #f0f0f0;
    margin-bottom: 30px;
    font-size: 36px;
}

/* The rest of your styles remain unchanged */


.flash-error {
    color: red;
}


.file-upload-wrapper {
    position: relative;
    margin: 20px 0;
}

input[type="file"] {
    width: 100%;
    height: 45px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

label.file-label {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    text-align: center;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

label.file-label:hover {
    background-color: #4e9f6c;
}

#file-chosen {
    display: block;
    margin-top: 10px; 
    text-align: center;
    color: #fff;
    font-size: 1em;
    margin-bottom: 20px;
}

.loader {
    border: 5px solid #f3f3f3; 
    border-top: 5px solid #3498db; 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-top: 20px;
    display: none;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

button, .submit-button, #downloadLink {
    background-color: #008CBA; 
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    text-decoration: none; 
    display: inline-block;
    background-image: linear-gradient(to right, #6db9ef, #7ce08a);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
    
button:hover, .submit-button:hover, #downloadLink:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px 0 rgba(124, 224, 138, 0.5);
}

.error-message {
    color: #ff4747;
    margin-top: 20px;
}

.submit-button, .download-button {
    width: auto;
    padding: 12px 30px; 
    margin: 20px 0; 
}

.footer-message {
    text-align: center;
    position: fixed; 
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #1a1a1a; 
    color: #f0f0f0; 
    padding: 15px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); 
    font-size: 1.1em;
    z-index: 10;
    border-top: 1px solid #333; 
}

.footer-message p {
    margin: 0;
    line-height: 2.5;
}

#helpButtons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; 
    max-width: 800px; /* Match the container width for consistency */
    margin: 20px 0;
}

.button-row {
    display: flex;
    justify-content: space-between; 
    width: 100%; 
    margin: 10px 0; 
}

#helpButtons button {
    flex: 1; 
    margin: 0 10px; 
    padding: 12px;
    font-size: 16px; 
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.9);
}

.modal-content {
    background-color: #262626; 
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 10px 64px 0 rgba(33, 17, 65, 0.37);
    color: #f0f0f0;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.step {
    border: 1px solid #888; 
    padding: 20px; 
    margin-bottom: 20px; 
}

.step img {
    width: 50%; 
    height: auto; 
}