:root {
    --foggy-white: #D6D9D3;
    --cool-gray: #9BA3A8;
    --soft-sky-blue: #8EA6B8;
    --earthy-brown: #6A4E3C;
    --dark-moss-green: #3F4E44;
    --deep-varish-green: #1F2824;
    --golden-blonde: #C7A36F;
    --muted-teal: #5E7A85;
}

/* MARK: COMMON */

*{
    font-family: "Zain";
}

body{
    margin: 0;
    padding: 0;
}

h1,h2,h3 {
    font-family: "Bahianita";
}

section > h2 {
    font-size: 3.5em;
    text-align: center;
    margin: 0;
    padding: 50px 0;
    background-color: white;
}

section > h2 span{
    display: inline-block;
    margin: 0 8px;
    font-size: 0.7em;
    transform: translateY(-3.5px);
}

i{
    color: var(--earthy-brown);
    font-weight: bold;
}

b{
    color: var(--muted-teal);
}

.division {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 20px 50px;
    padding: 20px 40px;
}

.division > * {
    flex-basis: 50%;
}

.listaH {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.sombra {
    filter: drop-shadow(3px 3px 5px #0000007c);
}

.texto {
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.466);
    backdrop-filter: blur(20px);
    text-align: center;
}


/* MARK: SVG Icons */

.icon-github {
    width: 100%;
    height: 100%;
}

.icon-instagram{
    transform: scale(0.8) translateY(-10px);
}

.icon-itch {
    width: 100%;
    height: 100%;
}

.icon-youtube {
    width: 100%;
    height: 100%;
}

/* MARK: Navbar */

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 10vh;
    
}

.header-logo{
    margin: 0;
}

.header-logo > *{
    display: inline-block;
    height: 100%;
}

.header img {
    box-sizing: border-box;
    margin-left: 10px;
    padding: 10px 10px;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.459));
}

.header-logo p {
    margin: 0 15px;
    font-family: "Cherry Bomb One";
    font-size: 2.1rem;
    scale: 1.2;
    transform: translateY(-15px);
    color: var(--earthy-brown);
}

.header-logo p:first-child {
    transform: translateY(0px);
}

.header nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0 15px;
    height: 100%;
}

.header nav a {
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    padding: 15px 20px;
    margin-top: 10px;
    font-family: "Bahianita";
    font-size: 2rem;
    color: var(--dark-moss-green);
}

.header nav a:hover {
    background-color: var(--dark-moss-green);
    color: white;
}


/* MARK: AVATAR */

.avatar-container {
    position: relative;
    display: block;
    margin: 0;
}

.avatar-container > * {
    position: absolute;
}

.avatar-container img {
    width: 100%;
}

.avatar-container div {
    width: 100%;
}

.avatar-head {
    transition-duration: 500ms;
    animation: anim-avatar-hello-move 2s, anim-avatar-hello-scale 2s;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(0.65,1.39,.39,1.02);
}

#avatarHead0 {
    filter: drop-shadow(3px 3px 5px #0000007c);
}

#avatarHead3 {
    animation-delay: 30ms;
    transition-delay: 10ms;
    filter: drop-shadow(3px 3px 5px #0000007c);
}

#avatarHead4 {
    animation-delay: 30ms;
    transition-delay: 25ms;
    filter: drop-shadow(3px 3px 5px #0000007c);
}

