@font-face {
    font-family: 'PixelOperator';
    src: url(../Font/PixelOperatorMono-Bold.ttf);
    font-weight: bold;
}
@font-face {
    font-family: 'PixelOperator';
    src: url(../Font/PixelOperatorMonoHB.ttf);
    font-weight: 500;
}
@font-face {
    font-family: 'PixelOperator';
    src: url(../Font/PixelOperatorMono.ttf);
    font-weight: 400;
}
@font-face {
    font-family: 'PixelOperator';
    src: url(../Font/PixelOperator.ttf);
    font-weight: 300;
}

/**Setting variables**/
:root{
    --font-color: #553d37;
    --popup-shadow: #392924db;
    --font-color-blue: #222537;
    --website-color: #d8ceb7; 
    --color3: white;
    --color5: #94b6bb;
    --popup-color: rgb(238, 234, 219);
    
    --shadow-popup: 4px 4px 0.2px var(--popup-shadow);
}
*{
    font-family: 'PixelOperator', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: var(--website-color);
}
a,h1,h2,h3,h4,p,li,i {
    color: var(--font-color);
}

.page{
    min-height: 100vh;
    height: fit-content;
    width: 96%;
    max-width: 1280px;
    margin: 0 auto;  
}

.page:nth-child(2){
    margin-bottom: 60px;
}

h1{
    font-size: 40px;
    font-weight: 500;
}
h2{
    font-weight: 500;
    font-size: 26px;
    margin-bottom: 12px;
}
h3{
    font-weight: 500;
    font-size: 20px;

}
h4{
    font-weight: 400;
    font-size: 19px;
}

p{
    font-family: 'PixelOperator';
    font-weight: 400;
    font-size: 17.5px;
    text-align: justify;
}   
a{
    font-size: 16px;
    font-weight: 300;  
    width: fit-content;
    
}
ul{
    list-style: none;
}

/*===========================Animation===========================*/
.animation{
    text-decoration: none;
    padding: 6px 5px;
    font-size: 18px;
    position:relative;
    color: var(--font-color);
}

.animation:active::after{
    background-color: white;
    opacity: 1;
    mix-blend-mode: difference;
}

.animation::after{
    content: '';
    width: 0;
    height: 38px;
    background-color: white;
    opacity: 0.7;
    position: absolute;
    left: 0;
    bottom: -3px;
}

.animation:hover::after{
    width: 100%;
}/*===================================================================*/





/*===========================Popup===========================*/

.popup-heading{/*-------Popup Heading-------*/
    border-bottom: 2.5px solid var(--font-color-blue);
    position: relative;
    top: 0;
    width: 100%;
    padding: 3px 1px;
}

.popup-heading h1{
    position: absolute;
    transform: translate(-50%, -50%);
    background-color: var(--popup-color);
    display: inline-block;
    text-overflow: unset;
    height: 42px;
    font-size: 34px;
    top: 50%;
    left: 50%;
    white-space: nowrap;
    max-width: 74%;
    padding: 2px 8px;
}

.popup-heading .lines{
    height: 30px;
    background-image: linear-gradient(to bottom, var(--font-color-blue),var(--font-color-blue) 50%, transparent 50%);
    margin: 5px 1px 3px 1px;
    background-size: 99.9% 4.55px;
    background-repeat: repeat-y;
}

.popup-heading .button{
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    background-color: var(--popup-color);
    top: 52%;
    left: 35px;
    border: 2.5px solid var(--font-color-blue);
    outline: 2px solid var(--popup-color);
    width: 28px;
    height: 28px; 
}

.hidden{
    visibility: hidden;
}


.popup .inactive > *{
    display: none;
}

.popup-navigation{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-evenly;
    height: fit-content;
    width: 100%;
    margin:10px 0 10px 0;
}

.popup-navigation span{
    position: relative;
    width: 100%;
    top: 0;
    border-bottom: 2px solid var(--font-color-blue);
}
.popup-navigation span:last-child{
    position: relative;
    width: 100%;
    top: -10px;
    border-bottom: 2px solid var(--font-color-blue);
}

.popup-navigation a{
    cursor: pointer;
    font-weight: 500;
    font-size: 24px;
}


/*---------------------*/

.popup{/*-------Popup Body-------*/
    display: none;
}

.popup-information img{
    display: block;
    position: relative;
    transform: translate(-50%,0);
    left:50%;
    height:  fit-content;
    width: 300px;
    max-width: 80%;
    margin-bottom: 20px;
}


