/* Responsive adjustments for tablets and smaller devices */
@media (max-width: 450px) {
    .header,
    .status-container,
    .posts-container,
    .friends-container,
    .search-container,
    .updateStatus,
    .friendsStatus,
    .userSearch {
        flex-direction: column;
        width: 100%;
        padding: 10px;
        margin-top: 10px;
    }

    .profileMid,
    .connectionImgProfileMid,
    .status-button,
    .upload-button,
    .logout-button,
    #status,
    #searchUsers {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .post-user-info,
    .connection-post-user-info {
        margin-right: 0;
    }

    .thumbnail {
        width: 45%;
    }

    .notification-popup {
        right: 10px;
        width: 90%;
    }
}

/* Responsive adjustments for mobile phones */
@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .menu-icon {
        margin-left: 10px;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-text, .post-images {
        margin: 5px;
    }

    .post-content-box {
        padding: 10px;
    }

    .profile-pic, .user-profile-pic, .connection-profile-pic, .profile-pic-small {
        width: 30px;
        height: 30px;
    }

    .carousel-container {
        max-width: 100%;
    }

    .carousel-btn {
        font-size: 16px;
        padding: 3px 7px;
    }

    .thumbnail {
        width: 100%;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .updates-button,
    .connections-button,
    .media-posted-button {
        margin: 5px 0;
        width: 90%;
        text-align: center;
    }
}

/* Adjust dialog/modal for small screens */
@media (max-width: 768px) {
    .modal-content, .dialog-modal-content,
    .connection-modal-content {
        max-width: 95%;
        max-height: 80vh;
        margin-top: 30%;
        font-size: 14px;
        padding: 10px;
    }

    .modal-nav {
        font-size: 30px;
        padding: 5px;
    }

    .close, .connection-close {
        font-size: 30px;
        right: 15px;
        top: 15px;
    }
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .pet-passport-card {
        width: calc(50% - 10px); /* 2 cards per row on medium screens */
    }
}

@media screen and (min-width: 769px) {
    .pet-passport-card {
        width: calc(33.33% - 10px); /* 3 cards per row on larger screens */
    }
}