/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;

    /* Simple White Background */
    background-color: #ffffffd5; /* White background */
    color: #333333; /* Darker text color for better contrast */

    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Ensure footer stays at the bottom */
    align-items: center;
    min-height: 100vh;
}



/* Navigation Bar */
header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: white; 
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Navigation Container */
nav {
    display: flex;
    justify-content: space-between; /* Space between logo and buttons */
    align-items: center;
    width: 100%; /* Full width for spacing */
}

/* Logo Styling */
.logo {
    height: 50px; /* Adjust logo size */
    vertical-align: middle;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.nav-buttons button {
    background-color: rgba(58, 56, 56, 0.274);
    color: #333;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
    background-color: #FFD700;
    color: #000;
}

/* Dropdown Styling */
form select {
    width: 100%;
    margin: 10px auto;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 16px;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

form select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}


nav button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
}

/* Hero Container */
.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

/* Buttons Section */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards; /* Staggered animation for buttons */
}

.action-buttons button {
    background-color: #FFD700; /* Yellow button */
    border: none;
    border-radius: 8px;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 15px rgba(255, 193, 7, 0.5);
}



.scrape-btn {
    background-color:  #FFD700;
}

.detect-btn {
    background-color: #87cefa;
}

/* Outer Container Styling */
.outer-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: rgba(247, 244, 244, 0.8); /* Semi-transparent background */
    border-radius: 15px;
    padding: 40px; /* Slightly increased padding */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 85%; /* Slightly increased width */
    max-width: 1300px; /* Adjusted max width */
    margin: 40px auto; /* Adjusted margin for centering */
    text-align: center;
    position: relative; /* Let it adjust within its parent */
}

/* Image Container */
.image-container img {
    max-width: 90%; /* Ensure image doesn't stretch too much */
    margin-top: 20px;
}
/* Scrape Images Form Container */
.scrape-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5; /* Light grey background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin: 30px auto;
    width: 60%; /* Width similar to the Object Detection */
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Light border for subtle design */
}

/* Adjusting the input fields inside the Scrape Form */
.scrape-container form input,
.scrape-container form select,
.scrape-container form button {
    width: 100%;
    margin: 10px auto;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

/* Button Styling */
.scrape-container form button {
    background-color: #ffd700; /* Yellow background */
    color: black; /* Black text for contrast */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.scrape-container form button:hover {
    background-color: #ffc107; /* Slightly darker yellow on hover */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Slight shadow on hover */
}


/* Inner Container Styling */
.inner-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

/* Form Section Styling */
.form-container {
    flex: 1;
    background: rgba(236, 229, 229, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

/* Uploaded Image Styling */
/* .image-container {
    margin-top: 20px;
} */

.uploaded-image {
    max-width: 100%;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Predictions Section Styling */
.predictions-container {
    flex: 1;
    background: rgba(240, 240, 240, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: #333;
    text-align: left;
    position: relative;
}

.predictions-container h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
    text-align: center;
}

.prediction-item p {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.5;
}

.prediction-item p span {
    font-weight: bold;
    color: #333;
}

/* Volumetric Weight Styling */
.volumetric-weight {
    background-color: rgba(240, 240, 240, 0.9);
    color: #333;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Forms */
form input, form button {
    width: 100%;
    margin: 10px auto;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 16px;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.2);
}

form button {
    background-color: #FFD700;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #FFD700;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */

.footer-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Five equal columns */
    gap: 20px; /* Spacing between columns */
    max-width: 1200px; /* Limit maximum width */
    margin: 20px auto; /* Center the grid */
    padding: 20px 0; /* Add padding */
    border-top: 1px solid #ddd; /* Subtle border */
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 5px;
}

.footer-section li a {
    color: #333;
    text-decoration: none;
}

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

/* Social Media Icons */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a img {
    height: 30px;
    width: 30px;
    background-color: #ffd700;
    border-radius: 50%;
    padding: 5px;
    transition: transform 0.3s ease;
}

.footer-socials a img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Single column for smaller screens */
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-socials {
        margin-top: 20px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .inner-container {
        flex-direction: column;
    }

    .form-container, .predictions-container {
        width: 100%;
    }
}
/* Keyframe Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInHighlight {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main Heading Styling */
.main-heading {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
    overflow: hidden; /* Ensure animation effects are smooth */
}

.animate-text {
    display: inline-block;
    animation: fadeIn 1s ease-out;
}


.highlight {
    color:hsla(51, 100%, 50%, 0.855); /* Yellow for the highlighted text */
    font-weight: bold;
    animation: fadeInHighlight 1.2s ease-out; /* Slight delay for "Logidoo" */
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
    height: 20px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #FFD700;
    color: white;
    text-align: center;
    line-height: 20px;
    transition: width 0.3s;
}

/* Image Grid */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-grid img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.real-weight-section {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 217, 0, 0.2);
    border: 2px solid #ffd900;
    border-radius: 10px;
    text-align: center;
}

.real-weight-section label {
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
}

.real-weight-section input {
    width: 50%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.real-weight-section button {
    background-color: #ffd900;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.real-weight-section button:hover {
    background-color: #ffc700;
}

.comparison-result {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 200, 0, 0.1);
    border: 2px solid #00c800;
    border-radius: 10px;
    text-align: center;
}

.comparison-result h3 {
    color: #00c800;
}


