/* General styles */

* {
    margin: 0;
    padding:0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-image:  radial-gradient(#000000 1px, transparent 1px), radial-gradient(#000000 1px, #ffffff 1px);
	background-size: 36px 36px;
	background-position: 0 0,18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
}

h1 {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

h2 {
    font-family: "Playwrite AR", cursive;
    font-weight: 200;
    font-style: normal;
    font-size: 2rem;
    text-align: center;
}

h3, h4 {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 0;
    text-align: center;
}

h4 {
    text-decoration: underline dashed;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

p, li, a {
    font-family: "Pixelify Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

span {
    font-family: "Yarndings 20", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 0.75rem;
}

/* Page */

main {
    width: 60%;
    min-height: 80vh;
    height: auto;
    border: 1px #000 solid;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 0;
    min-width: 0;
}

footer {
    border-width: 0 1px 1px 1px;
    border-color: #000;
    border-style: solid;
    width: 60%;
    text-align: center;
    background-color: #fff;
    padding: 0.5rem;
    font-size: 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

section {
    position: relative;
    z-index: 0;
}

section, aside {
    min-width: 0;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.projects {
    display: flex;
    flex-direction: column;
}

article {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.projects,
article {
    min-height: 0;
}

article .heading {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

article .content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 2rem;
    flex-direction: column;
    gap: 2rem;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

/* Left Side */

aside {
    border-right: 1px #000 solid;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.me {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.me img {
    width: 80%;
    aspect-ratio: 1/1;
    border: 1px #000 solid;
    filter: grayscale();
    transition: all 0.2s ease-in-out;
}

.me img:hover {
    filter: none;
}

.bx-menu {
    cursor: pointer;
    display: none;
}

aside nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

ul .list-title {
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    justify-content: center;
    align-items: center;
}

aside nav li button {
    font-family: "Pixelify Sans", sans-serif;
    border: #000 1px solid;
    background-color: #fff;
}

aside nav button {
    text-align: left;
    border:none;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.25rem;
    text-decoration: none;
    background-color: #fff;
    color: #000;
    transition: all 0.3s ease-in-out;
}

aside nav button:hover {
    color: #fff;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

aside nav button:hover,
aside nav button.mixitup-control-active {
    color: #fff;
    background-color: #000;
}

/* Right Side */

section {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.generic {
    display: flex;
    flex-direction: column;
}

/* Loop div effect */

.loop {
    padding-block: 1rem;
    display: flex;
    --gap:20px;
    gap: var(--gap);
    overflow: hidden;
    border-block: 1px solid;
}

.loop ul {
    list-style: none;
    flex-shrink: 0;
    min-width: 100%;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

/* Sobre mi */

.content .yopi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.content .yopi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #000;
    filter: grayscale();
    transition: all 0.2s ease-in-out;
}

.content .yopi img:hover {
    filter: none;
}

.nombreydescripcion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 1rem;
    width: 100%;
}

.nombreydescripcion h3 {
    padding: 0;
}

.accordion {
    margin: 1.5rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.accordion .accordion-header {
    background-color: #000;
    color: #fff;
    padding: 0 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion .accordion-header h3 {
    font-size: 1rem;
}

.accordion-content {
    visibility: hidden;
    max-height: 0;
    transition: max-height 0.6s ease;
    padding: 0 1rem;
    overflow: hidden;
    border: 1px solid #000;
}

.accordion-content ul {
    list-style: none;
}

.accordion-content.yeslist ul {
    list-style-type: disc;
    margin: auto 1rem;
}

.accordion-content.active {
    padding: 1rem;
    visibility: visible;
}

.apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem;
}

.appinfo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.appicon {
    height: 40px;
    width: 40px;
}

.appicon img {
    width: 100%;
    object-fit: contain;
}

.appname {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}

.appname h4 {
    padding: 0;
}

.rating {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.circle {
    width: 12px;
    height: 12px;
    border: 2px solid #000;
    border-radius: 50%;
}

.circle.full {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #000;
}

.contactme {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generic .contactme h3 {
    text-align: center;
}

.contactme span {
    font-size: 1rem;
}

.rrss {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.rrssicon {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
}

.rrssicon a {
    width: 30px;
    height: auto;
    margin-right: 1rem;
}
.rrssicon img {
    width: 100%;
}

/* Campaña */

.columnsimg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.columnsimg img {
    width: 100%;
    border: 1px solid #000;
}

.separator {
    height: 20px;
}

/* Fotografía Slider */

.slider {
    margin: 0 auto 1rem;
    width: 100%;
    display: flex;
    position: relative;
    overflow-x: auto;
    gap: 1rem;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: spin 40s infinite linear;
    padding-right: 1rem;
}

.slide {
    flex: 0 0 1rem;
    height: auto;
    padding: 1rem;
    perspective: 3rem;
}

.slide img {
    cursor: pointer;
    border: 1px #000 solid;
    width: auto;
    height: 250px;
    transition: transform 0.5s ease;
}

.slide img:hover {
    transform: scale(1.05);
}

.slider:hover .slide-track {
    animation-play-state: paused;
}

@keyframes spin {
    from {
        translate: 0;
    }
    to {
        translate: -100%
    }
}

/* Fotografía zoom */

.lightboxOverlay {
  background-color: #fff;
  opacity: 0.8;
}

.lb-caption, .lb-number {
    font-family: "Pixelify Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color:#000 !important;
}

.lightbox .lb-image {
  /* Image border */
  border: 2px solid #000;
}

.lb-cancel {
  background: url(https://zamiraluna.wordpress.com/wp-content/uploads/2025/11/loading.gif) no-repeat;
}

.lb-data .lb-close {
  background: url(https://zamiraluna.wordpress.com/wp-content/uploads/2025/11/close.png) top right no-repeat;
}

.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-thumb {
    background: #000;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

/* Packaging */

article .three {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    flex-wrap: nowrap;
    gap: 1rem;
}

.mix.gfxdesign .content.two .generic {
    padding: 2rem 0 1rem;
}

.content h3 {
    font-size: 1.5rem;
    text-align: left;
}

.content h4 {
    font-size: 1rem;
    text-align: left;
}

.content .three {
    padding: 0;
}

.three .generic img {
    width: 100%;
    border: 1px solid #000;
}

.categories p {
    background-color: #000;
    color: #fff;
    border-radius: 10rem;
    width: fit-content;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 200;
}

.explanation {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
}

.explanation .eintro {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explanation a {
    flex: 1;
}

.explanation img {
    width: 100%;
    height: 100%;
    border: 1px solid #000;
    object-fit: cover;
}

.generic .generic {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.generic .nb img {
    border: none;
}

.three::-webkit-scrollbar {
    width: 6px;
}

.three::-webkit-scrollbar-thumb {
    background: #000;
}

.three::-webkit-scrollbar-track {
    background: transparent;
}

/* Interfaz */

.bcenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content button {
    background-color: #000;
    border-radius: 10rem;
    width: fit-content;
    padding: 0.25rem 1rem;
    font-size: 1rem;
    font-weight: 200;
    margin-top: 1rem;
    transition: all 0.2s ease-in-out;
}

.content button:hover {
    transform: scale(1.1);
}

.content button a {
    text-decoration: none;
    color: #fff;
}

.subcategories {
    display: flex;
    padding-bottom: 1rem;
}

.subcategories ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.subcategories h4 {
    margin: 0;
    padding: 0.25rem 0;
}

.subcategories li {
    background-color: #fff;
    color: #000;
    border: #000 solid 1px;
    border-radius: 10rem;
    width: fit-content;
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 100;
}

.lap-gif {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.lap-gif img {
    width: 60%;
    height: auto;
}

/* GFX Design */

article .two {
    padding: 0 2rem 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

.two::-webkit-scrollbar {
    width: 6px;
}

.two::-webkit-scrollbar-thumb {
    background: #000;
}

.two::-webkit-scrollbar-track {
    background: transparent;
}

.two h3 {
    margin-top: 0;
    text-align: left;
    font-size: 1.5rem;
}

.fotosdeperfil {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.fotosdeperfil img {
    width: 100%;
    cursor: pointer;
    border: 1px solid #000;
    height: auto;
    display: block;
}

.banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    grid-auto-rows: minmax(0, auto);
}

.banners img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border: 1px solid #000;
}

/* popup */

dialog {
    border: 1px solid #000;
    padding: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-content {
    background-color: #fff;
    color: #000;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popupimg img {
    height: 50vh;
    width: auto;
}

.popuptxt {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#popup-text {
    font-weight: 600;
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #000;
}

dialog::backdrop {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

/* Responsive */

@media (max-width: 1280px) {
    
    .explanation {
        flex-direction: column;
    }

    .generic .generic {
    flex-direction: column;
    }

}

@media (max-width: 1180px) {
    .accordion {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {

    aside {
        padding: 1rem;
        gap: 1rem;
    }

    .fotosdeperfil {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    }

    .banners {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
        grid-auto-rows: minmax(0, auto);
    }

}

@media (max-width: 940px) {
    main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    /* Left Side */

    aside {
        border-bottom: 1px #000 solid;
        padding: 1.5rem;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-between;
    }

    .me {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: flex-start;
    }

    .me img {
        width: 5%;
        aspect-ratio: 1/1;
    }

    .bx-menu {
        display: block;
    }

    .button-group {
        display: none;
        position: absolute;
        top: 13%;
        right: 20%;
        background-color: #000;
        padding: 0.5rem;
        z-index: 9999;
    }

    .button-group .list-title {
        color: #fff;
    }

    .button-group.active {
        display: flex;
    }

}

@media (max-width: 830px) {

    .content .yopi {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .apps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .popupimg img {
    height: auto;
    width: 70vh;
    }

    .columnsimg {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 700px) {

    .me img {
        display: none;
    }
}

@media (max-width: 600px) {

    h1 {
        font-size: 1rem;
    }

    .generic .contactme {
        padding-bottom: 1rem;
    }

}