:root {
  --container-max-width: 800px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-max-width);
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.feedback-section {
    max-width: var(--container-max-width);
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

footer {
    max-width: var(--container-max-width);
    margin: 50px auto;
    padding: 20px;
}

.example-image {
    text-align: center; /* Center the image within the container */
}

.half-width-image {
    width: 100%; /* Set the image width to 50% of its parent container */
    display: inline-block; /* Ensure the image is treated as an inline-block element */
}

.styled-image {
    margin-bottom: 60px; /* Adds space around the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a drop shadow */
    border-radius: 10px; /* Optional: adds rounded corners */
}

h1 {
    text-align: center;
    color: #4CAF50;
}

.upload-section,
.document-info-section,
.credit-code-section,
.review-action-section,
.section-with-upper-and-lower-margin,
.download-section {
    margin-bottom: 20px;
}

.upload-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="file"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.doc-info,
.cost-info {
    margin: 10px 0;
}

.action-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #45a049;
}

.download-link {
    display: block;
    text-align: center;
    padding: 15px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

.spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid lightgray;
    border-top: 5px solid blue;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.download-link:hover {
    background-color: #1e88e5;
}