/* -- animations -- */
@-webkit-keyframes fadeInDown {
    0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    }
    100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    }
    }
    @keyframes fadeInDown {
    0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    }
    100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
    }
} 
/* -- Normalize*/

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}
ul{
    padding: 0;
}
ul li{
    list-style: none;
}
a{
    color: #ef07ad;
    text-decoration: none;
}
h1,h1 *{
    font-size: 1.2rem;
}
h2,h2 *{
    font-size: 1.6rem;
}
h3,h3 *{
    font-size: 1.4rem;
}
h4,h4 *{
    font-size: 1.2rem;
}
h1,h2,h3,h4,h5,p{
    margin-bottom: 12px;
    line-height: 1.3;
}
.block{
    display: block;
}
section{
    padding: 30px 0;
}
img{
    width: 100%;
}
/* -- Colors -- */
.high{
    background: black;
    color: white;
    padding: 5px 5px 2px 5px;
    line-height: 1;
    margin-bottom: 12px;
    display: inline-block;
}
.magenta-color{
    color: #ef07ad;
}
.blue-color{
    color: #00beea;
}
.magenta-bg,.blue-bg{
    position: relative;
}
.magenta-bg::before{
    content: '';
    position: absolute;
    background: #ef07ad;
    width: 100%;
    height: 40%;
    bottom: 10px;
    z-index: -1;

}
.magenta-blue::before{
    content: '';
    position: absolute;
    background: #00beea;
    width: 100%;
    height: 40%;
    bottom: 10px;
    z-index: -1;

}
.caption{
    margin: 20px 0;
}
.caption span{
    border-top:1px solid;
    padding: 5px 0;
    width: 80%;
    display: inline-block;
}
/* -- Google icons -- */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
}
header .theme ul > li > ul > li:nth-child(1) .material-symbols-outlined, header .color .material-symbols-outlined{
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48   
}
header .material-symbols-outlined{
    cursor: pointer;
    font-size: 30px;
}
/* -- Container -- */
.container{
    max-width: 95%;
    margin:0 auto;    
}
.row{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.col{
    width: 100%;
}
/* -- Buttons -- */
.btn{
    cursor: pointer;
    background: black;
    color: white;
    padding: 10px;
    border: 0;
    transition: 0.3s ease-in-out;
    -webkit-box-shadow: -4px 6px 0px 0px rgba(239,7,173,0.49);
    -moz-box-shadow: -4px 6px 0px 0px rgba(239,7,173,0.49);
    box-shadow: -4px 6px 0px 0px rgba(239,7,173,0.49);
  
}
.btn:hover{
    background:#424242;
}
.btn-s{
    background: #ef07ad;
    color: white;
    padding: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.btn-s:hover{
    background: #424242;
}
.less-content{
    display: none;
}
.hide-content{
    display: none;
}
/*--------------------------  Header ------------------------------------- */
header{
    background:white;
    -webkit-box-shadow: 0px 3px 6px -4px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 3px 6px -4px rgba(0,0,0,0.15);
    box-shadow: 0px 3px 6px -4px rgba(0,0,0,0.15);
    position: relative;
    transition: 0.3s ease-in-out;
    width:100%;
}
.h-fixed{
    position: fixed;
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 99;
}
/* -- Container -- */
header .row{
    align-items: center;
}
header .container .row .col:first-child{
    width: 15%;
}
header .container .row .col:nth-child(2){
    width: 35%;
}
header .container .row .col:last-child{
    width: 50%;
}

/* -- Nav -- */
header .menu-desktop{
    display: none;
}
header .logo {
    font-size: 16px;
}
header .logo .name{
    font-weight: 700;
    display: block;
}
header .logo a{
    color: black;
}
header nav {
    padding: 20px;
}
header .menu-mobile nav{
    position: fixed;
    height: 100vh;
    width: 250px;
    z-index: 99999;
    top:0;
    left: -250px;
    background: white;
    transition: 0.3s ease-in-out;

}
header .menu-mobile nav ul li a{
    font-weight: 400;
    font-size: 1.2rem;
    padding: 7px 0;
    display: block;
}
header .menu-mobile nav.active{
    left: 0;
}
body.menu-opened{
    overflow: hidden;
}
body.menu-opened::before{
    content: '';
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.30);
    z-index: 1;
    top: 0;
    left: 0;
    position: fixed;
}
/* -- Settings -- */
header .settings{
    display: flex;
    justify-content: center;
    position: relative;
}
header .settings > div{
    padding: 0 5px;
}
header .settings .color, header .setting .theme{
    position: relative;
}
header .settings .color > ul > li, header .settings .theme > ul > li{
    position: relative;
    height: 50px;
    display:flex;
    justify-content: center;
    align-items: center;
}
header .settings .color > ul > li  .material-symbols-outlined, header .settings .theme > ul > li .material-symbols-outlined{
    transition: 0.3s ease-in-out;
    border-radius: 100%;
}
header .settings .theme > ul > li:hover > .material-symbols-outlined, header .settings .theme > ul > li > ul > li:hover .material-symbols-outlined{
    transition: 0.3s ease-in-out;
    background: #a2a2a2;
}
header .settings .theme > ul > li > ul > li.active .material-symbols-outlined{
    background: #a2a2a2;
}
header .settings .color > ul > li:hover > .material-symbols-outlined{
    transition: 0.3s ease-in-out;    
    background: rgb(239,7,173);
    background: linear-gradient(90deg, rgba(239,7,173,1) 0%, rgba(0,190,234,1) 100%);
    color: white;
}
header .settings .color > ul > li > ul > li:first-child:hover .material-symbols-outlined{
    transition: 0.3s ease-in-out;
    background: #ef07ad;
    color:white;
}
header .settings .color > ul > li > ul > li:first-child .material-symbols-outlined{
    color: #ef07ad;
}
header .settings .color > ul > li > ul > li:last-child:hover .material-symbols-outlined{
    transition: 0.3s ease-in-out;
    background: #00beea;
    color: white;
}
header .settings .color > ul > li > ul > li:last-child .material-symbols-outlined{
    color: #00beea;
}
header .settings .color > ul > li > ul > li.active:first-child .material-symbols-outlined{
    background: #ef07ad;
    color:white
}
header .settings .color > ul > li > ul > li.active:last-child .material-symbols-outlined{
    background: #00beea;
    color: white;
}
header .settings .color > ul > li > ul, header .settings .theme > ul > li > ul{
    position: absolute;
    display: none;
    right: 0;
    width: 100px;
    padding: 10px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background:#fafafa;
    -webkit-box-shadow: 0px 3px 6px -4px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 3px 6px -4px rgba(0,0,0,0.15);
    box-shadow: 0px 3px 6px -4px rgba(0,0,0,0.15);    
}
header .settings .color > ul:hover > li > ul, header .settings .theme > ul:hover > li > ul{
    display: block;
}
header .settings .color > ul:hover > li > ul li, header .settings .theme > ul:hover > li > ul li{
    text-align: center;
}

/* ------------------- PRINCIPAL ------------------------------- */
.expand-more{
    display: none;
}
.principal h1, .principal h1  *{
    font-size: 3.2rem;
    line-height: 1;
}
.principal h1{
    margin-top: 10px;
    font-weight: 900;
}
.principal h1 .magenta-bg{
    font-weight: 400;
}

/*--- About me ---- */
#about-me{
    background: #f6f6f6;
}
.progress {
    width: 100%;
    height: 25px;
}
.progress-wrap{
    background: #ef07ad;
    margin: 5px 0;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    background: #ddd;
    left: 0;
    position: absolute;
    top: 0;
}
.skill-block h4{
    margin-bottom: 0;
    font-size: 1rem;
}

