:root {
    --bg_primary_solid: #08081a;
    --bg_primary: linear-gradient(
        90deg,
        rgba(8, 8, 26, 1) 0%,
        rgba(38, 38, 74, 1) 25%,
        rgba(11, 11, 33, 1) 43%,
        rgba(11, 11, 36, 1) 100%
    );
    --bg_secondary: rgb(129, 129, 129);
    --txt_primary: rgb(201, 201, 201);
    --txt_secondary: rgb(8, 12, 26);
    --light_mode: rgba(255, 255, 0, 0.149);
    --border-form: black;
    --bg-form: rgb(80, 80, 80);
    --bg_form_secondary: rgb(129, 129, 129);
    --bg-secondary-section: rgb(16, 23, 50);
    --bg-primary-section: rgb(12, 16, 36);
}

.dark {
    --bg_primary_solid: #d1d1d1;
    --bg_primary: linear-gradient(
        90deg,
        rgba(209, 209, 209, 1) 0%,
        rgba(143, 143, 143, 1) 25%,
        rgba(209, 209, 209, 1) 43%,
        rgba(209, 209, 209, 1) 100%
    );
    --bg_secondary: rgb(51, 52, 55);
    --txt_primary: rgb(8, 12, 26);
    --txt_secondary: rgb(201, 201, 201);
    --light_mode: rgba(37, 37, 13, 0.149);
    --border-form: white;
    --bg-form: rgb(51, 52, 55);
    --bg_form_secondary: rgb(129, 129, 129);
    --bg-secondary-section: rgb(163, 163, 163);
    --bg-primary-section: rgb(141, 141, 141);
}


html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 5fr;
    grid-template-areas: 
        "header"
        "main";
    background: var(--bg_primary);
}

header {
    grid-area: header;

    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    padding: 40px 10%;
    border-bottom: 0.1px var(--txt_primary) dotted;
}

#right-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#language-box-container{
    position: relative;
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#lang-logo{
    width: 30px;
    height: 30px;
    margin-right: 10px;
    text-align: center;
}

#lang-logo i{
    margin-top: 8px;
}

#lang-logo:hover{
    border-top: 0.8px rgb(58, 58, 58) solid;
    border-left: 0.8px rgb(59, 59, 59) solid;
    transform: scale(1.025);
    cursor: pointer;
}

#lang-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

#lang-opt{
    position: absolute;
    top: 120%;                    
    right: 0;
    margin: 0;
    width: 100px;
    height: 100px;
    border: 0.8px rgb(59, 59, 59) solid;
    border-radius: 10px;
    background-color: var(--bg-primary-section);
    color: var(--bg_secondary);
    padding: 15px;
    padding-right: 15px;
    pointer-events: all;
    z-index: 9999;
}

#lang-opt.hide{
    display: none;
}

.lang-selec{
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 10px;
}

.lang-selec:hover{
    border: 0.8px rgb(58, 58, 58) solid;
    transform: scale(1.025);
    cursor: pointer;
}


#right-block #btn-menu {
    background-color: rgba(255, 255, 255, 0);
    height: 40px;
    width: 60px;
    border: none;
    font-family: sans-serif;
    font-size: medium;
    color: var(--txt_primary);
}

#right-block #btn-menu:hover {
    border-top: 0.8px rgb(58, 58, 58) solid;
    border-left: 0.8px rgb(59, 59, 59) solid;
    transform: scale(1.025);
    cursor: pointer;
}

#right-block #btn-return {
    background-color: rgba(255, 255, 255, 0);
    height: 40px;
    width: 40px;
    border: none;
    font-family: sans-serif;
    font-size: x-large;
    color: var(--txt_primary);
}

#right-block #btn-return:hover {
    border-top: 0.8px rgb(58, 58, 58) solid;
    border-left: 0.8px rgb(59, 59, 59) solid;
    transform: scale(1.025);
    cursor: pointer;
}

