/* General Reset */
body, h1, h2, p, div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1, #f8b195);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Background Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container Styling */
.container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
}

/* Header */
h1 {
    font-size: 30px;
    color: #151212;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff6b6b, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Status Message */
.status {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Upload Section */
.upload-section {
    margin-bottom: 15px;
}

.upload-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #ffffff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.upload-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

#image-input {
    display: none;
}

.info {
    font-size: 14px;
    color: #121010;
    margin-top: 10px;
}

/* Preview Section */
.preview-section.hidden {
    display: none;
}

.preview-section {
    margin-top: 15px;
}

.image-container {
    margin-bottom: 15px;
}

#preview-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.spinner.hidden {
    display: none;
}

/* Results Section */
.results-container {
    margin-top: 15px;
}

.results-container h2 {
    font-size: 20px;
    color: #444;
    margin-bottom: 10px;
    font-weight: bold;
}

.predictions {
    font-size: 14px;
    color: #555;
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

/* Reset Button */
.reset-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.reset-button:hover {
    background-color: #ff4d4d;
    transform: translateY(-2px);
}
