body {
    background-image: url('Web_background\ Image.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Times New Roman', Times, serif, sans-serif;
    background-color: rgba(255, 255, 255, 0.5); /* Increased transparency */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

label {
    display: block;
    margin: 10px 0;
}

input, select {
    width: 200px;
    padding: 5px;
    margin-left: 10px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Add transition for smooth effect */
}

button:hover {
    background-color: #45a049; /* Darker shade for hover */
}

button:active {
    background-color: #3d8b40; /* Even darker for click */
    transform: scale(0.98); /* Slight scale down when clicked */
}

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

.hidden {
    display: none;
}

#results {
    margin-top: 30px;
}

#footprintChart {
    max-width: 500px;
    height: 400px !important;
    margin: 20px auto;
}

#recommendations {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.visualization {
    margin: 20px 0;
}

.bar-chart {
    width: 100%;
    margin: 20px 0;
}

.bar {
    height: 30px;
    margin: 10px 0;
    background-color: #4CAF50;
    position: relative;
    transition: width 1s ease-in-out;
    width: 0;
}

.bar.animate {
    width: var(--width);
}

.bar span {
    position: absolute;
    right: 10px;
    color: white;
    line-height: 30px;
}

.country-average {
    background-color: #2196F3;
}

.recommendations {
    margin: 20px 0;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-category {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

.tip-category h4 {
    margin-top: 0;
    color: #333;
}

.tip-category ul {
    margin: 0;
    padding-left: 20px;
}

.tip-category li {
    margin: 5px 0;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chart-wrapper {
    padding: 20px;
    background: transparent
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.results-output {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.results-output h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-output h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2d3748;
    margin: 2rem 0 1rem;
}

.results-output p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.results-output strong {
    color: #2c5282;
    font-weight: 600;
}

/* Tips styling */
.recommendations {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.recommendations h3 {
    color: #1a365d;
    text-align: center;
    margin-bottom: 1.5rem;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.tip-category:hover {
    transform: translateY(-2px);
}

.tip-category h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.tip-category ul {
    list-style-type: none;
    padding: 0;
}

.tip-category li {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tip-category li::before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Charts styling */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Results animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-output {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .results-output {
        padding: 1rem;
    }

    .results-output h2 {
        font-size: 1.75rem;
    }

    .results-output h3 {
        font-size: 1.25rem;
    }

    .tip-category {
        padding: 1.25rem;
    }
}