#right-block #btn-return-2 {
    background-color: rgba(255, 255, 255, 0);
    height: 40px;
    width: 40px;
    border: none;
    font-family: sans-serif;
    font-size: x-large;
    color: var(--txt_primary);
}

#right-block #btn-return-2:hover {
    border-top: 0.8px rgb(58, 58, 58) solid;
    border-left: 0.8px rgb(59, 59, 59) solid;
    transform: scale(1.025);
    cursor: pointer;
}

#right-block #btn-close-prj {
    background-color: rgba(255, 255, 255, 0);
    height: 40px;
    width: 40px;
    border: none;
    font-family: sans-serif;
    font-size: x-large;
    color: var(--txt_primary);
}

#right-block #btn-close-prj:hover {
    border-top: 0.8px rgb(58, 58, 58) solid;
    border-left: 0.8px rgb(59, 59, 59) solid;
    transform: scale(1.025);
    cursor: pointer;
}

#logo {
    width: 50px;
}

#btn-mode {
    width: 40px;
    border-radius: 10px;
}

#btn-mode:hover {
    transform: scale(1.025);
    box-shadow: inset 0px 2px 10px 5px var(--light_mode);
    cursor: pointer;
}

/*Main-screen*/

main {
    position: relative;
    grid-area: main;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    overflow: hidden;
}

/*Main div*/

#main {
    border: 3px var(--txt_primary) solid;
    border-radius: 30px;
    border-bottom-left-radius: 0px;
    padding: 50px 70px;
    padding-bottom: 30px;
    margin-bottom: 80px;

    opacity: 1;
    transition: opacity 1s ease;
}

#main.is-hide {
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}



#intro{
    height: 50%;
    display: flex;
    align-items: end;
    justify-content: center;
}


#intro h2{
    width: 380px;
    text-align: center;
    font-family: sans-serif;
    color: var(--txt_primary);
}

#opt{
    height: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 70px;
    text-decoration: underline;
    color: var(--txt_primary);
}

#opt p {
    padding: 5px 5px;
    height: 20px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

#opt p:hover {
    transform: scale(1.025);
    border: 1px var(--txt_primary) solid;
    border-radius: 5px;
    border-bottom-left-radius: 0px;
    cursor: pointer;
    transform: scale(1.025);
    transition: transform 0.3s ease;
}

/*Menu div*/

#menu{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 30%;
    margin-bottom: 70px;
    font-size: x-large;
    font-family: sans-serif;
    color: var(--txt_primary);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
}

#menu.is-visible {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.8s ease, opacity 0.8s ease;
  pointer-events: auto;
}

#menu-container {
    border-left: 3px var(--txt_primary) dotted;
    border-bottom: 3px var(--txt_primary) dotted;
    padding: 10px 100px;
}

#menu-container ul {
    padding-left: 100px;
}

#menu-container li {
    gap: 5px;
    width: 200px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

#menu-container li:hover {
    padding-left: 3px;
    padding-top: 3px;
    transform: scale(1.025);
    border-top: 0.8px rgb(58, 58, 58) solid;
    border-left: 0.8px rgb(59, 59, 59) solid;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.hide {
    display: none; 
}

#menu.hide {
    display: none; 
}

/*Secciones*/

/*About me*/

#am{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5%;

    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

#am.is-visible {
    opacity: 1;
    transition: opacity 0.7s ease;
    pointer-events: auto;
}


#txt-am{
    width: 45%;
    height: 80%;
    color: var(--txt_primary);
    display: flex;
    align-items: center;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

#img-side{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0px;
}

#img-am{
    width: 150px;
    border-radius: 30px;
    box-shadow: 3px 3px 10px -3px var(--txt_primary);
}


.img-box-box {
    color: var(--txt_primary);
    font-size: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 80px;            
    height: 200px; 
    padding-bottom: 30px;   
}

/*SKILLS*/