.popup-information > p{
    position: relative;
    transform: translate(-50%,0);
    left: 50%;
    font-size: 16px;
    line-height: 1.3em;
    text-indent: 50px;
    margin: 5px 0;
    width: 550px;
    max-width: 90%;
}

.popup h2{
    margin: auto;
    text-align: center;
    width: 100%;
    margin: 8px 6px;
    font-size: 28px;
}

.popup > p {
    padding: 5px 18px;
    font-size: 16px;
    line-height: 1.3em;
    text-indent: 100px;
}

 .popup p::first-letter{
    font-size: 34px;
    text-transform: capitalize;
}

.active{   
    display: block;
    position: fixed;
    overflow: scroll;
    scroll-behavior: auto;
    animation: opening 0.6s ease-in forwards; 
    border: 1.5px dotted rgb(0, 0, 0);
    box-shadow: none;
    background-color: transparent;
    max-width: 96%;
    max-height: 100vh;
}

@keyframes opening{
    99%{
        border: 3.5px dotted rgb(0, 0, 0);
        box-shadow: none;
        background-color: transparent;
        height: 400px;
    }
    100%{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 900px;
        height: fit-content;
        border: 2px solid var(--font-color-blue);
        box-shadow: var(--shadow-popup);
        background-color:  var(--popup-color);
        border-radius: 1.4px;
        box-shadow: var(--shadow-popup);
        z-index: 50;
    }
}
/*---------------------*/
/*===================================================================*/



/*==============================Carousel==============================*/
.slide-wrapper{
    margin-bottom: 6px;
    margin-top: 4px;
}

.slide-wrapper img{
    display: block;
    margin: auto;
    max-width: 95%;
    max-height: 640px;
}

