body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f9f9f9;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Allows elements to stack on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.image-container {
    flex: 1;
    text-align: center;
}

.image-container img {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
}

.table-container {
    flex: 1;
    min-width: 280px; /* Prevents table from getting too narrow */
}

h1, h2 {
    text-align: center;
    margin-bottom: 15px;
}

h3 {
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack elements on smaller screens */
        text-align: center;
        padding: 15px;
    }

    .image-container img {
        max-width: 50%; /* Prevents the image from being too large */
    }

    .table-container {
        width: 100%; /* Makes table take full width */
    }
}

@media (max-width: 480px) {
    body {
        margin: 10px;
    }

    .container {
        padding: 10px;
    }

    .image-container img {
        max-width: 25%; /* Ensures image adjusts fully */
    }

    table {
        font-size: 14px; /* Reduce font size for smaller screens */
    }

    th, td {
        padding: 6px; /* Adjust padding for smaller screens */
    }
}