/* -- My work -- */
#my-work{
    margin-top: 30px;
}
.note{
    background: #424242;
    color: white;
    padding: 5px;
    font-size: 0.8rem;
    display: inline-block;
}

.p-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
}
.p-grid .controllers{
    width: 100%;
    display: flex;
    justify-content:space-between;
    align-items: center;
    background: #fafafa;
    padding: 10px;
    margin: 20px 0 0;
}
.p-grid .controllers span{
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.p-grid .controllers span.active, .p-grid .controllers span:hover{
    color: #ef07ad;
}
/* En lista */
.p-grid.list .project{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 1px solid #c7c7c7;
    width: 100%;
}
.p-grid.list .project:last-child{
    border-bottom: 0;
}
.p-grid.list .project > div:first-child{
    width: 30%;
}
.p-grid.list .project > div:last-child{
    width: 70%;
    padding-left: 20px;
}
/* En bloque */
.p-grid .project > div{
    transition: 0.3s ease-in-out;
    width: 100%;
}
.p-grid.grid .project{
    display: block;
    margin-bottom: 50px;
}
.p-grid.grid .project > div{
    width: 100%;
}

/* ----- */
.p-grid.grid .place{
    margin-top: 10px;
}
.p-grid .place{
    font-size: 1.2rem;
}
.project a:not(.btn-s){
    color: black;
    margin-left: 10px;
    text-decoration: underline;
}
.project a:not(.btn-s):hover{
    color: #ef07ad;
}
/* -- Modal -- */
.modal-details{
    position: fixed;
    width: 100%;
    height: 100vh;
    top:0;
    left: 0;
    padding: 0 5%;
    background: rgba(0,0,0,0.50);
    z-index: 99;
    display: none;
    overflow-y: auto;
}
.modal-details .modal-container{
    max-width: 1200px;
    background: white;
    padding: 20px;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.modal-details .close-modal{
    cursor: pointer;
    position: absolute;
    right:0;
    top:-40px;
    background: transparent;
    border:0;
}
.modal-details .close-modal span{
    background: #ef07ad;
    color: white;
    font-weight:900;
    font-size: 2rem;
}
.technologies span{
    background: #ef07ad;
    color: white;
    padding: 5px;
    margin-top: 10px;
    display: inline-block;
}
/*-- footer -- */
footer .slogan{
    text-align: center;
    background: #f6f6f6;
    padding: 30px 0;
}
footer .slogan p{
    margin: 0;
    font-size: 1.3rem;
    font-weight: 900;
    background: #ef07adF;
    background: linear-gradient(to right, #ef07ad 0%, #00BEEA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;    
}
footer .copyright{
    background:black;
    padding: 10px 0;
}
footer .copyright .author a strong{
    color:#ef07ad;
    text-decoration: underline;
}
footer .copyright span{
    display: block;
    text-align: center;
    color: white;
    font-size: 0.8rem;
}

/* -- Dark mode -- */
.dark-mode{
    background:black;
}
.dark-mode *{
    color: white;
}
.dark-mode header .theme ul > li > ul > li:nth-child(1) .material-symbols-outlined, header .settings .theme > ul > li > ul > li.active .material-symbols-outlined{
    color: black;
}
.dark-mode .high{
    background: #f1f1f1;
    color: black;
}
.dark-mode  .btn{
    background: #f1f1f1;
    color: black;
    -webkit-box-shadow: -4px 6px 0px 0px #ef07ad;
    -moz-box-shadow: -4px 6px 0px 0px #ef07ad;
    box-shadow: -4px 6px 0px 0px #ef07ad;
}
.dark-mode header{
    background: #212121;
}
.dark-mode header .logo a{
    color: white;
}
.dark-mode header .menu-mobile nav{
    background: #212121;
}
.dark-mode .principal h1, .dark-mode .principal h1 *{
    color: white;
}
.dark-mode #about-me{
    background: #212121;
}
.dark-mode .p-grid .controllers{
    background: transparent;
}
.dark-mode .project a:not(.btn-s){
    color: white;
}
.dark-mode .modal-details .modal-container{
    background: #212121;    
}
.dark-mode .menu-desktop nav ul li a{
    color: #ef07ad;
}
/* --- Blue accent --- */
.blu .btn-s, .blu .magenta-bg::before, .blu .progress-wrap, .blu .technologies span, .blu .modal-details .close-modal span{
    background: #00beea;       
}
.blu .btn-s:hover{
    background: #424242;
}
.blu.dark-mode .btn, .blu .btn {
    -webkit-box-shadow: -4px 6px 0px 0px #00beea
    -moz-box-shadow: -4px 6px 0px 0px #00beea;
    box-shadow: -4px 6px 0px 0px #00beea;
}
.blu .magenta-color, .blu .p-grid .controllers span.active, .blu .p-grid .controllers span:hover, .blu .project a:not(.btn-s):hover, .blu .expand-more a span, .blu footer .copyright .author a strong, .blu .menu-desktop nav ul li a{
    color: #00beea;
}
.mag .expand-more a span{
    color: #ef07ad;
}


/* ------- Responsive ------------- */
@media (min-width:768px){
    /* -- my work -- */
    .p-grid.grid .project {
        width: 48%;
    }
    
}

@media (min-width: 1024px){
    .container{
        max-width: 90%;
    }
    /* -- Header -- */
    header .menu-mobile{
        display: none;
    }
    header .menu-desktop{
        display: block;
    }
    /* -- Container -- */
    header .container .row .col:nth-child(2){
        width: 60%;
    }
    header .container .row .col:nth-child(3){
        width: 30%;
    }
    header .container .row .col:last-child{
        width: 10%;
    }
    header .settings{
        justify-content: flex-end;
    }
    header .menu-desktop nav ul{
        text-align: right;
    }
    header .menu-desktop nav ul li{
        display: inline-block;
        margin: 0 10px;
    }
    header .logo span{
        font-size: 1.5rem;
        line-height: 1;
    }
    header .settings .color > ul > li, header .settings .theme > ul > li{
        height: 60px;
    }
    header .settings .color > ul > li > ul, header .settings .theme > ul > li > ul{
        top: 60px;
    }
    /* ------------------- PRINCIPAL ------------------------------- */
    .principal h1, .principal h1  *{
        font-size: 9rem;
    }    
}
@media (min-width:1200px){
    /* ------------------- PRINCIPAL ------------------------------- */
    .expand-more{
        display: block;
        text-align: center;
    }
    .expand-more a{
        color: #ef07ad;
    }
    .expand-more a span{
        font-size: 10rem;
    }
    .principal{
        height: 100vh;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    .principal h1, .principal h1  *{
        font-size: 11rem;
    }
    #about-me .container .row .col:first-child{
        width:30%;
    }
    #about-me .container .row .col:last-child{
        width:70%;
        padding-left: 10%;
    }          
}
@media (min-width:1500px){
    .container{
        max-width: 85%;
    }
    /* ------------------- PRINCIPAL ------------------------------- */
    .principal h1, .principal h1  *{
        font-size: 14rem;
    }
}

@media (min-width:1800px){
    /* ------------------- PRINCIPAL ------------------------------- */
    .principal h1, .principal h1  *{
        font-size: 16rem;
    }
}
@media (min-width:2200px){
    .p-grid.grid .project{
        width: 23%;
    }
}
@media (min-width:2400px){
    /* ------------------- PRINCIPAL ------------------------------- */
    .principal h1, .principal h1  *{
        font-size: 23rem;
    }
}