.slides-container {
    margin: auto;
    max-width: 100%;
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
}
.slide {
    width: 100%;
    height: 100%;
    flex: 1 0 100%;
}   
.carousel-image{
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.slide-arrow-prev{
    position: absolute;
    transform: translate(0,-50%);
    opacity: 20%;
    left: 10px;
    top: 55%;
}
.slide-arrow-prev:hover{
    opacity: 90%;
}

.slide-arrow-next{
    position: absolute;
    transform: translate(0,-50%);
    opacity: 20%;
    right: 10px;
    top: 55%;
}
.slide-arrow-next:hover{
    opacity: 90%;
}

/*=============================================================*/










/*===========================Arrow director===========================*/
    .going_top{
        position: fixed;

        background-color: var(--popup-color);
        box-shadow: var(--shadow-popup);
        border: 2.5px solid var(--font-color-blue);
        border-radius: 1.4px;
        
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        transition: 0.55s;
        z-index: 2;
    }
    
    .going_top a {
        display: block;
        margin: auto;
        width: 100%;
        height: 100%;
        text-decoration: none;
    }

    .going_top i{
        display: block;
        height: fit-content;
        width: fit-content;
        margin: 6px auto 0 auto;
    }


/*===================================================================*/




/*===========================First Page===========================*/
    .first_page{
        height: 100vh;
        width: 100vw;
        max-width: 100vw;
        
    }


    header{
        height: 45px;
        background-color: var(--popup-color);
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        border-bottom: 2px solid var(--font-color-blue);
        z-index: 20;
    }

    .principal{
        display: flex;
        align-items: center;
        flex-direction: row;
        height: 100%;
        margin-left: 35px;
    }
    .principal li{
        margin-right: 4%;
        padding: 8px;
        cursor: pointer;
        text-decoration: none;
    }

    .principal li:last-child{
        margin: 0;
        position: absolute;
        right: 37px;
    }     
    
    .principal a:hover{
        background-color:white;
    }
    a:hover {
        color: black;
    }
    a:active{
        mix-blend-mode: difference;
    }
   

    .logo{
        margin-left: 25px;
        margin-top: 4px;
        width: 35px;
        height: fit-content;
    }

    .language_button{
        background-color: none;
        font-size: 22px;
    }
    
    .navigation{
        height: inherit;
        width: inherit;
    }


    .navigation a{
        font-weight: 500;
        font-size: 22px;
        padding: 8px 10px;
        text-decoration: none;
    }
  
    .language {
        display: none;
        flex-direction: column;
        gap: 8px; 
        border: 2px solid var(--font-color-blue);
        box-shadow: var(--shadow-popup);
        background-color:  var(--popup-color);
        width: 100px;
        position: absolute;
        right: 40px;
        top: 43px;
        height: fit-content; 
    }
    
    .navigation .language li {
        display: inline-block;
        cursor: pointer;
        text-align: center;
    }
    .navigation .language li:hover {
        background-color: black;
    }

    .language a{
        padding: 2px 35px;
    }
    
    .navigation .principal .popup-heading, .principal  i{
        display: none;
    }

    .active_language{
        display: flex;
        position: absolute;
        top: 43px;
        right: 48px;
    }
    
    .description{
        float: right;
        margin-right: 15px;
        margin-top:30vh;
        font-size: 30px;
    }
    .description > h1{
        font-size: 60px;
    }
    .description > p, a {
        font-size: 34px ;
        font-weight: 400;
        text-align: right;
    }
    .description .social_media{
        display: flex; 
    }
    .description .social_media i {
        color: var(--font-color);
        padding: 5px;
        margin: 3px;
        transition: 0.3s;
    }
    .description .social_media i:hover {
        color:var(--color5);
    }
/*===================================================================*/




/*===========================Second Page===========================*/


    .about_me{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100vw;
        gap: 20px;
        align-items: center;
        justify-content: center;
    }

    .about_me .image-container{
        flex: 2 0 310px;
        max-width: 35%;
        min-width: 300px;
    }
    
    .image-container > img{
        width: 100%;
        border: 2.5px solid var(--font-color-blue);
        border-radius: 1.4px;
        box-shadow: var(--shadow-popup);
    }
   
    .about_me .paragraphs{
        flex: 1 0 750px;
        max-width: 100%;
        flex-direction: column;
    }

    .about_me .paragraphs > p{
        text-indent: 32px;
        margin-bottom: 10px;
        margin-left: 10px;
    }

    .about_me .paragraphs > h1{
        margin-bottom: 25px;
    }

    .about_me .paragraphs p::first-letter{
        font-size: 34px;
        text-transform: capitalize;
        margin-right: 0px;
    }

    .my_history{
        flex: 1 0 600px;
        max-width: 100%;
    }
   
    .my_skills{
        margin: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
        grid-gap: 10px;

    }

    .my_skills .container{
        background-color: var(--popup-color);
        box-shadow: var(--shadow-popup);
        border: 2.5px solid var(--font-color-blue);
        padding: 16px;
        border-radius: 1.4px;
        transition: 0.15s;
        cursor: pointer;
        position: relative;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        height: 210px;
        transition: background-color 0.3s ease;
    }
    .my_skills .container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 1.4px;
        transition: 0.3s ease;
    }
    .my_skills .container:nth-child(1){
        background-image: url(../Images/Arduino.jpg);
    }
    .my_skills .container:nth-child(2){
        background-image: url(../Images/Web.jpg);
    }
    .my_skills .container:nth-child(3){
        background-image: url(../Images/Game.jpg);
    }
   
    
    .my_skills .container:hover{
        background-image: none;
        border: 2.5px solid black;
        background-color: rgba(255, 255, 255, 0.872);
    }
    .my_skills .container p{
        display: none;
    }
    
    .my_skills .container:hover > p {
        display: inline-block;
        color: black;
        font-size: 26px;
        text-align: center;
        position: absolute;
        transform: translate(-50%,-50%);
        top: 50%;
        left: 50%;
    }
/*===================================================================*/


/*===========================Third Page===========================*/
.especialties{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,2fr));
    grid-gap: 20px;
    margin-top: 30px;
}

.especialties i{
    font-size: 40px;
    margin-bottom: 20px;
    margin-left:10px;
}
.especialties p{
    text-indent: 20px;
    margin: 0;
    margin-bottom: 5px;
}

.container2{
    background-color: var(--popup-color);
    box-shadow: var(--shadow-popup);
    border: 2.5px solid var(--font-color-blue);
    padding: 16px;
    border-radius: 1.4px;
}

.projects{
    border: 1.5px solid var(--font-color-blue);
    padding: 10px;
    border-radius: 2px;
    width: 90%;
    height: 160px;
    margin: 25px auto 0px auto; 
    box-shadow: var(--shadow-popup);
    cursor: pointer; 
    background-color: white;
}



.container2:nth-child(1) :nth-child(5){
    opacity: 50%;
}
.container2:nth-child(1) :nth-child(5):hover{
    transform: scale(1.05);
}

