

@media only screen and (max-width: 768px) {
    section {
        padding: 80px 0 0 0;
        position: relative;
        right: 5em;
        margin: 0 auto;
        text-align: center;
        width: 18em;
    }

    .nav-links {
        display: none;
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
        position: absolute;
        justify-content: center;
        top: 39px;
        left: 0;
        width: 100%;
        background-color: rgb(0, 0, 0);
        z-index: 1;
    }

    .menu-icon {
        display: block;
    }

    .menu-icon {
        font-size: 24px;
        cursor: pointer;
        display: block; /* Show the toggle menu icon */
    }

    #menu-toggle {
        display: none; /* Hide the checkbox input when menu is displayed */
    }

    .header {
        padding: 10px;
    }

    .about-section {
        flex-direction: column;
        height: auto;
    }

    .my-photos {
        left: 3em;
        padding: 10px;
        text-align: center;
    }

    .about-me {
        width: 40vw;
        margin: 0;
        position: relative;
        left: 6em;
        padding: 10px;
    }

    .about-content {
        flex-direction: column;
        bottom: auto;
        left: 0;
    }

    .daily-quote {
        width: 100%;
        height: auto;
    }

    #history .left, .my-history, .skills {
        width: 100%;
        margin-left: 0;
    }

    .my-photos img {
        object-fit: cover;
    }
}

@media only screen and (max-width: 480px) {
    section {
        padding: 80px 0 0 0;
        position: relative;
        right: 4.5em;
        margin: 0 auto;
        text-align: center;
        width: 18em;
    }

    .interests, .hobbies, .motives {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
        position: absolute;
        justify-content: center;
        top: 39px;
        left: 0;
        width: 100%;
        background-color: rgb(0, 0, 0);
        z-index: 1;
    }

    .about-content {
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: center;
    }

    .daily-quote {
        position: static;
        width: 100%;
        height: auto;
    }

    .my-photos img {
        object-fit: cover;
    }

    .about-section {
        display: flex;
        justify-content: space-between;
        text-align: center;
        width: 100%;
        height: auto;
    }

    #history .left, #history .right {
        width: 100%;
        margin-left: 0;
    }
}