@media (max-width: 800px) {
    .main-container {
        display: flex;
        flex-wrap: wrap-reverse;
    }

    .main-container .img-box {
        align-items: center;
        height: fit-content;
        padding: 25px 0 15px 0;
    }

    .main-container .text-box {
        text-align: center;
        height: fit-content;
        padding: 0px 0px 25px 0px;
    }

    .main-container .text-box p {
        max-width: 100%;
    }
}

@media (max-width: 770px) {
    .lightbox-inner {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .github-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .github-left img {
        width: 70px;
        height: 70px;
    }

    .github-right {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    nav {
        z-index: 20;
    }

    nav ul {
        position: absolute;
        top: 64px;
        left: 1px;
        right: -1px;
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100.5%;
        height: 0px;
        background: transparent;
        box-shadow: inset 0 0 15px color-mix(in srgb, var(--color-blk) 30%, transparent);
        border: 1px solid transparent;
        border-radius: var(--rds);
        overflow-y: hidden;
        z-index: 10;
        transition: 0.35s ease;
    }

    nav ul.active {
        height: 175px;
        background: var(--header-res-bg);
        border: 1px solid var(--color-blk);
        overflow-y: visible;
    }

    nav ul li {
        padding: 7px;
    }

    body nav ul li:nth-child(n) a,
    body.home nav ul li:nth-child(n) a.home,
    body.clones nav ul li:nth-child(n) a.clones,
    body.creates nav ul li:nth-child(n) a.creates,
    body.about nav ul li:nth-child(n) a.about {
        display: inline-block;
        transform: translateY(-10px);
        color: transparent;
        transition: transfrom 0.3s ease 0s, color 0s ease;
    }

    body nav ul.active li:nth-child(n) a,
    body.home nav ul.active li:nth-child(1) a.home,
    body.clones nav ul.active li:nth-child(2) a.clones,
    body.creates nav ul.active li:nth-child(3) a.creates,
    body.about nav ul.active li:nth-child(4) a.about {
        transform: translateY(5px);
        color: var(--color-light-gray);
        transition: transform 0.7s ease 0.3s, color 0.5s ease 0.1s;
    }

    body nav ul.active li:nth-child(n) a:hover {
        color: var(--color-blk);
        transition: color 0.3s ease;
    }

    body nav ul li a::before,
    body nav ul li a::after {
        opacity: 0;
        transition: opacity 0s ease 0s;
    }

    body nav ul.active li a::before,
    body nav ul.active li a::after,
    body.home nav ul.active li:nth-child(n) a.home::before,
    body.home nav ul.active li:nth-child(n) a.home::after,
    body.clones nav ul.active li:nth-child(n) a.clones::before,
    body.clones nav ul.active li:nth-child(n) a.clones::after,
    body.creates nav ul.active li:nth-child(n) a.creates::before,
    body.creates nav ul.active li:nth-child(n) a.creates::after,
    body.about nav ul.active li:nth-child(n) a.about::before,
    body.about nav ul.active li:nth-child(n) a.about::after {
        opacity: 1;
        transition: opacity 0s ease 0.3s;
    }

    body.home nav ul li:nth-child(1) a.home,
    body.clones nav ul li:nth-child(2) a.clones,
    body.creates nav ul li:nth-child(3) a.creates,
    body.about nav ul li:nth-child(4) a.about {
        opacity: 0;
        transition: transform 0.3s ease 0s, opacity 0s ease 0s;
    }

    body.home nav ul.active li:nth-child(1) a.home,
    body.clones nav ul.active li:nth-child(2) a.clones,
    body.creates nav ul.active li:nth-child(3) a.creates,
    body.about nav ul.active li:nth-child(4) a.about {
        opacity: 1;
        color: var(--color-blk);
        pointer-events: none;
        cursor: default;
        transition: transform 0.7s ease 0.3s, opacity 0.5s ease 0.1s;
    }

    nav .menu {
        display: block;
        z-index: 999;
    }

    nav .menu.active {
        transition: 1s ease;
    }

    nav .menu .bar:nth-child(2) {
        opacity: 0;
    }

    nav .menu .bar:nth-child(1) {
        transform: translateY(0px) rotate(180deg);
    }

    nav .menu .bar:nth-child(2) {
        opacity: 1;
        transform: translateY(0px) rotate(180deg);
    }

    nav .menu .bar:nth-child(3) {
        transform: translateY(0px) rotate(-180deg);
    }

    nav .menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    nav .menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    nav .menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-container .text-box .name-text,
    .main-container .text-box .name-text2 {
        font-size: 2rem;
    }
}

@media (max-width: 500px) {
    .web-clone-container .img-container {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 330px) {
    .main-container .img-box .main-img {
        width: 100%;
        max-width: 230px;
        height: 230px;
    }
}