.container2:nth-child(2) :nth-child(5){
    opacity: 50%;
}
.container2:nth-child(2) :nth-child(5):hover{
    transform: scale(1.05);
}
.container2:nth-child(2) :nth-child(4){
    opacity: 50%;
}
.container2:nth-child(2) :nth-child(4):hover{
    transform: scale(1.05);
}


.container2:nth-child(3) :nth-child(4){
    opacity: 50%;
}
.container2:nth-child(3) :nth-child(4):hover{
    transform: scale(1.05);
}

.container2:nth-child(3) :nth-child(5){
    opacity: 50%;
}
.container2:nth-child(3) :nth-child(5):hover{
    transform: scale(1.05);
}


.container2:nth-child(1) :nth-child(6){
    background-image: url(../Images/Turing_Machine/turing.png);
    background-repeat: no-repeat;
}


.container2:nth-child(1) button{
    display: block;
    margin: 40px auto 0px auto;
    padding: 6px;
}

.projects:hover{
    transform: scale(1.1);
}

#popup10 a{
    width: fit-content;
    background-color: rgba(255, 255, 255, 0.622);
    padding: 4px;
}

.alert > * {
    display: block;
    margin: 40px auto;
    width: 400px;
    max-width: 80%;
}
.alert > h3{
    visibility: hidden;
}

.container-iframe{
    display: flex;
    gap: 10px;
    margin: 8px;
    flex-direction: column;
    align-items: center;
    height: min-content;
}


.description_iframe{
    display: flex;
    gap: 20px;
    flex-direction: row;
    right: 1%;
    top: 20%;  
}

.tinkercad{
    left: 1%;
    top: 10%;
    border-radius: 8px;
    width: 80%;
    height: 400px;

}
.youtube{
    width: 400px;
    height: 200px;
    border-radius: 8px;
}



/*===================================================================*/



/*===========================Fifth Page===========================*/
    .fifth_page{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 23px;
    }

    .msg{
        display: block;
        position: fixed;
        color: rgb(73, 167, 73);
        font-size: 26px;
        bottom: 30px;
        left: 45vw;
        font-weight: 600;
    }

    .contact_left{
        width: 800px;
        padding-bottom:20px;
        height: fit-content;
        max-width: 95%;
        margin: auto;
        border-radius: 1.4px;
        border: 2.5px solid var(--font-color-blue);
        background-color:  var(--popup-color);
        box-shadow: var(--shadow-popup);
    }
    .contact_left label {
        font-weight: 300;
        margin-left: 11%;
    }
    .contact_left button{
        display: block;
        margin: auto;
    }
    .contact_right{
        margin:auto;
    }
    .contact_right  p{
        text-indent:0px;
    }
    


    form input, form textarea {
        margin:auto;
        margin-bottom:20px;
        margin-top: 8px;
        display: flex;
        width: 80%;
        resize: none;
        outline:none;
        border: none;
        box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.283);
        padding: 10px;
        color: var(--font-color);
        font-size: 16px;
        border-radius: 2px;
    }

    .contact input,
    .contact textarea {
        padding: 10px;
        margin-bottom: 20px;
        border-radius: 5px;
        border: none;
    }


    button {
        margin: auto;
        color: white;
        background-color: var(--font-color);
        padding: 10px 20px;
        border-radius: 0.9px;
        box-shadow: 2px 2px 0.2px var(--popup-shadow);
        border: 1.8px solid var(--font-color-blue);
        font-size: 1.2rem;
        cursor: pointer;

    }

    button:hover{
        background-color: white;
        color: black;
        border: solid black;
        box-shadow: 4px 4px 0.2px rgb(72, 72, 72);
    }
    button:active{
       mix-blend-mode: difference;
    }
/*===================================================================*/ 




/*==============================Footer==============================*/
    footer{
        width: 100%;
        padding-bottom: 10px;
    }
    footer p{
        margin-top: 10px;
        text-align: center;
    }
    footer img{
        display: block;
        margin: auto;
        width: 150px;
    }
/*===================================================================*/ 