.avatar-circles {
    opacity: 0.2;
    animation: anim-avatar-circle-spin 4s, anim-avatar-circle-scale 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.avatar-circles:nth-child(1) {
    transform-origin: 52% 50%;
    animation-delay: -1s;
}

.avatar-circles:nth-child(2) {
    transform-origin: 49% 51%;
    filter: invert();
}

.avatar-circles:nth-child(3) {
    transform-origin: 49% 49%;
    animation-delay: -2s;
}


@keyframes anim-avatar-circle-spin {
    0%{
        transform: rotateZ(0deg);
    }
    50% {
        transform: rotateZ(180deg);
    }
    100%{
        transform: rotateZ(360deg);
    }
}

@keyframes anim-avatar-circle-scale {
    0%{
        scale: 0.9;
    }
    50% {
        scale: 0.8;
    }
    100%{
        scale: 0.9;
    }
}

@keyframes anim-avatar-hello-move {
    0%{
        transform: translateY(1000px);
    }
    100%{
        transform: translateY(0px);
    }
}

@keyframes anim-avatar-hello-scale {
    0%{
        scale: 0.9;
    }
    100%{
        scale: 1.0;
    }
}

/* MARK: PRESENTACION */

.bg-1 {
    z-index: -1;
    display: block;
    position: absolute;
    top: 10vh;
    width: 100%;
    height: 90vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.bg-1 img {
    position: relative;
    left: -600px;
    height: 130vh;
}

.bg-2 {
    z-index: -2;
    position: fixed;
    width: 100%;
    opacity: 0.3;
    transition-timing-function: linear;
}

.introduce{
    box-sizing: border-box;
    height: 90vh;
    overflow-y: hidden;
    margin: 0;
    padding: 40px 100px;
}

.introduce h1 {
    font-size: 4em;
}

.introduce > div:nth-child(2) {
    position: relative;
    box-sizing: border-box;
    padding: 30px 60px;
    border-radius: 20px;
    background-color: white;
}

.introduce p {
    font-size: 2.1em;
    font-weight: lighter;
}

.introduce-social {
    position: absolute;
    right: 50px;
    scale: 0.5;
}

.introduce-social figure {
    display: block;
    margin: 0 20px;
    position: relative;
    width: 115px;
    height: 115px;
}

.introduce-social figcaption {
    position: absolute;
    top: 120px;
    right: -10px;
}

.introduce-social svg {
    fill: var(--dark-moss-green);
}

/* MARK: CODE */

.code-main-sec {
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 40px 60px;
    border-radius: 20px;
    background-color: #ffffff63;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.code-main-sec div:last-child {
    padding: 30px 50px;
}

.code-main-sec h3 {
    font-size: 4em;
}

.code-main-sec p {
    font-size: 1.3em;
}

.code-main-sec iframe {
    width: 80%;
}

.code-firstGame{
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../img/code_section/capa_juego_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    padding: 0;
}

.code-firstGame > img {
    width: 100%;
    height: 100%;
    animation-name: anim-code-titulo;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.code-otros-list h3 {
    display: block;
    margin: 0 auto;
    width: 300px;
    font-size: 2.5rem;
    text-align: center;
    background-color: white;
}

.code-otros-list ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.code-otros-list a {
    text-decoration: none;
}

.code-otros-list article {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    align-items: center;
    width: 400px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.code-otros-list figure {
    margin: 0;
}

.code-otros-list div {
    box-sizing: border-box;
    position: relative;
    height: 100%;
    padding-top: 15px;
}

.code-otros-list span {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 7px;
    border-radius: 7PX;
    font-size: 0.7em;
    font-weight: lighter;
    letter-spacing: 1px;
}

.code-otros-list img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.code-otros-list h4 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.code-otros-list p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.code-state-workin{
    background-color: var(--foggy-white);
    color: black;
}

.code-state-done{
    background-color: var(--golden-blonde);
    color: black;
}

@keyframes anim-code-titulo {
    0%,100%{
        transform: scale(1.0);
    }
    50%{
        transform: scale(1.05);
    }
}

/* MARK: MUSICA */

.music > p{
    font-size: 2em;
}

.music-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.music-list article {
    display: block;
    margin: 10px;
    width: 400px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.music-list iframe {
    width: 100%;
}

.music-list div {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 10px 15px;
}

.music-list h4,
.music-list span,
.music-list time{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.music-list h4 {
    margin: 0;
    font-size: 2em;
    color: var(--dark-moss-green);
}

.music-list h4::after{
    content: " ";
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--dark-moss-green);
    transform: translateY(-6px);
}

.music-list span {
    margin: 0;
    font-size: 1.5em;
    transform: translateY(-0.4em);
    color: #6A4E3C;
}

.music-list time {
    margin: 0;
    font-size: 1em;
    transform: translateY(-0.5em);
}

/* MARK: ANIMACION */

.animation > p{
    font-size: 2em;
}

.animation-yt ul,
.animation-ig ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.animation-ig figure {
    display: block;
    box-sizing: border-box;
    margin: 0;
    width: 540px;
    transition-duration: 0.5s;
}

.animation-yt article {
    display: block;
    width: 540px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    background-color: white;
    transition-duration: 0.5s;
}

.animation-yt article:hover,
.animation-ig figure:hover {
    transform: scale(1.05);
}

.animation-yt a img {
    width: 100%;
}

.animation-yt div {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;    
}

.animation-yt span::before {
    content: "";
    display: inline-block;
    margin-right: 5px;
    width: 0.9em;
    height: 0.9em;
    background-image: url(../img/icons/playBtn_googleFonts.svg);
    background-size: contain;
    transform: translateY(0.15em);
}

.animation-yt span {
    font-size: 1.5em;
}

.animation-yt h4 {
    margin: 0;
    font-size: 2em;
    color: var(--dark-moss-green);
}

.animation-yt h4::after {
    content: " ";
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--dark-moss-green);
    transform: translateY(-6px);
}

.animation-yt time {
    padding: 2px 10px;
    border-radius: 7px;
    background-color: var(--dark-moss-green);
    color: white;
}

/* MARK: CONTACTO */

.contact {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 40px;
    background-color: white;
}

.contact h2 {
    margin: 20px;
    text-align: center;
    font-size: 4rem;
}

.contact ul {
    margin: 0 100px;
    padding: 50px 100px; 
    align-items: center;
    justify-content: space-around;
}

.contact a {
    text-decoration: none;
    color: var(--dark-moss-green);
}

.contact figure {
    display: grid;
    grid-template-rows: 2fr 1fr;
    justify-items: center;
    align-items: center;
    margin: 0;
    width: 100%;
    height: 170px;
}

.contact figcaption {
    text-align: center;
}

.contact svg {
    transition-duration: 0.5s;
    fill: var(--dark-moss-green);
}

.contact svg:hover {
    scale: 1.1;
}

.contact p{
    margin: 0;
    margin-top: 200px;
    padding: 0;
    text-align: center;
    opacity: 0.7;
}


@media (max-width: 1000px) {
    .header {
        display: none;
    }

    /* Ajustar tamaño de los SVG en la sección de contacto */
    .contact svg {
        width: 50px;
        height: 50px;
    }

    /* Opcional: reducir márgenes y tamaño de fuente en párrafos */
    .contact p {
        margin-top: 100px;
        font-size: 1.2em;
    }

    .bg-1 {
        display: none;
    }
    
    .division {
        flex-direction: column;
    }

    
    .avatar-container img {
        width: 50%;
    }
    
    .introduce {
        height: auto;
    }
    
    .introduce h1 {
        font-size: 3rem;
    }

    .introduce-social {
        top: -35px;
        right: -40px;
    }

    .introduce-avatar {
        display: none;
    }
}