#skills {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    grid-auto-rows: 250px;
    gap: 30px;

    align-items: center;
    align-content: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

#skills.is-visible {
    opacity: 1;
    transition: opacity 0.7s ease;
    pointer-events: auto;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-bottom: 0.2px var(--txt_primary) dotted;
}

.skill img {
    width: 150px;
}

#mongo img {
    width: 115px;
}

.skill h3 {
    text-align: center;
    color: var(--txt_primary);
}

/*Contacto*/

#contact {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--txt_primary);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

#contact.is-visible {
    opacity: 1;
    transition: opacity 0.7s ease;
    pointer-events: auto;
}

#formulario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70%;
}

form {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
    width: 30%;
    height: 80%;
    border: 0.3px var(--txt_primary) solid;
    background-color: var(--bg-form);
    color: var(--txt_secondary);
    border-radius: 20px;
    padding: 15px 30px;
}

form h3 {
    text-align: center;
    justify-self: baseline;
    border-bottom: 0.3px var(--txt_secondary) dotted;
    width: 100%;
    margin-top: 0px;
    height: 10%;
    letter-spacing: 3px;
    font-weight: 600;
}

form input {
    margin-bottom: 20px;
    width: 100%;
    padding: 5px 5px;
    outline: none;
    border-radius: 5px;
    background-color: var(--bg_form_secondary);
    color: var(--txt_primary);
    font-family: Arial, Helvetica, sans-serif;
    border: 0.3px var(--border-form) solid;

}

form textarea {
    overflow-y: scroll;
    margin-bottom: 20px;
    width: 100%;
    padding: 5px 5px;
    outline: none;
    border-radius: 5px;
    background-color: var(--bg_form_secondary);
    color: var(--txt_primary);
    font-family: Arial, Helvetica, sans-serif;
    border: 0.3px var(--border-form) solid;
}

#btn-submit {
    align-self: center;
    width: 80%;
    padding: 10px;
    outline: none;
    border-radius: 5px;
    background-color: var(--bg_form_secondary);
    color: var(--txt_secondary);
    font-family: Arial, Helvetica, sans-serif;
    border: 0.3px var(--border-form) solid;
    letter-spacing: 3px;
    font-weight: bold;
}

#social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 70px;
    width: 100%;
    height: 30%;
    border-top: 0.2px var(--txt_primary) dotted;
}

.media {
    height: 80%;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.media:hover {
    transform: scale(1.025);
    transition: transform 0.3s ease;
}

.media img {
    width: 65px;
}

.media #gmail {
    width: 100px;
}

.media p {
    text-align: center;
    font-size: medium;
}

/*Projects*/

#proj {
    position: absolute;
    inset: 0;
    color: var(--txt_primary);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

#proj.is-visible {
    opacity: 1;
    transition: opacity 0.7s ease;
    pointer-events: auto;
}

#proj h2{
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    height: 50px;
    letter-spacing: 3px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
}

#slide-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    top: 80px;
    overflow: hidden;
}

#slider{
    width: 100%;
    height: 75%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;      /* NO crecer, NO encoger, ancho = 100% */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;  /* centro horizontal del contenido del proyecto */
  justify-content: center; /* centro vertical del contenido */
  box-sizing: border-box;
  padding: 20px;
}

.slide img{
    width: 200px;
    border-radius: 10px;
    padding: 3px 3px;
    border: 0.2px var(--bg_secondary) solid;
}

.slide h3{
    text-align: center;
    pointer-events: none;
}

.slide div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 20%;
    overflow: hidden;
}

.slide div img {
    width: 30px;
    margin: 10px;
    padding: 5px;
    border: none;
    transform: scale(1);
    transition: transform 0.3s ease;   
}

.slide div img:hover {
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.slide img:hover {
    transform: scale(1.025);
    transition: transform 0.3s ease;
    box-shadow: 0px 0px 10px var(--bg-form);
    cursor: pointer;
}

#project-controller{
    position: absolute;
    inset: 0;
    top: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: var(--txt_primary);
    pointer-events: none;
}

