body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    flex-direction: column; /* Allow stacking of containers */
    gap: 30px; /* Space between containers */
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #0056b3;
    margin-bottom: 20px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

button:hover {
    background-color: #0056b3;
}

#menuDisplay {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    min-height: 30px; /* To prevent layout shift when text appears */
}

#menuImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block; /* Ensures the image takes its own line */
    margin-left: auto;
    margin-right: auto;
}

/* Affiliate Form Specific Styles */
.affiliate-form-container {
    text-align: left;
    margin-top: 20px;
}

.affiliate-form-container h2 {
    color: #0056b3;
    margin-bottom: 20px;
    text-align: center;
}

.affiliate-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.affiliate-form-container label {
    font-weight: bold;
    margin-bottom: 5px;
}

.affiliate-form-container input[type="text"],
.affiliate-form-container input[type="email"],
.affiliate-form-container textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.affiliate-form-container input[type="text"]:focus,
.affiliate-form-container input[type="email"]:focus,
.affiliate-form-container textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.affiliate-form-container button[type="submit"] {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center; /* Center the submit button */
    width: auto;
    margin-top: 10px;
}

.affiliate-form-container button[type="submit"]:hover {
    background-color: #218838;
}

/* New styles for the Image Classifier */
.classifier-container {
    margin-top: 30px; /* Add some space above the classifier section */
}

.classifier-container input[type="file"] {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: calc(100% - 22px); /* Account for padding and border */
    box-sizing: border-box;
}

.classifier-container img#previewImage {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background-color: #f9f9f9;
}

.classifier-container button {
    margin-top: 20px;
}

.classifier-container button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.classifier-container button:hover:not(:disabled) {
    background-color: #0056b3;
}

#label-container {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

#label-container div {
    margin-bottom: 8px;
    padding: 5px;
    background-color: #e9ecef;
    border-radius: 4px;
}
/* Description text style */
p.description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

/* Footer styles */
.footer-container {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: 40px; /* Space above footer */
}

.footer-container p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-container a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-container a:hover {
    text-decoration: underline;
}

/* Custom file upload button style */
.custom-file-upload {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.custom-file-upload:hover {
    background-color: #0056b3;
}
