@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    margin: 0;
    padding: 0;
    color: white;
    overflow-x: hidden;
}


header {
    background-image: url("../media/receipts.jpg");
    background-size:cover;
    width: 60vw;
    margin: calc(10vh + 90px) auto 12vh;
    color: black;
    padding: 20px;
    height: 50vh;
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
    flex-direction: column;
    border-radius: 4px;
    border: 4px solid #00ffccAA;
    box-shadow: 0 0 4px rgb(255, 255, 255);
}
header h1 {
    font-size: 3.5em;
    letter-spacing: -0.05em;
    font-weight: 900;
}
header p {
    font-weight: 600;
    font-size: 1.15em;
    text-align: center;
}

.content {
    width: calc(100%-20px);
    padding: 40px 20vw;
    text-align: center;
    color: black;
    background: white;
    font-size: 1.15em;
    border-top: 4px solid rgb(130, 255, 215);
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    margin-bottom: 10px;
}

h1 {
    margin: 0; /* Remove default margin */
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%; /* Full width */
    max-width: 800px;
    margin: 0 auto; /* Center the main content */
}

.hero-section {
    display: flex;
    justify-content: center; /* Center contents */
    align-items: center; /* Align items vertically */
    flex-direction: row; /* Row layout */
    margin: 20px 0; /* Space around hero section */
}

.hero-image {
    max-width: 50%; /* Adjust image size */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between image and button */
}

.cta-button {
    background-color: #4CAF5088;/* Money-colored green */
    color: black;
    font-weight: 600;
    border: 4px solid #4CAF50;
    padding: 15px 35px; /* Increased padding */
    border-radius: 30px; /* Round button */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s; /* Hover effect */
    font-size: 20px; /* Larger font size */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.cta-button:hover {
    background-color: #3e8e41; /* Darker green on hover */
    transform: scale(1.05); /* Slightly grow the button on hover */
}

.upload-section, .preview-section, .results-section {
    margin: 20px 0;
    width: 100%;
    background-color: #222; /* Dark background for sections */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

input[type="file"] {
    display: none; /* Hide default file input */
}

.styled-file {
    appearance: none; /* Remove default styling */
    background-color: #4CAF50; /* Match with analyze button */
    color: white;
    padding: 12px 25px;
    border-radius: 30px; /* Round button */
    cursor: pointer;
    font-size: 16px; /* Increase font size */
    margin-bottom: 10px; /* Space below file input */
}

.styled-file:hover {
    background-color: #3e8e41; /* Darker green on hover */
}

#receipt-upload {
    margin: 10px 0;
}

/* Button styles */
#analyze-btn {
    background-color: #4CAF50; /* Money-colored green */
    color: white;
    border: none;
    padding: 12px 25px; /* Padding for a bubble effect */
    border-radius: 30px; /* Round button */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s; /* Hover effect */
    font-size: 16px; /* Increase font size */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

#analyze-btn:hover {
    background-color: #3e8e41; /* Darker green on hover */
    transform: scale(1.05); /* Slightly grow the button on hover */
}

#preview-container {
    display: none;
}

#receipt-preview {
    max-width: 100%;
    max-height: 400px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}