#project-controller p {
    width: 40px;
    margin: 10px 350px;
    text-align: center;
    font-size: x-large;
    font-weight: 700;
    transform: scale(1);
    transition: transform 0.1s ease;
    pointer-events: auto;
    z-index: 12;
}
#project-controller p:hover {
    transform: scale(1.035);
    transition: transform 0.1s ease;
    cursor: pointer;
}

/*Project self*/

.prj-self {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: baseline;
    color: var(--txt_primary);
    margin-bottom: 15px;
}

.prj-ttl {
    flex: 0 0;
    min-height: 20%;
    margin: 7.5px 15px;
    margin-top: 15px;
    margin-bottom: none;
    letter-spacing: 3px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prj-section {
    flex: 0 0;
    min-height: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 7.5px 15px;
    gap: 15px;
}

.prj-section:last-child {
    margin-bottom: 15px;
}

.prj-par .p-prj {
    background-color: var(--bg-secondary-section);
}

.prj-par .prj-lng {
    background-color: var(--bg-secondary-section);
}

.p-prj {
    width: 60%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px var(--border-form) solid;
    border-radius: 20px;
    padding: 0px 30px;
    background-color: var(--bg-primary-section);
}

.p-prj p {
    width: 60%;
    font-size: large;
}

.prj-git-link{
    width: 60%;
    min-height: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px var(--border-form) solid;
    border-radius: 20px;
    padding: 10px 10px;
    background-color: var(--bg-secondary-section);
}

.git-txt{
    width: 40%;
}

.link-ttl{
    padding: 0px 30px;
    text-align: center;
}

.link-git{
    width: 20%;
}

.link-git:hover{
    cursor: pointer;
    transform: scale(1.025);
}

.git-img{
    width: 60%;
}

.prj-lng {
    min-width: 400px;
    height: 100%;
    padding: 10px 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
    grid-auto-rows: 100px;
    gap: 15px;
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: center;
    border: 1px var(--border-form) solid;
    border-radius: 20px;
    padding: 0px 10px;
    background-color: var(--bg-primary-section);
}

.prj-lng-img {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.2px var(--txt_primary) solid;
    border-radius: 1000px;
}

#mongodb img{
    width: 60px;
}
#opencv img{
    width: 80px;
}

.prj-lng-img.opencv {
    width: 80px;
    padding: 20px 20px;
    border: 0.2px var(--txt_primary) solid;
    border-radius: 1000px;
}

.img-prj {
    width: 40%;
    height: 100%;
    object-fit: contain;
    border: 1px var(--border-form) solid;
    border-radius: 20px;
    background-color: var(--bg-primary-section);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-prj img {
    height: 80%;
    max-width: 90%;
    object-fit: contain;
    border-radius: 15px;
}

.prj-section.prj-par .img-prj {
    background-color: var(--bg-secondary-section);
}

#TDS {
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
}

#TDS.is-visible {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.8s ease, opacity 0.8s ease;
  pointer-events: auto;
  overflow-y: auto;
}

#INFOOT {
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
}

#INFOOT.is-visible {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.8s ease, opacity 0.8s ease;
  pointer-events: auto;
  overflow-y: auto;
}

#NEXT_DESTINY {
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
}

#NEXT_DESTINY.is-visible {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.8s ease, opacity 0.8s ease;
  pointer-events: auto;
  overflow-y: auto;
}

#NOTES {
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
}

#NOTES.is-visible {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.8s ease, opacity 0.8s ease;
  pointer-events: auto;
  overflow-y: auto;
}

/*Responsivity*/