/**-----------Media Queries-----------**/
@media screen and (max-width:950px){

    /*-----------General-----------*/
    h1{
        font-size: 40px;
        font-weight: bold;
        margin-bottom: 10px;
    }
    h2{
        font-weight: 500;
        font-size: 26px;
        margin-bottom: 10px;
    }
    h3{
        font-weight: 500;
        font-size: 20px;
    }
    p{
        font-weight: 400;
        font-size: 16.5px;
        line-height: 1.24em;
    }
    
    .alert > h3{
        visibility: visible;
    }
    .going_top{
        position: fixed;
        right: 15px;
        bottom: 80px;
    }


/*-------Popup Heading-------*/
    .popup-heading{
        padding: 4px 1.5px;
    }

    .popup-heading h1{
        height: 28px;
        font-size: 20px;
    }

    .popup-heading .lines{
        height: 22px;
        background-size: 99.9% 4.6px;
        margin: 2px 1px 1px 1px;
    }
    
    .popup-heading .button{
        width: 22px;
        height: 22px; 
    } 

    .popup h2{
        font-size: 18px;
        margin-top: 8px;
        padding: 0 2px;
    }
    .popup p{
        font-size: 14px;
        text-indent: 10px;
    }
    .popup{
        scroll-behavior: auto;
    }


/*-------Carousel-------*/



/*------------------------------*/

/*-----------Menu-----------*/
    .navigation.active_navigation{
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translate(-50%,0);
        transition: 0.5s;
    }
    .principal i{
        display: inline;
    }

    .slides-container {
        margin: auto;
        height: 200px;
        width: 60%;
        display: flex;
        overflow: hidden;
        scroll-behavior: smooth;
    }
    .logo{
        background-color: var(--popup-color);
        box-shadow: var(--shadow-popup);
        border: 2.5px solid var(--font-color-blue);
        margin-left:0;
        border-radius: 1.6px;
        padding: 3px;
        display: block;
        position: fixed;
        right: 15px;
        bottom: 15px;
        width: 55px;
        cursor: pointer;  
        z-index: 4;
        transition:0.5s;
    }
    .navigation{
        height: min-content;
        max-height: 300px;
        max-width: 100%;
        width: 450px;
        margin: 0;
        padding: 0;
        position: fixed;
        transform: translate(-50%, 100%);
        bottom: -5px;
        left: 50%;
        border: 2.5px solid var(--font-color-blue);
        border-top-right-radius: 1.6px;
        border-top-left-radius: 1.6px;
        background-color: var(--popup-color);
        box-shadow: var(--shadow-popup);
        z-index: 10;
        transition: 0.2s;   
    }
    .navigation .principal li a{
        padding: 0;
        margin: 0;
        display: inline;
        font-size: 26px;
        font-weight: 300;
    }

    .navigation .principal li .language_button{
        display: block;
        position: absolute;
        margin: 0;
        padding: 0 5px;
        right: 0;
        top: 3px;
        background-color: var(--popup-color);
    }

    .navigation .principal > li{
        margin: 0;
        padding: 0;
    }

    .language{
        top: 34px;
        right: 38px;
    }

    .principal{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
        gap: 20px;
    }

    

    .navigation .principal .popup-heading{
        display: block;
    }

    
    .navigation .fa-xmark{
        position: absolute;
        cursor: pointer;
        left: 5%;
        top: 9px;
        font-size: 34px;
        margin-left: 10px;
    }/*------------------------------*/


    /*-----------First Page-----------*/
    .description > h1{
        text-align: right;
        font-size: 49px;

    }
    .description  p {
        font-size: 24px ;
        text-align: right;
        margin: 0 3px;
    }

    .social_media{
        display: inline-flex;
        float: right;
        text-decoration: none;
    }
    .social_media > a {
        font-size:30px;
    }
    
    header{ 
        background-color: var(--website-color);
        border-bottom: 2px solid var(--website-color);
    } 

    .slide-arrow-prev{
        position: absolute;
        display: flex;
        left: 15px;
        top:125px;
        width: 40px;
        height: 30px;
        justify-content: center;
        align-items: center;
    }
    .slide-arrow-next{
        position: absolute;
        display: flex;
        right: 15px;
        top:125px;
        width: 40px;
        height: 30px;
        justify-content: center;
        align-items: center;
    }
  
    .my_skills .container p{
        display: block;
    }
    
    .my_skills .container > p {
        background-color: rgba(255, 255, 255, 0.711);
        border-radius: 4px;
        width: 80%;
        padding: 10px;
        display: inline-block;
        color: black;
        font-size: 26px;
        text-align: center;
        position: absolute;
        transform: translate(-50%,-50%);
        top: 50%;
        left: 50%;
    }



   
}

@media screen and (max-height: 520px){
    .slide-wrapper > *{
        display: none;
    }
    .popup p{
        font-size: 14px;
    }
    .popup h2{
        font-size: 18px;
    }

}
