.phone-user-agent {
    body {
        margin: 5px;
        padding: 10px;
    }

    .to_round {
        border: 1px solid #ccc;
        border-radius: 15px;
    }

    .profile {
        flex-direction: column;
        align-items: center;
        margin: 0px;
    }

    .profile-info {
        padding: 20px 10px 20px 10px;
    }

    .profile img {
        width: 300px;
        margin: 0px;
    }

    .profile h1 {
        font-size: 50px;
        line-height: 45px;
        margin-bottom: 15px;
    }

    .bullet-point h3 {
        font-size: 16px;
    }

    .bullet-point h4 {
        font-size: 14px;
    }

    .section-info {
        flex-direction: column;
    }

    .section-left,
    .section-right {
        width: 100%;
    }

    /* EDUCATION */

    .section-info {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* SKILLS */

    .skills-text-1,
    .skills-text-2,
    .skills-text-3,
    .skills-text-4 {
        position: relative;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        max-width: 100%;
        padding: 10px;
        transform: none;
        border: 1px solid rgb(129, 33, 33);
        border-radius: 5px;
        margin-top: 5px;

        .strong {
            font-weight: bold;
            color: rgb(129, 33, 33);
        }
    }



    /* TEACHING */

    .teaching-section-right {
        width: 100%;
        padding: 10px;
        margin: 0px;
    }

    .teaching-section-right .bullet-point {
        padding: 0px;

    }


    /* PRESENTATIONS */

    .row {
        flex-direction: column;
        /* Stack cards vertically on smaller screens */
        align-items: center;
        /* Center cards */
    }

    .card {
        width: 100%;
        /* Full width for cards on smaller screens */
        margin-bottom: 20px;
        /* Space between stacked cards */
    }

    .card img {
        width: auto;
        max-height: 300px;
    }

    .big-text {
        font-size: 20px;
    }


    /* ACTIVITIES */
    .section-activities-each:nth-child(odd) .subsection-research-content,
    .section-activities-each:nth-child(even) .subsection-research-content {
        order: 2;
        /* Switch content placement for even subsections */
        margin: 0;
    }

    .section-activities-each:nth-child(odd) .subsection-activities-image,
    .section-activities-each:nth-child(even) .subsection-activities-image {
        order: 1;
        /* Text on the left for even subsections */
        width: auto;
        margin-bottom: 10px;

    }

    .subsection-activities-image img {
        max-height: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-activities {
        padding: 5px;
    }

    .section-activities h2 {
        padding-top: 50px;
        font-size: 30px;
        display: flex;
    }

    .section-activities-each {
        text-align: center;
        /* Center the text */
        max-height: none;
        width: 100%;
        border: 2px solid rgb(129, 33, 33);
        ;
        margin-top: 30px;
        margin-bottom: 15px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
        -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
        box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
    }


    /* RESEARCH */

    .section-research-each:nth-child(odd),
    .section-research-each:nth-child(even) {
        margin-left: auto;
        margin-right: 0;
        border-radius: 15px;
        padding-right: 0px
    }

    .section-research-each:nth-child(odd) .subsection-research-content,
    .section-research-each:nth-child(even) .subsection-research-content {
        order: 2;
        /* Switch content placement for even subsections */
        margin-right: 0px;
    }

    .section-research-each:nth-child(odd) .subsection-research-image,
    .section-research-each:nth-child(even) .subsection-research-image {
        order: 1;
        /* Text on the left for even subsections */
    }

    .section-research {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
        /*margin-top: 30px;*/
        border-top: 1px solid #ccc;
        background-color: rgb(253, 248, 242);
        text-align: center;
    }

    .section-research h2 {
        font-size: 25px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-research-each {
        /* max-height: 600px;*/
        text-align: center;
        /* Center the text */
        width: 100%;
        padding: 20px;
        display: flex;
        margin-top: 15px;
        margin-bottom: 15px;
        flex-direction: column;
    }

    .subsection-research-image {
        /* width: 40%; /* Adjust as needed, leaving space for margins */
        border-radius: 5px;
        display: flex;
        flex-shrink: 0;
        margin: auto;
        padding-bottom: 10px;
    }

    .subsection-research-content {
        /*height: 100%;*/
        flex: 0;
        align-items: center;
        /* Center content horizontally */
    }

    .subsection-research-image img {
        /* max-height: 100%; /* Ensure the image won't exceed container height */
        max-width: 100%;
        /* Ensure the image won't exceed container width */
        width: auto;
        /* Maintain aspect ratio */
        /* height: auto; /* Maintain aspect ratio */
        object-fit: scale-down;
        /* Fit the image inside its container */
        object-position: center;
        max-height: 350px;
    }


    /* ABOUT ME */

    .about-me-panel {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 0px;
    }

    .about-me-panel-center {
        width: auto;
        flex-basis: 100%;
        order: 1;
        flex-grow: 0;
        flex-shrink: 0;
        padding: 10px;
        text-align: justify;
    }

    .about-me-panel-left {
        order: 2;
        flex-grow: 1;
        width: none;
        padding: 10px;
    }

    .about-me-panel-right {
        order: 3;
        flex-grow: 1;
        width: none;
        padding: 10px;
    }

    .about-me-grid-container {
        display: block;
    }

    .about-me-grid-item {
        width: 100%;
        margin-bottom: 10px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* CONNECT */

    .social-panel {
        display: block;
    }

}

@media screen and (max-width: 1000px) {
    /* Adjustments for smaller screens */

    body {
        margin: 5px;
        padding: 10px;
    }

    .to_round {
        border: 1px solid #ccc;
        border-radius: 15px;
    }

    .profile {
        flex-direction: column;
        align-items: center;
        margin: 0px;
    }

    .profile-info {
        padding: 20px 10px 20px 10px;
    }

    .profile img {
        width: 300px;
        margin: 0px;
    }

    .profile h1 {
        font-size: 50px;
        line-height: 45px;
        margin-bottom: 15px;
    }

    .bullet-point h3 {
        font-size: 16px;
    }

    .bullet-point h4 {
        font-size: 14px;
    }

    .section-info {
        flex-direction: column;
    }

    .section-left,
    .section-right {
        width: 100%;
    }

    /* EDUCATION */

    .section-info {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* SKILLS */

    .skills-text-1,
    .skills-text-2,
    .skills-text-3,
    .skills-text-4 {
        position: relative;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        max-width: 100%;
        padding: 10px;
        transform: none;
        border: 1px solid rgb(129, 33, 33);
        border-radius: 5px;
        margin-top: 5px;

        .strong {
            font-weight: bold;
            color: rgb(129, 33, 33);
        }
    }



    /* TEACHING */

    .teaching-section-right {
        width: 100%;
        padding: 10px;
        margin: 0px;
    }

    .teaching-section-right .bullet-point {
        padding: 0px;

    }


    /* PRESENTATIONS */

    .row {
        flex-direction: column;
        /* Stack cards vertically on smaller screens */
        align-items: center;
        /* Center cards */
    }

    .card {
        width: 100%;
        /* Full width for cards on smaller screens */
        margin-bottom: 20px;
        /* Space between stacked cards */
    }

    .card img {
        width: auto;
        max-height: 300px;
    }

    .big-text {
        font-size: 20px;
    }


    /* ACTIVITIES */
    .section-activities-each:nth-child(odd) .subsection-research-content,
    .section-activities-each:nth-child(even) .subsection-research-content {
        order: 2;
        /* Switch content placement for even subsections */
        margin: 0;
    }

    .section-activities-each:nth-child(odd) .subsection-activities-image,
    .section-activities-each:nth-child(even) .subsection-activities-image {
        order: 1;
        /* Text on the left for even subsections */
        width: auto;
        margin-bottom: 10px;

    }

    .subsection-activities-image img {
        max-height: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-activities {
        padding: 5px;
    }

    .section-activities h2 {
        padding-top: 50px;
        font-size: 30px;
        display: flex;
    }

    .section-activities-each {
        text-align: center;
        /* Center the text */
        max-height: none;
        width: 100%;
        border: 2px solid rgb(129, 33, 33);
        ;
        margin-top: 30px;
        margin-bottom: 15px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        -webkit-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
        -moz-box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
        box-shadow: 10px 10px 38px -22px rgba(0, 0, 0, 0.58);
    }


    /* RESEARCH */

    .section-research-each:nth-child(odd),
    .section-research-each:nth-child(even) {
        margin-left: auto;
        margin-right: 0;
        border-radius: 15px;
        padding-right: 0px
    }

    .section-research-each:nth-child(odd) .subsection-research-content,
    .section-research-each:nth-child(even) .subsection-research-content {
        order: 2;
        /* Switch content placement for even subsections */
        margin-right: 0px;
    }

    .section-research-each:nth-child(odd) .subsection-research-image,
    .section-research-each:nth-child(even) .subsection-research-image {
        order: 1;
        /* Text on the left for even subsections */
    }

    .section-research {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
        /*margin-top: 30px;*/
        border-top: 1px solid #ccc;
        background-color: rgb(253, 248, 242);
        text-align: center;
    }

    .section-research h2 {
        font-size: 25px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-research-each {
        /* max-height: 600px;*/
        text-align: center;
        /* Center the text */
        width: 100%;
        padding: 20px;
        display: flex;
        margin-top: 15px;
        margin-bottom: 15px;
        flex-direction: column;
    }

    .subsection-research-image {
        /* width: 40%; /* Adjust as needed, leaving space for margins */
        border-radius: 5px;
        display: flex;
        flex-shrink: 0;
        margin: auto;
        padding-bottom: 10px;
    }

    .subsection-research-content {
        /*height: 100%;*/
        flex: 0;
        align-items: center;
        /* Center content horizontally */
    }

    .subsection-research-image img {
        /* max-height: 100%; /* Ensure the image won't exceed container height */
        max-width: 100%;
        /* Ensure the image won't exceed container width */
        width: auto;
        /* Maintain aspect ratio */
        /* height: auto; /* Maintain aspect ratio */
        object-fit: scale-down;
        /* Fit the image inside its container */
        object-position: center;
        max-height: 350px;
    }


    /* ABOUT ME */

    .about-me-panel {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 0px;
    }

    .about-me-panel-center {
        width: auto;
        flex-basis: 100%;
        order: 1;
        flex-grow: 0;
        flex-shrink: 0;
        padding: 10px;
        text-align: justify;
    }

    .about-me-panel-left {
        order: 2;
        flex-grow: 1;
        width: none;
        padding: 10px;
    }

    .about-me-panel-right {
        order: 3;
        flex-grow: 1;
        width: none;
        padding: 10px;
    }

    .about-me-grid-container {
        display: block;
    }

    .about-me-grid-item {
        width: 100%;
        margin-bottom: 10px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* CONNECT */

    .social-panel {
        display: block;
    }

}