@media(max-width: 435px){
    #right-block {
        margin-bottom: 5px;
    }

    #main{
        width: 80%;
        padding: 40px 0px;
        padding-top: 30px;
    }

    #intro{
        height: 70%;
    }

    #intro h2{
        width: 80%;
        text-align: center;
        font-family: sans-serif;
        color: var(--txt_primary);
    }

    #opt{
        height: 30%;
    }

    #menu{
        width: 80%;
        padding: 0px 10%;
        font-size: large;
    }

    #menu-container {
        padding: 10px 50px;
    }

    #menu-container ul {
        padding-left: 50px;
    }

    #menu-container li {
        margin-bottom: 15px;
    }

    #am{
        flex-direction: column;
        margin: 10px 10px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg-primary-section);
        padding: 10px 10px;
        gap: 5%;
    }

    #img-side{
        margin-top: 20px;
        order: -1;
    }

    #img-am{
        width: 75px;
        border-radius: 15px;
        box-shadow: 1px 1px 5px -1px var(--txt_primary);
    }

    .img-box-box {
        font-size: 100px;
        width: 40px;            
        height: 100px; 
        padding-bottom: 15px;   
    }

    #txt-am{
        width: 80%;
        height: 70%;
        padding: 5px 30px;
        font-size: 12px;
        background-color: var(--bg-secondary-section);
        border: 1px var(--bg-primary-section) solid;
        border-radius: 10px;
        overflow-y: scroll;
    }

    #skills {
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 125px;
        gap: 15px;
        justify-items: center;
    }

    .skill {
        width: 100px;
        height: 100px;
    }

    .skill img {
        width: 75px;
    }

    #typescript img{
        width: 68px;
    }

    #mongo img {
        width: 57px;
    }

    #formulario {
        height: 70%;
    }

    form {
        width: 70%;
    }

    .media img {
        width: 32px;
    }

    .media #gmail {
        width: 50px;
    }

    #social-media {
        padding-top: 20px;
        flex-direction: row;
        gap: 5px;
    }

    .media p {
        text-align: center;
        font-size: 8px;
    }

    #proj h2{
        top: 30px;
        height: 30px;
        letter-spacing: 2px;
    }
   
    .slide img{
        width: 150px;
        border-radius: 10px;
        padding: 2px 2px;
    }

    #infoot{
        width: 380px;
    }

    .slide_nd img{
        padding-right: 10px;
    }

    .slide div {
        width: 95%;
        height: 13%;
        overflow: visible;
        border-radius: 20px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg_form_secondary);
    }

    .slide div img {
        width: 40px;
        margin: 10px;
        padding: 6px;   
    }

    #project-controller{
        top: 60px;
    }

    #project-controller p {
        width: 40px;
        margin: 10px 150px;
        font-size: x-large;
        font-weight: 800;
    }


    .prj-section {
        flex-direction: column;
        margin: 40px 0px;
        gap: 20px;
    }

    .p-prj {
        width: 90%;
        height: 100%;
        padding: 0px 0px;
    }

    .p-prj p {
        width: 80%;
        font-size: 14px;
    }

    .img-prj {
        order: -1;
        width: 90%;
        height: 100%;
    }

    .img-prj img {
        height: 90%;
        max-width: 90%;
    }

    #lan-tdm{
        height: 200px;
    }

    .prj-lng {
        width: 90%;
        height: 90%;
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 75px;
        gap: 15px;
        padding: 0px 0px;
    }

    .prj-lng-img {
        width: 75px;
        height: 75px;
    }
        #mongodb img{
        width: 40px;
    }
    #opencv img{
        width: 55px;
    }
    .prj-lng-img.opencv {
        width: 55px;
    }

    .prj-git-link{
        width: 90%;
    }

    .git-txt{
        width: 60%;
    }
    
    .link-ttl{
        padding: 0px 15px;
    }

}

