body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Styles for devices with a maximum width of 768px (tablets and smaller) */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column; /* Stack navigation links vertically */
    }
    .main-content {
        flex-direction: column; /* Stack content sections vertically */
    }
}

/* Styles for devices with a maximum width of 480px (mobile devices) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem; /* Reduce heading size */
    }
    .card {
        width: 100%; /* Make cards take full width */
    }
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 20px;
}

.card {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

.header {
    display: flex;
    justify-content: space-between; /* Distribute items evenly with space between */
    align-items: center; /* Center items vertically */
}

.main-content {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto new lines */
}

.card {
    flex: 1 1 calc(33.33% - 20px); /* Responsive card width with spacing */
    margin: 10px;
}