@media(max-width: 390px){
        #right-block {
        margin-bottom: 5px;
    }

    #main{
        width: 80%;
        padding: 40px 0px;
        padding-top: 30px;
    }

    #intro{
        height: 70%;
    }

    #intro h2{
        width: 80%;
        text-align: center;
        font-family: sans-serif;
        color: var(--txt_primary);
    }

    #opt{
        height: 30%;
    }

    #menu{
        width: 80%;
        padding: 0px 10%;
        font-size: large;
    }

    #menu-container {
        padding: 10px 50px;
    }

    #menu-container ul {
        padding-left: 50px;
    }

    #menu-container li {
        margin-bottom: 15px;
    }

    #am{
        flex-direction: column;
        margin: 10px 10px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg-primary-section);
        padding: 10px 10px;
        gap: 5%;
    }

    #img-side{
        margin-top: 20px;
        order: -1;
    }

    #img-am{
        width: 75px;
        border-radius: 15px;
        box-shadow: 1px 1px 5px -1px var(--txt_primary);
    }

    .img-box-box {
        font-size: 100px;
        width: 40px;            
        height: 100px; 
        padding-bottom: 15px;   
    }

    #txt-am{
        width: 80%;
        height: 70%;
        padding: 5px 30px;
        font-size: 12px;
        background-color: var(--bg-secondary-section);
        border: 1px var(--bg-primary-section) solid;
        border-radius: 10px;
        overflow-y: scroll;
    }

    #skills {
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 125px;
        gap: 15px;
        justify-items: center;
    }

    .skill {
        width: 100px;
        height: 100px;
    }

    .skill img {
        width: 75px;
    }

    #typescript img{
        width: 68px;
    }

    #mongo img {
        width: 57px;
    }

    #formulario {
        height: 65%;
    }

    form {
        width: 70%;
    }

    .media img {
        width: 32px;
    }

    .media #gmail {
        width: 50px;
    }

    #social-media {
        padding-top: 20px;
        flex-direction: column;
        gap: 5px;
    }

    #proj h2{
        top: 30px;
        height: 30px;
        letter-spacing: 2px;
    }
   
    .slide img{
        width: 150px;
        border-radius: 10px;
        padding: 2px 2px;
    }

    #infoot{
        width: 380px;
    }

    .slide_nd img{
        padding-right: 10px;
    }

    .slide div {
        width: 97%;
        height: 18%;
        overflow: visible;
        border-radius: 20px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg_form_secondary);
    }

    .slide div img {
        width: 40px;
        margin: 10px;
        padding: 6px;   
    }

    #project-controller{
        top: 60px;
    }

    #project-controller p {
        width: 40px;
        margin: 10px 150px;
        font-size: x-large;
        font-weight: 800;
    }


    .prj-section {
        flex-direction: column;
        margin:40px 0px;
        gap: 20px;
    }

    .p-prj {
        width: 90%;
        height: 100%;
        padding: 0px 0px;
    }

    .p-prj p {
        width: 80%;
        font-size: 14px;
    }

    .img-prj {
        order: -1;
        width: 90%;
        height: 100%;
    }

    .img-prj img {
        height: 90%;
        max-width: 90%;
    }

    #lan-tdm{
        height: 200px;
    }

    .prj-lng {
        width: 90%;
        height: 90%;
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 75px;
        gap: 15px;
        padding: 0px 0px;
    }

    .prj-lng-img {
        width: 75px;
        height: 75px;
    }
        #mongodb img{
        width: 40px;
    }
    #opencv img{
        width: 55px;
    }
    .prj-lng-img.opencv {
        width: 55px;
    }

    .prj-git-link{
        width: 90%;
    }

    .git-txt{
        width: 60%;
    }
    
    .link-ttl{
        padding: 0px 15px;
    }

}

@media(max-height: 665px){
        #right-block {
        margin-bottom: 5px;
    }

    #main{
        width: 80%;
        padding: 40px 0px;
        padding-top: 30px;
    }

    #intro{
        height: 70%;
    }

    #intro h2{
        width: 80%;
        text-align: center;
        font-family: sans-serif;
        color: var(--txt_primary);
    }

    #opt{
        height: 30%;
    }

    #menu{
        width: 80%;
        padding: 0px 10%;
        font-size: large;
    }

    #menu-container {
        padding: 10px 50px;
    }

    #menu-container ul {
        padding-left: 50px;
    }

    #menu-container li {
        margin-bottom: 15px;
    }

    #am{
        flex-direction: column;
        margin: 10px 10px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg-primary-section);
        padding: 10px 10px;
        gap: 5%;
    }

    #img-side{
        margin-top: 20px;
        order: -1;
    }

    #img-am{
        width: 75px;
        border-radius: 15px;
        box-shadow: 1px 1px 5px -1px var(--txt_primary);
    }

    .img-box-box {
        font-size: 100px;
        width: 40px;            
        height: 100px; 
        padding-bottom: 15px;   
    }

    #txt-am{
        width: 80%;
        height: 70%;
        padding: 5px 30px;
        font-size: 11px;
        background-color: var(--bg-secondary-section);
        border: 1px var(--bg-primary-section) solid;
        border-radius: 10px;
        overflow-y: scroll;
    }

    #skills {
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 125px;
        gap: 15px;
        justify-items: center;
    }

    .skill {
        width: 100px;
        height: 100px;
    }

    .skill img {
        width: 75px;
    }

    #typescript img{
        width: 68px;
    }

    #mongo img {
        width: 57px;
    }

    #formulario {
        height: 80%;
        margin-bottom: 30px;
    }

    form {
        width: 70%;
    }

    form textarea {
        height: 20px;
    }

    .media img {
        width: 32px;
    }

    .media #gmail {
        width: 50px;
    }

    #social-media {
        padding-top: 20px;
        flex-direction: row;
        gap: 30px;
    }


    #proj h2{
        top: 30px;
        height: 30px;
        letter-spacing: 2px;
    }
    
    .media p {
        text-align: center;
        font-size: 8px;
    }
   
    .slide img{
        width: 150px;
        border-radius: 10px;
        padding: 2px 2px;
    }

    #infoot{
        width: 380px;
    }

    .slide_nd img{
        padding-right: 10px;
    }

    .slide div {
        width: 97%;
        height: 18%;
        overflow: visible;
        border-radius: 20px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg_form_secondary);
    }

    .slide div img {
        width: 35px;
        margin: 10px;
        padding: 6px;   
    }

    #project-controller{
        top: 60px;
    }

    #project-controller p {
        width: 40px;
        margin: 10px 150px;
        font-size: x-large;
        font-weight: 800;
    }


    .prj-section {
        flex-direction: column;
        margin:40px 0px;
        gap: 20px;
    }

    .p-prj {
        width: 90%;
        height: 100%;
        padding: 0px 0px;
    }

    .p-prj p {
        width: 80%;
        font-size: 14px;
    }

    .img-prj {
        order: -1;
        width: 90%;
        height: 100%;
    }

    .img-prj img {
        height: 90%;
        max-width: 90%;
    }

    #lan-tdm{
        height: 200px;
    }

    .prj-lng {
        width: 90%;
        height: 90%;
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 75px;
        gap: 15px;
        padding: 0px 0px;
    }

    .prj-lng-img {
        width: 75px;
        height: 75px;
    }
        #mongodb img{
        width: 40px;
    }
    #opencv img{
        width: 55px;
    }
    .prj-lng-img.opencv {
        width: 55px;
    }

    .prj-git-link{
        width: 90%;
    }

    .git-txt{
        width: 60%;
    }
    
    .link-ttl{
        padding: 0px 15px;
    }

}


@media(max-height: 600px){
        #right-block {
        margin-bottom: 5px;
    }

    #main{
        width: 80%;
        padding: 40px 0px;
        padding-top: 30px;
    }

    #intro{
        height: 70%;
    }

    #intro h2{
        width: 80%;
        text-align: center;
        font-family: sans-serif;
        color: var(--txt_primary);
    }

    #opt{
        height: 30%;
    }

    #menu{
        width: 70%;
        padding: 0px 20%;
        font-size: large;
        margin-bottom: 40px;
    }

    #menu-container {
        padding: 10px 50px;
    }

    #menu-container ul {
        padding-left: 50px;
    }

    #menu-container li {
        margin-bottom: 15px;
    }

    #am{
        flex-direction: column;
        margin: 10px 10px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg-primary-section);
        padding: 10px 10px;
        gap: 5%;
    }

    #img-side{
        margin-top: 20px;
        order: -1;
    }

    #img-am{
        width: 75px;
        border-radius: 15px;
        box-shadow: 1px 1px 5px -1px var(--txt_primary);
    }

    .img-box-box {
        font-size: 100px;
        width: 40px;            
        height: 100px; 
        padding-bottom: 15px;   
    }

    #txt-am{
        width: 80%;
        height: 70%;
        padding: 5px 30px;
        font-size: 10px;
        background-color: var(--bg-secondary-section);
        border: 1px var(--bg-primary-section) solid;
        border-radius: 10px;
        overflow-y: scroll;
    }

    #skills {
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 125px;
        gap: 15px;
        justify-items: center;
    }

    .skill {
        width: 100px;
        height: 100px;
    }

    .skill img {
        width: 75px;
    }

    #typescript img{
        width: 68px;
    }

    #mongo img {
        width: 57px;
    }

    #formulario {
        height: 80%;
        margin-bottom: 30px;
    }

    form {
        width: 70%;
    }

    .media img {
        width: 32px;
    }

    .media #gmail {
        width: 50px;
    }

    #social-media {
        padding-top: 20px;
        flex-direction: row;
        gap: 30px;
    }


    #proj h2{
        top: 30px;
        height: 30px;
        letter-spacing: 2px;
    }
    
    .media p {
        text-align: center;
        font-size: 8px;
    }
   
    .slide img{
        width: 150px;
        border-radius: 10px;
        padding: 2px 2px;
    }

    #infoot{
        width: 350px;
    }

    .slide_nd img{
        padding-right: 10px;
    }

    .slide div {
        width: 97%;
        height: 18%;
        overflow: visible;
        border-radius: 20px;
        border: 0.5px var(--bg-secondary-section) solid;
        background-color: var(--bg_form_secondary);
    }

    .slide div img {
        width: 30px;
        margin: 10px;
        padding: 6px;   
    }

    #project-controller{
        top: 60px;
    }

    #project-controller p {
        width: 40px;
        margin: 10px 150px;
        font-size: x-large;
        font-weight: 800;
    }


    .prj-section {
        flex-direction: column;
        margin:60px 0px;
        gap: 20px;
    }

    .p-prj {
        width: 90%;
        height: 100%;
        padding: 0px 0px;
    }

    .p-prj p {
        width: 80%;
        font-size: 14px;
    }

    .img-prj {
        order: -1;
        width: 90%;
        height: 100%;
    }

    .img-prj img {
        height: 90%;
        max-width: 90%;
    }

    #lan-tdm{
        height: 200px;
    }

    .prj-lng {
        width: 90%;
        height: 90%;
        grid-template-columns: repeat(auto-fit, minmax(100px, 150px));
        grid-auto-rows: 75px;
        gap: 15px;
        padding: 0px 0px;
    }

    .prj-lng-img {
        width: 75px;
        height: 75px;
    }
        #mongodb img{
        width: 40px;
    }
    #opencv img{
        width: 55px;
    }
    .prj-lng-img.opencv {
        width: 55px;
    }

    .prj-git-link{
        width: 90%;
    }

    .git-txt{
        width: 60%;
    }
    
    .link-ttl{
        padding: 0px 15px;
    }

}